1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <?php if ( $blurbs_number == 2 ) { ?>
<div class="blurb last">
<h3 class="title"><?php esc_html_e('Quelques Créations','Modest'); ?></h3>
<?php query_posts("showposts=".get_option('modest_work_number')."&cat=".get_cat_ID(get_option('modest_work_cat')));
if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$width = 56;
$height = 56;
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,'item-image',$titletext,$titletext,true,'Work');
$thumb = $thumbnail["thumb"];
?>
<div class="thumb">
<a rel="gallery" title="<?php echo esc_attr($fancybox_title); ?>" href="<?php echo esc_attr($thumbnail['fullpath']); ?>" class="fancybox">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, 'item-image'); ?>
<span class="overlay"></span>
<span class="zoom-icon"></span>
</a>
</div> <!-- end .thumb -->
<?php
endwhile; endif;
wp_reset_query(); ?>
</div> <!-- end .blurb -->
<?php } ?> |
Partager