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 / counter / providers-counter.php
wp-social / template / admin / counter Last commit date
_instagram__modal_content.php 5 years ago counter-setting.php 3 years ago providers-counter.php 2 weeks ago style-setting.php 2 weeks ago tab-menu.php 3 years ago
providers-counter.php
589 lines
1 <?php
2 defined('ABSPATH') || exit;
3 ?>
4
5 <div class="wslu-social-login-main-wrapper">
6 <?php
7
8 require(__DIR__ . '/tab-menu.php');
9
10 /**
11 * todo - check this notice box too : WP1-217
12 * make a function and call it here
13 *
14 */
15
16 if($message_provider == 'show') { ?>
17 <div class="admin-page-framework-admin-notice-animation-container">
18 <div id="XS_Social_Login_Settings"
19 class="updated admin-page-framework-settings-notice-message admin-page-framework-settings-notice-container notice is-dismissible"
20 style="margin: 1em 0; visibility: visible; opacity: 1;">
21 <p><?php echo esc_html__('Providers data have been updated.', 'wp-social'); ?></p>
22 <button type="button" class="notice-dismiss">
23 <span class="screen-reader-text"><?php echo esc_html__('Dismiss this notice.', 'wp-social'); ?></span>
24 </button>
25 </div>
26 </div>
27 <?php } ?>
28
29 <form action="<?php echo esc_url(admin_url() . 'admin.php?page=wslu_counter_setting&tab=wslu_providers'); ?>"
30 name="xs_provider_submit_form"
31 method="post"
32 id="xs_provider_form">
33
34 <div class="xs-social-block-wraper">
35 <ul class="xs-social-block" data-action="sort_providers_counter"
36 data-sort_url="<?php echo esc_url(admin_url() . 'admin-ajax.php'); ?>">
37 <?php
38 $m = 1;
39 $counter = new \WP_Social\Inc\Counter(false);
40 $filed = $counter->xs_counter_providers_data();
41
42 foreach($core_provider as $k => $v) :
43 $name = isset($v['label']) ? $v['label'] : ucfirst($k);
44
45 $js_target_id = 'open_counter__' . $k . '__' . $m;
46
47 $plugin_active = in_array('wp-social-pro/wp-social-pro.php', apply_filters('active_plugins', get_option('active_plugins')));
48 $is_tiktok = ($k === 'tiktok'); // Check if current provider is TikTok
49
50 // Apply class 'tiktok-disabled' if wp-social-pro is deactivated and current provider is TikTok
51 $tiktok_provider_class = (!$plugin_active && $is_tiktok) ? 'tiktok-disabled' : '';
52
53 ?>
54 <li data-provider="<?php echo esc_attr($k) ?>">
55 <div class="xs-single-social-block <?php echo esc_attr($k . ' ' . $tiktok_provider_class); ?>">
56
57 <div class="xs-block-header"
58 onclick="xs_counter_open(this);"
59 xs-target-id="<?php echo esc_attr($js_target_id); ?>"
60 data-drag-label="<?php echo esc_attr__('Drag to Reorder', 'wp-social'); ?>">
61 <div class="xs-social-icon">
62 <span class="met-social met-social-<?php echo esc_attr($k); ?>"></span>
63 </div>
64 <h2 class="xs-social-icon-title"><?php echo esc_html__($name, 'wp-social'); ?></h2>
65 </div>
66
67 <div class="xs-block-footer">
68 <div class="left-content">
69 <div class="configure">
70
71 <div class="wslu-single-popup-item wslu-inline">
72
73 <input class="social_switch_button"
74 onchange="social_counter_enable(this)"
75 data-key="<?php echo esc_attr($k); ?>"
76 type="checkbox"
77 id="<?php echo esc_attr($k); ?>_enable"
78 name="xs_counter[social][<?php echo esc_attr($k); ?>][enable]"
79 value="1"
80 <?php echo esc_attr(empty($enabled_providers[$k]['enable']) ? '' : 'checked'); ?> />
81
82 <label for="<?php echo esc_attr($k); ?>_enable"
83 class="social_switch_button_label"></label>
84 </div>
85
86 </div>
87 </div>
88 <div class="right-content">
89 <a href="javascript:void(0)"
90 class="wslu-social-provider-btn xs-btn btn-special small"
91 onclick="xs_counter_open(this);"
92 xs-target-id="<?php echo esc_attr($js_target_id); ?>">
93
94 <?php
95
96 if(!empty($enabled_providers[$k]['enable'])) {
97 echo esc_html__('Settings', 'wp-social'); ?><?php
98 } else {
99 echo esc_html__('Getting Started', 'wp-social');
100 }
101
102 ?>
103 </a>
104 <?php if($is_tiktok && !$plugin_active) : ?>
105 <div class="wslu-pro-only-container">
106 <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>
107 </div>
108 <?php endif; ?>
109 </div>
110 </div>
111 <?php if ($is_tiktok && !$plugin_active): ?>
112 <div class="tiktok-overlay">
113 <div class="xs-single-social-block <?php echo esc_attr($k . ' ' . $tiktok_provider_class); ?>">
114 </div>
115 </div>
116 <?php endif; ?>
117 </div>
118 </li>
119 <?php
120
121 $m++;
122 endforeach; ?>
123 </ul>
124 </div>
125
126 <div class="xs-social-block-wraper-counter">
127 <?php
128 $m = 1;
129
130 $factory = new \WP_Social\Lib\Provider\Counter_Factory();
131
132 foreach($core_provider as $k => $val) :
133
134 $js_target_id = 'open_counter__' . $k . '__' . $m;
135
136 $v = isset($counter_provider[$k]) ? $counter_provider[$k] : $val;
137
138 $obj = $factory->make($k);
139
140 $name = isset($v['label']) ? $v['label'] : '';
141
142 $setLabel = (isset($counter_provider[$k]['label']) && strlen($counter_provider[$k]['label']) > 2) ? $counter_provider[$k]['label'] : $name;
143
144 $defaultText = isset($v['data']['text']) ? $v['data']['text'] : '';
145 $belowText = (isset($counter_provider[$k]['data']['text'])) ? $counter_provider[$k]['data']['text'] : $defaultText;
146 $belowValue = (isset($counter_provider[$k]['data']['value']) && $counter_provider[$k]['data']['value'] > 0) ? $counter_provider[$k]['data']['value'] : 0;
147
148 $filedData = isset($filed[$k]) ? $filed[$k] : '';
149 if(strlen($name) > 2) {
150 ?>
151 <div class="xs-modal-dialog <?php echo esc_attr(($getType == $k) ? 'is-open' : ''); ?>"
152 id="<?php echo esc_attr($js_target_id); ?>">
153 <div class="xs-modal-content">
154
155 <div class="xs-modal-header clear-both">
156
157 <div class="tabHeader">
158 <ul class="tab__list clear-both"></ul>
159 </div>
160 <button
161 type="button"
162 class="xs-btn"
163 onclick="xs_counter_open(this);"
164 xs-target-id="<?php echo esc_attr($js_target_id); ?>">
165 <span class="wslu-icon met-social met-social-cross"></span>
166 </button>
167 </div>
168
169 <div class="xs-modal-body">
170 <div class="ekit--tab__post__details tabContent">
171 <h6 class="wslu-popup-provider-title"><?php echo esc_html__($setLabel, 'wp-social'); ?></h6>
172
173 <div class="wslu-popup-data"> <?php
174
175 if(is_array($filedData)) {
176
177 $fl_nm = __DIR__. '_'.$k.'__modal_content.php';
178
179 foreach($filedData as $fk => $fv) {
180
181 $label_field = isset($fv['label']) ? $fv['label'] : 'Id';
182
183 $input = isset($fv['input']) ? $fv['input'] : 'text';
184 $type = isset($fv['type']) ? $fv['type'] : 'normal';
185
186 $setId = (isset($counter_provider[$k][$fk]) && strlen($counter_provider[$k][$fk]) > 2) ? $counter_provider[$k][$fk] : '';
187
188 $show_access_token_grabbed_msg = false;
189
190 ?>
191
192 <div class="wslu-single-popup-item <?php echo esc_attr(($type == 'access') ? 'xs-access-button-inline' : ''); ?>">
193
194 <?php
195
196 if($input == 'link') { ?>
197
198 <div class="wslu-admin-accordion-btn-group">
199 <a href="<?php echo esc_url($fv['url']) ?>" class="<?php echo esc_attr($fv['class']) ?>" target="_blank">
200 <?php echo esc_html($fv['label']) ?>
201 </a>
202 </div>
203
204 <?php
205
206 } else {
207
208 ?>
209
210 <div class="setting-label-wraper">
211 <label class="setting-label wslu-sec-title"
212 for="xs_<?php echo esc_attr($k); ?>_<?php echo esc_attr($fk); ?>"> <?php echo esc_html__($label_field, 'wp-social'); ?> </label>
213 </div>
214
215 <?php
216
217
218 if($input == 'text') {
219
220 ?>
221
222 <input name="xs_counter[social][<?php echo esc_attr($k); ?>][<?php echo esc_attr($fk); ?>]"
223 style="<?php echo esc_attr(($type == 'access') ? 'cursor: no-drop; opacity: .4;' : ''); ?>"
224 type="text" id="xs_<?php echo esc_attr($k); ?>_<?php echo esc_attr($fk); ?>"
225 value="<?php echo ($k === 'twitter' && $fk === 'api') ? esc_html(get_option('xs_counter_twitter_token', '')) : esc_html($setId); ?>"
226 class="wslu-global-input">
227
228 <?php
229
230 if($type == 'access') {
231 echo wp_kses('<button class="xs-btn btn-special small" data-type="modal-trigger" data-target="example-modal-' . $k . '">'.__("Get Access Token", "wp-social").'</button>', \WP_Social\Helper\Helper::get_kses_array());
232 }
233
234 if($show_access_token_grabbed_msg === true) {
235
236
237 $div_id = 'asd_' . time();
238
239
240 echo wp_kses('<div id="' . $div_id . '" style="padding:5px; color:green">' . esc_html__('Access token grabbed successfully, please save the changes.', 'wp-social') . '</div>', \WP_Social\Helper\Helper::get_kses_array());
241
242
243 ?> <script>
244 setTimeout(function () {
245 jQuery('#<?php echo esc_attr($div_id) ?>').slideUp(1000, hide_the_message);
246 }, 5000);
247
248 function hide_the_message() {
249 jQuery('#<?php echo esc_attr($div_id) ?>').remove();
250 }
251
252 </script>
253
254 <?php
255
256 }
257
258 } elseif($input == 'select') {
259
260 $dataSelect = isset($fv['data']) ? $fv['data'] : '';
261
262 if(is_array($dataSelect)) {
263
264 ?>
265
266 <select class="wslu-global-input"
267 name="xs_counter[social][<?php echo esc_attr($k); ?>][<?php echo esc_attr($fk); ?>]"
268 id="xs_<?php echo esc_attr($k); ?>_<?php echo esc_attr($fk); ?>">
269 <?php foreach($dataSelect as $dk => $dv) : ?>
270 <option value="<?php echo esc_attr($dk); ?>" <?php echo esc_attr(($setId == $dk) ? 'selected' : ''); ?>><?php echo esc_html($dv); ?> </option>
271 <?php endforeach; ?>
272 </select>
273 <?php
274
275 }
276
277 }
278
279 }
280
281 ?>
282
283 </div>
284
285 <?php
286
287 if($type == 'access' && $k == $getType) {
288 $setId = get_option('xs_counter_' . $k . '_token') ? get_option('xs_counter_' . $k . '_token') : '';
289
290 if($getType == 'linkedin') {
291
292 $code = isset($_GET['code']) ? sanitize_text_field($_GET['code']) : '';
293 if(strlen($code) > 0) {
294 $cur_page = admin_url() . 'admin.php?page=wslu_counter_setting&tab=wslu_providers&xs_access=' . $k . '';
295
296 $credentials = get_transient('xs_counter_' . $k . '_api_key') . ':' . get_transient('xs_counter_' . $k . '_secret_key');
297 $toSend = base64_encode($credentials);
298
299 $args = [
300 'method' => 'POST',
301 'httpversion' => '1.1',
302 'blocking' => true,
303 'headers' => [
304 'Authorization' => 'Basic ' . $toSend,
305 'Content-Type' => 'application/x-www-form-urlencoded;charset=UTF-8',
306 ],
307 'body' => ['grant_type' => 'authorization_code',
308 'code' => $code,
309 'client_id' => get_transient('xs_counter_' . $k . '_api_key'),
310 'client_secret' => get_transient('xs_counter_' . $k . '_secret_key'),
311 'redirect_uri' => $cur_page,
312 ],
313 ];
314
315 add_filter('https_ssl_verify', '__return_false');
316 $response = wp_remote_post('https://www.linkedin.com/oauth/v2/accessToken', $args);
317
318 $keys = json_decode(wp_remote_retrieve_body($response));
319
320 if(isset($keys->access_token)) {
321 $setId = $keys->access_token;
322 update_option('xs_counter_' . $k . '_token', $setId);
323 update_option('xs_counter_' . $k . '_app_id', get_transient('xs_counter_' . $k . '_api_key'));
324 update_option('xs_counter_' . $k . '_app_secret', get_transient('xs_counter_' . $k . '_secret_key'));
325 }
326 }
327 } elseif($getType == 'dribbble') {
328
329 if(!empty($_GET['code'])) {
330
331 $code = sanitize_text_field($_GET['code']);
332 $cur_page = admin_url() . 'admin.php?page=wslu_counter_setting&tab=wslu_providers&xs_access=' . $k . '';
333
334 /**
335 * As we have received temporary code
336 * now request for access_token via post method
337 * Right now I could not find any documentation
338 * of how long the access token will live in dribbble api document!
339 *
340 * todo - check deeply of token life time and implement refresh access token strategy
341 */
342
343 $args = [
344 'method' => 'POST',
345 'httpversion' => '1.1',
346 'blocking' => true,
347 'body' => [
348 'code' => $code,
349 'client_id' => get_option('xs_counter_dribbble_app_id'),
350 'client_secret' => get_option('xs_counter_dribbble_app_secret'),
351 'redirect_uri' => $cur_page,
352 ],
353 ];
354
355 $response = wp_remote_post('https://dribbble.com/oauth/token', $args);
356 $token = json_decode(wp_remote_retrieve_body($response));
357
358 if(empty($token->error)) {
359 $setId = $token->access_token;
360 $created = $token->created_at;
361 $show_access_token_grabbed_msg = true;
362
363 update_option('xs_counter_' . $k . '_token', $setId);
364 update_option('xs_counter_' . $k . '_created', $created);
365 }
366 }
367 }
368 }
369
370 }
371 }
372 ?>
373
374 <div class="wslu-single-popup-item">
375 <div class="setting-label-wraper">
376 <label class="setting-label wslu-sec-title"
377 for="xs_<?php echo esc_attr($k); ?>_text">
378 <?php echo esc_html(sprintf(__('Default %1$s %2$s', 'wp-social'), $setLabel, $belowText)); ?>
379 </label>
380 </div>
381
382 <input name="xs_counter[social][<?php echo esc_attr($k); ?>][data][value]"
383 type="text"
384 id="xs_<?php echo esc_attr($k); ?>_text"
385 value="<?php echo esc_html($belowValue); ?>"
386 class="wslu-global-input">
387 </div>
388
389 <div class="wslu-single-popup-item">
390 <div class="setting-label-wraper">
391 <label class="setting-label wslu-sec-title"
392 for="xs_<?php echo esc_attr($k); ?>_text"> <?php echo esc_html__('Text Below The Number', 'wp-social'); ?></label>
393 </div>
394
395 <input name="xs_counter[social][<?php echo esc_attr($k); ?>][data][text]" type="text"
396 id="xs_<?php echo esc_attr($k); ?>_text"
397 value="<?php echo esc_html($belowText); ?>"
398 class="wslu-global-input">
399 </div>
400
401 <div class="wslu-single-popup-item">
402 <div class="setting-label-wraper">
403 <label class="setting-label wslu-sec-title"
404 for="xs_<?php echo esc_attr($k); ?>_label"> <?php echo esc_html__('Label Name', 'wp-social'); ?></label>
405 </div>
406 <input name="xs_counter[social][<?php echo esc_attr($k); ?>][label]" type="text"
407 id="xs_<?php echo esc_attr($k); ?>_label"
408 value="<?php echo esc_html($setLabel); ?>" class="wslu-global-input">
409 </div>
410
411 <div class="wslu-single-popup-item">
412 <?php
413
414 if(!in_array($k, ['posts', 'comments'])):
415
416 $provider = strtolower($k);
417 $username = '';
418
419 if($k == 'pinterest') {
420
421 $username = empty($counter_provider[$k]['username']) ? '' : sanitize_key($counter_provider[$k]['username']);
422 // todo - again some bujruki, need time to cleanup this shit
423
424 } elseif(in_array($k, ['youtube', 'twitter'])) {
425 $username = empty($counter_provider[$provider]['id']) ? '' : sanitize_key($counter_provider[$provider]['id']);
426 }
427
428 $time = get_option('_xs_social_' . $k . '_last_cached', 0);
429
430 $ago = empty($time) ? esc_html__('No cache found', 'wp-social') : human_time_diff($time, time()) . ' ' . esc_html__('ago', 'wp-social');
431
432 ?>
433
434 <div class="wslu-catch-clear">
435 <button type="button"
436 class="wslu-catch-clear--btn"
437 onclick="wp_social_clear_cache('<?php echo esc_attr($k) ?>', '<?php echo esc_attr($username) ?>')">
438 <?php echo esc_html__('Clear', 'wp-social') ?>
439 </button>
440
441 <span class="wslu-catch-clear--text" id="<?php echo esc_attr($k) ?>_cache_msg">
442 <?php echo esc_html(__('Cached : ', 'wp-social') . $ago); ?>
443 </span>
444 </div>
445
446 <?php endif; ?>
447 </div>
448 </div>
449
450 </div>
451
452 </div>
453
454 <?php
455
456 if($k == 'posts' || $k == 'comments') {
457
458 ?>
459 <p style="color: #b5b512;">* If default value is given actual value will not show</p>
460 <?php
461 }
462
463 ?>
464 <div class="xs-modal-footer">
465 <button type="submit" name="counter_settings_submit_form"
466 class="xs-btn btn-special"><?php echo esc_html__('Save Changes', 'wp-social'); ?></button>
467 </div>
468 </div>
469 </div>
470
471 <?php
472 }
473 $m++;
474 endforeach;
475 ?>
476 </div>
477
478 </form>
479
480 <div class="xs-counter-popup-access-box">
481 <?php
482
483 if(is_array($filed)) {
484
485 foreach($filed as $fk => $fv) :
486
487 $apiCheck = isset($fv['api']) ? $fv['api'] : '';
488
489 if(is_array($apiCheck)) {
490 $name = isset($apiCheck['label']) ? $apiCheck['label'] : 'Key';
491 $filedApi = isset($apiCheck['filed']) ? $apiCheck['filed'] : '';
492
493 $popupLabel = (isset($counter_provider[$fk]['label']) && strlen($counter_provider[$fk]['label']) > 2) ? $counter_provider[$fk]['label'] : ucfirst($fk);
494 ?>
495 <form method="post"
496 action="<?php echo esc_url(admin_url() . 'admin.php?page=wslu_counter_setting&tab=wslu_providers&xs_access=' . $fk . ''); ?>">
497 <div class="xs-modal-dialog" id="example-modal-<?php echo esc_attr($fk); ?>">
498 <div class="xs-modal-content post__tab">
499 <div class="xs-modal-header clear-both">
500 <div class="tabHeader">
501 <ul class="tab__list clear-both"></ul>
502 </div>
503 <button type="button" class="xs-btn" data-modal-dismiss="modal">
504 <span class="wslu-icon met-social met-social-cross"></span>
505 </button>
506 </div>
507 <div class="xs-modal-body">
508 <div class="ekit--tab__post__details tabContent">
509 <div class="wslu-popup-data">
510 <?php
511 if(is_array($filedApi)) {
512 foreach($filedApi as $fkl => $fvl) {
513 $valueAPp = get_option('xs_counter_' . $fk . '_' . $fkl) ? get_option('xs_counter_' . $fk . '_' . $fkl) : '';
514 ?>
515 <div class="wslu-single-popup-item">
516 <div class="setting-label-wraper">
517 <label class="setting-label wslu-sec-title"
518 for="xs_<?php echo esc_attr($fk); ?>_<?php echo esc_attr($fkl); ?>">
519 <?php echo esc_html__($fvl, 'wp-social'); ?>
520 </label>
521 </div>
522
523 <input type="text"
524 name="accesskey[<?php echo esc_attr($fk); ?>][<?php echo esc_attr($fkl); ?>]"
525 class="wslu-global-input"
526 id="xs_<?php echo esc_attr($fk); ?>_<?php echo esc_attr($fkl); ?>"
527 value="<?php echo esc_attr($valueAPp); ?>">
528 </div>
529 <?php
530 }
531 }
532 ?>
533 <input type="hidden" name="xs_provider_submit_form_access_counter_nonce" value="<?php echo wp_create_nonce('xs_provider_submit_form_access_counter_nonce'); ?>">
534 </div>
535 </div>
536 <?php
537 if($fk == 'instagram') {
538 $cur_page = admin_url() . 'admin.php?page=wslu_counter_setting&tab=wslu_providers&xs_access=' . $fk . '';
539 ?>
540 <p class="document"><?php echo esc_html__('Go to APP Settings and Set Callback URL', 'wp-social'); ?>
541 <a href="<?php echo esc_url('https://www.instagram.com/developer/clients/manage/'); ?>"> <?php echo esc_html__('App Settings ', 'wp-social'); ?></a>
542 </p>
543 <p class="document"><?php echo esc_html__('Add the following URL to the "Valid OAuth redirect URIs" field:', 'wp-social'); ?>
544 <strong><?php echo esc_url($cur_page); ?></strong></p>
545 <?php }
546 if($fk == 'linkedin') {
547 $cur_page = admin_url() . 'admin.php?page=wslu_counter_setting&tab=wslu_providers&xs_access=' . $fk . '';
548 ?>
549 <p class="document"><?php echo esc_html__('Go to APP Settings and Set Callback URL', 'wp-social'); ?>
550 <a href="<?php echo esc_url('https://www.linkedin.com/developers/'); ?>"> <?php echo esc_html__('App Settings ', 'wp-social'); ?></a>
551 </p>
552 <p class="document"><?php echo esc_html__('Add the following URL to the "Valid OAuth redirect URIs" field:', 'wp-social'); ?>
553 <strong><?php echo esc_url($cur_page); ?></strong></p>
554 <?php }
555 if($fk == 'dribbble') {
556 $cur_page = admin_url() . 'admin.php?page=wslu_counter_setting&tab=wslu_providers&xs_access=' . $fk . '';
557 ?>
558 <p class="document"><?php echo esc_html__('Go to APP Settings and Set Callback URL', 'wp-social'); ?>
559 <a href="<?php echo esc_url('https://dribbble.com/account/applications/'); ?>"> <?php echo esc_html__('App Settings ', 'wp-social'); ?></a>
560 </p>
561 <div class="document"><?php echo esc_html__('Add the following URL to the "Valid OAuth redirect URIs" field:', 'wp-social'); ?>
562 <pre style="width: 500px; overflow:scroll; font-weight:bold; padding:10px 10px 10px 0; color:brown"><?php echo esc_url($cur_page); ?></pre>
563 </div>
564 <?php }
565 if($fk == 'tiktok') {
566 $cur_page = site_url() . '/wp-json/wslu-social-counter/type/tiktok';
567 ?>
568 <p class="document"><?php echo esc_html__('Go to APP Settings and Set Callback URL', 'wp-social'); ?>
569 <a target="_blank" href="<?php echo esc_url('https://developers.tiktok.com/apps/'); ?>"> <?php echo esc_html__('App Settings ', 'wp-social'); ?></a>
570 </p>
571 <div class="document"><?php echo esc_html__('Add the following URL to the "Redirect URI" field:', 'wp-social'); ?>
572 <pre style="width: 500px; overflow:scroll; font-weight:bold; padding:10px 10px 10px 0; color:brown"><?php echo esc_url($cur_page); ?></pre>
573 </div>
574 <?php } ?>
575 </div>
576 <div class="xs-modal-footer">
577 <button type="submit" name="xs_provider_submit_form_access_counter"
578 class="xs-btn btn-special"><?php echo esc_html__('Generate Key', 'wp-social'); ?></button>
579 </div>
580 </div>
581 </div>
582 </form>
583 <?php }
584 endforeach;
585 } ?>
586 <div class="xs-backdrop <?php echo esc_attr(strlen($getType) > 1 && isset($_GET['code']) ? 'is-open' : ''); ?>"></div>
587 </div>
588 </div>
589