C:\xampp\htdocs\landing\wp-content\plugins\mega-addons-for-visual-composer\render\price.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

class 
WPBakeryShortCode_mvc_price_listing extends WPBakeryShortCode {

    protected function 
content$atts$content null ) {

        
extractshortcode_atts( array(
            
'style'                 => 'price_style_1',
            
'offer_visibility'         => 'none',
            
'offer_text'             => '',
            
'offer_bg'                 => '',
            
'price_title'             => '',
            
'subtitle'                 => '',
            
'price_visibility'         => 'block',
            
'price_currency'         => '',
            
'price_amount'             => '',
            
'price_plan'             => '',
            
'btn_text'                 => '',
            
'btn_url'                 => '',
            
'price_bg'                 => '',
            
'top_bg'                 => '',
            
'title_clr'                 => '',
            
'amount_clr'                 => '',
            
'featured'                 => 'disable',
            
'zoom'                     => '0',
            
'titlesize'                =>    '',
            
'amountsize'            =>    '',
            
'planesize'                =>    '',
            
'btnsize'                =>    '',
        ), 
$atts ) );    
        
$btn_url vc_build_link($btn_url);
        
wp_enqueue_style'price-listing-css'plugins_url'../css/price_listing.css' __FILE__ ));
        
$content wpb_js_remove_wpautop($contenttrue);
        
ob_start(); ?>


        <?php switch ($style) {
            case 
'design1':
                include 
'price-table/price1.php';
                break;
            case 
'mega-price-table-2':
                include 
'price-table/price2.php';
                break;
            case 
'mega-price-table-3':
                include 
'price-table/price2.php';
                break;
            case 
'mega-price-table-4':
                include 
'price-table/price4.php';
                break;
            case 
'mega-price-table-5':
                include 
'price-table/price5.php';
                break;
            
            default:
                include 
'price-table/price1.php';
                break;
        } 
?>

        <?php
        
return ob_get_clean();
    }
}


vc_map( array(
    
"name"             => __'Price Table''infobox' ),
    
"base"             => "mvc_price_listing",
    
"category"         => __('Mega Addons'),
    
"description"     => __('Create nice looking price tables''infobox'),
    
"icon" => plugin_dir_url__FILE__ ).'../icons/price.png',
    
'params' => array(
        array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Select Layout''pt-vc' ),
            
"param_name"     =>     "style",
            
"group"         =>     'Price Header',
            
"description"     =>     __'<a href="https://addons.topdigitaltrends.net/price-table/" target="_blank">See Demo</a> 3 More Designs in <a href="https://1.envato.market/02aNL" target="_blank">Pro Version</a>''pt-vc' ),
            
"value"         =>  array(
                
'Design 1'        =>  'design1',
                
'Design 2'        =>  'mega-price-table-2',
                
'Design 3'        =>  'mega-price-table-3',
                
'Design 4'        =>  'mega-price-table-4',
                
'Design 5'        =>  'mega-price-table-5',
            )
        ),
        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"             =>     "textfield",
            
"heading"         =>     __'Price Subtitle''pt-vc' ),
            
"param_name"     =>     "subtitle",
            
"description"     =>     __'It will show with title''pt-vc' ),
            
"dependency" => array('element' => "style"'value' => array('design7''design8')),
            
"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 sign''pt-vc' ),
            
"param_name"     =>     "price_currency",
            
"description"     =>     __'Write currency sign e.g "$"''pt-vc' ),
            
"dependency" => array('element' => "price_visibility"'value' => 'block'),
            
"group"         =>     'Price Header',
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Amount''pt-vc' ),
            
"param_name"     =>     "price_amount",
            
"description"     =>     __'Write amount in number e.g 299''pt-vc' ),
            
"dependency" => array('element' => "price_visibility"'value' => 'block'),
            
"group"         =>     'Price Header',
        ),
        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Price plan''pt-vc' ),
            
"param_name"     =>     "price_plan",
            
"description"     =>     __'Price plan e.g "per month"''pt-vc' ),
            
"dependency" => array('element' => "price_visibility"'value' => 'block'),
            
"group"         =>     'Price Header',
        ),
        array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Set Featured''pt-vc' ),
            
"param_name"     =>     "featured",
            
"dependency" => array('element' => "style"'value' => array('mega-price-table-2''mega-price-table-3''mega-price-table-4''mega-price-table-5''design6''design7''design8')),
            
"group"         =>     'Price Header',
            
"value"            =>    array(
                
"Disable"        =>        "disable",
                
"Enable"        =>        "transform",
            )
        ),
        array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Scale Zoom''pt-vc' ),
            
"param_name"     =>     "zoom",
            
"description"     =>     __'It will prominent than others price table''pt-vc' ),
            
"dependency" => array('element' => "featured"'value' => "transform"),
            
"group"         =>     'Price Header',
            
"value"         =>  array(
                
'3'     =>  '3',
                
'4'     =>  '4',
                
'5'     =>  '5',
                
'6'     =>  '6',
                
'7'     =>  '7',
                
'8'     =>  '8',
                
'9'     =>  '9',
            )
        ),

        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' ),
            
"dependency" => array('element' => "style"'value' => 'design1'),
            
"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>10 databases</li><li>1,000 Emails</li><li>25GB Bandwidth</li>'
        
),

        
/* Button */

        
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"     =>     __'Write Button URL for link''pt-vc' ),
            
"group"         =>     'Button',
        ),

        
/* colors */

        
array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Title color''pt-vc' ),
            
"param_name"     =>     "title_clr",
            
"description"     =>     __'set price title color''pt-vc' ),
            
"group"         =>     'Color',
        ),
        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Price Amount Color''pt-vc' ),
            
"param_name"     =>     "amount_clr",
            
"description"     =>     __'set price amount color''pt-vc' ),
            
"group"         =>     'Color',
        ),

        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"         =>     __'Body Background''pt-vc' ),
            
"param_name"     =>     "price_bg",
            
"description"     =>     __'Set complete background color''pt-vc' ),
            
"group"         =>     'Color',
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Title (Font Size)''pt-vc' ),
            
"param_name"     =>     "titlesize",
            
"description"     =>     __'Set in pixel eg, 30 or leave blank for default''pt-vc' ),
            
"suffix"         => 'px',
            
"group"         =>     'Typography',
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Price Amount (Font Size)''pt-vc' ),
            
"param_name"     =>     "amountsize",
            
"description"     =>     __'Set in pixel eg, 40 or leave blank for default''pt-vc' ),
            
"suffix"         => 'px',
            
"group"         =>     'Typography',
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Price Plan (Font Size)''pt-vc' ),
            
"param_name"     =>     "planesize",
            
"description"     =>     __'Set in pixel eg, 12 or leave blank for default''pt-vc' ),
            
"suffix"         => 'px',
            
"group"         =>     'Typography',
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Button Text (Font Size)''pt-vc' ),
            
"param_name"     =>     "btnsize",
            
"description"     =>     __'Set in pixel eg, 17 or leave blank for default''pt-vc' ),
            
"suffix"         => 'px',
            
"group"         =>     'Typography',
        ),
    ),
) );

x

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