Changeset 2759
- Timestamp:
- 08/07/05 10:45:06 (3 years ago)
- Files:
-
- trunk/wp-admin/index.php (modified) (3 diffs)
- trunk/wp-admin/plugins.php (modified) (4 diffs)
- trunk/wp-admin/wp-admin.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/index.php
r2756 r2759 9 9 10 10 <div class="wrap"> 11 12 <h2><?php _e('Dashboard'); ?></h2> 13 11 14 <div id="zeitgeist"> 12 15 <h2><?php _e('Latest Activity'); ?></h2> 16 17 <?php 18 $rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress'); 19 if ( isset($rss->items) && 0 != count($rss->items) ) { 20 ?> 21 <div id="incominglinks"> 22 <h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/cosmos/search.html?url=<?php echo trailingslashit(get_option('home')); ?>&partner=wordpress"><?php _e('More'); ?> »</a></cite></h3> 23 <ul> 24 <?php 25 $rss->items = array_slice($rss->items, 0, 10); 26 foreach ($rss->items as $item ) { 27 ?> 28 <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wp_specialchars($item['title']); ?></a></li> 29 <?php } ?> 30 </ul> 31 </div> 32 <?php } ?> 33 34 <?php 35 if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5") ) : 36 ?> 37 <div> 38 <h3><?php _e('Comments'); ?> <a href="edit-comments.php" title="<?php _e('More comments...'); ?>">»</a></h3> 39 40 <?php 41 if ( $numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '0'") ) : 42 ?> 43 <p><strong><a href="moderation.php"><?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> »</a></strong></p> 44 <?php endif; ?> 45 </div> 46 47 <ul> 48 <?php 49 if ( $comments ) { 50 foreach ($comments as $comment) { 51 echo '<li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>'); 52 edit_comment_link(__("Edit"), ' <small>(', ')</small>'); 53 echo '</li>'; 54 } 55 } 56 ?> 57 </ul> 58 59 <?php endif; ?> 60 13 61 <?php 14 62 if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) : … … 47 95 <?php endif; ?> 48 96 49 <?php50 if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5") ) :51 ?>52 <div>53 <h3><?php _e('Comments'); ?> <a href="edit-comments.php" title="<?php _e('More comments...'); ?>">»</a></h3>54 55 <?php56 if ( $numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '0'") ) :57 ?>58 <p><strong><a href="moderation.php"><?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> »</a></strong></p>59 <?php endif; ?>60 </div>61 62 <?php endif; ?>63 64 <ul>65 <?php66 foreach ($comments as $comment) {67 echo '<li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>');68 edit_comment_link(__("Edit"), ' <small>(', ')</small>');69 echo '</li>';70 }71 ?>72 </ul>73 74 97 <div> 75 98 <h3><?php _e('Blog Stats'); ?></h3> … … 87 110 </div> 88 111 89 <?php90 $rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress');91 if ( isset($rss->items) && 0 != count($rss->items) ) {92 ?>93 <div id="incominglinks">94 <h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/cosmos/search.html?url=<?php echo trailingslashit(get_option('home')); ?>&partner=wordpress"><?php _e('More'); ?> »</a></cite></h3>95 <ul>96 <?php97 $rss->items = array_slice($rss->items, 0, 10);98 foreach ($rss->items as $item ) {99 ?>100 <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wp_specialchars($item['title']); ?></a></li>101 <?php } ?>102 </ul>103 </div>104 <?php } ?>105 106 112 <?php do_action('activity_box_end'); ?> 107 113 </div> 108 114 109 <h2><?php _e('Dashboard'); ?></h2>110 115 <p><?php _e("Below is the latest news from the official WordPress development blog, click on a title to read the full entry. If you need help with WordPress please see our <a href='http://codex.wordpress.org/'>great documentation</a> or if that doesn't help visit the <a href='http://wordpress.org/support/'>support forums</a>."); ?></p> 111 116 <?php trunk/wp-admin/plugins.php
r2697 r2759 61 61 <div class="wrap"> 62 62 <h2><?php _e('Plugin Management'); ?></h2> 63 <p><?php _e('Plugins are files you usually download separately from WordPress that add functionality. To install a plugin you generally just need to put the plugin file into your <code>wp-content/plugins</code> directory. Once a plugin is installed, you may activate it or deactivate it here. If something goes wrong with a plugin and you can’t use WordPress, delete that plugin from the <code>wp-content/plugins</code> directory and it will be automatically deactivated.'); ?></p>63 <p><?php _e('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.'); ?></p> 64 64 <?php 65 65 … … 77 77 <th><?php _e('Plugin'); ?></th> 78 78 <th><?php _e('Version'); ?></th> 79 <th><?php _e('Author'); ?></th>80 79 <th><?php _e('Description'); ?></th> 81 80 <th><?php _e('Action'); ?></th> … … 97 96 echo " 98 97 <tr $style> 99 <td class=\"name\">{$plugin_data['Title']}</td> 100 <td class=\"vers\">{$plugin_data['Version']}</td> 101 <td class=\"auth\">{$plugin_data['Author']}</td> 102 <td class=\"desc\">{$plugin_data['Description']}</td> 103 <td class=\"togl\">$action</td> 98 <td class='name'>{$plugin_data['Title']}</td> 99 <td class='vers'>{$plugin_data['Version']}</td> 100 <td class='desc'>{$plugin_data['Description']} <cite>By {$plugin_data['Author']}.</cite></td> 101 <td class='togl'>$action</td> 104 102 </tr>"; 105 103 } … … 111 109 ?> 112 110 111 <p><?php _e('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the <code>wp-content/plugins</code> directory and it will be automatically deactivated.'); ?></p> 112 113 113 <h2><?php _e('Get More Plugins'); ?></h2> 114 114 <p><?php _e('You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>. To install a plugin you generally just need to upload the plugin file into your <code>wp-content/plugins</code> directory. Once a plugin is uploaded, you may activate it here.'); ?></p> trunk/wp-admin/wp-admin.css
r2757 r2759 289 289 margin: .8em 0 .5em; 290 290 clear: both; 291 } 292 293 table .vers, table .name { 294 text-align: center; 291 295 } 292 296 … … 572 576 #zeitgeist h2, fieldset legend a { 573 577 border-bottom: none; 578 } 579 580 #zeitgeist h2 { 581 margin-top: .4em; 574 582 } 575 583
