<?php global $post; global $MAIN; $activeSection = isset($activeSection) ? $activeSection : ''; $activeSectionA = array($activeSection => 'active'); $centerPageID = isset($centerPageID) ? $centerPageID : _GetPostIDCurrentLanguage('center'); // get all subpages of Center page $centerMenu = isset($centerMenu) ? $centerMenu : new WP_Query('post_type=page&post_parent=' . $centerPageID . '&orderby=menu_order&order=ASC'); ?> <div class="col-sm-4"> <div class="block-w menu-inpage"> <div id="single-center-administration" class="panel-menu"> <div class="head"><?php _e('Center', 'cish'); ?> </div> <ul><?php $MAIN->getCenterPageMenu($activeSection); ?> </ul> </div> </div> </div>
function setCenterPage() { $centerPageID = _GetPostIDCurrentLanguage('center'); $this->data['center'] = get_posts(array('post_type' => 'page', 'post_parent' => $centerPageID, 'orderby' => 'menu_order', 'order' => 'ASC', 'suppress_filters' => true)); }
<div class="block-w"> <div class="head"><?php _e('Latest Events', 'cish'); ?> </div> <?php include locate_template('reusable/loop-inline-entries.php'); ?> </div> </div> </div> <?php $statsPrograms = new WP_Query('post_type=program&showposts=-1'); $statsPublications = new WP_Query('post_type=publication&showposts=-1'); $programConferencesID = _GetPostIDCurrentLanguage('conferences', 'program'); $statsConferences = 0; if ($programConferencesID > 0) { $statsEvents = new WP_Query(array('post_type' => 'event', 'showposts' => '-1', 'meta_query' => array(array('key' => 'program', 'value' => $programConferencesID, 'compare' => '=')))); $statsConferences = $statsEvents->found_posts; } $stats = array('programs' => $statsPrograms->found_posts, 'events' => $statsConferences, 'publications' => $statsPublications->found_posts); ?> <div id="section-statistics"> <div class="container"> <div class="block-w"> <div class="row"> <div class="col-sm-3"> <img class="img-responsive" src="<?php bloginfo('stylesheet_directory'); ?>