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
style-setting.php
72 lines
| 1 | <?php |
| 2 | defined('ABSPATH') || exit; |
| 3 | |
| 4 | $styleArr = \WP_Social\App\Login_Settings::get_login_styles(); |
| 5 | |
| 6 | ?> |
| 7 | |
| 8 | <div class="wslu-social-login-main-wrapper"> |
| 9 | <?php |
| 10 | require_once(WSLU_LOGIN_PLUGIN . '/template/admin/tab-menu.php'); |
| 11 | |
| 12 | if($message_provider == 'show') { ?> |
| 13 | <div class="admin-page-framework-admin-notice-animation-container"> |
| 14 | <div id="XS_Social_Login_Settings" |
| 15 | class="updated admin-page-framework-settings-notice-message admin-page-framework-settings-notice-container notice is-dismissible" |
| 16 | style="margin: 1em 0; visibility: visible; opacity: 1;"> |
| 17 | <p><?php echo esc_html__('Styles data have been updated.', 'wp-social'); ?></p> |
| 18 | <button type="button" class="notice-dismiss"><span |
| 19 | class="screen-reader-text"><?php echo esc_html__('Dismiss this notice.', 'wp-social'); ?></span> |
| 20 | </button> |
| 21 | </div> |
| 22 | </div> |
| 23 | <?php } ?> |
| 24 | |
| 25 | <form action="<?php echo esc_url(admin_url() . 'admin.php?page=wslu_global_setting&tab=wslu_style_setting'); ?>" |
| 26 | name="xs_style_submit_form" method="post" id="xs_style_form"> |
| 27 | <div class="xs-social-block-wraper"> |
| 28 | <div class="xs-global-section"> |
| 29 | |
| 30 | <div class="wslu-social-style-data"> |
| 31 | <?php |
| 32 | |
| 33 | /* |
| 34 | ------------------------------ |
| 35 | login style card |
| 36 | ------------------------------ |
| 37 | */ |
| 38 | foreach($styleArr AS $key => $val) : |
| 39 | |
| 40 | $arg = [ |
| 41 | 'saved_style' => isset($saved_style['login_button_style']) ? $saved_style['login_button_style'] : '', |
| 42 | 'style' => $key, |
| 43 | 'key' => 'social_login_' . $key, |
| 44 | 'image' => $val['image'], |
| 45 | 'title' => $val['title'], |
| 46 | 'package' => ($val['unlocked'] === false) ? 'pro' : '', |
| 47 | 'name' => 'xs_style[login_button_style]', |
| 48 | ]; |
| 49 | |
| 50 | \WP_Social\Helper\View_Helper::get_style_card($arg); |
| 51 | |
| 52 | endforeach; |
| 53 | // end of login style card |
| 54 | ?> |
| 55 | |
| 56 | </div> |
| 57 | |
| 58 | <div class="wslu-right-content wslu-right-content--share"> |
| 59 | <?php wp_nonce_field( 'style_setting_submit_form_nonce', 'nonce' ); ?> |
| 60 | <button type="submit" |
| 61 | name="style_setting_submit_form" |
| 62 | class="xs-btn btn-special small"> |
| 63 | <?php echo esc_html__('Save Changes', 'wp-social'); ?> |
| 64 | </button> |
| 65 | </div> |
| 66 | |
| 67 | </div> |
| 68 | </div> |
| 69 | <div class="xs-backdrop"></div> |
| 70 | </form> |
| 71 | </div> |
| 72 |