Changeset 4495 for trunk/wp-admin/edit.php
- Timestamp:
- 11/19/2006 07:56:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r4491 r4495 13 13 14 14 if ($drafts || $other_drafts) { 15 ?> 15 ?> 16 16 <div class="wrap"> 17 17 <?php if ($drafts) { ?> 18 <p><strong><?php _e('Your Drafts:') ?></strong> 19 18 <p><strong><?php _e('Your Drafts:') ?></strong> 19 <?php 20 20 $i = 0; 21 21 foreach ($drafts as $draft) { … … 28 28 ++$i; 29 29 } 30 ?> 31 .</p> 32 <?php } ?> 33 34 <?php if ($other_drafts) { ?> 35 <p><strong><?php _e('Other’s Drafts:') ?></strong> 36 30 ?> 31 .</p> 32 <?php } ?> 33 34 <?php if ($other_drafts) { ?> 35 <p><strong><?php _e('Other’s Drafts:') ?></strong> 36 <?php 37 37 $i = 0; 38 38 foreach ($other_drafts as $draft) { … … 45 45 ++$i; 46 46 } 47 ?> 48 .</p> 47 ?> 48 .</p> 49 49 50 50 <?php } ?> … … 89 89 <fieldset> 90 90 <legend><?php _e('Browse Month…') ?></legend> 91 91 <select name='m'> 92 92 <?php 93 93 foreach ($arc_result as $arc_row) { … … 128 128 // define the columns to display, the syntax is 'internal name' => 'display name' 129 129 $posts_columns = array( 130 131 132 133 134 135 130 'id' => __('ID'), 131 'date' => __('When'), 132 'title' => __('Title'), 133 'categories' => __('Categories'), 134 'comments' => __('Comments'), 135 'author' => __('Author') 136 136 ); 137 137 $posts_columns = apply_filters('manage_posts_columns', $posts_columns); … … 144 144 ?> 145 145 146 <table class="widefat"> 146 <table class="widefat"> 147 147 <thead> 148 148 <tr> … … 161 161 add_filter('the_title','wp_specialchars'); 162 162 $class = ('alternate' == $class) ? '' : 'alternate'; 163 ?> 163 ?> 164 164 <tr id='post-<?php echo $id; ?>' class='<?php echo $class; ?>'> 165 165 … … 196 196 case 'comments': 197 197 ?> 198 <td style="text-align: center"><a href="edit.php?p=<?php echo $id ?>&c=1"> 199 <?php comments_number(__('0'), __('1'), __('%')) ?> 200 198 <td style="text-align: center"><a href="edit.php?p=<?php echo $id ?>&c=1"> 199 <?php comments_number(__('0'), __('1'), __('%')) ?> 200 </a></td> 201 201 <?php 202 202 break; … … 260 260 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date"); 261 261 if ($comments) { 262 ?> 263 <h3 id="comments"><?php _e('Comments') ?></h3> 264 <ol id="the-comment-list" class="commentlist"> 262 ?> 263 <h3 id="comments"><?php _e('Comments') ?></h3> 264 <ol id="the-comment-list" class="commentlist"> 265 265 <?php 266 266 $i = 0; … … 270 270 $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); 271 271 $comment_status = wp_get_comment_status($comment->comment_ID); 272 if ('unapproved' == $comment_status) 272 if ('unapproved' == $comment_status) 273 273 $class .= ' unapproved'; 274 274 if ($i % 2) … … 300 300 }//end if comments 301 301 ?> 302 <?php } ?> 303 </div> 304 <?php 302 <?php } ?> 303 </div> 304 <?php 305 305 include('admin-footer.php'); 306 ?> 306 ?>
Note: See TracChangeset
for help on using the changeset viewer.