HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/wp-social/template/admin/counter/style-setting.php
<?php
defined( 'ABSPATH') || exit;
?>
<div class="wslu-social-login-main-wrapper">
	<?php

	require( __DIR__ . '/tab-menu.php');

	/**
	 * todo - check this notice box too : WP1-217
     * make a function and call it here
     *
	 */
	if($message_provider == 'show'){?>
        <div class="admin-page-framework-admin-notice-animation-container">
            <div 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 0; visibility: visible; opacity: 1;">
                <p><?php echo esc_html__('Styles data have been updated.', 'wp-social');?></p>
                <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo esc_html__('Dismiss this notice.', 'wp-social');?></span></button>
            </div>
        </div>
	<?php }?>


    <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">
        <div class="xs-social-block-wraper">
            <div class="xs-global-section">
               
                <!-------------------------------- 
                     Social counter hover aniamtion 
                  -------------------------------->
                  <?php if (isset($share_hover_effects)) : ?>
                    <div class="wslu-single-item">
                        <div class="wlsu-hover-effect">

                        <h2 class="wlsu-hover-effect__title"> 
                            <?php echo esc_html__('Select Hover Effects', 'wp-social'); ?>
                        </h2>
                        <div class="wlsu-hover-effect__content">
                            <?php foreach ($share_hover_effects as $key => $value) : ?>
                                <div class="wlsu-hover-effect__item">
                                    <input 
                                        <?php echo esc_attr((isset($value['exclude'])) ? 'data-exclude="' . json_encode($value['exclude']) . '"' : '') ?>
                                        type="radio"
                                        class="wlsu-hover-effect-select"
                                        name="xs_style[hover_effect]"
                                        id="<?php echo esc_attr($key); ?>"
                                        value="<?php echo esc_attr($key); ?>" 
                                        <?php echo esc_attr(($selectedEffect == $key) ? 'checked' : ''); ?>/>

                                    <label for="<?php echo esc_attr($key); ?>" >
                                        <img src="<?php echo esc_url(WSLU_PRO_LOGIN_PLUGIN_URL . 'assets/images/counter-hover-preview/' . $key . '.png'); ?>"/>
                                        <span> <?php echo esc_html($value['name']); ?> </span>
                                    </label>
                                </div>

                            <?php endforeach; ?>
                        </div>
                            
                        </div>

                    </div> 
                <?php endif; ?><!-- ./ End social share hover animation -->

               
                
                <!-------------------------------- 
                    Social counter  Styles 
                -------------------------------->
                <h2 class="wlsu-hover-effect__title wlsu-style-data">
                    <?php echo esc_html__('Select Counter Style', 'wp-social'); ?>
                </h2>
                <div class="wslu-social-style-data">

					<?php foreach($styleArr AS $styleKey => $styleValue): ?>

                        <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' ); ?>">

                            <label for="_login_button_style__<?php echo esc_attr($styleKey);?>" class="social_radio_button_label xs_label_wp_login">

                                <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 ' : '');?>">

                                        <img src="<?php echo esc_url(WSLU_LOGIN_PLUGIN_URL.'assets/images/screenshort/counter/'.$styleValue['design'].'.png'); ?>" alt="<?php echo esc_attr($styleValue['name']); ?>">

                                        <?php if(!in_array('wp-social-pro/wp-social-pro.php', apply_filters('active_plugins', get_option('active_plugins')))) : ?>
                                            <a href="https://wpmet.com/plugin/wp-social/pricing/" class="wslu-buy-now-btn"><?php esc_html_e('Buy Now', 'wp-social'); ?></a>
                                        <?php endif; ?>
                                </div>

                                <input class="social_radio_button wslu-global-radio-input share-input-name"
                                            type="radio"
                                            id="_login_button_style__<?php echo esc_attr($styleKey);?>"
                                            name="xs_style[login_button_style]"
                                            value="<?php echo esc_attr($styleKey);?>"
                                <?php echo esc_attr( ( (!did_action('wslu_social_pro/plugin_loaded')) && ($styleValue['package'] == 'pro') ) ? 'disabled="disabled"': '' ); ?>
                                
                                <?php echo esc_attr(($selectedStyle == $styleKey) ? 'checked' : ''); ?> >

                                <?php 
                                    echo esc_html__($styleValue['name'], 'wp-social');
                                    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());
                                ?>

                            </label>
                        </div>
					<?php endforeach; ?>

                </div>

                <div class="wslu-social-style-hidden-inputs">
                    <label>
                        <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'] : '')); ?>">
						<!-- ?php esc_html_e('Main Content', 'wp-social'); ?-->
                    </label>
                </div>
            
                <div class="wslu-right-content wslu-right-content--share">
                <?php wp_nonce_field( 'style_setting_submit_form_counter_nonce', 'nonce' ); ?>
                    <button type="submit" name="style_setting_submit_form" class="xs-btn btn-special small"><?php echo esc_html__('Save Changes', 'wp-social');?></button>
                </div>

            </div>
        </div>
        <div class="xs-backdrop"></div>
    </form>
</div>