?> </div><!-- .entry-container --> <?php suffusion_before_end_post(); ?> </article><!--post --> <?php } $class = ""; $information = ""; if (in_array('category', $context)) { $information = $suf_cat_info_enabled == 'enabled' ? suffusion_get_category_information() : false; $class = 'info-category'; } else { if (in_array('author', $context)) { $information = $suf_author_info_enabled == 'enabled' ? suffusion_get_author_information() : false; $class = 'author-profile'; } else { if (in_array('tag', $context)) { $tag_id = get_query_var('tag_id'); $information = $suf_tag_info_enabled == 'enabled' ? tag_description($tag_id) : false; $class = 'info-tag'; } } } if ($suffusion_full_post_count_for_view == 0) { ?> <section class='post <?php echo $class; ?> fix'>
function suffusion_template_specific_header() { global $suf_cat_info_enabled, $suf_author_info_enabled, $suf_tag_info_enabled, $suf_search_info_enabled, $suffusion_mosaic_layout; if (is_category() && $suf_cat_info_enabled == 'enabled' && apply_filters('suffusion_can_display_category_information', true)) { ?> <section class="info-category post fix"> <header class="post-header"> <h2 class="category-title"><?php single_cat_title(); ?> </h2> </header> <?php echo suffusion_get_category_information(); ?> </section><!-- .info-category --> <?php } else { if (is_author() && $suf_author_info_enabled == 'enabled' && apply_filters('suffusion_can_display_author_information', true)) { $author_id = get_query_var('author'); ?> <section id="author-profile-<?php the_author_meta('user_nicename', $author_id); ?> " class="author-profile author-even post fix"> <header class="post-header"> <h2 class="author-title"><?php the_author_meta('display_name', $author_id); ?> </h2> </header> <?php echo suffusion_get_author_information(); ?> </section><!-- /.author-profile --> <?php } else { if (is_tag() && $suf_tag_info_enabled == 'enabled' && apply_filters('suffusion_can_display_tag_information', true)) { ?> <section class="info-tag post fix"> <header class="post-header"> <h2 class="tag-title"><?php single_tag_title(); ?> </h2> </header> <?php echo tag_description(get_query_var('tag_id')); ?> </section><!-- .info-tag --> <?php } else { if (is_search() && $suf_search_info_enabled == 'enabled' && apply_filters('suffusion_can_display_search_information', true)) { if (have_posts()) { ?> <section class='post fix'> <header class='post-header'> <h2 class='posttitle'><?php $title = wp_title(':', false); $title = trim($title); if (substr($title, 0, 1) == ':') { $title = substr($title, 1); } echo $title; ?> </h2> </header> <form method="get" action="<?php echo home_url(); ?> /" class='search-info' id='search-info'> <input class="search-hl checkbox" name="search-hl" id="search-hl" type="checkbox"/> <label class='search-hl' for='search-hl'><?php _e('Highlight matching results below', 'suffusion'); ?> </label> <input type='hidden' name='search-term' id='search-term' value="<?php $search_term = get_search_query(); echo esc_attr($search_term); ?> "/> </form> <?php get_search_form(); ?> </section> <?php } } } } } }