Ejemplo n.º 1
0
<?php

/***********************/
/**** Post Template ****/
/***********************/
// For Posts preview, in the loop.  For single and any post type that doesn't have it's own template
?>
<article <?php 
post_class();
?>
>

  <?php 
shoestrap_featured_image();
?>
 

  <header>
    <?php 
echo ac_get_post_title();
?>
		<?php 
shoestrap_meta_custom_render();
?>
    
  </header>
  
  <div class="entry-summary ">
    <?php 
ac_print_preview_excerpt();
?>
<?php

/************************************/
/**** Portfolio Preview Template ****/
/************************************/
?>
<article <?php 
post_class('ac-2by2');
?>
>

	<div class='row'>
	
		<div class='col-md-5 image-col pull-right'>
	  	<?php 
shoestrap_featured_image(false, true, true);
?>
		</div>		

		<div class='col-md-7'>	
		  <header>
				<?php 
shoestrap_meta_custom_render();
?>
    
		    <?php 
echo ac_get_post_title();
?>
		  </header>
		  
		  <div class="entry-summary">
Ejemplo n.º 3
0
'><?php 
        $slideshow_rendered = ac_render_post_slideshow(true);
        ?>
</div><?php 
        // Don't show the featured image if we have a slideshow
        if ($slideshow_rendered) {
            $show_featured_image = false;
        }
    }
    // -- FEATURED IMAGE --
    // Does this WP page have a featured image?
    if (is_single(ac_get_post_id())) {
        switch (get_post_type(ac_get_post_id())) {
            case 'ac_person':
                return $show_featured_image = false;
                break;
        }
    }
    if ($show_featured_image) {
        ?>
<div class='ac-page-hero-img ac-no-container-padding <?php 
        echo esc_attr($hero_class);
        ?>
'><?php 
        if (shoestrap_featured_image(true, false)) {
            //
        }
        ?>
</div><?php 
    }
}