PluginProbe ʕ •ᴥ•ʔ
Wp Social Login and Register Social Counter / 3.2.1
Wp Social Login and Register Social Counter v3.2.1
3.2.1 trunk 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.10 1.3.11 1.3.2 1.3.3 1.3.4 1.3.6 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.4 1.4.5 1.4.6 1.4.8 1.4.9 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.8.0 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.8 2.2.9 3.0.0 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0
wp-social / template / admin / share / style-setting.php
wp-social / template / admin / share Last commit date
share-providers.php 2 weeks ago share-setting.php 3 years ago style-setting.php 2 weeks ago tab-menu.php 3 years ago
style-setting.php
401 lines
1 <?php
2 defined( 'ABSPATH') || exit;
3
4 $share_layout_alignment = empty($return_data['layout']) ?
5 \WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_VERTICAL :
6 \WP_Social\Helper\Helper::sanitize_white_list(
7 $return_data['layout'],
8 \WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_VERTICAL,
9 [\WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_VERTICAL, \WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_HORIZONTAL]
10 );
11
12 ?>
13
14 <div class="wslu-social-login-main-wrapper">
15 <?php
16 require_once(WSLU_LOGIN_PLUGIN . '/template/admin/share/tab-menu.php');
17 if ($message_provider == 'show') { ?>
18 <div class="admin-page-framework-admin-notice-animation-container">
19 <div 0="XS_Social_Login_Settings" id="XS_Social_Login_Settings" class="updated admin-page-framework-settings-notice-message admin-page-framework-settings-notice-container notice is-dismissible" style="margin: 1em 0px; visibility: visible; opacity: 1;">
20 <p><?php echo esc_html__('Styles data have been updated.', 'wp-social'); ?></p>
21 <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo esc_html__('Dismiss this notice.', 'wp-social'); ?></span></button>
22 </div>
23 </div>
24 <?php } ?>
25
26 <?php if( did_action('wslu_social_pro/plugin_loaded') ): ?>
27 <template id="hover_preview_template">
28 <div class="wslu-single-item__hover-preview">
29 <img src="<?php echo esc_url(WSLU_PRO_LOGIN_PLUGIN_URL . 'assets/images/preview/'); ?>"/>
30 </div>
31 </template>
32 <?php endif; ?>
33
34
35
36 <form class="wslu-share-styles-form" data-action="<?php echo esc_url(admin_url() . 'admin.php?page=wslu_share_setting&tab=wslu_style_setting'); ?>" action="<?php echo esc_url(admin_url() . 'admin.php?page=wslu_share_setting&tab=wslu_style_setting'); ?>" name="xs_style_submit_form" method="post" id="xs_style_form">
37 <div class="xs-social-block-wraper">
38 <div class="xs-global-section">
39
40 <ul class="wslu-display-type-container">
41 <li>
42 <a href="#primary_content" data-id="primary_content">
43 <?php echo esc_html__('Primary Content', 'wp-social'); ?>
44 <span><?php esc_html_e('Choose where to show share buttons.', 'wp-social'); ?></span>
45 </a>
46 </li>
47 <li>
48 <a href="#fixed_display" data-id="fixed_display">
49 <?php echo esc_html__('Fixed Display ', 'wp-social'); ?>
50 <span><?php esc_html_e('Choose where to show share buttons.', 'wp-social'); ?></span>
51 </a>
52 </li>
53 </ul>
54
55
56
57 <div class="wslu-display-content">
58 <div class="wslu-single-item" id="wslu-primary_content">
59
60
61 <!-- show count -->
62 <div class="wslu-single-item">
63
64 <div class="wslu-left-label">
65 <label class="wslu-sec-title" for=""><?php echo esc_html__('Show total count', 'wp-social'); ?></label>
66 </div>
67
68 <div class="wslu-right-content horizontial">
69
70 <label class="social_radio_button_label xs_label_wp_login">
71 <input class="social_radio_button wslu-global-radio-input" type="radio" name="xs_style[main_content][show_social_count_share]" value="1" <?php echo esc_attr((!empty($return_data['main_content']['show_social_count_share'])) ? 'checked' : ''); ?>>
72
73 <?php echo esc_html__('Yes', 'wp-social'); ?>
74 </label>
75
76 <label class="social_radio_button_label xs_label_wp_login">
77 <input class="social_radio_button wslu-global-radio-input" type="radio" name="xs_style[main_content][show_social_count_share]" value="0" <?php echo esc_attr((empty($return_data['main_content']['show_social_count_share'])) ? 'checked' : ''); ?>>
78
79 <?php echo esc_html__('No', 'wp-social'); ?>
80 </label>
81 </div>
82 </div>
83
84 </div> <!-- ./ End Single Item -->
85
86 <!--------------------------
87 fixed position styles
88 --------------------------->
89
90 <div class="wslu-single-item" id="wslu-fixed_display">
91 <div class="primary-content-setting">
92
93 <h2 class="primary-content-setting__title" for="">
94 <?php echo esc_html__('Fixed Display', 'wp-social'); ?>
95 </h2>
96
97 <div class="primary-content-setting__content mb-5">
98
99 <label for="_login_button_style__login_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
100
101 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__login_content" name="xs_style[login_button_content]" value="no_content" <?php echo esc_attr((empty($return_data['login_button_content']) || $return_data['login_button_content'] == 'no_content') ? 'checked' : ''); ?>>
102 <span class="primary-content-setting__content__item">
103 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/share-primary-content/disable.png'); ?>"/>
104 <span class="primary-content-setting__content__item--name">
105 <?php echo esc_html__('Disable ', 'wp-social'); ?>
106 </span>
107 </span>
108 </label>
109
110
111 <label for="_login_button_style__left_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
112 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__left_content" name="xs_style[login_button_content]" value="left_content" <?php echo esc_attr((isset($return_data['login_button_content']) && $return_data['login_button_content'] == 'left_content') ? 'checked' : ''); ?>>
113 <span class="primary-content-setting__content__item">
114 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/fixed-display-preview/left_floating.jpg'); ?>"/>
115 <span class="primary-content-setting__content__item--name">
116 <?php echo esc_html__('Left Floating ', 'wp-social'); ?>
117 </span>
118 </span>
119
120 </label>
121
122
123 <label for="_login_button_style__right_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
124 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__right_content" name="xs_style[login_button_content]" value="right_content" <?php echo esc_attr((isset($return_data['login_button_content']) && $return_data['login_button_content'] == 'right_content') ? 'checked' : ''); ?>>
125 <span class="primary-content-setting__content__item">
126 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/fixed-display-preview/right_floating.jpg'); ?>"/>
127 <span class="primary-content-setting__content__item--name">
128 <?php echo esc_html__('Right Floating ', 'wp-social'); ?>
129 </span>
130 </span>
131
132 </label>
133
134
135 <label for="_login_button_style__top_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
136 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__top_content" name="xs_style[login_button_content]" value="top_content" <?php echo esc_attr((isset($return_data['login_button_content']) && $return_data['login_button_content'] == 'top_content') ? 'checked' : ''); ?>>
137 <span class="primary-content-setting__content__item">
138 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/fixed-display-preview/top_inline.jpg'); ?>"/>
139 <span class="primary-content-setting__content__item--name">
140 <?php echo esc_html__('Top Inline ', 'wp-social'); ?>
141 </span>
142 </span>
143
144 </label>
145
146
147 <label for="_login_button_style__bottom_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
148 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__bottom_content" name="xs_style[login_button_content]" value="bottom_content" <?php echo esc_attr((isset($return_data['login_button_content']) && $return_data['login_button_content'] == 'bottom_content') ? 'checked' : ''); ?>>
149 <span class="primary-content-setting__content__item">
150 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/fixed-display-preview/bottom_inline.jpg'); ?>"/>
151 <span class="primary-content-setting__content__item--name">
152 <?php echo esc_html__('Bottom Inline ', 'wp-social'); ?>
153 </span>
154 </span>
155
156 </label>
157
158
159
160
161
162 </div>
163
164 <!-- Show count -->
165 <div class="wslu-single-item">
166
167 <div class="wslu-left-label">
168 <label class="wslu-sec-title" for=""><?php echo esc_html__('Show total count', 'wp-social'); ?></label>
169 </div>
170
171 <div class="wslu-right-content horizontial">
172
173 <label class="social_radio_button_label xs_label_wp_login">
174 <input class="social_radio_button wslu-global-radio-input" type="radio" name="xs_style[fixed_display][show_social_count_share]" value="1" <?php echo esc_attr((!empty($return_data['fixed_display']['show_social_count_share'])) ? 'checked' : ''); ?>>
175
176 <?php echo esc_html__('Yes', 'wp-social'); ?>
177 </label>
178
179 <label class="social_radio_button_label xs_label_wp_login">
180 <input class="social_radio_button wslu-global-radio-input" type="radio" name="xs_style[fixed_display][show_social_count_share]" value="0" <?php echo esc_attr((empty($return_data['fixed_display']['show_social_count_share'])) ? 'checked' : ''); ?>>
181
182 <?php echo esc_html__('No', 'wp-social'); ?>
183 </label>
184 </div>
185 </div>
186
187 </div>
188
189
190 </div> <!-- ./ End Single Item -->
191
192
193 </div>
194
195 <!-- Layout -->
196 <div class="wslu-single-item wslu-share-layout">
197 <div class="wslu-left-label">
198 <label class="wslu-sec-title" for=""><?php echo esc_html__('Layout', 'wp-social'); ?></label>
199 </div>
200
201 <div class="wslu-right-content horizontial">
202 <label class="social_radio_button_label xs_label_wp_login">
203 <input
204 class="social_radio_button wslu-layout-btn wslu-global-radio-input"
205 type="radio"
206 name="xs_style[layout]"
207 <?php checked($share_layout_alignment, \WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_HORIZONTAL) ?>
208 value="<?php echo esc_attr(\WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_HORIZONTAL) ?>" />
209
210 <?php echo esc_html__('Horizontal', 'wp-social'); ?>
211 </label>
212
213 <label class="social_radio_button_label wslu-layout-btn xs_label_wp_login">
214 <input
215 class="social_radio_button wslu-global-radio-input"
216 type="radio"
217 name="xs_style[layout]"
218 <?php checked($share_layout_alignment, \WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_VERTICAL) ?>
219 value="<?php echo esc_attr(\WP_Social\Keys::KEY_SHARE_LAYOUT_ALIGNMENT_VERTICAL) ?>" >
220
221 <?php echo esc_html__('Vertical', 'wp-social'); ?>
222 </label>
223 </div>
224 </div> <!-- ./ End Single Item -->
225
226 <!--------------------------
227 Primary Content Settings
228 --------------------------->
229
230 <div class="wslu-single-item">
231 <div class="primary-content-setting">
232
233 <h2 class="primary-content-setting__title" for="">
234 <?php echo esc_html__('Primary Content', 'wp-social'); ?>
235 </h2>
236
237 <div class="primary-content-setting__content">
238
239 <label for="_login_button_style__login_content1" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
240 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__login_content1" name="xs_style[login_content]" value="no_content" <?php
241 echo esc_attr(isset($return_data['login_content']) && $return_data['login_content'] == 'no_content' ? 'checked' : ''); ?>>
242 <span class="primary-content-setting__content__item">
243 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/share-primary-content/disable.png'); ?>"/>
244 <span class="primary-content-setting__content__item--name">
245 <?php echo esc_html__('Disable ', 'wp-social'); ?>
246 </span>
247 </span>
248
249 </label>
250
251 <label for="_login_button_style__after_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
252 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__after_content" name="xs_style[login_content]" value="after_content" <?php echo esc_attr(empty($return_data['login_content']) || $return_data['login_content'] == 'after_content' ? 'checked' : ''); ?>>
253
254 <span class="primary-content-setting__content__item">
255 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/share-primary-content/after_content.png'); ?>"/>
256 <span class="primary-content-setting__content__item--name">
257 <?php echo esc_html__('After Content ', 'wp-social'); ?>
258 </span>
259 </span>
260
261 </label>
262
263
264 <label for="_login_button_style__before_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
265 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__before_content" name="xs_style[login_content]" value="before_content" <?php echo esc_attr((isset($return_data['login_content']) && $return_data['login_content'] == 'before_content') ? 'checked' : ''); ?>>
266
267 <span class="primary-content-setting__content__item">
268 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/share-primary-content/before_content.png'); ?>"/>
269 <span class="primary-content-setting__content__item--name">
270 <?php echo esc_html__('Before Content ', 'wp-social'); ?>
271 </span>
272 </span>
273
274 </label>
275
276 <label for="_login_button_style__both_content" class="social_radio_button_label xs_label_wp_login primary-content-setting__item">
277 <input class="social_radio_button wslu-global-radio-input" type="radio" id="_login_button_style__both_content" name="xs_style[login_content]" value="both_content" <?php echo esc_attr((isset($return_data['login_content']) && $return_data['login_content'] == 'both_content') ? 'checked' : ''); ?>>
278
279 <span class="primary-content-setting__content__item">
280 <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/share-primary-content/both_content.png'); ?>"/>
281 <span class="primary-content-setting__content__item--name">
282 <?php echo esc_html__('Both', 'wp-social'); ?>
283 </span>
284 </span>
285
286 </label>
287
288
289
290 </div>
291
292 </div>
293
294 </div> <!-- ./ End primary content setting -->
295
296 <!--------------------------------
297 Social Share hover aniamtion
298 -------------------------------->
299 <?php if (isset($share_hover_effects)) : ?>
300 <div class="wslu-single-item">
301 <div class="wlsu-hover-effect">
302
303 <h2 class="wlsu-hover-effect__title">
304 <?php echo esc_html__('Select Hover Effects', 'wp-social'); ?>
305 </h2>
306 <div class="wlsu-hover-effect__content">
307 <?php foreach ($share_hover_effects as $key => $value) : ?>
308 <div class="wlsu-hover-effect__item">
309 <input
310 <?php echo esc_attr((isset($value['exclude']))) ? 'data-exclude="' . esc_attr(json_encode($value['exclude'])) . '"' : '' ?>
311 type="radio"
312 class="wlsu-hover-effect-select"
313 name="xs_style[hover_effect]"
314 id="<?php echo esc_attr($key); ?>"
315 value="<?php echo esc_attr($key); ?>"
316 <?php echo esc_attr(($mainEffect == $key) ? 'checked' : ''); ?>/>
317
318 <label for="<?php echo esc_attr($key); ?>" >
319 <img src="<?php echo esc_url(WSLU_PRO_LOGIN_PLUGIN_URL . 'assets/images/share-hover-preview/' . $key . '.png'); ?>"/>
320 <span> <?php echo esc_html($value['name']); ?> </span>
321 </label>
322 </div>
323
324 <?php endforeach; ?>
325 </div>
326
327 </div>
328
329 </div>
330 <?php endif; ?><!-- ./ End social share hover animation -->
331
332 <!--------------------------------
333 Social media Styles
334 -------------------------------->
335 <h2 class="wlsu-hover-effect__title wlsu-style-data">
336 <?php echo esc_html__('Select Share Style', 'wp-social'); ?>
337 </h2>
338 <div class="wslu-social-style-data ">
339
340 <?php
341 foreach ($styleArr as $k => $v) : ?>
342 <div class="wslu-single-social-style-item <?php echo esc_attr( ( (!did_action('wslu_social_pro/plugin_loaded')) && ($v['package'] == 'pro') ) ? 'wslu-style-pro': 'wslu-style-free' ); ?>">
343
344 <label class="social_radio_button_label xs_label_wp_login">
345
346 <div class="wslu-style-img xs-login-<?php echo esc_attr($k); ?> <?php echo esc_attr((isset($return_data['login_button_style']) && $return_data['login_button_style'] == $k) ? 'style-active ' : ''); ?>">
347 <img class="wslu-style-img-h" src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/screenshort/share/' . $v['design'] . '.png'); ?>" alt="<?php echo esc_attr($k); ?>">
348 <img class="wslu-style-img-v" src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL . 'assets/images/screenshort/share/' . $v['design'].'-v' . '.png'); ?>" alt="<?php echo esc_attr($k); ?>">
349
350 <?php if(!in_array('wp-social-pro/wp-social-pro.php', apply_filters('active_plugins', get_option('active_plugins')))) : ?>
351 <a href="https://wpmet.com/plugin/wp-social/pricing/" class="wslu-buy-now-btn"><?php esc_html_e('Buy Now', 'wp-social'); ?></a>
352 <?php endif; ?>
353 </div>
354
355 <input class="social_radio_button wslu-global-radio-input share-input-name" type="radio" id="_login_button_style__<?php echo esc_attr($k); ?>" name="xs_style[login_button_style][main]" value="<?php echo esc_attr($k); ?>" <?php echo esc_attr( ( (!did_action('wslu_social_pro/plugin_loaded')) && ($v['package'] == 'pro') ) ? 'disabled="disabled"': '' ); ?>>
356 <?php
357 echo esc_html__($v['name'], 'wp-social');
358 echo wp_kses(((!did_action('wslu_social_pro/plugin_loaded')) && ($v['package'] == 'pro') ? '<span class="wslu-go-pro-text">(' . esc_html__('Pro Only', 'wp-social') . ')</span>' : ''), \WP_Social\Helper\Helper::get_kses_array());
359 ?>
360
361 <?php
362 $effect = isset($v['effect']) ? $v['effect'] : [];
363 if (!empty($effect)) {
364 foreach ($effect as $kk => $vv) :
365 ?>
366 <label for="wslu-effect-<?php echo esc_attr($k); ?>-<?php echo esc_attr($kk); ?>">
367 <input class="social_radio_button wslu-global-radio-input" type="radio" id="wslu-effect-<?php echo esc_attr($k); ?>-<?php esc_attr($kk); ?>" value="<?php echo esc_attr($kk); ?>" <?php echo esc_attr((isset($return_data['login_button_style']['effect']) && $return_data['login_button_style']['effect'] == $kk) ? 'checked' : ''); ?>>
368 <?php echo esc_html__($vv['name'], 'wp-social') ?>
369 </label>
370 <?php
371 endforeach;
372 }
373 ?>
374 </label>
375
376 </div>
377 <?php
378 endforeach; ?>
379 </div>
380
381 <div class="wslu-social-style-hidden-inputs">
382 <label>
383 <input type="text" class="wslu-main-content-input" name="xs_style[main_content][style]" value="<?php echo esc_attr($return_data['main_content']['style']); ?>">
384 <?php esc_html_e('Main Content', 'wp-social'); ?>
385 </label>
386 <label>
387 <input type="text" class="wslu-fixed-display-input" name="xs_style[fixed_display][style]" value="<?php echo esc_attr($return_data['fixed_display']['style']); ?>">
388 <?php esc_html_e('Fixed Display', 'wp-social'); ?>
389 </label>
390 </div>
391
392 <div class="wslu-right-content wslu-right-content--share">
393 <?php wp_nonce_field( 'style_setting_submit_form_share_nonce', 'nonce' ); ?>
394 <button type="submit" name="style_setting_submit_form" class="xs-btn btn-special small"><?php echo esc_html__('Save Changes', 'wp-social'); ?></button>
395 </div>
396
397 </div>
398 </div>
399 <div class="xs-backdrop"></div>
400 </form>
401 </div>