1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php if ( ! defined( 'ABSPATH' ) ) { exit; }
$style = isset( $mart_list_data['style'] ) ? $mart_list_data['style'] : 'sml-s1'; $sort = isset( $mart_list_data['sort'] ) ? $mart_list_data['sort'] : 'asc'; $msl_items = isset( $mart_list_data['msl_items'] ) ? $mart_list_data['msl_items'] : array(); $msl_items_number = isset( $mart_list_data['msl_items_number'] ) ? $mart_list_data['msl_items_number'] : 0;
Penci_Smart_Lists_Helper::render_start_sml_div( $mart_list_data, $mart_list_style ); Penci_Smart_Lists_Helper::render_before_sml_wrap_slider( $style, $sort, true );
$current_number = 0; foreach ( $msl_items as $item_key => $msl_item ) { echo '<div class="penci-sml-item">'; $current_number = Penci_Smart_Lists_Helper::add_number_order( $current_number, $msl_items_number, $sort ); Penci_Smart_Lists_Helper::render_title_item( $msl_item, $current_number ); Penci_Smart_Lists_Helper::render_image_item( $msl_item );
if( ! empty( $msl_item['content'] ) ){ echo '<div class="penci-sml-content">' . $msl_item['content'] . '</div>'; }
echo '</div>'; } ?> <?php Penci_Smart_Lists_Helper::render_after_sml_wrap( true );
|