/** * The title secion. * Includes a <head> element and link. */ function shoestrap_title_section($header = true, $element = 'h1', $link = false, $class = 'entry-title') { $content = $header ? '<header>' : ''; $content .= '<' . $element . ' class="' . $class . '">'; $content .= $link ? '<a href="' . get_permalink() . '">' : ''; $content .= is_singular() ? shoestrap_title() : apply_filters('shoestrap_title', get_the_title()); $content .= $link ? '</a>' : ''; $content .= '</' . $element . '>'; $content .= $header ? '</header>' : ''; echo apply_filters('shoestrap_title_section', $content); }
<?php /* Do not edit this file directly. Generate it using ./scripts/make-taxonomy-templates.py. --Xiaojun */ do_action('apn2015_before_people_list', True); echo apply_filters('shoestrap_title_section', '<header><title>' . shoestrap_title() . '</title><h1 class="entry-title">' . shoestrap_title() . '</h1></header>'); do_action('shoestrap_index_begin'); global $ss_framework; //What to show on archive page $args = array('post_type' => 'member', 'tax_query' => array(array('taxonomy' => 'country', 'field' => 'slug', 'terms' => 'cambodia')), 'order' => 'ASC', 'orderby' => 'name'); //How to sort the archive page $terms = false; apn2015_the_people_list_sorted($args, $terms); do_action('shoestrap_index_end'); echo shoestrap_pagination_toggler();
<header> <h1 class="entry-title"><?php echo shoestrap_title(); ?> </h1> </header> <?php do_action('shoestrap_index_begin'); if (!have_posts()) { echo '<div class="alert alert-warning">' . __('Sorry, no results were found.', 'shoestrap') . '</div>'; get_search_form(); } if (!has_action('shoestrap_override_index_loop')) { while (have_posts()) { the_post(); do_action('shoestrap_in_loop_start'); if (!has_action('shoestrap_content_override')) { ss_get_template_part('templates/content', get_post_format()); } else { do_action('shoestrap_content_override'); } do_action('shoestrap_in_loop_end'); } } else { do_action('shoestrap_override_index_loop'); } do_action('shoestrap_index_end'); echo shoestrap_pagination_toggler();