C:\xampp\htdocs\landing\wp-content\plugins\Ultimate_VC_Addons\admin\script-styles.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
<?php
    
if(isset($_GET['author']))
        
$author true;
    else
        
$author false;
    
$author_extend '';
    if(
$author)
        
$author_extend '&author';
?>

<div class="wrap about-wrap bsf-page-wrapper ultimate-smooth-scroll bend">
  <div class="wrap-container">
    <div class="bend-heading-section ultimate-header">
      <h1><?php _e"Ultimate Addons Settings""ultimate_vc" ); ?></h1>
      <h3><?php _e"If optimized option is set to ON, a combined file for all modules in our plugin will be loaded on your website. Use this option if you use Ultimate Addons significantly on your website.""ultimate_vc" ); ?></h3>
      <div class="bend-head-logo">
        <div class="bend-product-ver">
          <?php _e"Version""ultimate_vc" ); echo ' '.ULTIMATE_VERSION?>
        </div>
      </div>
    </div><!-- bend-heading section -->

    <div id="msg"></div>
    <div id="bsf-message"></div>

    <div class="bend-content-wrap">
      <div class="smile-settings-wrapper">
            <h2 class="nav-tab-wrapper">
                <a href="<?php echo admin_url('admin.php?page=about-ultimate'.$author_extend); ?>" data-tab="about-ultimate" class="nav-tab"> <?php echo __('About','ultimate_vc'); ?> </a>
                <a href="<?php echo admin_url('admin.php?page=ultimate-dashboard'.$author_extend); ?>" data-tab="ultimate-modules" class="nav-tab"> <?php echo __('Elements','ultimate_vc'); ?> </a>
                <a href="<?php echo admin_url('admin.php?page=ultimate-smoothscroll'.$author_extend); ?>" data-tab="css-settings" class="nav-tab"> <?php echo __('Smooth Scroll','ultimate_vc'); ?> </a>
                <a href="<?php echo admin_url('admin.php?page=ultimate-scripts-and-styles'.$author_extend); ?>" data-tab="css-settings" class="nav-tab nav-tab-active"> <?php echo __('Scripts and Styles','ultimate_vc'); ?> </a>
                <?php if($author) : ?>
                    <a href="<?php echo admin_url('admin.php?page=ultimate-debug-settings'); ?>" data-tab="ultimate-debug" class="nav-tab"> Debug </a>
                <?php endif; ?>
            </h2>
      </div><!-- smile-settings-wrapper -->

      </hr>

    <div class="container ultimate-content">
        <div class="col-md-12">
            <?php

            $ultimate_css 
get_option('ultimate_css');
            
$ultimate_js get_option('ultimate_js');

            if(
$ultimate_css == "enable"){
                
$ultimate_css 'checked="checked"';
            } else {
                
$ultimate_css '';
            }

            if(
$ultimate_js == "enable"){
                
$ultimate_js 'checked="checked"';
            } else {
                
$ultimate_js '';
            }

            
?>
            <div id="css-settings" class="ult-tabs active-tab">
                <form method="post" id="css_settings">
                    <input type="hidden" name="security" value="<?php echo wp_create_nonce'css-settings-setting' ); ?>" />
                    <input type="hidden" name="action" value="update_css_options" />
                    <table class="form-table">
                        <tbody>
                            <tr valign="top">
                                <th scope="row"><?php echo __("Combined CSS","ultimate_vc"); ?></th>
                                <td> <div class="onoffswitch">
                                <input type="checkbox" <?php echo $ultimate_css?> id="ultimate_css" value="enable" class="onoffswitch-checkbox" name="ultimate_css" />
                                     <label class="onoffswitch-label" for="ultimate_css">
                                        <div class="onoffswitch-inner">
                                            <div class="onoffswitch-active">
                                                <div class="onoffswitch-switch"><?php echo __('ON','ultimate_vc'); ?></div>
                                            </div>
                                            <div class="onoffswitch-inactive">
                                                <div class="onoffswitch-switch"><?php echo __('OFF','ultimate_vc'); ?></div>
                                            </div>
                                        </div>
                                    </label>
                                    </div>
                                </td>
                            </tr>
                            <tr valign="top">
                                <th scope="row"><?php echo __("Combined JS","ultimate_vc"); ?></th>
                                <td> <div class="onoffswitch">
                                <input type="checkbox" <?php echo $ultimate_js?> id="ultimate_js" value="enable" class="onoffswitch-checkbox" name="ultimate_js" />
                                     <label class="onoffswitch-label" for="ultimate_js">
                                        <div class="onoffswitch-inner">
                                            <div class="onoffswitch-active">
                                                <div class="onoffswitch-switch"><?php echo __('ON','ultimate_vc'); ?></div>
                                            </div>
                                            <div class="onoffswitch-inactive">
                                                <div class="onoffswitch-switch"><?php echo __('OFF','ultimate_vc'); ?></div>
                                            </div>
                                        </div>
                                    </label>
                                     </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
                <p class="submit"><input type="submit" name="submit" id="submit-css-settings" class="button button-primary" value="<?php echo __("Save Changes","ultimate_vc");?>"></p>
            </div>
        </div> <!--col-md-12 -->
      </div> <!-- ultimate-content -->
    </div> <!-- bend-content-wrap -->
  </div> <!-- .wrap-container -->
