<?php $pageTitle = __('Browse Items'); echo head(array('title' => $pageTitle, 'bodyclass' => 'items browse')); ?> <div class="container"> <div class="content-block"> <h1><?php if (is_current_url('/items/browse?search')) { ?> <?php echo "Search results"; ?> <?php } else { ?> <?php echo 'Browse items'; ?> <?php } ?> <small><?php echo __('(%s total)', $total_results); ?> </small></h1> <p class="browse-search-filters"><?php
if (get_theme_option('use_advanced_search') === null || get_theme_option('use_advanced_search')) { ?> <?php echo search_form(array('show_advanced' => true)); ?> <?php } else { ?> <?php echo search_form(); ?> <?php } ?> </div> <?php fire_plugin_hook('public_header', array('view' => $this)); ?> </header> <nav class="top"> <?php echo public_nav_main(); ?> </nav> <div id="content"> <?php if (!is_current_url(WEB_ROOT)) { fire_plugin_hook('public_content_top', array('view' => $this)); }
/** * Returns whether page should be considered active or not * * @param bool $recursive [optional] whether page should be considered * active if any child pages are active. Default is * false. * @return bool whether page should be considered active */ public function isActive($recursive = false) { $this->_active = is_current_url($this->getUri()); return parent::isActive($recursive); }