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 / share-providers.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
share-providers.php
190 lines
1 <?php
2 defined('ABSPATH') || exit;
3 ?>
4
5 <div class="wslu-social-login-main-wrapper"> <?php
6
7 require_once(WSLU_LOGIN_PLUGIN . '/template/admin/share/tab-menu.php');
8
9 if($message_provider == 'show') { ?>
10 <div class="admin-page-framework-admin-notice-animation-container">
11 <div 0="XS_Social_Login_Settings" id="XS_Social_Login_Settings"
12 class="updated admin-page-framework-settings-notice-message admin-page-framework-settings-notice-container notice is-dismissible"
13 style="margin: 1em 0px; visibility: visible; opacity: 1;">
14 <p><?php echo esc_html__('Providers data have been updated.', 'wp-social'); ?></p>
15 <button type="button" class="notice-dismiss"><span
16 class="screen-reader-text"><?php echo esc_html__('Dismiss this notice.', 'wp-social'); ?></span>
17 </button>
18 </div>
19 </div>
20 <?php } ?>
21
22
23 <form action="<?php echo esc_url(admin_url() . 'admin.php?page=wslu_share_setting&tab=wslu_providers'); ?>"
24 name="xs_provider_submit_form" method="post" id="xs_provider_form">
25 <div class="xs-social-block-wraper">
26 <ul class="xs-social-block" data-action="sort_providers_share" data-sort_url="<?php echo esc_url(admin_url() . 'admin-ajax.php'); ?>">
27 <?php
28
29 foreach($core_provider as $k => $val):
30
31 $label = empty($saved_settings['social'][$k]['data']['label']) ? $val['label'] : $saved_settings['social'][$k]['data']['label'];
32 $plugin_active = in_array('wp-social-pro/wp-social-pro.php', apply_filters('active_plugins', get_option('active_plugins')));
33 $is_lineapp = ($k === 'lineapp'); // Check if current provider is LineApp
34
35 // Apply class 'lineapp-disabled' if wp-social-pro is deactivated and current provider is LineApp
36 $lineapp_provider_class = (!$plugin_active && $is_lineapp) ? 'lineapp-disabled' : '';
37 ?>
38
39 <li data-provider="<?php echo esc_attr($k)?>">
40 <div class="xs-single-social-block <?php echo esc_attr($k . ' ' . $lineapp_provider_class); ?>">
41 <div class="xs-block-header" data-type="modal-trigger" data-target="example-modal-<?php echo esc_attr($k); ?>" data-drag-label="<?php echo esc_attr__('Drag to Reorder', 'wp-social'); ?>">
42 <span class="drag-icon"></span>
43 <div class="xs-social-icon">
44 <span class="met-social met-social-<?php echo esc_attr($k); ?>"></span>
45 </div>
46 <h2 class="xs-social-icon-title"><?php echo esc_html($label); ?></h2>
47 </div>
48 <div class="xs-block-footer">
49 <div class="left-content">
50
51 <div class="wslu-single-popup-item wslu-inline">
52 <input
53 onchange="social_share_enable(this)"
54 data-key="<?php echo esc_attr($k); ?>"
55 class="social_switch_button"
56 type="checkbox"
57 id="<?php echo esc_attr($k); ?>_enable"
58 value="1"
59 <?php echo esc_attr(empty($enabled_providers[$k]['enable']) ? '' : 'checked'); ?> />
60
61 <label for="<?php echo esc_attr($k); ?>_enable"
62 class="social_switch_button_label"></label>
63 </div>
64
65 </div>
66 <div class="right-content">
67 <a
68 href="javascript:void(0)"
69 class="wslu-social-provider-btn xs-btn btn-special small"
70 data-type="modal-trigger"
71 data-target="example-modal-<?php echo esc_attr($k); ?>">
72 <?php echo esc_attr(empty($enabled_providers[$k]['enable']) ? esc_html__('Getting Started', 'wp-social') : esc_html__('Settings', 'wp-social')); ?>
73 </a>
74 <?php if($is_lineapp && !$plugin_active) : ?>
75 <div class="wslu-pro-only-container">
76 <a href="javascript:void(0)" onclick="window.open('https://wpmet.com/plugin/wp-social/pricing/', '_blank')" class="wslu-buy-now-btn2"><?php esc_html_e('Buy Pro', 'wp-social'); ?></a>
77 </div>
78 <?php endif; ?>
79 </div>
80 </div>
81 <?php if ($is_lineapp && !$plugin_active): ?>
82 <div class="lineapp-overlay">
83 <div class="xs-single-social-block <?php echo esc_attr($k . ' ' . $lineapp_provider_class); ?>">
84 </div>
85 </div>
86 <?php endif; ?>
87 </div>
88 </li>
89 <?php
90
91 endforeach; ?>
92
93 </ul>
94 </div>
95
96
97 <?php
98
99 foreach($core_provider AS $k => $val):
100
101 $label = empty($saved_settings['social'][$k]['data']['label']) ? $val['label'] : $saved_settings['social'][$k]['data']['label'];
102 $old_count = empty($saved_settings['social'][$k]['data']['old_count']) ? 0 : $saved_settings['social'][$k]['data']['old_count'];
103
104 $defaultText = isset($val['data']['text']) ? $val['data']['text'] : 'Share';
105
106 $belowText = isset($share_provider[$k]['data']['text']) ? $share_provider[$k]['data']['text'] : $defaultText;
107 $belowValue = isset($share_provider[$k]['data']['value']) ? $share_provider[$k]['data']['value'] : 0;
108
109 ?>
110
111 <div class="xs-modal-dialog" id="example-modal-<?php echo esc_attr($k); ?>">
112 <div class="xs-modal-content post__tab">
113 <div class="xs-modal-header clear-both">
114 <div class="tabHeader">
115 <ul class="tab__list clear-both"></ul>
116 <button type="button" class="xs-btn" data-modal-dismiss="modal"><span
117 class="wslu-icon met-social met-social-cross"></span></button>
118 </div>
119 </div>
120
121 <div class="xs-modal-body">
122 <div class="ekit--tab__post__details tabContent">
123 <h6 class="wslu-popup-provider-title"><?php echo esc_html__($label, 'wp-social'); ?></h6>
124
125 <div class="tabItem active">
126 <div class="setting-section">
127 <div class="wslu-popup-data">
128
129 <div class="wslu-single-popup-item">
130 <div class="setting-label-wraper">
131 <label class="setting-label wslu-sec-title"
132 for="<?php echo esc_attr($k); ?>_value">
133 <?php echo esc_html(sprintf(__('Default %s Share Count', 'wp-social'), $label)); ?>
134 </label>
135 </div>
136
137 <input name="xs_share[social][<?php echo esc_attr($k); ?>][data][value]" type="text"
138 id="xs_<?php echo esc_attr($k); ?>_value"
139 value="<?php echo esc_html($belowValue); ?>"
140 class="wslu-global-input">
141 </div>
142
143 <div class="wslu-single-popup-item">
144 <div class="setting-label-wraper">
145 <label class="setting-label wslu-sec-title"
146 for="<?php echo esc_attr($k); ?>_text"><?php echo esc_html_e('Text Below The Number', 'wp-social'); ?> </label>
147 </div>
148
149 <input name="xs_share[social][<?php echo esc_attr($k); ?>][data][text]" type="text"
150 id="xs_<?php echo esc_attr($k); ?>_text"
151 value="<?php echo esc_html($belowText); ?>"
152 class="wslu-global-input">
153 </div>
154
155 <div class="wslu-single-popup-item">
156 <div class="setting-label-wraper">
157 <label class="setting-label wslu-sec-title"
158 for="<?php echo esc_attr($k); ?>_label"><?php echo esc_html__('Label Name', 'wp-social'); ?> </label>
159 </div>
160
161 <input name="xs_share[social][<?php echo esc_attr($k); ?>][data][label]" type="text"
162 id="xs_<?php echo esc_attr($k); ?>_label"
163 value="<?php echo esc_html($label); ?>" class="wslu-global-input">
164 </div>
165
166 <?php
167
168 apply_filters('wp_social_pro/provider/share/after_user_data_form', $k, $old_count);
169
170 ?>
171
172 </div>
173 </div>
174 </div>
175 </div>
176 </div>
177
178 <div class="xs-modal-footer">
179 <button type="submit" name="share_settings_submit_form"
180 class="xs-btn btn-special"><?php echo esc_html__('Save Changes', 'wp-social'); ?></button>
181 </div>
182 </div>
183 </div>
184
185 <?php
186
187 endforeach; ?>
188 <div class="xs-backdrop"></div>
189 </form>
190 </div>