示例#1
0
?>

<article id= "team-<?php 
the_ID();
?>
" class="<?php 
echo preg_match("/SN/", get_the_title()) ? 'hidden-xs hidden-sm' : '';
?>
">
	<?php 
$link = themify_get_featured_image_link();
$before = '';
$after = '';
if ($link != '') {
    $before = '<a href="' . $link . '" title="' . get_the_title() . '">';
    $zoom_icon = themify_zoom_icon(false);
    $after = $zoom_icon . '</a>' . $after;
    $zoom_icon = '';
}
?>
	<?php 
if ('yes' != $themify->hide_image) {
    ?>
		<?php 
    // Check if user wants to use a common dimension or those defined in each highlight
    if ('yes' == $themify->use_original_dimensions) {
        // Save post id
        $post_id = get_the_ID();
        // Set image width
        $themify->width = get_post_meta($post_id, 'image_width', true);
        // Set image height
				<?php 
            if ('yes' == $themify->unlink_image) {
                ?>
					<?php 
                echo $post_image;
                ?>
				<?php 
            } else {
                ?>
					<a href="<?php 
                echo themify_get_featured_image_link();
                ?>
"><?php 
                echo $post_image;
                themify_zoom_icon();
                ?>
</a>
				<?php 
            }
            // unlink image
            ?>

			</figure>
	
		<?php 
        }
        // if there's a featured image
        ?>

	<?php