PluginProbe
Nested Pages / 1.1.2
Nested Pages v1.1.2
3.3.1 3.2.15 3.2.14 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 All 106 releases
wp-nested-pages / views / pages.php
pages.php
57 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="wrap">
2
3 <h2>
4 <?php echo $this->post_type->labels->name; ?>
5 <a href="<?php echo $this->addNewPageLink(); ?>" class="add-new-h2"><?php echo $this->post_type->labels->add_new; ?></a>
6 <?php if ( current_user_can('publish_pages') ) : ?>
7 <a href="#" class="add-new-h2 open-redirect-modal" title="<?php _e('Add Link', 'nestedpages'); ?>" data-parentid="0"><?php _e('Add Link', 'nestedpages'); ?></a>
8 <?php endif; ?>
9 </h2>
10
11 <?php if ( $this->confirmation() ) echo $this->confirmation() . '<div style="clear:both;"></div>'; ?>
12
13 <ul class="nestedpages-toggleall" <?php if ( $this->confirmation() ) echo 'style="margin-top:0"';?>>
14 <li><a href="#" class="np-btn" data-toggle="closed"><?php _e('Expand Pages'); ?></a></li>
15 </ul>
16
17 <?php if ( current_user_can('edit_theme_options') ) : ?>
18 <div class="np-sync-menu-cont" <?php if ( $this->confirmation() ) echo 'style="margin-top:2px;"';?>>
19 <label>
20 <input type="checkbox" name="np_sync_menu" class="np-sync-menu" value="sync" <?php if ( get_option('nestedpages_menusync') == 'sync' ) echo 'checked'; ?>/> <?php _e('Sync Menu'); ?>
21 </label>
22 </div>
23 <?php endif; ?>
24
25 <img src="<?php echo plugins_url(); ?>/wp-nested-pages/assets/images/loading.gif" alt="loading" id="nested-loading" />
26
27 <ul class="subsubsub">
28 <li><a href="#all" class="np-toggle-publish active"><?php _e('All'); ?></a> | </li>
29 <li><a href="#published" class="np-toggle-publish"><?php _e('Published'); ?></a> | </li>
30 <li><a href="#show" class="np-toggle-hidden"><?php _e('Show Hidden'); ?></a> | </li>
31 <?php if ( current_user_can('delete_pages') ) : ?>
32 <li><a href="edit.php?post_status=trash&post_type=page">
33 <?php _e('Trash'); ?> (<?php echo $this->trashCount(); ?>)
34 </a></li> | </li>
35 <?php endif; ?>
36 <li><a href="<?php echo $this->defaultPagesLink(); ?>"><?php _e('Default'); ?> <?php echo $this->post_type->labels->name; ?></a></li>
37 </ul>
38
39 <div id="np-error" class="updated error" style="clear:both;display:none;"></div>
40
41 <div class="nestedpages">
42 <?php $this->loopPages(); ?>
43
44 <div class="quick-edit quick-edit-form" style="display:none;">
45 <?php include( NP_Helpers::view('quickedit') ); ?>
46 </div>
47
48 <?php if ( current_user_can('publish_pages') ) : ?>
49 <div class="quick-edit quick-edit-form-redirect" style="display:none;">
50 <?php include( NP_Helpers::view('quickedit-redirect') ); ?>
51 </div>
52 <?php endif; ?>
53 </div>
54
55 </div><!-- .wrap -->
56
57 <?php include( NP_Helpers::view('link-form') ); ?>