PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / elementor / general / post-grid / layout3.php

layout3.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.6, at templates/elementor/general/post-grid/layout3.php

231 lines 6.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template: Post List
4 *
5 * @package RadiusTheme\SB
6 */
7
8 /**
9 * Template variables:
10 *
11 * @var $grid_classes string
12 * @var $title string
13 * @var $title_link string
14 * @var $excerpt string
15 * @var $title_tag string
16 * @var $title_limit string
17 * @var $excerpt_limit string
18 * @var $button_text string
19 * @var $comments string
20 * @var $show_title boolean
21 * @var $show_categories boolean
22 * @var $show_tags boolean
23 * @var $show_dates boolean
24 * @var $show_author boolean
25 * @var $show_comment boolean
26 * @var $show_reading_time boolean
27 * @var $show_post_views boolean
28 * @var $show_post_thumbnail boolean
29 * @var $show_author_icon boolean
30 * @var $show_comment_icon boolean
31 * @var $show_date_icon boolean
32 * @var $show_reading_time_icon boolean
33 * @var $show_post_views_icon boolean
34 * @var $show_short_desc boolean
35 * @var $image_link boolean
36 * @var $show_read_more_btn boolean
37 * @var $img_html string
38 * @var $button_icon array
39 * @var $button_icon_position string
40 * @var $item_class string
41 * @var $author_icon_html string
42 * @var $date_icon_html string
43 * @var $comment_icon_html string
44 * @var $reading_time_icon_html string
45 * @var $post_views_icon_html string
46 * @var $meta_separator string
47 * array
48 */
49
50 // Do not allow directly accessing this file.
51
52
53 use RadiusTheme\SB\Elementor\Helper\PostHelpers;
54 use RadiusTheme\SB\Elementor\Widgets\General\PostList\Render;
55 use RadiusTheme\SB\Helpers\Fns;
56
57 if ( ! defined( 'ABSPATH' ) ) {
58 exit( 'This script cannot be accessed directly.' );
59 }
60
61 ?>
62 <div class="<?php echo esc_attr( $grid_classes ); ?>">
63 <div class="<?php echo esc_attr( $item_class ); ?>">
64 <article>
65 <?php if ( $show_post_thumbnail ) { ?>
66 <div class="rtsb-post-img rtsb-img-wrap">
67 <?php
68 if ( $image_link ) {
69 $aria_label = esc_attr(
70 /* translators: Post Name */
71 sprintf( __( 'Image link for Post: %s', 'shopbuilder' ), $title )
72 );
73 ?>
74 <figure>
75 <a class="rtsb-img-link" href="<?php the_permalink(); ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>">
76 <?php
77 Fns::print_html( $img_html );
78 ?>
79 </a>
80 </figure>
81 <?php
82 } else {
83 echo '<figure class="rtsb-img-link">';
84 Fns::print_html( $img_html );
85 echo '</figure>';
86 }
87 ?>
88 <?php
89 if ( $show_categories || $show_tags ) {
90 ?>
91 <ul class="rtsb-post-taxonomy-list">
92 <?php
93 if ( $show_categories ) {
94 Fns::print_html( '<li class="rtsb-tax-item category">' );
95 Fns::print_html( PostHelpers::rtsb_posted_taxonomy() );
96 Fns::print_html( '</li>' );
97 }
98 if ( $show_tags ) {
99 Fns::print_html( '<li class="rtsb-tax-item tag">' );
100 Fns::print_html( PostHelpers::rtsb_posted_taxonomy( 'tag' ) );
101 Fns::print_html( '</li>' );
102 }
103 ?>
104
105 </ul>
106 <?php
107 }
108 ?>
109 </div>
110 <?php } ?>
111 <div class="rtsb-post-content">
112
113 <?php
114 if ( $show_title ) {
115 ?>
116 <<?php Fns::print_validated_html_tag( $title_tag ); ?> class="rtsb-post-title limit-<?php echo esc_attr( $title_limit ); ?>">
117 <?php
118 if ( $title_link ) {
119 ?>
120 <a class="rtsb-title-link" href="<?php the_permalink(); ?>"><?php Fns::print_html( $title ); ?></a>
121 <?php
122 } else {
123 Fns::print_html( $title );
124 }
125 ?>
126 </<?php Fns::print_validated_html_tag( $title_tag ); ?>>
127 <?php
128 }
129 if ( $show_dates || $show_author || $show_comment || $show_reading_time || $show_post_views ) {
130 ?>
131 <ul class="rtsb-post-meta">
132 <?php
133 if ( $show_author ) {
134 $prefix = esc_html__( 'By ', 'shopbuilder' );
135 $prefix = apply_filters( 'rtsb/general_widgets/posts_author_prefix', $prefix );
136 Fns::print_html( '<li class="rtsb-meta-item author">' );
137 if ( $show_author_icon ) {
138 Fns::print_html( $author_icon_html );
139 }
140 Fns::print_html( PostHelpers::rtsb_posted_by( $prefix ) );
141 Fns::print_html( '</li>' );
142 }
143 if ( $show_dates ) {
144 if ( $meta_separator ) {
145 Fns::print_html( '<li class="rtsb-meta-separator">' );
146 Fns::print_html( $meta_separator );
147 Fns::print_html( '</li>' );
148 }
149 Fns::print_html( '<li class="rtsb-meta-item date">' );
150 if ( $show_date_icon ) {
151 Fns::print_html( $date_icon_html );
152 }
153 Fns::print_html( PostHelpers::rtsb_posted_date() );
154 Fns::print_html( '</li>' );
155 }
156 if ( $show_comment ) {
157 if ( $meta_separator ) {
158 Fns::print_html( '<li class="rtsb-meta-separator">' );
159 Fns::print_html( $meta_separator );
160 Fns::print_html( '</li>' );
161 }
162 Fns::print_html( '<li class="rtsb-meta-item comments">' );
163 if ( $show_comment_icon ) {
164 Fns::print_html( $comment_icon_html );
165 }
166 Fns::print_html( PostHelpers::get_post_comments_number() );
167 Fns::print_html( '</li>' );
168 }
169 if ( $show_reading_time ) {
170 if ( $meta_separator ) {
171 Fns::print_html( '<li class="rtsb-meta-separator">' );
172 Fns::print_html( $meta_separator );
173 Fns::print_html( '</li>' );
174 }
175 Fns::print_html( '<li class="rtsb-meta-item reading-time">' );
176 if ( $show_reading_time_icon ) {
177 Fns::print_html( $reading_time_icon_html );
178 }
179 Fns::print_html( PostHelpers::rtsb_reading_time() );
180 Fns::print_html( '</li>' );
181 }
182 if ( $show_post_views ) {
183 if ( $meta_separator ) {
184 Fns::print_html( '<li class="rtsb-meta-separator">' );
185 Fns::print_html( $meta_separator );
186 Fns::print_html( '</li>' );
187 }
188 Fns::print_html( '<li class="rtsb-meta-item post-views">' );
189 if ( $show_post_views_icon ) {
190 Fns::print_html( $post_views_icon_html );
191 }
192 Fns::print_html( PostHelpers::rtsb_post_views() );
193 Fns::print_html( '</li>' );
194 }
195 ?>
196 </ul>
197 <?php
198 }
199 ?>
200 <?php
201 if ( $show_short_desc ) {
202 ?>
203 <div class="rtsb-post-excerpt limit-<?php Fns::print_html( $excerpt_limit ); ?>">
204 <?php Fns::print_html( $excerpt ); ?>
205 </div>
206 <?php
207 }
208 ?>
209 <?php
210 /**
211 * Button.
212 */
213 if ( $show_read_more_btn ) {
214 ?>
215 <div class="rtsb-button-wrapper">
216 <a class="rtsb-readmore-btn" href="<?php the_permalink(); ?>">
217 <span class="text-wrap">
218 <?php
219 Fns::print_html( Render::render_icon( 'left', $button_icon, $button_icon_position ) );
220 Fns::print_html( $button_text );
221 Fns::print_html( Render::render_icon( 'right', $button_icon, $button_icon_position ) );
222 ?>
223 </span>
224 </a>
225 </div>
226 <?php } ?>
227 </div>
228 </article>
229 </div>
230 </div>
231