Changes in trunk/wp-admin/edit-pages.php [3422:4258]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-pages.php
r3422 r4258 3 3 $title = __('Pages'); 4 4 $parent_file = 'edit.php'; 5 $list_js = true;5 wp_enqueue_script( 'listman' ); 6 6 require_once('admin-header.php'); 7 7 ?> … … 9 9 <div class="wrap"> 10 10 <h2><?php _e('Page Management'); ?></h2> 11 <p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page '); ?> »</a></p>11 <p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page »'); ?></a></p> 12 12 13 13 <form name="searchform" action="" method="get"> … … 20 20 21 21 <?php 22 wp('post_type=page&orderby=menu_order&what_to_show=posts&posts_per_page=-1&posts_per_archive_page=-1'); 22 23 23 $show_post_type = 'page'; 24 25 if ( isset($_GET['s']) ) 26 wp(); 24 if ( $_GET['s'] ) 25 $all = false; 27 26 else 28 $ posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'");27 $all = true; 29 28 30 29 if ($posts) { 31 30 ?> 32 <table id="the-list-x" width="100%" cellpadding="3" cellspacing="3"> 33 <tr> 34 <th scope="col"><?php _e('ID') ?></th> 35 <th scope="col"><?php _e('Title') ?></th> 31 <table class="widefat"> 32 <thead> 33 <tr> 34 <th scope="col" style="text-align: center"><?php _e('ID') ?></th> 35 <th scope="col"><?php _e('Title') ?></th> 36 36 <th scope="col"><?php _e('Owner') ?></th> 37 37 <th scope="col"><?php _e('Updated') ?></th> 38 <th scope="col" ></th>39 <th scope="col"></th>40 <th scope="col"></th>41 < /tr>38 <th scope="col" colspan="3" style="text-align: center"><?php _e('Action'); ?></th> 39 </tr> 40 </thead> 41 <tbody id="the-list"> 42 42 <?php 43 if ( isset($_GET['s']) ) { 44 foreach ( $posts as $post ) : 45 $class = ('alternate' != $class) ? 'alternate' : ''; ?> 46 <tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'> 47 <th scope="row"><?php echo $post->ID; ?></th> 48 <td> 49 <?php echo $pad; ?><?php the_title() ?> 50 </td> 51 <td><?php the_author() ?></td> 52 <td><?php echo mysql2date('Y-m-d g:i a', $post->post_modified); ?></td> 53 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td> 54 <td><?php if ( current_user_can('edit_pages') ) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td> 55 <td><?php if ( current_user_can('edit_pages') ) { echo "<a href='post.php?action=delete&post=$id' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . sprintf(__("You are about to delete the "%s" page.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars(get_the_title('','',0), 1)) . "' );\">" . __('Delete') . "</a>"; } ?></td> 56 </tr> 57 <?php 58 endforeach; 59 } else { 60 page_rows(); 61 } 43 page_rows(0, 0, $posts, $all); 62 44 ?> 63 </table> 45 </tbody> 46 </table> 64 47 65 48 <div id="ajax-response"></div> … … 73 56 ?> 74 57 75 <h3><a href="page-new.php"><?php _e('Create New Page '); ?> »</a></h3>58 <h3><a href="page-new.php"><?php _e('Create New Page »'); ?></a></h3> 76 59 77 60 </div>
Note: See TracChangeset
for help on using the changeset viewer.