PluginProbe
Nested Pages / 1.2.0
Nested Pages v1.2.0
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 / app / Views / pages.php
pages.php
74 lines 3.1 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 _e($this->post_type->labels->name); ?>
5 <a href="<?php echo $this->addNewPageLink(); ?>" class="add-new-h2">
6 <?php _e($this->post_type->labels->add_new_item); ?>
7 </a>
8 <?php if ( current_user_can('publish_pages') ) : ?>
9 <a href="#" class="add-new-h2 open-redirect-modal" title="<?php _e('Add Link', 'nestedpages'); ?>" data-parentid="0">
10 <?php _e('Add Link', 'nestedpages'); ?>
11 </a>
12 <?php endif; ?>
13 </h2>
14
15 <?php if ( $this->confirmation->getMessage() ) : ?>
16 <div id="message" class="updated below-h2"><p><?php echo $this->confirmation->getMessage(); ?></p></div>
17 <?php endif; ?>
18
19 <ul class="nestedpages-toggleall" <?php if ( $this->confirmation->getMessage() ) echo 'style="margin-top:0"';?>>
20 <li><a href="#" class="np-btn" data-toggle="closed"><?php _e('Expand Pages', 'nestedpages'); ?></a></li>
21 </ul>
22
23 <?php if ( current_user_can('edit_theme_options') ) : ?>
24 <div class="np-sync-menu-cont" <?php if ( $this->confirmation->getMessage() ) echo 'style="margin-top:2px;"';?>>
25 <label>
26 <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', 'nestedpages'); ?>
27 </label>
28 </div>
29 <?php endif; ?>
30
31 <img src="<?php echo plugins_url(); ?>/wp-nested-pages/assets/images/loading.gif" alt="loading" id="nested-loading" />
32
33 <div class="nestedpages-tools">
34
35 <ul class="subsubsub">
36 <li><a href="#all" class="np-toggle-publish active"><?php _e('All'); ?></a> | </li>
37 <li><a href="#published" class="np-toggle-publish"><?php _e('Published'); ?></a> | </li>
38 <li><a href="#show" class="np-toggle-hidden"><?php _e('Show Hidden', 'nestedpages'); ?> </a>
39 <span class="count">(<?php echo $this->post_repo->getHiddenCount(); ?>)</span> | </li>
40 <?php if ( current_user_can('delete_pages') ) : ?>
41 <li><a href="edit.php?post_status=trash&post_type=page"><?php _e('Trash'); ?> </a>
42 <span class="count">(<?php echo $this->post_repo->trashedPagesCount(); ?>)</span></li>
43 <?php endif; ?>
44 <?php if ( get_option('nestedpages_hidedefault') !== 'hide' ) : ?>
45 <li> | <a href="<?php echo NestedPages\Helpers::defaultPagesLink(); ?>"><?php _e('Default'); ?> <?php _e($this->post_type->labels->name); ?></a></li>
46 <?php endif; ?>
47 </ul>
48
49 </div><!-- .nestedpages-tools -->
50
51 <div id="np-error" class="updated error" style="clear:both;display:none;"></div>
52
53
54 <div class="nestedpages">
55 <?php $this->loopPages(); ?>
56
57 <div class="quick-edit quick-edit-form np-inline-modal" style="display:none;">
58 <?php include( NestedPages\Helpers::view('quickedit') ); ?>
59 </div>
60
61 <?php if ( current_user_can('publish_pages') ) : ?>
62 <div class="quick-edit quick-edit-form-redirect np-inline-modal" style="display:none;">
63 <?php include( NestedPages\Helpers::view('quickedit-redirect') ); ?>
64 </div>
65
66 <div class="new-child new-child-form np-inline-modal" style="display:none;">
67 <?php include( NestedPages\Helpers::view('new-child') ); ?>
68 </div>
69 <?php endif; ?>
70 </div>
71
72 </div><!-- .wrap -->
73
74 <?php include( NestedPages\Helpers::view('link-form') ); ?>