Changes in trunk/wp-admin/edit-pages.php [4258:3422]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-pages.php
r4258 r3422 3 3 $title = __('Pages'); 4 4 $parent_file = 'edit.php'; 5 wp_enqueue_script( 'listman' );5 $list_js = true; 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');23 22 24 if ( $_GET['s'] ) 25 $all = false; 23 $show_post_type = 'page'; 24 25 if ( isset($_GET['s']) ) 26 wp(); 26 27 else 27 $ all = true;28 $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'"); 28 29 29 30 if ($posts) { 30 31 ?> 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> 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> 36 36 <th scope="col"><?php _e('Owner') ?></th> 37 37 <th scope="col"><?php _e('Updated') ?></th> 38 <th scope="col" colspan="3" style="text-align: center"><?php _e('Action'); ?></th> 38 <th scope="col"></th> 39 <th scope="col"></th> 40 <th scope="col"></th> 41 </tr> 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> 39 56 </tr> 40 </thead>41 <tbody id="the-list">42 57 <?php 43 page_rows(0, 0, $posts, $all); 58 endforeach; 59 } else { 60 page_rows(); 61 } 44 62 ?> 45 </tbody> 46 </table> 63 </table> 47 64 48 65 <div id="ajax-response"></div> … … 56 73 ?> 57 74 58 <h3><a href="page-new.php"><?php _e('Create New Page »'); ?></a></h3>75 <h3><a href="page-new.php"><?php _e('Create New Page'); ?> »</a></h3> 59 76 60 77 </div>
Note: See TracChangeset
for help on using the changeset viewer.