C:\xampp\htdocs\landing\wp-content\plugins\mega-addons-for-visual-composer\render\advanceprice.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

class 
WPBakeryShortCode_mvc_advance_listing extends WPBakeryShortCode {

    protected function 
content$atts$content null ) {

        
extractshortcode_atts( array(
            
'offer_visibility'         => 'none',
            
'offer_text'             => '',
            
'offer_bg'                 => '',
            
'price_margin'             => '',
            
'price_title'             => '',
            
'price_visibility'         => 'block',
            
'price_amount'             => '',
            
'price_fontsize'         => '35',
            
'price_plan'             => 'month',
            
'feature_align'         => '',
            
'feature_size'             => '13px',
            
'btn_visibility'         => '',
            
'btn_text'                 => '',
            
'btn_url'                 => '',
            
'amount_clr'             => '',
            
'price_bg'                 => '',
            
'top_bg'                 => '',
            
'text_clr'                 => '',
        ), 
$atts ) );
        
$btn_url vc_build_link($btn_url);
        
wp_enqueue_style'advanced-listing-css'plugins_url'../css/ad_listing.css' __FILE__ ));
        
$content wpb_js_remove_wpautop($contenttrue);
        
ob_start(); ?>
        
        <div class="price_table_2" style="background-color: <?php echo $price_bg?>; margin-top: <?php echo $price_margin?>px;">
            <div class="type" style="background-color: <?php echo $top_bg?>;">
                <div class="ribbon-right-side" style="display: <?php echo $offer_visibility?>;">
                    <span style="background: <?php echo $offer_bg?>;"><?php echo $offer_text?></span>
                </div>
                <p><?php echo $price_title?></p>
            </div>

            <div class="plan">
                <div class="header" style="display: <?php echo $price_visibility?>;">
                        <span class="amount" style="color: <?php echo $amount_clr?>; font-size: <?php echo $price_fontsize?>px">
                            <?php echo $price_amount?> <span class="month">/<?php echo $price_plan?></span>
                        </span>
                </div>
                <div class="content">
                    <?php echo $content?>
                </div>            
                <div class="price" style="">
                      <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="price-btn" style="display: <?php echo $btn_visibility?>; background-color: <?php echo $top_bg?>; box-shadow: inset 0 -2px <?php echo $top_bg?>;-webkit-box-shadow: inset 0 -2px <?php echo $top_bg?>;">
                          <?php echo $btn_text?>
                      </a>
                </div>
            </div>
        </div>

        <?php
        
return ob_get_clean();
    }
}


vc_map( array(
    
"name"             => __'Advanced Pricing List''infobox' ),
    
"base"             => "mvc_advance_listing",
    
"category"         => __('Mega Addons'),
    
"description"     => __('Compare Listing''infobox'),
    
"icon" => plugin_dir_url__FILE__ ).'../icons/advanceprice.png',
    
'params' => array(
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Price margin (from top)''pt-vc' ),
            
"param_name"     =>     "price_margin",
            
"description"     =>     __'Set complete margin of price table from top to bottom in pixel e.g 30. It is recomend for first price listing from left side.''pt-vc' ),
            
"suffix"         =>     'px',
            
"group"         =>     'Price Header',
        ),
        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Price Title''pt-vc' ),
            
"param_name"     =>     "price_title",
            
"description"     =>     __'It will be used as price package name''pt-vc' ),
            
"group"         =>     'Price Header',
        ),
        array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Show/Hide price amount''pt-vc' ),
            
"param_name"     =>     "price_visibility",
            
"description"     =>     __'Select Show or Hide amount and currency ''pt-vc' ),
            
"group"         =>     'Price Header',
            
"value"         => array(
                
'Show' =>  'block',
                
'Hide' =>  'none',
            )
        ),
        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Currency and Amount''pt-vc' ),
            
"param_name"     =>     "price_amount",
            
"description"     =>     __'Write currency and amount e.g $299''pt-vc' ),
            
"dependency" => array('element' => "price_visibility"'value' => 'block'),
            
