PluginProbe
Flex Posts – Responsive Posts Block / 1.12.0
Flex Posts – Responsive Posts Block v1.12.0
2.1.0 trunk 1.12.0 2.0.0
flex-posts / public / flex-posts-list-4.php

flex-posts-list-4.php in Flex Posts – Responsive Posts Block 1.12.0, at public/flex-posts-list-4.php

48 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Flex posts widget template: List 4
4 *
5 * @package Flex Posts
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11
12 ?>
13 <div class="fp-list-4">
14
15 <?php while ( $query->have_posts() ) : ?>
16
17 <?php $query->the_post(); ?>
18
19 <div class="fp-post fp-flex">
20 <?php flex_posts_thumbnail( $medium_size, $instance, $query->current_post ); ?>
21
22 <div class="fp-body">
23 <?php if ( ! empty( $instance['show_categories'] ) ) : ?>
24 <?php flex_posts_categories_meta(); ?>
25 <?php endif; ?>
26
27 <?php flex_posts_title( $instance ); ?>
28
29 <div class="fp-meta">
30 <?php flex_posts_meta( $instance ); ?>
31 </div>
32
33 <?php if ( ! empty( $instance['show_excerpt'] ) ) : ?>
34 <div class="fp-excerpt"><?php flex_posts_excerpt( $excerpt_length ); ?></div>
35 <?php endif; ?>
36
37 <?php if ( ! empty( $instance['show_readmore'] ) ) : ?>
38 <div class="fp-readmore">
39 <a href="<?php the_permalink(); ?>" class="fp-readmore-link"><?php echo esc_html( $readmore_text ); ?></a>
40 </div>
41 <?php endif; ?>
42 </div>
43 </div>
44
45 <?php endwhile; ?>
46
47 </div>
48