C:\xampp\htdocs\landing\wp-content\plugins\mega-addons-for-visual-composer\render\social_son.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
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

class 
WPBakeryShortCode_social_vc_son extends WPBakeryShortCode {

    protected function 
content$atts$content null ) {

        
extractshortcode_atts( array(
            
'style'     =>         'default',
            
'margin'    =>        '10',
            
'icon'        =>        '',
            
'text'        =>        'icontext',
            
'width'        =>        '40',
            
'height'    =>        '40',
            
'size'        =>        '20',
            
'radius'    =>        '',
            
'url'        =>        '#0',
            
'target'    =>        '',
            
'clr'        =>        '',
            
'bgclr'        =>        '',
            
'hoverclr'    =>        '',
            
'hoverbg'    =>        '',
        ), 
$atts ) );
        
$content wpb_js_remove_wpautop($contenttrue);
        
wp_enqueue_style'social-icons-css'plugins_url'../css/socialicons.css' __FILE__ ));
        
ob_start(); ?>
        <?php if ($style == 'default') { ?>
            <div id="mega-social-btn" style="margin: 0 <?php echo $margin?>px;">
                <a href="<?php echo $url?>" target="<?php echo $target?>" style="font-size: <?php echo $size?>px; border-radius: <?php echo $radius?>; color: <?php echo $clr?>; background: <?php echo $bgclr?>; width: <?php echo $width?>px; height: <?php echo $height?>px; line-height: <?php echo $height?>px;" data-onhovercolor="<?php echo $hoverclr?>" data-onhoverbg="<?php echo $hoverbg?>" data-onleavebg="<?php echo $bgclr?>" data-onleavecolor="<?php echo $clr?>">
                    <i class="<?php echo $icon?>" aria-hidden="true"></i>
                </a>
            </div>
        <?php }

        if (
$style == 'effect1') { ?>
            <!-- Mega Social Icons Style 1 -->
            <div class="mega-social-icons" style="margin: 0 <?php echo $margin?>px;">
                <a href="<?php echo $url ?>" target="<?php echo $target?>" class="icon-button" style="font-size: <?php echo $size?>px; width: <?php echo $width ?>px; height: <?php echo $width?>px; line-height: <?php echo $width?>px; border-radius: <?php echo $radius?>; background-color: <?php echo $bgclr?>;">
                    <i class="<?php echo $icon?>" aria-hidden="true" style="color: <?php echo $clr ?>; width: <?php echo $width ?>px; height: <?php echo $height?>px; line-height: <?php echo $height?>px;" data-onhovercolor="<?php echo $hoverclr?>" data-onleavecolor="<?php echo $clr?>"></i>
                    <span style="border-radius: <?php echo $radius?>; background-color: <?php echo $hoverbg?>; width: <?php echo $width ?>px; height: <?php echo $height?>px;"></span>
                </a>
            </div>
        <?php }

        if (
$style == 'effect2') { ?>
            <div class="mega-social-icons2" style="margin: 0 <?php echo $margin?>px;">
                <a href="<?php echo $url ?>" target="<?php echo $target?>" class="icoRss" style="font-size: <?php echo $size?>px; border-radius: <?php echo $radius?>; color: <?php echo $clr?>; background: <?php echo $bgclr?>; width: <?php echo $width?>px; height: <?php echo $height?>px; line-height: <?php echo $height?>px;" data-onhovercolor="<?php echo $hoverclr?>" data-onhoverbg="<?php echo $hoverbg?>" data-onleavebg="<?php echo $bgclr?>" data-onleavecolor="<?php echo $clr?>">
                    <i class="<?php echo $icon?>" aria-hidden="true"></i>
                </a>
            </div>
        <?php }

        if (
$style == 'effect3') { ?>
            <div id="mega-social-icons3" style="margin: 0 <?php echo $margin?>px;">
                <div class="social-buttons">
                    <a class="social-button" href="<?php echo $url ?>" target="<?php echo $target?>" style="font-size: <?php echo $size?>px; color: <?php echo $clr?>; background: <?php echo $bgclr?>; width: <?php echo $width ?>px; height: <?php echo $height?>px; line-height: <?php echo $height-4?>px;" data-onhovercolor="<?php echo $hoverclr?>" data-onleavecolor="<?php echo $clr?>">
                        <span style="background: <?php echo $hoverbg?>"></span>
                        <i class="<?php echo $icon?>"></i>
                    </a>
                </div>
            </div>
        <?php }

        if (
$style == 'effect4') { ?>
            <a class="social-button" href="<?php echo $url ?>" target="<?php echo $target?>">            
                <div id="dualbtn" style="border-radius: <?php echo $radius?>; width: <?php echo $width ?>; font-size: <?php echo $size ?>; background: <?php echo $bgclr?>; margin: 0 <?php echo $margin?>px;">
                    <div class="btnicon" style="height: <?php echo $height-12?>px; line-height: <?php echo $height-12?>px;">
                        <i class="<?php echo $icon?>" style="color: <?php echo $clr?>;"></i>
                    </div>
                    <div class="btntext" style="height: <?php echo $height-12?>px; line-height: <?php echo $height-12?>px;">
                        <span style="color: <?php echo $clr?>;"><?php echo $text?></span>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </a>    
        <?php }

        if (
$style == 'effect5') { ?>
            <div id="mega-social-btn" class="text-shadow" style="margin: 0 <?php echo $margin?>px;">
                <a href="<?php echo $url?>" target="<?php echo $target?>" style="font-size: <?php echo $size?>px; border-radius: <?php echo $radius?>; color: <?php echo $clr?>; background: <?php echo $bgclr?>; width: <?php echo $width?>px; height: <?php echo $height?>px; line-height: <?php echo $height?>px;" data-onhovercolor="<?php echo $hoverclr?>" data-onhoverbg="<?php echo $hoverbg?>" data-onleavebg="<?php echo $bgclr?>" data-onleavecolor="<?php echo $clr?>">
                    <i class="<?php echo $icon?>" aria-hidden="true"></i>
                </a>
            </div>
        <?php }

        return 
