<li data-id="id-<?php echo $i; ?> " class="<?php if (!empty($terms)) { foreach ($terms as $term) { echo strtolower(preg_replace('/\\s+/', '-', $term->slug)) . ' '; } } ?> "> <div class="internal_page_item internal_page_item_gallery"> <?php the_post_thumbnail('thumb_gallery', array('class' => 'picture')); ?> <div class="overlay"> <h5><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h5> <?php echo yiw_excerpt(12); ?> <div class="controls"> <a class="icon-zoom" href="<?php echo $image[0]; ?>
the_permalink(); ?> "><?php the_post_thumbnail('thumb_gallery', array('class' => 'picture')); ?> </a> <div class="overlay"> <h5><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h5> <p><?php echo yiw_excerpt(12, '', false); ?> </p> <div class="controls"> <a class="icon-zoom" href="<?php echo $image[0]; ?> " rel="prettyPhoto" title="<?php the_title(); ?> ">Zoom</a> <?php if (yiw_get_option('gallery_details_icon')) { ?> <a class="icon-more" href="<?php the_permalink();