PluginProbe ʕ •ᴥ•ʔ
Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget / 1.8.1
Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget v1.8.1
1.8.1 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.7 1.3.8 1.4.0 1.4.1 1.4.2 1.4.3 1.6.0 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7 1.8
post-grid-carousel-ultimate / includes / templates / theme-3.php
post-grid-carousel-ultimate / includes / templates Last commit date
navigation 3 years ago pagination 3 years ago sortable 3 years ago theme-1.php 3 years ago theme-2.php 3 years ago theme-3.php 3 years ago theme-4.php 3 years ago
theme-3.php
73 lines
1
2 <div class="pgcu-post pgcu-post--rounded-border <?php echo ( 'carousel' == $layout ) ? 'swiper-slide' : ''; ?>">
3 <div class="pgcu-post__content">
4 <?php if( ! empty( $pgcu_img ) ) { ?>
5 <div class="pgcu-post__img">
6 <a href="<?php echo get_the_permalink(); ?>">
7 <img src="<?php echo esc_url( $pgcu_img ); ?>" alt="<?php echo get_the_title(); ?>">
8 </a>
9 </div><!-- ends: .pgcu-post__img -->
10 <?php } ?>
11 <div class="pgcu-post__details">
12 <ul class="pgcu-post__meta pgcu-post__meta--has-icon">
13
14 <?php if( 'yes' == $display_author ) { ?>
15 <li>
16 <div class="pgcu-post__meta__author">
17 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"/></svg>
18 <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta( 'ID' )))?>">
19 <?php echo ucfirst( get_the_author() );?>
20 </a>
21 </div>
22 </li>
23 <?php } ?>
24
25 <?php if( 'yes' == $display_date ) { ?>
26 <li>
27 <div class="pgcu-post__meta__date">
28 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>
29 <a><?php echo get_the_date(); ?></a>
30 </div>
31 </li>
32 <?php } ?>
33 </ul>
34 <?php if( 'yes' == $display_title ) { ?>
35 <h2 class="pgcu-post__title">
36 <a href="<?php echo get_the_permalink(); ?>"><?php echo get_the_title(); ?></a>
37 </h2>
38 <?php } ?>
39
40 <?php if( 'yes' == $display_content ) { ?>
41 <p class="pgcu-post__excerpt">
42 <?php echo wp_trim_words( get_the_content(), $content_word_limit );?>
43 </p>
44 <?php } ?>
45 <div class="pgcu-d-flex pgcu-d-flex-wrap pgcu-space-between">
46 <?php if( 'yes' == $display_read_more ) { ?>
47 <a href="<?php echo get_the_permalink(); ?>" class="pgcu-read-more <?php echo ( 'link' == $read_more_type ) ? 'pgcu-post__readmore' : 'pgcu-button pgcu-button--rounded'; ?>">
48 <?php echo $read_more_text; ?>
49 <?php if( 'link' == $read_more_type ) { ?>
50 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"/></svg>
51 <?php } ?>
52 </a>
53 <?php } ?>
54
55 <ul class="pgcu-post__meta pgcu-post__meta--has-icon">
56 <li>
57 <div class="pgcu-post__meta__views">
58 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z"/></svg>
59 <span><?php echo esc_html( ! empty( $post_views ) ? $post_views : 0 ); ?></span>
60 </div>
61 </li>
62 <li>
63 <div class="pgcu-post__meta__comments">
64 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"/></svg>
65 <span><?php echo get_comments_number(); ?></span>
66 </div>
67 </li>
68 </ul>
69 </div>
70 </div><!-- ends: .pgcu-post__details -->
71 </div><!-- ends: .pgcu-post__content -->
72 </div><!-- ends: .pgcu-post -->
73