C:\xampp\htdocs\landing\wp-content\plugins\mega-addons-for-visual-composer\render\new2.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

class 
WPBakeryShortCode_mvc_timeline_son extends WPBakeryShortCode {

    protected function 
content$atts$content null ) {

        
extractshortcode_atts( array(
            
'date'        =>    '',
            
'clr'        =>    '',
            
'size'        =>    '',
            
'centerstyle'        =>    'fonticon',
            
'bgclr'        =>    '',
            
'arrowclr'    =>    '',
            
'icon'        =>    '',
            
'icon_size'    =>    '',
            
'css'        =>    '',
        ), 
$atts ) );
        
$css_class apply_filtersVC_SHORTCODE_CUSTOM_CSS_FILTER_TAGvc_shortcode_custom_css_class$css' ' ), $this->settings['base'], $atts );
        
$content wpb_js_remove_wpautop($contenttrue);
        
ob_start(); ?>
        
                <div class="cd-timeline-block">
                    <?php if ($centerstyle == 'fonticon') { ?>
                        <div class="cd-timeline-img cd-picture" style="background: <?php echo $bgclr?>; border-radius: 50%; text-align:center;">
                            <i class="<?php echo $icon?>" aria-hidden="true" style="font-size: <?php echo $icon_size?>; color: #fff;vertical-align: middle;"></i>
                        </div>    
                    <?php ?>

                    <?php if ($centerstyle == 'dot') { ?>
                        <div class="cd-timeline-img cd-timeline-dot cd-picture" style="background: <?php echo $bgclr?>; border-radius: 50%;">
                        </div>    
                    <?php ?>

                    <div class="cd-timeline-content <?php echo $css_class?>">
                        <span class="timeline-arrow" style="border-right-color: <?php echo $arrowclr?>"></span>
                        <span class="timeline-arrow" style="border-left-color: <?php echo $arrowclr?>"></span>
                        <span class="timeline-arrow" style="border-right: 7px solid <?php echo $arrowclr?>;"></span>

                        <?php echo $content?>
                        <span class="cd-date" style="color: <?php echo $clr?>; font-size: <?php echo $size?>;">
                            <?php echo $date ?>
                        </span>
                    </div>
                </div>

        <?php return ob_get_clean();
    }
}


vc_map( array(
    
"name"             => __'Timeline''timeline' ),
    
"base"             => "mvc_timeline_son",
    
"as_child"     => array('only' => 'mvc_timeline_father'),
    
"content_element" => true,
    
"category"         => __('Mega Addons'),
    
"description"     => __('Add multiple images and text'''),
    
"icon" => plugin_dir_url__FILE__ ).'../icons/timeline.png',
    
'params' => array(
        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Date''timeline' ),
            
"param_name"     =>     "date",
            
"description"     =>     __'Write timeline date e.g Jan 15''timeline' ),
            
"group"         =>     'General',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Color''timeline' ),
            
"param_name"     =>     "clr",
            
"description"     =>     __'color of the date''timeline' ),
            
"group"         =>     'General',
        ),

        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Font size''timeline' ),
            
"param_name"     =>     "size",
            
"description"     =>     __'fone size of date in pixel e.g 17px''timeline' ),
            
"group"         =>     'General',
        ),

        array(
            
"type"             =>     "textarea_html",
            
"heading"         =>     __'Content Details''timeline' ),
            
"param_name"     =>     "content",
            
"description"     =>     __'Add heading, details, pictures or video url''timeline' ),
            
"value"            => '<h3><b>Title of section</b></h3><p>Details here</p> <a href="#0" class="cd-read-more" >Read more</a>',
            
"group"         =>     'Content',
        ),

        array(
            
"type"             => "dropdown",
            
"heading"         => __'Select style''timeline' ),
            
"param_name"     => "centerstyle",
            
"description"     => __'style for center''timeline' ),
            
"group"         => 'Timeline Center',
                
"value"         => array(
                    
'Center With Font Icon'    =>    'fonticon',
                    
'Only Dot'    =>    'dot',
                )
            ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Background''timeline' ),
            
"param_name"     =>     "bgclr",
            
"description"     =>     __'Center dot background color''timeline' ),
            
"group"         =>     'Timeline Center',
        ),

        array(
            
"type"             =>     "iconpicker",
            
"heading"         =>     __'Font Icon''timeline' ),
            
"param_name"     =>     "icon",
            
"description"     =>     __'choose font awesome or leave blank''timeline' ),
            
"dependency" => array('element' => "centerstyle"'value' => 'fonticon'),
            
"group"         =>     'Timeline Center',
        ),

        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Font size''timeline' ),
            
"param_name"     =>     "icon_size",
            
"description"     =>     __'Icon font size e.g 17px''timeline' ),
            
"dependency" => array('element' => "centerstyle"'value' => 'fonticon'),
            
"group"         =>     'Timeline Center',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Arrow Color''timeline' ),
            
"param_name"     =>     "arrowclr",
            
"description"     =>     __'set timeline arrow color''timeline' ),
            
"group"         =>     'Design Option',
        ),
        
        array(
            
"type"             =>     "css_editor",
            
"heading"         =>     __'Styles''timeline' ),
            
"param_name"     =>     "css",
            
"group"         =>     'Design Option',
        ),
    )
) );
x

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