function ac_page_title_header_class($post = 0)
 {
     // Not needed at present
     // $post = get_post( $post );
     $css_classes = '';
     // Get page title type
     $page_title_type = ac_get_meta('page_title_type');
     if ($page_title_type == 'custom') {
         $css_classes .= ' ac-page-title-custom ';
     }
     // Include container class for fixed/boxed
     return ' ac-page-title ' . $css_classes . shoestrap_outer_container_class('page-title') . ' ' . ac_get_hide_until_fade_class();
 }
예제 #2
0
$post_terms = get_the_terms($post->ID, $post_category);
if (!empty($post_terms)) {
    foreach ($post_terms as $post_term) {
        $terms .= ' ' . $post_term->slug . ' ';
    }
}
// Get the post classes
$classes = implode(" ", get_post_class());
?>
			

<div class='ac-grid-col <?php 
echo esc_attr($classes);
?>
 <?php 
echo $cols_class . esc_attr($terms) . esc_attr(ac_get_hide_until_fade_class());
?>
'>	
	<div class='ac-grid-post'>
	
	<?php 
// Write out the post
// Check for content overrides
// Testimonials and Post-Quotes use testimonial format
if (get_post_type() == 'ac_testimonial' || get_post_type() == 'post' && get_post_format() == 'quote') {
    echo ac_testimonial_render($post->ID, true, $excerpt_length);
} else {
    ?>

		<?php 
    if (ac_has_post_thumbnail($post->ID)) {
예제 #3
0
		
	
<?php 
}
// -- IMAGES --
// Apply a filter for child themes
$show_images = true;
$show_images = apply_filters('ac_show_page_header_images', $show_images);
if ((is_single(ac_get_post_id()) || is_page(ac_get_post_id())) && $show_images) {
    // -- Check if this post has a slideshow or image --
    $show_ss = true;
    // Hide the featured image from the page settings?
    $show_featured_image = !ac_get_meta('page_hide_featured_image');
    // Apple a filter for child theme control
    $show_featured_image = apply_filters('ac_page_hide_featured_image', $show_featured_image);
    $hero_class = ' ' . shoestrap_container_class('ac-page-hero-img') . ' ' . ac_get_hide_until_fade_class();
    // Check for post type specific slideshows
    $post_type = get_post_type(ac_get_post_id());
    switch ($post_type) {
        case 'ac_portfolio':
            $show_ss = false;
            $template_type = ac_get_meta("template_type");
            if ($template_type == 'top-images') {
                ?>
<div class='ac-page-hero-img ac-no-container-padding <?php 
                echo esc_attr($hero_class);
                ?>
'><?php 
                ac_render_ac_easy_slideshow(true);
                ?>
</div><?php 
예제 #4
0
function ac_add_hide_until_ready_to_post_class($classes)
{
    $classes[] = ac_get_hide_until_fade_class();
    return $classes;
}
예제 #5
0
	        <?php 
}
?>
	
	        <?php 
if (ac_get_right_sidebar()) {
    ?>
 
	          <aside class="sidebar secondary <?php 
    echo esc_attr(ac_get_sidebar_class());
    ?>
 <?php 
    echo esc_attr(shoestrap_section_class('secondary'));
    ?>
 <?php 
    echo esc_attr(ac_get_hide_until_fade_class());
    ?>
" role="complementary">
	            <?php 
    include new Roots_Wrapping('templates/sidebar-secondary.php');
    ?>
	          </aside><!-- /.sidebar -->
	        <?php 
}
?>
	      </div>
	    </div><!-- /.content -->
	    <?php 
do_action('shoestrap_after_content');
?>
	  </div><!-- /.wrap -->