_instagram__modal_content.php
5 years ago
counter-setting.php
3 years ago
providers-counter.php
3 years ago
style-setting.php
3 years ago
tab-menu.php
3 years ago
style-setting.php
127 lines
| 1 | <?php |
| 2 | defined( 'ABSPATH') || exit; |
| 3 | ?> |
| 4 | <div class="wslu-social-login-main-wrapper"> |
| 5 | <?php |
| 6 | |
| 7 | require( __DIR__ . '/tab-menu.php'); |
| 8 | |
| 9 | /** |
| 10 | * todo - check this notice box too : WP1-217 |
| 11 | * make a function and call it here |
| 12 | * |
| 13 | */ |
| 14 | if($message_provider == 'show'){?> |
| 15 | <div class="admin-page-framework-admin-notice-animation-container"> |
| 16 | <div id="XS_Social_Login_Settings" |
| 17 | class="updated admin-page-framework-settings-notice-message admin-page-framework-settings-notice-container notice is-dismissible" |
| 18 | style="margin: 1em 0; visibility: visible; opacity: 1;"> |
| 19 | <p><?php echo esc_html__('Styles data have been updated.', 'wp-social');?></p> |
| 20 | <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo esc_html__('Dismiss this notice.', 'wp-social');?></span></button> |
| 21 | </div> |
| 22 | </div> |
| 23 | <?php }?> |
| 24 | |
| 25 | |
| 26 | <form action="<?php echo esc_url(admin_url().'admin.php?page=wslu_counter_setting&tab=wslu_style_setting');?>" 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 | <!-------------------------------- |
| 31 | Social counter hover aniamtion |
| 32 | --------------------------------> |
| 33 | <?php if (isset($share_hover_effects)) : ?> |
| 34 | <div class="wslu-single-item"> |
| 35 | <div class="wlsu-hover-effect"> |
| 36 | |
| 37 | <h2 class="wlsu-hover-effect__title"> |
| 38 | <?php echo esc_html__('Select Hover Effects', 'wp-social'); ?> |
| 39 | </h2> |
| 40 | <div class="wlsu-hover-effect__content"> |
| 41 | <?php foreach ($share_hover_effects as $key => $value) : ?> |
| 42 | <div class="wlsu-hover-effect__item"> |
| 43 | <input |
| 44 | <?php echo esc_attr((isset($value['exclude'])) ? 'data-exclude="' . json_encode($value['exclude']) . '"' : '') ?> |
| 45 | type="radio" |
| 46 | class="wlsu-hover-effect-select" |
| 47 | name="xs_style[hover_effect]" |
| 48 | id="<?php echo esc_attr($key); ?>" |
| 49 | value="<?php echo esc_attr($key); ?>" |
| 50 | <?php echo esc_attr(($selectedEffect == $key) ? 'checked' : ''); ?>/> |
| 51 | |
| 52 | <label for="<?php echo esc_attr($key); ?>" > |
| 53 | <img src="<?php echo esc_url(WSLU_PRO_LOGIN_PLUGIN_URL . 'assets/images/counter-hover-preview/' . $key . '.png'); ?>"/> |
| 54 | <span> <?php echo esc_html($value['name']); ?> </span> |
| 55 | </label> |
| 56 | </div> |
| 57 | |
| 58 | <?php endforeach; ?> |
| 59 | </div> |
| 60 | |
| 61 | </div> |
| 62 | |
| 63 | </div> |
| 64 | <?php endif; ?><!-- ./ End social share hover animation --> |
| 65 | |
| 66 | |
| 67 | |
| 68 | <!-------------------------------- |
| 69 | Social counter Styles |
| 70 | --------------------------------> |
| 71 | <h2 class="wlsu-hover-effect__title wlsu-style-data"> |
| 72 | <?php echo esc_html__('Select Counter Style', 'wp-social'); ?> |
| 73 | </h2> |
| 74 | <div class="wslu-social-style-data"> |
| 75 | |
| 76 | <?php foreach($styleArr AS $styleKey => $styleValue): ?> |
| 77 | |
| 78 | <div class="wslu-single-social-style-item <?php echo esc_attr( ( (!did_action('wslu_social_pro/plugin_loaded')) && ($styleValue['package'] == 'pro') ) ? 'wslu-style-pro': 'wslu-style-free' ); ?>"> |
| 79 | |
| 80 | <label for="_login_button_style__<?php echo esc_attr($styleKey);?>" class="social_radio_button_label xs_label_wp_login"> |
| 81 | |
| 82 | <div class="wslu-style-img xs-login-<?php echo esc_attr($styleKey);?> <?php echo esc_attr((isset($return_data['login_button_style']) && $return_data['login_button_style'] == $styleKey ) ? 'style-active ' : '');?>"> |
| 83 | |
| 84 | <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL.'assets/images/screenshort/counter/'.$styleValue['design'].'.png'); ?>" alt="<?php echo esc_attr($styleValue['name']); ?>"> |
| 85 | |
| 86 | <?php if(!in_array('wp-social-pro/wp-social-pro.php', apply_filters('active_plugins', get_option('active_plugins')))) : ?> |
| 87 | <a href="https://wpmet.com/plugin/wp-social/pricing/" class="wslu-buy-now-btn"><?php esc_html_e('Buy Now', 'wp-social'); ?></a> |
| 88 | <?php endif; ?> |
| 89 | </div> |
| 90 | |
| 91 | <input class="social_radio_button wslu-global-radio-input share-input-name" |
| 92 | type="radio" |
| 93 | id="_login_button_style__<?php echo esc_attr($styleKey);?>" |
| 94 | name="xs_style[login_button_style]" |
| 95 | value="<?php echo esc_attr($styleKey);?>" |
| 96 | <?php echo esc_attr( ( (!did_action('wslu_social_pro/plugin_loaded')) && ($styleValue['package'] == 'pro') ) ? 'disabled="disabled"': '' ); ?> |
| 97 | |
| 98 | <?php echo esc_attr(($selectedStyle == $styleKey) ? 'checked' : ''); ?> > |
| 99 | |
| 100 | <?php |
| 101 | echo esc_html__($styleValue['name'], 'wp-social'); |
| 102 | echo wp_kses((!did_action('wslu_social_pro/plugin_loaded')) && ($styleValue['package'] == 'pro') ? '<span class="wslu-go-pro-text">(' . esc_html('Pro Only', 'elementskit') . ')</span>' : '', \WP_Social\Helper\Helper::get_kses_array()); |
| 103 | ?> |
| 104 | |
| 105 | </label> |
| 106 | </div> |
| 107 | <?php endforeach; ?> |
| 108 | |
| 109 | </div> |
| 110 | |
| 111 | <div class="wslu-social-style-hidden-inputs"> |
| 112 | <label> |
| 113 | <input type="text" class="wslu-main-content-input" name="xs_style[login_button_style][style]" value="<?php echo esc_attr((isset($return_data['login_button_style']['style']) ? $return_data['login_button_style']['style'] : '')); ?>"> |
| 114 | <!-- ?php esc_html_e('Main Content', 'wp-social'); ?--> |
| 115 | </label> |
| 116 | </div> |
| 117 | |
| 118 | <div class="wslu-right-content wslu-right-content--share"> |
| 119 | <?php wp_nonce_field( 'style_setting_submit_form_counter_nonce', 'nonce' ); ?> |
| 120 | <button type="submit" name="style_setting_submit_form" class="xs-btn btn-special small"><?php echo esc_html__('Save Changes', 'wp-social');?></button> |
| 121 | </div> |
| 122 | |
| 123 | </div> |
| 124 | </div> |
| 125 | <div class="xs-backdrop"></div> |
| 126 | </form> |
| 127 | </div> |