| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | 
							- <?php
 
- /**
 
-  * Flexible Posts Widget: Custom widget template
 
-  *
 
-  * @since 3.4.0
 
-  *
 
-  * This is a custom template used by the plugin.
 
-  * Listing price and excerpt below the image.
 
-  */
 
- // Block direct requests.
 
- if ( ! defined( 'ABSPATH' ) ) {
 
- 	die( '-1' );
 
- }
 
- echo $before_widget;
 
- if ( ! empty( $title ) ) {
 
- 	echo $before_title . $title . $after_title;
 
- }
 
- if ( $flexible_posts->have_posts() ) :
 
- ?>
 
- 	<ul class="home-carousel">
 
- 	<?php while ( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
 
- 		<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 
- 			<a href="<?php echo the_permalink(); ?>" class="listing-link">
 
- 				<?php
 
- 				if ( true == $thumbnail ) {
 
- 					// if the post has a feature image, show it.
 
- 					if ( has_post_thumbnail() ) {
 
- 						the_post_thumbnail( $thumbsize );
 
- 					// else if the post has a mime type that starts with "image/" then show the image directly.
 
- 					} elseif ( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
 
- 						echo wp_get_attachment_image( $post->ID, $thumbsize );
 
- 					}
 
- 				}
 
- 				?>
 
- 				<div class="title">
 
- 					<?php the_title(); ?>
 
- 				</div>
 
- 			</a>
 
- 		</li>
 
- 	<?php endwhile; ?>
 
- 	</ul><!-- .dpe-flexible-posts -->
 
- <?php
 
- endif; // End have_posts().
 
- echo $after_widget;
 
 
  |