C:\xampp\htdocs\landing\wp-content\plugins\mega-addons-for-visual-composer\render\teamprofile.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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

class 
WPBakeryShortCode_mvc_team_profile extends WPBakeryShortCode {

    protected function 
content$atts$content null ) {

        
extractshortcode_atts( array(
            
'member_visibility' => 'grow',
            
'pro_size'             => '',
            
'shadow_visibility' => 'none',
            
'member_clr'         => '#27BEBE',
            
'url'                 => '',
            
'image_id'             => '',
            
'image_id2'         => '',
            
'image_alt'         => '',
            
'classname'         => '',
            
'memb_name'         => '',
            
'memb_prof'         => '',
            
'memb_about'         => '',
            
'memberproclr'        => '',
            
'about_clr'            => '',
            
'info_size'         => '',
            
'info_clr'             => '',
            
'memb_email'         => '',
            
'memb_url'             => '',
            
'memb_numb'         => '',
            
'memb_addr'         => '',
            
'memb_skill'         => '',
            
'memb_perl'         => '',
            
'memb_skill2'         => '',
            
'memb_per2'         => '',
            
'memb_skill3'         => '',
            
'memb_per3'         => '',
            
'memb_skill4'         => '',
            
'memb_per4'         => '',
            
'memb_skill5'         => '',
            
'memb_per5'         => '',
            
'social_size'         => '19',
            
'social_icon'         => '',
            
'social_url'         => '',
            
'social_clr'         => '',
            
'social_icon2'         => '',
            
'social_url2'         => '',
            
'social_clr2'         => '',
            
'social_icon3'         => '',
            
'social_url3'         => '',
            
'social_clr3'         => '',
            
'social_icon4'         => '',
            
'social_url4'         => '',
            
'social_clr4'         => '',
            
'social_icon5'         => '',
            
'social_url5'         => '',
            
'social_clr5'         => '',
            
'member_txt_size'     => '',
            
'about_txt_size'     => '',
            
'pro_txt_size'         => '',
        ), 
$atts ) );
        
$url vc_build_link($url);
        if (
$image_id != '') {
            
$image_url wp_get_attachment_url$image_id );        
        }
        if (
$image_id2 != '') {
            
$image_url2 wp_get_attachment_url$image_id2 );        
        }
        
wp_enqueue_style'memberprofile-css'plugins_url'../css/memberprofile.css' __FILE__ ));
        
$content wpb_js_remove_wpautop($contenttrue);
        
ob_start(); ?>
        
        <?php switch ($member_visibility) {
            case 
'grow':
                include 
'team-profile/style1.php';
                break;
            case 
'float':
                include 
'team-profile/style2.php';
                break;
            case 
'outset':
                include 
'team-profile/style3.php';
                break;
            case 
'smart':
                include 
'team-profile/style4.php';
                break;
            case 
'style8':
                include 
'team-profile/style8.php';
                break;
            
            default:
                include 
'team-profile/style1.php';
                break;
        } 
?>

        <?php
        
return ob_get_clean();
    }
}


vc_map( array(
    
"name"             => __'Member Profile''memberprofile' ),
    
"base"             => "mvc_team_profile",
    
"category"         => __('Mega Addons'),
    
"description"     => __('Show your awesome team''memberprofile'),
    
"icon" => plugin_dir_url__FILE__ ).'../icons/memberprofile.png',
    
'params' => array(
        array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Member Style''memberprofile' ),
            
"param_name"     =>     "member_visibility",
            
"description"     =>     __'Select style of member profile <a href="http://addons.topdigitaltrends.net/member-profile">See demo</a>''memberprofile' ),
            
"group"         =>     'General',
            
