PluginProbe
Nested Pages / 1.0
Nested Pages v1.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 / views / row.php

row.php in Nested Pages 1.0, at views/row.php

92 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 ' . $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 ( $np_status == 'hide' )
30 echo '<i class="np-icon-eye-blocked"></i>';
31
32 // Nav Status
33 if ( $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 <a href="<?php echo admin_url( 'edit-comments.php?p=' . get_the_id() ); ?>" class="np-btn">
56 <i class="np-icon-bubble"></i> <?php echo $comments->total_comments; ?>
57 </a>
58
59 <?php else : $cs = 'closed'; endif; ?>
60
61 <a href="<?php echo $this->addNewPageLink(); ?>&npparent=<?php echo get_the_id(); ?>" class="np-btn"><?php _e('Add Child', 'nestedpages'); ?></a>
62
63 <?php if ( !$user = wp_check_post_lock(get_the_id()) ) : ?>
64 <a href="#"
65 class="np-btn np-quick-edit"
66 data-id="<?php echo get_the_id(); ?>"
67 data-template="<?php echo $template; ?>"
68 data-title="<?php the_title(); ?>"
69 data-slug="<?php echo $post->post_name; ?>"
70 data-commentstatus="<?php echo $cs; ?>"
71 data-status="<?php echo get_post_status(); ?>"
72 data-np-status="<?php echo $np_status; ?>"
73 data-navstatus="<?php echo $nav_status; ?>"
74 data-navtitle="<?php echo $nav_title; ?>"
75 data-author="<?php echo $post->post_author; ?>"
76 data-month="<?php echo $month; ?>"
77 data-day="<?php echo $d; ?>"
78 data-year="<?php echo $y; ?>"
79 data-hour="<?php echo $h; ?>"
80 data-minute="<?php echo $m; ?>">
81 <?php _e('Quick Edit', 'nestedpages'); ?>
82 </a>
83 <?php endif; ?>
84
85 <a href="<?php echo get_the_permalink(); ?>" class="np-btn"><?php _e('View', 'nestedpages'); ?></a>
86 <!--
87 <a href="#" class="np-btn np-btn-trash">
88 <i class="np-icon-remove"></i>
89 </a> -->
90 </div><!-- .action-buttons -->
91 </div><!-- .row-inner -->
92 </div><!-- .row -->