</div> <!-- .bend -->

<script type="text/javascript">

var submit_btn = jQuery("#submit-css-settings");
submit_btn.bind('click',function(e){
    e.preventDefault();
    var data = jQuery("#css_settings").serialize();
    jQuery.ajax({
        url: ajaxurl,
        data: data,
        dataType: 'html',
        type: 'post',
        success: function(result){
            console.log(result);
            result = jQuery.trim(result);
            if(result == "success"){
                jQuery("#msg").html('<div class="updated"><p><?php echo __('Settings updated successfully!','ultimate_vc'); ?></p></div>');
            } else {
                jQuery("#msg").html('<div class="error"><p><?php echo __('No settings were updated.','ultimate_vc'); ?></p></div>');
            }
        }
    });
});

jQuery(document).ready(function(e) {

    jQuery('.onoffswitch').click(function(){
        $switch = jQuery(this);
        setTimeout(function(){
            if($switch.find('.onoffswitch-checkbox').is(':checked'))
                $switch.find('.onoffswitch-checkbox').attr('checked',false);
            else
                $switch.find('.onoffswitch-checkbox').attr('checked',true);
            $switch.trigger('onUltimateSwitchClick');
        },300);

    });

});
</script>
<style type="text/css">
/*On Off Checkbox Switch*/
.onoffswitch {
    position: relative;
    width: 95px;
    display: inline-block;
    float: left;
    margin-right: 15px;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none !important;
}
.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 0px solid #999999;
    border-radius: 0px;
}
.onoffswitch-inner {
    width: 200%;
    margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s;
    -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s;
    transition: margin 0.3s ease-in 0s;
}
.rtl .onoffswitch-inner{
    margin: 0;
}
.rtl .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-right: -100%;
    margin-left:auto;
}
.onoffswitch-inner > div {
    float: left;
    position: relative;
    width: 50%;
    height: 24px;
    padding: 0;
    line-height: 24px;
    font-size: 12px;
    color: white;
    font-weight: bold;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.onoffswitch-inner .onoffswitch-active {
    padding-left: 15px;
    background-color: #CCCCCC;
    color: #FFFFFF;
}
.onoffswitch-inner .onoffswitch-inactive {
    padding-right: 15px;
    background-color: #CCCCCC;
    color: #FFFFFF;
    text-align: right;
}
.onoffswitch-switch {
    /*width: 50px;*/
    width:35px;
    margin: 0px;
    text-align: center;
    border: 0px solid #999999;
    border-radius: 0px;
    position: absolute;
    top: 0;
    bottom: 0;
}
.onoffswitch-active .onoffswitch-switch {
    background: #3F9CC7;
    left: 0;
}
.onoffswitch-inactive .onoffswitch-switch {
    background: #7D7D7D;
    right: 0;
}
.onoffswitch-active .onoffswitch-switch:before {
    content: " ";
    position: absolute;
    top: 0;
    /*left: 50px;*/
    left:35px;
    border-style: solid;
    border-color: #3F9CC7 transparent transparent #3F9CC7;
    /*border-width: 12px 8px;*/
    border-width: 15px;
}
.onoffswitch-inactive .onoffswitch-switch:before {
    content: " ";
    position: absolute;
    top: 0;
    /*right: 50px;*/
    right:35px;
    border-style: solid;
    border-color: transparent #7D7D7D #7D7D7D transparent;
    /*border-width: 12px 8px;*/
    border-width: 50px;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
#ultimate-settings, #ultimate-modules, .ult-tabs{ display:none; }
#ultimate-settings.active-tab, #ultimate-modules.active-tab, .ult-tabs.active-tab{ display:block; }
.ult-badge {
    padding-bottom: 10px;
    height: 170px;
    width: 150px;
    position: absolute;
    border-radius: 3px;
    top: 0;
    right: 0;
}
div#msg > .updated, div#msg > .error { display:block !important;}
div#msg {
    position: absolute;
    left: 20px;
    top: 160px;
    max-width: 30%;
}
.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display:none
}
.onoffswitch-switch {
    height: initial !important;
    color: white !important;
}
</style>
x

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