"value"         => array(
                
"STYLE 1"        =>         "grow"
                
"STYLE 2"         =>         "float",
                
"STYLE 3"         =>         "outset",
                
"STYLE 4"         =>         "smart",
                
"STYLE 5"         =>         "style8",
                
"STYLE 6 [Pro]"         =>         "",
                
"STYLE 7 [Pro]"         =>         "",
                
"STYLE 8 [Pro]"         =>         "",
                
"STYLE 9 [Pro]"         =>         "",
                
"STYLE 10 [Pro]"         =>         "",
                
"STYLE 11 [Pro]"         =>         "",
            )
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Team Profile Width''memberprofile' ),
            
"param_name"     => "pro_size",
            
"description"     => __'custom size of profile container or leave blank for default''memberprofile' ),
            
"suffix"         =>     'px',
            
"group"         => 'General',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Profile color''memberprofile' ),
            
"param_name"     =>     "member_clr",
            
"description"     =>     __'color effects for the team meber''memberprofile' ),
            
"group"         =>     'General',
        ),

        array(
            
"type"             => "vc_link",
            
"heading"         => __'Link To''member-vc' ),
            
"param_name"     => "url",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset''smart''stalic''swap''minimic')),
            
"group"         => 'General',
        ),

        array(
            
"type"             =>     "attach_image",
            
"heading"         =>     __'Image''memberprofile' ),
            
"param_name"     =>     "image_id",
            
"description"     =>     __'Select the image''memberprofile' ),
            
"group"         =>     'General',
        ),

        array(
            
"type"             =>     "attach_image",
            
"heading"         =>     __'Image 2''memberprofile' ),
            
"param_name"     =>     "image_id2",
            
"dependency" => array('element' => "member_visibility"'value' => 'swap'),
            
"description"     =>     __'It will show on hover''memberprofile' ),
            
"group"         =>     'General',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Alternate Text''memberprofile' ),
            
"param_name"     => "image_alt",
            
"description"     => __'It will be used as alt attribute of img tag''memberprofile' ),
            
"group"         => 'General',
        ),

        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Extra class name''megaaddons' ),
            
"param_name"     =>     "classname",
            
"description"     =>     "Style particular content element differently - add a class name and refer to it in custom CSS.",
            
"group"         =>     'General',
        ),

        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"         => 'General',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Member name''memberprofile' ),
            
"param_name"     => "memb_name",
            
"description"     => __'Write member name''memberprofile' ),
            
"group"         => 'About',
        ),
        array(
            
"type"             => "textfield",
            
"heading"         => __'Profession''memberprofile' ),
            
"param_name"     => "memb_prof",
            
"description"     => __'Write member profession''memberprofile' ),
            
"group"         => 'About',
        ),

        array(
            
"type"             => "textarea",
            
"heading"         => __'About''memberprofile' ),
            
"param_name"     => "memb_about",
            
"description"     => __'Info about member in detail''memberprofile' ),
            
"group"         => 'About',
        ),

        
// Info Section

        
array(
            
"type"             => "textfield",
            
"heading"         => __'Email''memberprofile' ),
            
"param_name"     => "memb_email",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'Write member email address or leave blank''memberprofile' ),
            
"group"         => 'Info',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Site Url''memberprofile' ),
            
"param_name"     => "memb_url",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'Write member site url or leave blank''memberprofile' ),
            
"group"         => 'Info',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Contact number''memberprofile' ),
            
"param_name"     => "memb_numb",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'Write member contact number or leave blank''memberprofile' ),
            
"group"         => 'Info',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Address''memberprofile' ),
            
"param_name"     => "memb_addr",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'Write member address or leave blank''memberprofile' ),
            
"group"         => 'Info',
        ),

        
// Skills

        
array(
            
"type"             => "textfield",
            
"heading"         => __'Skill 1''memberprofile' ),
            
"param_name"     => "memb_skill",
            
"edit_field_class" => "vc_col-sm-8 edit_field_padding_top",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'write your skill e.g Wordpress or leave blank''memberprofile' ),
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'First percentage''memberprofile' ),
            
"param_name"     => "memb_perl",
            