"group"         =>     'Price Header',
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Amount font size''pt-vc' ),
            
"param_name"     =>     "price_fontsize",
            
"description"     =>     __'Set font size of price amount e.g 35''pt-vc' ),
            
"dependency" => array('element' => "price_visibility"'value' => 'block'),
            
"suffix"         =>     'px',
            
"value"            =>    '35',
            
"group"         =>     'Price Header',
        ),
        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Price plan''pt-vc' ),
            
"param_name"     =>     "price_plan",
            
"description"     =>     __'Price plan e.g "month"''pt-vc' ),
            
"dependency" => array('element' => "price_visibility"'value' => 'block'),
            
"group"         =>     'Price Header',
        ),

        array(
            
"type"             => "vc_links",
            
"param_name"     => "caption_url",
            
"class"            =>    "ult_param_heading",
            
"description"     => __'<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Get the Pro version for more stunning elements and customization options.</a></span>''ihover' ),
            
"group"         => 'Price Header',
        ),

        array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Show/Hide Offer''pt-vc' ),
            
"param_name"     =>     "offer_visibility",
            
"description"     =>     __'Select Show or Hide offer ''pt-vc' ),
            
"group"         =>     'Offer',
            
"value"         => array(
                
'Hide' =>  'none',
                
'Show' =>  'block',
            )
        ),
        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Offer text''pt-vc' ),
            
"param_name"     =>     "offer_text",
            
"description"     =>     __'Write text for showing best offer in Ribbon e.g BEST''pt-vc' ),
            
"dependency" => array('element' => "offer_visibility"'value' => 'block'),
            
"group"         =>     'Offer',
        ),
        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Offer Background color''pt-vc' ),
            
"param_name"     =>     "offer_bg",
            
"description"     =>     __'background color of offer''pt-vc' ),
            
"dependency" => array('element' => "offer_visibility"'value' => 'block'),
            
"group"         =>     'Offer',
        ),
        
/* Features */

        
array(
            
"type"             => "textarea_html",
            
"heading"         => __'Caption Text''ich-vc' ),
            
"param_name"     => "content",
            
"description"     => __'Enter your pricing content. You can use a UL list as shown by default but anything would really work!''ich-vc' ),
            
"group"         => 'Features',
            
"value"            => '<li>30GB Storage</li><li>512MB Ram</li><li>[font_awesome link="" icon="check" color="#000"]</li><li>10 databases</li><li>1,000 Emails</li><li>25GB Bandwidth</li>'
        
),

        
/* Button */

        
array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Show/Hide button''pt-vc' ),
            
"param_name"     =>     "btn_visibility",
            
"description"     =>     __'Select Show or Hide Button ''pt-vc' ),
            
"group"         =>     'Button',
            
"value"         => array(
                
'Show' =>  'block',
                
'Hide' =>  'none',
            )
        ),

        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Button Text''pt-vc' ),
            
"param_name"     =>     "btn_text",
            
"description"     =>     __'Button text name''pt-vc' ),
            
"group"         =>     'Button',
        ),

        array(
            
"type"             =>     "vc_link",
            
"heading"         =>     __'Button Url''pt-vc' ),
            
"param_name"     =>     "btn_url",
            
"description"     =>     __'Set Button URL for link''pt-vc' ),
            
"group"         =>     'Button',
        ),

        
/* colors */

        
array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Header Background color''pt-vc' ),
            
"param_name"     =>     "top_bg",
            
"description"     =>     __'Top Header and button background color''pt-vc' ),
            
"group"         =>     'Color',
        ),
        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Amount color''pt-vc' ),
            
"param_name"     =>     "amount_clr",
            
"description"     =>     __'Set color of price amount''pt-vc' ),
            
"group"         =>     'Color',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Body background color''pt-vc' ),
            
"param_name"     =>     "price_bg",
            
"description"     =>     __'Set complete background color''pt-vc' ),
            
"group"         =>     'Color',
        ),

    ),
) );

x

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