C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\shortcodes\block_35\frontend.php


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
<?php
$atts              
vc_map_get_attributes$this->getShortcode(), $atts );
$show_on_shortcode Penci_Helper_Shortcode::show_on_shortcode$atts );
if ( ! 
$show_on_shortcode ) {
    return;
}

$atts['limit'] = 4;

if ( isset( 
$atts['build_query'] ) ) {
    
$atts['build_query'] = PenciLoopSettings::updateArgsQuerySize$atts['build_query'], );
}

list( 
$atts $block_content_id$unique_id ) = Penci_Helper_Shortcode::get_general_param_frontend_shortcode$atts'block_35' );

$class Penci_Framework_Helper::get_class_block( array( $this->getCSSAnimation$atts['css_animation'] ) ), $atts );
$class preg_replace'/\s+/'' 'apply_filters'vc_shortcodes_css_class'implode' 'array_filterarray_unique$class ) ) ), 'penci_block_35'$atts ) );

$query_slider Penci_Pre_Query::do_query$atts );

if ( ! 
$query_slider->have_posts() ) {
    return;
}

$items = include dirname__FILE__ ) . "/content-items.php";
$data_filter Penci_Helper_Shortcode::get_data_filter'block_35',$atts$content );

?>
    <div id="<?php echo esc_attr$unique_id ); ?>" class="penci-block-vc penci-block_35 penci__general-meta <?php echo esc_attr$class ); ?>" data-current="1" data-blockUid="<?php echo esc_attr$unique_id ); ?><?php echo $data_filter?>>
        <div class="penci-block-heading">
            <?php Penci_Helper_Shortcode::get_block_title$atts ); ?>
            <?php Penci_Helper_Shortcode::get_pull_down_filter$atts'block_35'$block_content_id ); ?>
            <?php Penci_Helper_Shortcode::get_slider_nav$block_content_id$atts$query_slider ); ?>
        </div>
        <div id="<?php echo esc_attr$block_content_id ); ?>" class="penci-block_content">
            <?php  echo $items?>
        </div>
        <?php Penci_Helper_Shortcode::get_pagination$atts$query_slider ); ?>
    </div>
<?php
$id_block_35 
'#' $unique_id;
$css_custom  Penci_Helper_Shortcode::get_general_css_custom$id_block_35$atts );
$css_custom  .= Penci_Helper_Shortcode::get_post_meta_css_custom$id_block_35$atts );
$css_custom  .= Penci_Helper_Shortcode::get_ajax_loading_css_custom$id_block_35$atts );
$css_custom  .= Penci_Helper_Shortcode::get_text_filter_css_custom$id_block_35$atts );
$css_custom .= Penci_Helper_Shortcode::get_pagination_css_custom$id_block_35$atts );
$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom_pagination$id_block_35$atts );
$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom_readmore$id_block_35$atts );

if ( 
'custom' == $atts['image_type'] ) {
    if ( 
$atts['big_image_ratio'] ) {
        
$css_custom .= $id_block_35 '.penci-imgtype-custom .penci-post-item__1 .penci-image-holder:before{ padding-top: ' floatval$atts['big_image_ratio'] ) * 100 '%; }';
    }

    if ( 
$atts['image_ratio'] ) {
        
$css_custom .= $id_block_35 '.penci-imgtype-custom .penci-post-item__4 .penci-image-holder:before,';
        
$css_custom .= $id_block_35 '.penci-imgtype-custom .penci-wapper-items .penci-image-holder:before{ padding-top: ' floatval$atts['image_ratio'] ) * 100 '%; }';
    }
}

// First posts
if ( $atts['first_post_title_color'] ) :
 
$css_custom .= sprintf
     
'%s .penci-post-item__1 .penci__post-title a,%s .penci-post-item__1 .penci__post-title a:hover{ color:%s !important; }',
      
$id_block_35,$id_block_35$atts['first_post_title_color'] );
  endif;

if( 
$atts['meta_color'] ){
    
$css_custom .= sprintf'%s .penci-post-item__1 .penci_post-meta a{ color:%s !important; }'$id_block_35$atts['meta_color'] );
}
if( 
$atts['meta_hover_color'] ){
    
$css_custom .= sprintf'%s .penci-post-item__1 .penci_post-meta a:hover{ color:%s !important; }'$id_block_35$atts['meta_hover_color'] );
}
 
if ( 
$atts['excrept_color'] ) {
    
$css_custom .= sprintf'%s .penci-post-excerpt{ color:%s; }'$id_block_35$atts['excrept_color'] );
}

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom_block_heading$id_block_35$atts );

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom( array(
    
'e_admin'      => 'post_title',
    
'font-size'    => '16px',
    
'media'        => '650',
    
'google_fonts' => Penci_Helper_Shortcode::get_font_family'muktavaani' ),
    
'template'     => $id_block_35 ' .penci__post-title{ %s }',
), 
$atts
);


if ( 
'24px' != $atts['post_title_font_size_first_item'] || '16px' != $atts['post_title_font_size'] ) {
    
$css_media Penci_Helper_Shortcode::get_css_media_by_width$width '768' );
    
$css_custom .= $css_media$id_block_35 ' .penci-post-item__1 .penci__post-title{ font-size:' $atts['post_title_font_size_first_item'] . ' !important; } }';
}

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom( array(
    
'e_admin'      => 'post_meta',
    
'font-size'    => '12px',
    
'media'        => '650',
    
'google_fonts' => Penci_Helper_Shortcode::get_font_family'roboto' ),
    
'template'     => $id_block_35 '.penci__general-meta .penci_post-meta{ %s }',
), 
$atts
);

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom( array(
    
'e_admin'      => 'post_excrept',
    
'font-size'    => '14px',
    
'media'        => '650',
    
'google_fonts' => Penci_Helper_Shortcode::get_font_family'roboto' ),
    
'template'     => $id_block_35 ' .penci-post-excerpt{ %s }',
), 
$atts
);

if ( 
$css_custom ) {
    echo 
'<style>';
    echo 
$css_custom;
    echo 
'</style>';
}

Penci_Helper_Shortcode::get_block_script$unique_id$atts$content );
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586