"edit_field_class" => "vc_col-sm-4 edit_field_padding_top",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'first skill percentage e.g 87 or leave blank''memberprofile' ),
            
"suffix"         =>     '%',
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Skill 2''memberprofile' ),
            
"param_name"     => "memb_skill2",
            
"edit_field_class" => "vc_col-sm-8",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'write your skill e.g Wordpress or leave blank''memberprofile' ),
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Second percentage''memberprofile' ),
            
"param_name"     => "memb_per2",
            
"edit_field_class" => "vc_col-sm-4",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'second skill percentage e.g 83 or leave blank''memberprofile' ),
            
"suffix"         =>     '%',
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Skill 3''memberprofile' ),
            
"param_name"     => "memb_skill3",
            
"edit_field_class" => "vc_col-sm-8",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'write your skill e.g Wordpress or leave blank''memberprofile' ),
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Third percentage''memberprofile' ),
            
"param_name"     => "memb_per3",
            
"edit_field_class" => "vc_col-sm-4",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'third skill percentage e.g 83 or leave blank''memberprofile' ),
            
"suffix"         =>     '%',
            
"group"         => 'Skill',
        ),
        array(
            
"type"             => "textfield",
            
"heading"         => __'Skill 4''memberprofile' ),
            
"param_name"     => "memb_skill4",
            
"edit_field_class" => "vc_col-sm-8",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'write your skill e.g Wordpress or leave blank''memberprofile' ),
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Fourth percentage''memberprofile' ),
            
"param_name"     => "memb_per4",
            
"edit_field_class" => "vc_col-sm-4",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'fourth skill percentage e.g 83 or leave blank''memberprofile' ),
            
"suffix"         =>     '%',
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Skill 5''memberprofile' ),
            
"param_name"     => "memb_skill5",
            
"edit_field_class" => "vc_col-sm-8",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'write your skill e.g Wordpress or leave blank''memberprofile' ),
            
"group"         => 'Skill',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Fifth percentage''memberprofile' ),
            
"param_name"     => "memb_per5",
            
"edit_field_class" => "vc_col-sm-4",
            
"dependency" => array('element' => "member_visibility"'value' => array('grow''float''outset')),
            
"description"     => __'fifth skill percentage e.g 83 or leave blank''memberprofile' ),
            
"suffix"         =>     '%',
            
"group"         => 'Skill',
        ),

        
/*** Social Icons ***/

        
array(
            
"type"             => "iconpicker",
            
"heading"         => __'Social icon''memberprofile' ),
            
"param_name"     => "social_icon",
            
"description"     => __'choose icon for social upadate''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'First Social Url''memberprofile' ),
            
"param_name"     => "social_url",
            
"edit_field_class" => "vc_col-sm-7",
            
"description"     => __'first social url''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "colorpicker",
            
"heading"         => __'First Social color''memberprofile' ),
            
"param_name"     => "social_clr",
            
"edit_field_class" => "vc_col-sm-5",
            
"group"         => 'Social',
        ),


        array(
            
"type"             => "iconpicker",
            
"heading"         => __'Second social icon''memberprofile' ),
            
"param_name"     => "social_icon2",
            
"description"     => __'choose icon for social''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Second Social Url''memberprofile' ),
            
"param_name"     => "social_url2",
            
"edit_field_class" => "vc_col-sm-7",
            
"description"     => __'Second social url''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "colorpicker",
            
"heading"         => __'Second Social color''memberprofile' ),
            
"param_name"     => "social_clr2",
            
"edit_field_class" => "vc_col-sm-5",
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "iconpicker",
            
"heading"         => __'Third social icon''memberprofile' ),
            
"param_name"     => "social_icon3",
            
"description"     => __'choose icon for social''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Third Social Url''memberprofile' ),
            
"param_name"     => "social_url3",
            
"edit_field_class" => "vc_col-sm-7",
            
"description"     => __'Third social url''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "colorpicker",
            
