/** * Return the featured post image with link to the full image. * * @global <array> $this_instance * @global <object> $intelliwidget_post * @return <string> image link if exists, <boolean> false if none */ function get_the_intelliwidget_image($link = TRUE) { global $this_instance, $intelliwidget_post; if ($this_instance['image_size'] != 'none' && has_intelliwidget_image()) { return apply_filters('intelliwidget_image', ($link ? '<a title="' . strip_tags(get_the_intelliwidget_title()) . '" href="' . get_the_intelliwidget_url() . '">' : '') . get_the_post_thumbnail($intelliwidget_post->ID, $this_instance['image_size'], array('title' => strip_tags(get_the_intelliwidget_title()), 'class' => 'intelliwidget-image-' . $this_instance['image_size'])) . ($link ? '</a>' : '')); } return false; }
/** * Return the featured post image with link to the full image. * * @global <object> $intelliwidget_post * @return <string> image link if exists, <boolean> FALSE if none */ function get_the_intelliwidget_image($link = TRUE, $size = 'thumbnail') { // FIXME: phase out globals global $intelliwidget_post; // backward compatibility for custom templates ( global profile has been deprecated ) if ($size != 'none' && has_intelliwidget_image()) { return apply_filters('intelliwidget_image', ($link ? '<a title="' . esc_attr(strip_tags(get_the_intelliwidget_title())) . '" href="' . get_the_intelliwidget_url() . '">' : '') . get_the_intelliwidget_thumbnail($size) . ($link ? '</a>' : '')); } return FALSE; }
* @subpackage templates * @author Jason C Fleming * @copyright 2014-2015 Lilaea Media LLC * @access public */ if ($selected->have_posts()) { while ($selected->have_posts()) { $selected->the_post(); ?> <div id="intelliwidget_<?php the_intelliwidget_ID(); ?> " class="intelliwidget-album-container"> <?php if (has_intelliwidget_image() && 'none' != $instance['image_size']) { ?> <div class="intelliwidget-album-container-<?php echo $instance['image_size']; ?> intelliwidget-align-<?php echo $instance['imagealign']; ?> "> <?php the_intelliwidget_image(empty($instance['no_img_links']), $instance['image_size']); ?> </div> <?php } ?>
$selected->the_post(); ?> <h1 id="intelliwidget_title_<?php the_intelliwidget_ID(); ?> " class="intelliwidget-title widget-title"> <?php the_intelliwidget_link(); ?> </h1> <div id="intelliwidget_<?php the_intelliwidget_ID(); ?> " class="intelliwidget-album-container"> <?php if (has_intelliwidget_image()) { ?> <div class="intelliwidget-album-container-<?php echo $instance['image_size']; ?> intelliwidget-align-<?php echo $instance['imagealign']; ?> "> <?php the_intelliwidget_image(); ?> </div> <?php } ?>