Changeset 2029
- Timestamp:
- 01/01/2005 11:05:07 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r2019 r2029 128 128 <td>$edit</td> 129 129 </tr>"; 130 cat_rows($category->cat_ID, $level + 1); 130 cat_rows($category->cat_ID, $level + 1, $categories); 131 } 132 } 133 } else { 134 return false; 135 } 136 } 137 138 function page_rows( $parent = 0, $level = 0, $pages = 0 ) { 139 global $wpdb, $class, $user_level, $post; 140 if (!$pages) 141 $pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static' ORDER BY menu_order"); 142 143 if ($pages) { 144 foreach ($pages as $post) { start_wp(); 145 if ($post->post_parent == $parent) { 146 $post->post_title = wp_specialchars($post->post_title); 147 $pad = str_repeat('— ', $level); 148 $id = $post->ID; 149 $class = ('alternate' == $class) ? '' : 'alternate'; 150 ?> 151 <tr class='<?php echo $class; ?>'> 152 <th scope="row"><?php echo $post->ID; ?></th> 153 <td> 154 <?php echo $pad; ?><?php the_title() ?> 155 </td> 156 <td><?php the_author() ?></td> 157 <td><?php the_time('Y-m-d g:i a'); ?></td> 158 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td> 159 <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td> 160 <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "<a href='post.php?action=delete&post=$id' class='delete' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n \'OK\' to delete, \'Cancel\' to stop."), the_title('','',0)) . "')\">" . __('Delete') . "</a>"; } ?></td> 161 </tr> 162 163 <?php 164 page_rows($id, $level + 1, $pages); 131 165 } 132 166 } -
trunk/wp-admin/edit-pages.php
r1902 r2029 30 30 <th scope="col"></th> 31 31 </tr> 32 <?php 33 $bgcolor = ''; 34 foreach ($posts as $post) : start_wp(); 35 $class = ('alternate' == $class) ? '' : 'alternate'; 36 ?> 37 <tr class='<?php echo $class; ?>'> 38 <th scope="row"><?php echo $id ?></th> 39 <td> 40 <?php the_title() ?> 41 </td> 42 <td><?php the_author() ?></td> 43 <td><?php the_time('Y-m-d g:i a'); ?></td> 44 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td> 45 <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td> 46 <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "<a href='post.php?action=delete&post=$id' class='delete' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n \'OK\' to delete, \'Cancel\' to stop."), the_title('','',0)) . "')\">" . __('Delete') . "</a>"; } ?></td> 47 </tr> 48 <?php endforeach; ?> 32 <?php page_rows(); ?> 49 33 </table> 50 34 <?php -
trunk/wp-includes/template-functions-post.php
r2022 r2029 50 50 global $post, $wpdb; 51 51 $title = $post->post_title; 52 52 53 if ( 0 != $id ) 53 54 $title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID = $id"); … … 366 367 if (!isset($r['show_date'])) $r['show_date'] = ''; 367 368 if (!isset($r['child_of'])) $r['child_of'] = 0; 369 if ( !isset($r['title_li']) ) $r['title_li'] = __('Pages'); 370 368 371 369 372 // Query pages. 370 373 $pages = get_pages($args); 371 374 if ( $pages ) : 375 376 if ( $r['title_li'] ) 377 echo '<li>' . $r['title_li'] . '<ul>'; 372 378 // Now loop over all pages that were selected 373 379 $page_tree = Array(); … … 398 404 // child_of defaults to 0 if not supplied in the query. 399 405 _page_level_out($r['child_of'],$page_tree, $r); 406 if ( $r['title_li'] ) 407 echo '</ul></li>'; 408 endif; 400 409 } 401 410 -
trunk/wp-includes/wp-layout.css
r2009 r2029 229 229 #menu ul ul li { 230 230 border: 0; 231 font: normal normal 70%/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;231 font: normal normal 12px/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; 232 232 letter-spacing: 0; 233 233 margin-top: 0; -
trunk/wp-includes/wp-sidebar.php
r2009 r2029 4 4 5 5 <ul> 6 <?php wp_list_pages(); ?> 6 7 <?php get_links_list(); ?> 7 8 <li id="categories"><?php _e('Categories:'); ?>
Note: See TracChangeset
for help on using the changeset viewer.