"heading"         => __'Third Social color''memberprofile' ),
            
"param_name"     => "social_clr3",
            
"edit_field_class" => "vc_col-sm-5",
            
"group"         => 'Social',
        ),


        array(
            
"type"             => "iconpicker",
            
"heading"         => __'Fourth social icon''memberprofile' ),
            
"param_name"     => "social_icon4",
            
"description"     => __'choose icon for social''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Fourth Social Url''memberprofile' ),
            
"param_name"     => "social_url4",
            
"edit_field_class" => "vc_col-sm-7",
            
"description"     => __'Fourth social url''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "colorpicker",
            
"heading"         => __'Fourth Social color''memberprofile' ),
            
"param_name"     => "social_clr4",
            
"edit_field_class" => "vc_col-sm-5",
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "iconpicker",
            
"heading"         => __'Fifth social icon''memberprofile' ),
            
"param_name"     => "social_icon5",
            
"description"     => __'choose icon for social''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "textfield",
            
"heading"         => __'Fifth Social Url''memberprofile' ),
            
"param_name"     => "social_url5",
            
"edit_field_class" => "vc_col-sm-7",
            
"description"     => __'Fifth social url''memberprofile' ),
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "colorpicker",
            
"heading"         => __'Fifth Social color''memberprofile' ),
            
"param_name"     => "social_clr5",
            
"edit_field_class" => "vc_col-sm-5",
            
"group"         => 'Social',
        ),

        array(
            
"type"             => "vc_links",
            
"param_name"     => "caption_url",
            
"class"            =>    "ult_param_heading",
            
"description"     => __'<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">About Tab Settings</span>''ihover' ),
            
"group"         => 'Typography',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Color [Member - Profession]''memberprofile' ),
            
"param_name"     =>     "memberproclr",
            
"edit_field_class" => "vc_col-sm-6",
            
"group"         =>     'Typography',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'About Color''memberprofile' ),
            
"param_name"     =>     "about_clr",
            
"edit_field_class" => "vc_col-sm-6",
            
"group"         =>     'Typography',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Member Name [Font Size]''memberprofile' ),
            
"param_name"     => "member_txt_size",
            
"edit_field_class" => "vc_col-sm-6",
            
"suffix"         =>     'px',
            
"group"         => 'Typography',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'About [Font Size]''memberprofile' ),
            
"param_name"     => "about_txt_size",
            
"edit_field_class" => "vc_col-sm-6",
            
"suffix"         =>     'px',
            
"group"         => 'Typography',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Profession [Font Size]''memberprofile' ),
            
"param_name"     => "pro_txt_size",
            
"suffix"         =>     'px',
            
"group"         => 'Typography',
        ),

        array(
            
"type"             => "vc_links",
            
"param_name"     => "caption_url",
            
"class"            =>    "ult_param_heading",
            
"description"     => __'<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Info Tab Settings</span>''ihover' ),
            
"group"         => 'Typography',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Info [Font Size]''memberprofile' ),
            
"param_name"     => "info_size",
            
"suffix"         =>     'px',
            
"group"         => 'Typography',
        ),
        array(
            
"type"             => "colorpicker",
            
"heading"         => __'Text Color''memberprofile' ),
            
"param_name"     => "info_clr",
            
"description"     => __'Set color of all info text''memberprofile' ),
            
"group"         => 'Typography',
        ),

        array(
            
"type"             => "vc_links",
            
"param_name"     => "caption_url",
            
"class"            =>    "ult_param_heading",
            
"description"     => __'<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Social Tab Settings</span>''ihover' ),
            
"group"         => 'Typography',
        ),

        array(
            
"type"             => "vc_number",
            
"heading"         => __'Social [Icon Size]''memberprofile' ),
            
"param_name"     => "social_size",
            
"value"         => "19",
            
"suffix"         =>     'px',
            
"group"         => 'Typography',
        ),


    ),
) );

x

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