Skip to content

Commit

Permalink
Merge pull request weblab#126 from szk11001/master
Browse files Browse the repository at this point in the history
Fix displaying for List Private page template children
  • Loading branch information
jmr06005 committed Sep 30, 2015
2 parents b132161 + bae258b commit 3af83a8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions page-private.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?php
/*
* Template Name: List Private Pages
* Description: Template page ment to display private pages.
* Description: Template page ment to display private pages.
*/

get_header(); ?>
<div id="page-private-list">
<?php include('inc/sidebar-check.php')?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="row">
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>">

<div id="primary" class="content-area subpage">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'page' ); ?>
</main>
</div>

<?php
$sort = array();
$pages = get_pages(array('sort_order' => 'asc', 'sort_column' => 'post_title', 'hierarchical' => false, 'child_of' => get_the_ID()));
Expand All @@ -32,7 +32,7 @@
if($parent !== false) $page = $parent;
else $page = $pg->ID;
$private = get_post_meta($page, 'uc-private', true);
if(!($private == 'admins' || $private == 'users' || $private == 'list')){
if(!($private == 'admins' || $private == 'users' || $private == 'list' || $private == 'netids')){
continue;
}
$title = ucwords($pg->post_title);
Expand All @@ -41,8 +41,8 @@
}
echo '</ul>';
}
?>
?>

</div>
<?php include('inc/sidebar-if-active.php')?>
</div>
Expand Down

0 comments on commit 3af83a8

Please sign in to comment.