counter
3 years ago
share
3 years ago
global-setting.php
3 years ago
providers-setting.php
3 years ago
settings.php
3 years ago
style-setting.php
3 years ago
tab-menu.php
3 years ago
settings.php
75 lines
| 1 | <?php |
| 2 | defined('ABSPATH') || exit; |
| 3 | |
| 4 | $login_sync_saved_data = get_option('wp_social_login_sync'); |
| 5 | $login_sync_saved_data_image_too = get_option('wp_social_login_sync_image_too'); |
| 6 | |
| 7 | ?> |
| 8 | <div class="wslu-social-login-main-wrapper"> |
| 9 | |
| 10 | <!-- Page Header start --> |
| 11 | <div class="wslu-main-header"> |
| 12 | <h1> |
| 13 | <img src="<?php echo esc_url( WSLU_LOGIN_PLUGIN_URL . 'assets/images/icon-title.png' ); ?>" alt=""> |
| 14 | <?php echo esc_html__('WP Syncing Setting', 'wp-social'); ?> |
| 15 | </h1> |
| 16 | <br> |
| 17 | </div> <!-- page header end --> |
| 18 | |
| 19 | <?php |
| 20 | if ($message_global == 'show') { ?> |
| 21 | <div class="admin-page-framework-admin-notice-animation-container"> |
| 22 | <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;"> |
| 23 | <p><?php echo esc_html__('Syncing setting data have been updated.', 'wp-social'); ?></p> |
| 24 | <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo esc_html__('Dismiss this notice.', 'wp-social'); ?></span></button> |
| 25 | </div> |
| 26 | </div> |
| 27 | <?php } ?> |
| 28 | |
| 29 | <form action="<?php echo esc_url(admin_url() . 'admin.php?page=wslu_settings'); ?>" method="POST"> |
| 30 | <!-- |
| 31 | Syncing user info when login/register |
| 32 | --> |
| 33 | <div class="wslu-single-item"> |
| 34 | <div class="wslu-left-label"> |
| 35 | <label class="wslu-sec-title" for=""><?php echo esc_html__('Syncing user info when login/register', 'wp-social') ?></label> |
| 36 | </div> |
| 37 | <div class="wslu-right-content"> |
| 38 | <input |
| 39 | type="checkbox" |
| 40 | id="wslu-sync-user-info" |
| 41 | class="social_switch_button" |
| 42 | name="sync" |
| 43 | value="yes" |
| 44 | <?php echo esc_attr(\WP_Social\Helper\Helper::is_true($login_sync_saved_data, 'yes', 'checked')) ?> |
| 45 | > |
| 46 | <label for="wslu-sync-user-info" onclick="xs_show_hide(1);" class="social_switch_button_label"></label> |
| 47 | </div> |
| 48 | </div> |
| 49 | |
| 50 | <!-- |
| 51 | Sync User profile image too |
| 52 | --> |
| 53 | <div class="wslu-single-item initial-hidden <?php echo esc_attr(\WP_Social\Helper\Helper::is_true($login_sync_saved_data, 'yes', 'active_tr')) ?>" id="xs_data_tr__1"> |
| 54 | <div class="wslu-left-label"> |
| 55 | <label class="wslu-sec-title" for=""><?php echo esc_html__('Sync user profile image too', 'wp-social') ?></label> |
| 56 | </div> |
| 57 | <div class="wslu-right-content"> |
| 58 | <input |
| 59 | type="checkbox" |
| 60 | id="wslu-sync-user-profile-img" |
| 61 | class="social_switch_button" |
| 62 | name="sync_image" |
| 63 | value="yes" |
| 64 | <?php echo esc_attr(\WP_Social\Helper\Helper::is_true($login_sync_saved_data_image_too, 'yes', 'checked')) ?> |
| 65 | > |
| 66 | <label for="wslu-sync-user-profile-img" class="social_switch_button_label"></label> |
| 67 | </div> |
| 68 | </div> |
| 69 | |
| 70 | <br><br> |
| 71 | <?php wp_nonce_field( 'sycn_setting_nonce', 'nonce' ); ?> |
| 72 | <button type="submit" name="sycn_setting" value="sycn_setting" class="xs-btn btn-special small"><?php echo esc_html__('Save Changes', 'wp-social') ?></button> |
| 73 | </form> |
| 74 | </div> |
| 75 |