PluginProbe ʕ •ᴥ•ʔ
Wp Social Login and Register Social Counter / 2.2.4
Wp Social Login and Register Social Counter v2.2.4
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 3 years ago share-setting.php 3 years ago style-setting.php 3 years ago tab-menu.php 3 years ago
share-providers.php
175 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 ?>
33
34 <li data-provider="<?php echo esc_attr($k)?>">
35 <div class="xs-single-social-block <?php echo esc_attr($k); ?>">
36 <div class="xs-block-header" data-type="modal-trigger"
37 data-target="example-modal-<?php echo esc_attr($k); ?>">
38 <span class="drag-icon"></span>
39 <div class="xs-social-icon">
40 <span class="met-social met-social-<?php echo esc_attr($k); ?>"></span>
41 </div>
42 <h2 class="xs-social-icon-title"><?php echo esc_html($label); ?></h2>
43 </div>
44 <div class="xs-block-footer">
45 <div class="left-content">
46
47 <div class="wslu-single-popup-item wslu-inline">
48 <input
49 onchange="social_share_enable(this)"
50 data-key="<?php echo esc_attr($k); ?>"
51 class="social_switch_button"
52 type="checkbox"
53 id="<?php echo esc_attr($k); ?>_enable"
54 value="1"
55 <?php echo esc_attr(empty($enabled_providers[$k]['enable']) ? '' : 'checked'); ?> />
56
57 <label for="<?php echo esc_attr($k); ?>_enable"
58 class="social_switch_button_label"></label>
59 </div>
60
61 </div>
62 <div class="right-content">
63 <a
64 href="javascript:void()"
65 class="wslu-social-provider-btn xs-btn btn-special small"
66 data-type="modal-trigger"
67 data-target="example-modal-<?php echo esc_attr($k); ?>">
68 <?php echo esc_attr(empty($enabled_providers[$k]['enable']) ? esc_html__('Getting Started', 'wp-social') : esc_html__('Settings', 'wp-social')); ?>
69 </a>
70 </div>
71 </div>
72 </div>
73 </li>
74 <?php
75
76 endforeach; ?>
77
78 </ul>
79 </div>
80
81
82 <?php
83
84 foreach($core_provider AS $k => $val):
85
86 $label = empty($saved_settings['social'][$k]['data']['label']) ? $val['label'] : $saved_settings['social'][$k]['data']['label'];
87 $old_count = empty($saved_settings['social'][$k]['data']['old_count']) ? 0 : $saved_settings['social'][$k]['data']['old_count'];
88
89 $defaultText = isset($val['data']['text']) ? $val['data']['text'] : 'Share';
90
91 $belowText = isset($share_provider[$k]['data']['text']) ? $share_provider[$k]['data']['text'] : $defaultText;
92 $belowValue = isset($share_provider[$k]['data']['value']) ? $share_provider[$k]['data']['value'] : 0;
93
94 ?>
95
96 <div class="xs-modal-dialog" id="example-modal-<?php echo esc_attr($k); ?>">
97 <div class="xs-modal-content post__tab">
98 <div class="xs-modal-header clear-both">
99 <div class="tabHeader">
100 <ul class="tab__list clear-both"></ul>
101 <button type="button" class="xs-btn" data-modal-dismiss="modal"><span
102 class="wslu-icon met-social met-social-cross"></span></button>
103 </div>
104 </div>
105
106 <div class="xs-modal-body">
107 <div class="ekit--tab__post__details tabContent">
108 <h6 class="wslu-popup-provider-title"><?php echo esc_html__($label, 'wp-social'); ?></h6>
109
110 <div class="tabItem active">
111 <div class="setting-section">
112 <div class="wslu-popup-data">
113
114 <div class="wslu-single-popup-item">
115 <div class="setting-label-wraper">
116 <label class="setting-label wslu-sec-title"
117 for="<?php echo esc_attr($k); ?>_value">
118 <?php echo esc_attr('Default ' . $label . ' Share Count', 'wp-social'); ?>
119 </label>
120 </div>
121
122 <input name="xs_share[social][<?php echo esc_attr($k); ?>][data][value]" type="text"
123 id="xs_<?php echo esc_attr($k); ?>_value"
124 value="<?php echo esc_html($belowValue); ?>"
125 class="wslu-global-input">
126 </div>
127
128 <div class="wslu-single-popup-item">
129 <div class="setting-label-wraper">
130 <label class="setting-label wslu-sec-title"
131 for="<?php echo esc_attr($k); ?>_text"><?php echo esc_html_e('Text Below The Number', 'wp-social'); ?> </label>
132 </div>
133
134 <input name="xs_share[social][<?php echo esc_attr($k); ?>][data][text]" type="text"
135 id="xs_<?php echo esc_attr($k); ?>_text"
136 value="<?php echo esc_html($belowText); ?>"
137 class="wslu-global-input">
138 </div>
139
140 <div class="wslu-single-popup-item">
141 <div class="setting-label-wraper">
142 <label class="setting-label wslu-sec-title"
143 for="<?php echo esc_attr($k); ?>_label"><?php echo esc_html__('Label Name', 'wp-social'); ?> </label>
144 </div>
145
146 <input name="xs_share[social][<?php echo esc_attr($k); ?>][data][label]" type="text"
147 id="xs_<?php echo esc_attr($k); ?>_label"
148 value="<?php echo esc_html($label); ?>" class="wslu-global-input">
149 </div>
150
151 <?php
152
153 apply_filters('wp_social_pro/provider/share/after_user_data_form', $k, $old_count);
154
155 ?>
156
157 </div>
158 </div>
159 </div>
160 </div>
161 </div>
162
163 <div class="xs-modal-footer">
164 <button type="submit" name="share_settings_submit_form"
165 class="xs-btn btn-special"><?php echo esc_html__('Save Changes', 'wp-social'); ?></button>
166 </div>
167 </div>
168 </div>
169
170 <?php
171
172 endforeach; ?>
173 <div class="xs-backdrop"></div>
174 </form>
175 </div>