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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
<?php if( 1 == $column_number ) { $block9_i = 1; $block9_first_item = ''; $block9_items = ''; while ( $query_slider->have_posts() ) { $query_slider->the_post();
if ( $block9_i == 1 && ( ! isset( $styleAction ) || ( isset( $styleAction ) && 'load_more' != $styleAction ) ) ) { $block9_first_item .= '<article class="' . join( ' ', penci_get_post_class( 'block9_first_item', get_the_ID() ) ) . '">'; $block9_first_item .= '<div class="penci_post_thumb">'; $block9_first_item .= Penci_Helper_Shortcode::get_image_holder( array( 'image_size' =>! empty( $atts['big_image_size'] ) ? $atts['big_image_size'] : 'penci-thumb-480-320', 'show_icon' => ! $atts[ 'hide_icon_post_format' ], 'class_icon' => 'small-size-icon', 'image_type' => $atts['image_type'] ) ); $block9_first_item .= function_exists( 'penci_get_social_share' ) ? penci_get_social_share( false, true ) : ''; $block9_first_item .= '</div> <div class="penci_post_content">'; $block9_first_item .= Penci_Helper_Shortcode::get_markup_title_post( $atts['post_big_title_length'] ); $block9_first_item .= Penci_Helper_Shortcode::get_post_meta( array( 'date','comment' ), $atts, true, array( 'author','view' ) ); $block9_first_item .= Penci_Helper_Shortcode::get_excrept( $atts['post_excrept_length'], $atts['hide_excrept'] );
if( $atts['show_readmore'] && function_exists( 'penci_more_link' ) ){ $block9_first_item .= penci_more_link(); }
$block9_first_item .= '</div></article>'; } else { $block9_items .= '<article class="' . join( ' ', penci_get_post_class( ( isset( $styleAction ) && 'load_more' == $styleAction ) ? 'block9_item_loadmore' : '', get_the_ID() ) ) . '"><div class="penci_media_object penci_mobj-image-right">'; if( empty( $atts['hide_thumb'] ) ): $block9_items .= Penci_Helper_Shortcode::get_image_holder( array( 'image_size' => ! empty( $atts['image_size'] ) ? $atts['image_size'] : 'penci-thumb-280-186', 'class' => 'penci_mobj__img', 'show_icon' => ! $atts[ 'hide_icon_post_format' ], 'class_icon' => 'small-size-icon', 'image_type' => $atts['image_type'] ) ); endif; $block9_items .= '<div class="penci_post_content penci_mobj__body">'; $block9_items .= Penci_Helper_Shortcode::get_markup_title_post( $atts['post_standard_title_length'] ); $block9_items .= Penci_Helper_Shortcode::get_post_meta( array( 'date','comment' ), $atts, true, array( 'author','view' ) ); $block9_items .= '</div></div></article>'; }
$block9_items .= Penci_Helper_Shortcode::get_markup_infeed_ad( array( 'order_ad' => $atts['infeed_ads__order'], 'order_post' => $block9_i, 'code' => $content, ) );
$block9_i ++; } wp_reset_postdata();
return Penci_Helper_Shortcode::pre_output_content_items( $block9_first_item . '<div class="block9_items">' . $block9_items . '</div>' , $atts ); }else{ $block9_i = 1; $block9_first_item = ''; $block9_items = ''; while ( $query_slider->have_posts() ) { $query_slider->the_post();
if ( ( $block9_i == 1 || $block9_i == 2 ) && ( ! isset( $styleAction ) || ( isset( $styleAction ) && 'load_more' != $styleAction ) ) ) {
$block9_first_item .= '<article class="' . join( ' ', penci_get_post_class( 'block9_first_item penci-col-6', get_the_ID() ) ) . '">'; $block9_first_item .= '<div class="penci_post_thumb">'; $block9_first_item .= Penci_Helper_Shortcode::get_image_holder( array( 'image_size' =>! empty( $atts['big_image_size'] ) ? $atts['big_image_size'] : 'penci-thumb-480-320', 'show_icon' => ! $atts[ 'hide_icon_post_format' ], 'class_icon' => 'small-size-icon', 'image_type' => $atts['image_type'] ) ); $block9_first_item .= function_exists( 'penci_get_social_share' ) ? penci_get_social_share( false, true ) : ''; $block9_first_item .= '</div> <div class="penci_post_content">'; $block9_first_item .= Penci_Helper_Shortcode::get_markup_title_post( $atts['post_big_title_length'] ); $block9_first_item .= Penci_Helper_Shortcode::get_post_meta( array( 'date','comment' ), $atts, true, array( 'author','view' ) ); $block9_first_item .= Penci_Helper_Shortcode::get_excrept( $atts['post_excrept_length'], $atts['hide_excrept'] );
if( $atts['show_readmore'] && function_exists( 'penci_more_link' ) ){ $block9_first_item .= penci_more_link(); }
$block9_first_item .= '</div></article>'; } else {
$block9_items_class = 'penci-col-6'; $block9_items_class .= ( isset( $styleAction ) && 'load_more' == $styleAction ) ? ' block9_item_loadmore' : '';
$block9_items .= '<article class="' . join( ' ', penci_get_post_class( $block9_items_class, get_the_ID() ) ) . '"><div class="penci_media_object penci_mobj-image-right">'; if( empty( $atts['hide_thumb'] ) ): $block9_items .= Penci_Helper_Shortcode::get_image_holder( array( 'image_size' => ! empty( $atts['image_size'] ) ? $atts['image_size'] : 'penci-thumb-280-186', 'class' => 'penci_mobj__img', 'show_icon' => ! $atts[ 'hide_icon_post_format' ], 'class_icon' => 'small-size-icon', 'image_type' => $atts['image_type'] ) ); endif; $block9_items .= '<div class="penci_post_content penci_mobj__body">'; $block9_items .= Penci_Helper_Shortcode::get_markup_title_post( $atts['post_standard_title_length'] ); $block9_items .= Penci_Helper_Shortcode::get_post_meta( array( 'date','comment' ), $atts, true, array( 'author','view' ) ); $block9_items .= '</div></div></article>'; }
$block9_items .= Penci_Helper_Shortcode::get_markup_infeed_ad( array( 'before' => '<div class="penci-infeed_ad penci-post-item penci-col-6">', 'order_ad' => $atts['infeed_ads__order'], 'order_post' => $block9_i, 'code' => $content, ) );
$block9_i ++; } wp_reset_postdata();
return Penci_Helper_Shortcode::pre_output_content_items( '<div class="penci-row">' . $block9_first_item . '</div><div class="block9_items penci-row">' . $block9_items . '</div>' , $atts );
}
|