PluginProbe ʕ •ᴥ•ʔ
Nested Pages / 1.1
Nested Pages v1.1
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 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.2 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.3.1 1.6.3.2 1.6.4 1.6.5 1.6.5.1 1.6.5.2 1.6.6 1.6.7 1.6.8 1.7.0 1.7.1 2.0.1 2.0.2 2.0.3 2.0.4 3.0.1 3.0.10 3.0.11 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.20 3.1.21 3.1.22 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7
wp-nested-pages / views / row.php
wp-nested-pages / views Last commit date
pages.php 11 years ago quickedit.php 11 years ago row.php 11 years ago
row.php
106 lines
1 <?php
2 /**
3 * Row represents a single page
4 */
5 ?>
6 <div class="row">
7 <div class="child-toggle"></div>
8 <div class="row-inner">
9 <i class="np-icon-sub-menu"></i>
10 <?php if ( current_user_can('edit_theme_options') ) : ?>
11 <i class="handle np-icon-menu"></i>
12 <?php endif; ?>
13 <a href="<?php echo get_edit_post_link(); ?>" class="page-link page-title">
14 <span class="title"><?php the_title(); ?></span>
15 <?php
16
17 if ( function_exists('wpseo_translate_score') ){
18 echo '<span class="np-seo-indicator ' . $this->post_data['score'] . '"></span>';
19 }
20
21 // Post Status
22 if ( $post->post_status !== 'publish' ){
23 echo '<span class="status">(' . $post->post_status . ')</span>';
24 } else {
25 echo '<span class="status"></span>';
26 }
27
28 // Nested Pages Status
29 if ( $this->post_data['np_status'] == 'hide' )
30 echo '<i class="np-icon-eye-blocked"></i>';
31
32 // Nav Status
33 if ( $this->post_data['nav_status'] == 'hide' ){
34 echo '<span class="nav-status">(Hidden)</span>';
35 } else {
36 echo '<span class="nav-status"></span>';
37 }
38
39 // Post Lock
40 if ( $user = wp_check_post_lock(get_the_id()) ){
41 $u = get_userdata($user);
42 echo '<span class="locked"><i class="np-icon-lock"></i><em> ' . $u->display_name . ' ' . __('currently editing', 'nestedpages') . '</em></span>';
43 } else {
44 echo '<span class="edit-indicator"><i class="np-icon-pencil"></i>' . __('Edit', 'nestedpages') . '</span>';
45 }
46 ?>
47 </a>
48
49 <a href="#" class="np-toggle-edit"><i class="np-icon-pencil"></i></a>
50
51 <div class="action-buttons">
52
53 <?php if ( $post->comment_status == 'open' ) : $comments = wp_count_comments(get_the_id()); $cs = 'open' ?>
54
55
56 <a href="<?php echo admin_url( 'edit-comments.php?p=' . get_the_id() ); ?>" class="np-btn">
57 <i class="np-icon-bubble"></i> <?php echo $comments->total_comments; ?>
58 </a>
59
60 <?php else : $cs = 'closed'; endif; ?>
61
62
63 <?php if ( current_user_can('publish_pages') ) : ?>
64
65 <a href="#" class="np-btn open-redirect-modal" data-parentid="<?php echo get_the_id(); ?>"><i class="np-icon-link"></i></a>
66
67 <a href="<?php echo $this->addNewPageLink(); ?>&npparent=<?php echo get_the_id(); ?>" class="np-btn"><?php _e('Add Child', 'nestedpages'); ?></a>
68
69 <?php endif; ?>
70
71 <?php if ( !$user = wp_check_post_lock(get_the_id()) ) : ?>
72 <a href="#"
73 class="np-btn np-quick-edit"
74 data-id="<?php echo get_the_id(); ?>"
75 data-template="<?php echo $this->post_data['template']; ?>"
76 data-title="<?php the_title(); ?>"
77 data-slug="<?php echo $post->post_name; ?>"
78 data-commentstatus="<?php echo $cs; ?>"
79 data-status="<?php echo get_post_status(); ?>"
80 data-np-status="<?php echo $this->post_data['np_status']; ?>"
81 data-navstatus="<?php echo $this->post_data['nav_status']; ?>"
82 data-navtitleattr="<?php echo $this->post_data['nav_title_attr']; ?>"
83 data-navcss="<?php echo $this->post_data['nav_css']; ?>"
84 data-linktarget="<?php echo $this->post_data['link_target']; ?>"
85 data-navtitle="<?php echo $this->post_data['nav_title']; ?>"
86 data-author="<?php echo $post->post_author; ?>"
87 data-month="<?php echo $this->post_data['month']; ?>"
88 data-day="<?php echo $this->post_data['d']; ?>"
89 data-year="<?php echo $this->post_data['y']; ?>"
90 data-hour="<?php echo $this->post_data['h']; ?>"
91 data-minute="<?php echo $this->post_data['m']; ?>">
92 <?php _e('Quick Edit', 'nestedpages'); ?>
93 </a>
94 <?php endif; ?>
95
96 <a href="<?php echo get_the_permalink(); ?>" class="np-btn"><?php _e('View', 'nestedpages'); ?></a>
97
98 <?php if ( current_user_can('delete_pages') ) : ?>
99 <a href="<?php echo get_delete_post_link(get_the_id()); ?>" class="np-btn np-btn-trash">
100 <i class="np-icon-remove"></i>
101 </a>
102 <?php endif; ?>
103
104 </div><!-- .action-buttons -->
105 </div><!-- .row-inner -->
106 </div><!-- .row -->