Changeset 6139
- Timestamp:
- 06/02/08 23:50:17 (22 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
interface/owner/center/dashboard/index.php (modified) (9 diffs)
-
lib/model/blog.comment.php (modified) (1 diff)
-
style/admin/whitedream/center.css (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/center/dashboard/index.php
r6138 r6139 14 14 requireModel('blog.trash'); 15 15 requireModel('common.setting'); 16 16 requireComponent('Textcube.Model.Statistics'); 17 17 18 18 $blogMenu['topMenu'] = 'center'; … … 416 416 ?> 417 417 <div id="<?php echo $mapping['plugin'];?>" class="section"> 418 <h3 class="caption">418 <h3 class="caption<?php echo isset($_REQUEST['edit']) ? ' visible' : ' invisible';?>"> 419 419 <span><?php echo _t('알림판');?> 420 420 <?php … … 429 429 </h3> 430 430 <?php 431 if (!isset($_REQUEST['edit'])) { 431 if (isset($_REQUEST['edit'])) { 432 ?> 433 </div> 434 <?php 435 return true; 436 } else { 432 437 // Get default data 433 438 $stats = getStatistics($blogid); … … 464 469 'title' =>$trackback['subject'], 465 470 'date' =>$trackback['written'], 466 'link '=> $blogURL."/".$trackback['entry']."#trackback".$trackback['id'],471 'link' => $blogURL."/".$trackback['entry']."#trackback".$trackback['id'], 467 472 'category'=>'trackback')); 468 473 } 469 foreach($recents as $uniqid => $row){474 /* foreach($recents as $uniqid => $row){ 470 475 foreach($row as $key=>$value){ 471 476 $sort_array[$key][$uniqid] = $value; 472 477 } 473 478 } 474 array_multisort($sort_array['date'],SORT_DESC,$recents); 479 array_multisort($sort_array['date'],SORT_DESC,$recents);*/ 475 480 ?> 476 481 <div id="shortcut-collection"> … … 528 533 <tr> 529 534 <td class="type"><?php echo _t('방명록');?></td> 530 <td class="sum">< /td>535 <td class="sum"><?php echo number_format(getGuestbookCount($blogid));?></td> 531 536 </tr> 532 537 <tr> … … 553 558 <tr> 554 559 <td class="type"><?php echo _t('최근7일 평균');?></td> 555 <td class="sum">< /td>560 <td class="sum"><?php echo number_format(Statistics::getWeeklyStatistics());?></td> 556 561 </tr> 557 562 <tr> … … 571 576 <tr> 572 577 <th scope="col" class="date"><?=_t('날짜')?></th> 578 <th scope="col" class="category"><?=_t('종류')?></th> 573 579 <th scope="col"><?=_t('내용')?></th> 574 580 </tr> … … 580 586 <tr class="<?php echo $item['category'];?>"> 581 587 <td class="date"><?php echo Timestamp::format('%m/%d',$item['date']);?></td> 588 <td class="category"> 589 <?php 590 switch($item['category']) { 591 case 'trackback' : 592 echo '<a href="'.$blogURL.'/owner/communication/trackback?status=received">'._t('걸린글').'</a>';break; 593 case 'comment' : 594 echo '<a href="'.$blogURL.'/owner/communication/comment?status=comment">'._t('댓글').'</a>';break; 595 case 'commentNotify' : 596 echo '<a href="'.$blogURL.'/owner/communication/notify">'._t('알리미').'</a>';break; 597 case 'guestbook' : 598 echo '<a href="'.$blogURL.'/owner/communication/comment?status=guestbook">'._t('방명록').'</a>';break; 599 } 600 ?> 601 </td> 582 602 <td class="title"><a href="<?php echo $item['link'];?>"><?php echo htmlspecialchars(UTF8::lessenAsEm($item['title'],25));?></a></td> 583 603 </tr> … … 632 652 <tr> 633 653 <td class="date"><?php echo Timestamp::format2($item['written']);?></td> 634 <td class="title"><a href="<?php echo $item['permalink'];?>" onclick="return openLinkInNewWindow(this);" ><?php echo htmlspecialchars(UTF8::lessenAsEm($item['title'], 40));?></a></td>654 <td class="title"><a href="<?php echo $item['permalink'];?>" onclick="return openLinkInNewWindow(this);" ><?php echo htmlspecialchars(UTF8::lessenAsEm($item['title'],35));?></a></td> 635 655 </tr> 636 656 <?php -
trunk/lib/model/blog.comment.php
r6136 r6139 969 969 } 970 970 971 function getGuestbookCount($blogid) { 972 global $database; 973 return POD::queryCell("SELECT count(id) FROM {$database['prefix']}Comments WHERE blogid = $blogid AND entry = 0"); 974 } 975 971 976 function getCommentCountPart($commentCount, &$skin) { 972 977 $noneCommentMessage = $skin->noneCommentMessage; -
trunk/style/admin/whitedream/center.css
r6138 r6139 46 46 } 47 47 48 #defaultDashboardWidget h3 48 #defaultDashboardWidget h3.invisible 49 49 { 50 50 display : none; … … 117 117 118 118 /* total information */ 119 120 119 #total-information .posts-line, 121 120 #total-information .visitors-line … … 204 203 #textcube-notice table 205 204 { 206 margin : 0 0 25px 0;205 margin : 0; 207 206 width : 280px !important; 208 font-size : 0.925em;209 207 } 210 208 … … 212 210 { 213 211 border-bottom : 1px solid #EEEEEE; 214 height : 2 8px;212 height : 22px !important; 215 213 padding-left : 10px; 216 214 text-align : left; … … 227 225 228 226 /* panel */ 229 230 227 #myBlogInfo h4 231 228 { … … 236 233 line-height : 1em !important; 237 234 margin-top : 10px !important; 238 padding-top : 0!important;235 padding-top : 10px !important; 239 236 height : 20px; 240 237 } … … 250 247 line-height : 1.2em; 251 248 } 252 249 #myBlogInfo table 250 { 251 margin-bottom : 0 !important; 252 } 253 253 #myBlogInfo table caption 254 254 { 255 255 display : none; 256 }257 258 #infoPanel table259 {260 width : 270px !important;261 256 } 262 257 … … 280 275 border-right : 1px solid #DDD !important; 281 276 } 282 277 #infoPanel table td.category 278 { 279 width : 50px; 280 } 283 281 #infoPanel table td.title 284 282 { 285 width : 200px;283 width : 190px; 286 284 overflow : hidden; 287 padding-left : 50px !important;288 285 } 289 286
