%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/higroup/1618475457800/wp-content/plugins/wp-social/template/share/
Upload File :
Create Path :
Current File : /var/www/html/higroup/1618475457800/wp-content/plugins/wp-social/template/share/share-html.php

<?php

use WP_Social\App\Settings;

defined('ABSPATH') || exit;

$share_settings     = Settings::instance()->get_providers_settings_share();
$wanted_providers   = $provider;
$selected_share_style = $shareStyleKey;

$uri_hash = md5($currentUrl);


if(!empty($wanted_providers) && is_array($wanted_providers)) :

    if(!empty($styles[$selected_share_style]['package']) && $styles[$selected_share_style]['package'] == 'pro' && !WP_Social::is_pro_active()) {

        ?>
        <div class="xs_social_share_widget xs_share_url">
            <ul>
                <li class="xs-share-li wslu-no-extra-data">Pro plugin deactivated or invalid</li>
            </ul>
        </div>
        <?php

        return;
    } ?>

    <div class="xs_social_share_widget xs_share_url <?php echo esc_attr($customClass) . ' '; ?>
		<?php echo esc_attr($fixed_display) . ' '; ?> <?php echo esc_attr($widget_style); ?>">

		<?php if($showCountMarkup): ?>

            <div class="wslu-share-count">
                <span class="wslu-share-count--total"><?php echo xs_format_num($totalSCount); ?></span>
                <span class="wslu-share-count--text"><?php esc_html_e('Shares', 'wp-social') ?></span>
            </div>

		<?php endif; ?>

        <ul>
			<?php
			$content = isset($styles[$selected_share_style]['content']) ? $styles[$selected_share_style]['content'] : '';

			foreach($wanted_providers as $key) {

				if(!empty($enabled_providers[$key]['enable'])) {

					$counter = $share_counting[$key]['count'];

					$label  = isset($share_settings[$key]['data']['label']) ? $share_settings[$key]['data']['label'] : ucfirst($key);
					$def    = isset($share_settings[$key]['data']['value']) ? intval($share_settings[$key]['data']['value']) : 0;
					$text   = isset($share_settings[$key]['data']['text']) ? $share_settings[$key]['data']['text'] : '';

					$getUrl = isset($core_provider[$key]['url']) ? $core_provider[$key]['url'] : '';
					$pData = isset($core_provider[$key]['params']) ? $core_provider[$key]['params'] : [];

					$urlCon = empty($core_provider[$key]['params']) ? [] : $core_provider[$key]['params'];

					foreach($urlCon as $k => $v) {

						$urlCon[$k] = str_replace(
							['[%url%]', '[%title%]', '[%author%]', '[%details%]', '[%source%]', '[%media%]', '[%app_id%]'],
							[$currentUrl, $title, $author, $details, $source, $media, $app_id],
							$v
						);
					}

					$params = http_build_query($urlCon, '&');

					?>
                    <li class="xs-share-li <?php echo $key; ?>
                        <?php echo Settings::get_extra_data_class($selected_share_style, $styles) ?>">
                        <a href="javascript:void();"
                           id="xs_feed_<?php echo $key ?>"
                           onclick="xs_social_sharer(this);"
                           data-pid="<?php echo $postId ?>"
                           data-uri_hash="<?php echo $uri_hash ?>"
                           data-key="<?php echo $key; ?>"
                           data-xs-href="<?php echo $getUrl . '?' . $params; ?>">

                            <div class="xs-social-icon">
                                <span class="met-social met-social-<?php echo $key; ?>"></span>
                            </div>

							<?php if(!empty($styles[$selected_share_style]['content']) != '') : ?>
                                <div class="wslu-both-counter-text ">

									<?php if(Settings::has_number_content_in_selected_style($selected_share_style, $styles)) : ?>
                                        <div class="xs-social-follower">
											<?php echo xs_format_num($counter); ?>
                                        </div>
									<?php endif; ?>

									<?php if(Settings::has_text_content_in_selected_style($selected_share_style, $styles)) : ?>
                                        <div class="xs-social-follower-text">
											<?php echo $text; ?>
                                        </div>
									<?php endif; ?>

									<?php if(Settings::has_label_content_in_selected_style($selected_share_style, $styles)) : ?>
                                        <div class="xs-social-follower-label">
											<?php echo $label; ?>
                                        </div>
									<?php endif; ?>
                                </div>
							<?php endif; ?>

                            <div class="wslu-hover-content">
                                <div class="xs-social-followers">
									<?php echo xs_format_num($counter); ?>
                                </div>
                                <div class="xs-social-follower-text">
									<?php echo $text; ?>
                                </div>
                                <div class="xs-social-follower-label">
									<?php echo $label; ?>
                                </div>
                            </div>
                        </a>
                    </li>
					<?php
				}
			} ?>
        </ul>
    </div> <?php

elseif(!empty($styles[$selected_share_style]['package']) && $styles[$selected_share_style]['package'] == 'pro'): ?>

    <div class="xs_social_share_widget xs_share_url">
        <ul>
            <li class="xs-share-li wslu-no-extra-data">Pro plugin deactivated</li>
        </ul>
    </div>

<?php

endif; ?>


Zerion Mini Shell 1.0