ob_get_clean();
    }
}


vc_map( array(
    
"base"             => "social_vc_son",
    
"name"             => __'Icon Setting''socialicon' ),
    
"as_child"         => array('only' => 'social_vc_father'),
    
"content_element" => true,
    
"category"         => __('Mega Addons'),
    
"description"     => __('choose style'''),
    
"icon" => plugin_dir_url__FILE__ ).'../icons/social.png',
    
'params' => array(
        array(
            
"type"             =>     "dropdown",
            
"heading"         =>     __'Social Effects''socialicon' ),
            
"param_name"     =>     "style",
            
"description"     =>     __'choose style <a href="https://addons.topdigitaltrends.net/advanced-social-icons/" target="_blank">See Demo</a>''socialicon' ),
            
"group"         => 'General',
            
"value"         =>     array(
                
"Defaul"             =>     "default",
                
"Glow"                 =>     "effect1",
                
"Rotate X"             =>     "effect2",
                
"Slide"             =>     "effect3",
                
"Icon & Text"         =>     "effect4",
                
"Shadow"             =>     "effect5",
            )
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Margin''socialicon' ),
            
"param_name"     =>     "margin",
            
"description"     =>     __'space between two social icons eg 10''socialicon' ),
            
"group"         => 'General',
            
"suffix"         => 'px',
            
'value'         => __"10"'socialicon' ),
        ),
        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Width''socialicon' ),
            
"param_name"     =>     "width",
            
"description"     =>     __'social icon width in pixel''socialicon' ),
            
"group"         => 'General',
            
"suffix"         => 'px',
            
'value'         => __"40"'socialicon' ),
        ),

        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Height''socialicon' ),
            
"param_name"     =>     "height",
            
"description"     =>     __'social icon height in pixel''socialicon' ),
            
"group"         => 'General',
            
"suffix"         => 'px',
            
'value'         => __"40"'socialicon' ),
        ),

        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Social URL''socialicon' ),
            
"param_name"     =>     "url",
            
"description"     =>     __'write social url''socialicon' ),
            
"group"         => 'General',
            
'value'         => __"#0"'socialicon' ),
        ),

        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"             =>     "iconpicker",
            
"heading"         =>     __'Social Icon''socialicon' ),
            
"param_name"     =>     "icon",
            
"description"     =>     __'choose social icon''socialicon' ),
            
"group"         => 'Font Icon',
        ),

        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Icon Name''socialicon' ),
            
"param_name"     =>     "text",
            
"description"     =>     __'It will show with icon''socialicon' ),
            
"dependency" => array('element' => "style"'value' => 'effect4'),
            
"group"         => 'Font Icon',
        ),

        array(
            
"type"             =>     "vc_number",
            
"heading"         =>     __'Font size''socialicon' ),
            
"param_name"     =>     "size",
            
"description"     =>     __'icon font size in pixel''socialicon' ),
            
"group"         => 'Font Icon',
            
"suffix"         => 'px',
            
'value'         => __"20"'socialicon' ),
        ),

        array(
            
"type"             =>     "textfield",
            
"heading"         =>     __'Border Radius''socialicon' ),
            
"param_name"     =>     "radius",
            
"description"     =>     __'border radius from edges eg, 5px or 50%''socialicon' ),
            
"group"         => 'Font Icon',
            
'value'         => __"0px"'socialicon' ),
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Icon Color''socialicon' ),
            
"param_name"     =>     "clr",
            
"group"         => 'Color',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Background Color''socialicon' ),
            
"param_name"     =>     "bgclr",
            
"group"         => 'Color',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Hover Icon Color''socialicon' ),
            
"param_name"     =>     "hoverclr",
            
"group"         => 'Color',
        ),

        array(
            
"type"             =>     "colorpicker",
            
"heading"         =>     __'Hover Background Color''socialicon' ),
            
"param_name"     =>     "hoverbg",
            
"group"         => 'Color',
        ),
    ),
) );
x

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