<div class="m-carousel-control slide-control top-right-slide-control"> <a href="#" class="m-carousel-prev"><i class="icon icon-angle-left"></i></a><a href="#" class="m-carousel-next"><i class="icon icon-angle-right"></i></a> </div> </div><!-- .span12 --> <!-- Default --> <?php } else { ?> <?php foreach ($testimonials as $post) { $avatar = get_post_meta($post->ID, '_info_author_image', true) ? gen_image_src(get_post_meta($post->ID, '_info_author_image', true), 128, 128, true) : get_template_directory_uri() . '/images/dummy-avatar.png'; ?> <div class="span3"> <blockquote> <p><?php echo get_post_meta($post->ID, '_info_testimonial', true); ?> </p> <img class="quote-avatar" src="<?php echo $avatar; ?> " /> <cite><strong><?php echo $post->post_title;
function gen_responsive_image_block($attachment_id, $specs, $alt = '') { for ($i = 0; $i < count($specs); $i++) { $height = isset($specs[$i]['height']) ? $specs[$i]['height'] : false; $crop = isset($specs[$i]['crop']) ? $specs[$i]['crop'] : false; $specs[$i]['src'] = gen_image_src($attachment_id, $specs[$i]['width'], $height, $crop); } $alt = get_the_title($attachment_id); $ret = "<span data-picture data-alt='" . $alt . "'>"; $ret .= "<span data-src='" . $specs[count($specs) - 2]['src'] . "'></span>"; foreach ($specs as $spec) { if (isset($spec['media'])) { $ret .= "<span data-src='" . $spec['src'] . "' data-media='" . $spec['media'] . "'></span>"; } } $ret .= "<noscript><img src='" . $specs[count($specs) - 2]['src'] . "' alt=''></noscript>"; $ret .= "</span>"; return $ret; }