Merged in feature/MAW-846-sharethis (pull request #52)
Feature/MAW-846 sharethis * MAW-846: ShareThis social button plugin * MAW-846: ShareThis social buttons update * Merged develop into feature/MAW-846-sharethis
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Configure tool template for gdpr onboarding
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="vendor-exclusion">
|
||||
<div class="vendor-table">
|
||||
<div class="st-box ">
|
||||
<div class="vendor-table-header">
|
||||
<div class="vendor-name">
|
||||
<h3>
|
||||
<?php esc_html_e( 'Vendor names', 'sharethis-share-buttons' ); ?>
|
||||
</h3>
|
||||
<div class="st-input vendor-search">
|
||||
<input autocomplete="off" id="vendor-search " placeholder="Search for vendor" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="vendor-info">
|
||||
<?php esc_html_e( 'Manage third-party vendors asking for consent across your sites.', 'sharethis-share-buttons' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="vendor-table-body">
|
||||
<?php foreach ( $vendors as $vendor ) : ?>
|
||||
<div class="vendor-table-cell">
|
||||
<a name="<?php echo esc_html( strtolower( $vendor['name'] ) ); ?>"></a>
|
||||
<a name="<?php echo esc_html( strtolower( explode( ' ', $vendor['name'] )[0] ) ); ?>"></a>
|
||||
<div class="vendor-table-cell-wrapper switch">
|
||||
<label>
|
||||
<input data-id="<?php echo esc_attr( $vendor['id'] ); ?>" type="checkbox" name="vendor[<?php echo esc_attr( $vendor['id'] ); ?>]" value="consent" />
|
||||
<span class="lever"></span>
|
||||
<strong><?php echo esc_html( $vendor['name'] ); ?></strong>
|
||||
</label>
|
||||
<div class="vendor-accor">
|
||||
<p>
|
||||
<strong><?php esc_html_e( 'Privacy Policy: ', 'sharethis-share-buttons' ); ?></strong>
|
||||
<?php
|
||||
echo '<a href="' . esc_url( $vendor['policyUrl'] ) . '" target="_blank">' .
|
||||
esc_html( $vendor['policyUrl'] ) . '</a>';
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<strong><?php esc_html_e( 'Purposes: ', 'sharethis-share-buttons' ); ?></strong>
|
||||
<div class="vendor-purpose-list">
|
||||
<?php foreach ( $vendor['purposes'] as $purpose ) : ?>
|
||||
<p><?php echo esc_html( $purposes[ $purpose ] ); ?></p>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/**
|
||||
* Configure tool template for gdpr onboarding
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="gdpr-platform platform-config-wrapper">
|
||||
<h2>
|
||||
<?php echo esc_html_e( 'Consent Management Platform', 'sharethis-share-buttons' ); ?>
|
||||
</h2>
|
||||
<?php if ( 'Disabled' === $enabled['gdpr'] ) : ?>
|
||||
<button class="enable-tool" data-button="gdpr-compliance-tool-v2">Enable Tool</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<h4 style="text-align: left; font-size: 15px;">
|
||||
<?php echo esc_html__( 'Configure', 'sharethis-share-buttons' ); ?>
|
||||
</h4>
|
||||
<div class="st-design-message">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'Use the settings below to configure your GDPR compliance tool popup.',
|
||||
'sharethis-share-buttons'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div id="starter-questions">
|
||||
<label>
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'PUBLISHER NAME * (this will be displayed in the consent tool)',
|
||||
'sharethis-share-buttons'
|
||||
);
|
||||
?>
|
||||
</label>
|
||||
|
||||
<input type="text" id="sharethis-publisher-name" placeholder="Enter your company name">
|
||||
|
||||
<label>
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'WHICH USERS SHOULD BE ASKED FOR CONSENT?',
|
||||
'sharethis-share-buttons'
|
||||
);
|
||||
?>
|
||||
</label>
|
||||
|
||||
<select id="sharethis-user-type">
|
||||
<?php foreach ( $user_types as $user_value => $name ) : ?>
|
||||
<option value="<?php echo esc_attr( $user_value ); ?>">
|
||||
<?php echo esc_html( $name ); ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
|
||||
<label>
|
||||
<?php echo esc_html__( 'SELECT LANGUAGE', 'sharethis-share-buttons' ); ?>
|
||||
</label>
|
||||
|
||||
<select id="st-language">
|
||||
<?php foreach ( $languages as $language => $code ) : ?>
|
||||
<option value="<?php echo esc_attr( $code ); ?>">
|
||||
<?php echo esc_html( $language ); ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
|
||||
<p class="form-color">
|
||||
<label>
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'CHOOSE FORM COLOR',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</label>
|
||||
<div id="sharethis-form-color">
|
||||
<?php foreach ( $colors as $color ) : ?>
|
||||
<div class="color"
|
||||
data-value="<?php echo esc_attr( $color ); ?>"
|
||||
style="max-width: 30px; max-height: 30px; overflow: hidden;">
|
||||
<span style="content: ' '; background-color:<?php echo esc_html( $color ); ?>; padding: 40px;"></span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<div class="accor-wrap switch" id="purposes">
|
||||
<div class="accor-tab">
|
||||
<span class="accor-arrow">►</span>
|
||||
<?php echo esc_html__( 'WHY ARE YOU COLLECTING CUSTOMER DATA?', 'sharethis-share-buttons' ); ?>
|
||||
</div>
|
||||
|
||||
<div class="accor-content" id="publisher-purpose" class="switch">
|
||||
<?php require $this->plugin->dir_path . '/templates/general/gdpr/purposes.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ( isset( $vendor_data ) ) : ?>
|
||||
<div class="accor-wrap restrict-vendors">
|
||||
<div class="accor-tab">
|
||||
<span class="accor-arrow">►</span>
|
||||
<?php echo esc_html__( 'VENDOR EXCLUSIONS', 'sharethis-share-buttons' ); ?>
|
||||
</div>
|
||||
<div class="accor-content">
|
||||
<div class="well">
|
||||
<?php include $this->plugin->dir_path . '/templates/general/gdpr/exclusions.php'; ?>
|
||||
</div>
|
||||
</div
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( 'Enabled' === $enabled['gdpr'] ) : ?>
|
||||
<button class="disable-tool" data-button="gdpr-compliance-tool-v2">Disable Tool</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,207 @@
|
||||
<?php
|
||||
/**
|
||||
* GDPR Purposes.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="empty-choices">
|
||||
<a id="see-st-choices" class="st-rc-link medium-btn" href="#">See ShareThis Choices</a>
|
||||
<a id="clear-choices" class="st-rc-link medium-btn" href="#">Clear Choices</a>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'1) Store and/or access information on a device (Do you collect information on users on your site through cookies or site identifiers?)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="1" type="checkbox" name="purposes[1]" value="consent" checked/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'2) Select basic ads (Do you serve ads on your site?)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="2" type="radio" name="purposes[2]" value="consent"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="2" type="radio" name="purposes[2]" value="legitimate"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'3) Create a personalised ads profile (Do you create personalised advertising profiles associated with users on your site (ie: profiles based on demographic information, location, user’s activity)?)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="3" type="radio" name="purposes[3]" value="consent" checked/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="3" type="radio" name="purposes[3]" value="legitimate"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'4) Select personalised ads (Do you show ads to users based on this user profile)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="4" type="radio" name="purposes[4]" value="consent"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="4" type="radio" name="purposes[4]" value="legitimate"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'5) Create a personalised content profile (Do you build a personalized content profile associated with users on your site based on the type of content they have viewed?)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="5" type="radio" name="purposes[5]" value="consent" checked />
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="5" type="radio" name="purposes[5]" value="legitimate"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'6) Select personalised content (Do you serve content to the user on your site based on your recorded content interests)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="6" type="radio" name="purposes[6]" value="consent" checked />
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="6" type="radio" name="purposes[6]" value="legitimate"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'7) Measure ad performance (Do you measure the performance of advertisements on your site)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="7" type="radio" name="purposes[7]" value="consent"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="7" type="radio" name="purposes[7]" value="legitimate"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'8) Measure content performance (Do you measure the performance of content served to your site visitors?)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="8" type="radio" name="purposes[8]" value="consent"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="8" type="radio" name="purposes[8]" value="legitimate"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'9) Apply market research to generate audience insights (Do you aggregate reporting on the ads or content show to your site visitors to advertisers)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="9" type="radio" name="purposes[9]" value="consent"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="9" type="radio" name="purposes[9]" value="legitimate" checked />
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="purpose-item">
|
||||
<div class="title">
|
||||
<?php
|
||||
echo esc_html__(
|
||||
'10) Develop and improve products (Do you use data collected on your site visitors to improve your systems or software or create new products?)',
|
||||
'gdpr-complianc-tool'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Consent', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="10" type="radio" name="purposes[10]" value="consent"/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
<label>
|
||||
<?php echo esc_html__( 'Legitimate Interest', 'sharethis-share-buttons' ); ?>
|
||||
<input data-id="10" type="radio" name="purposes[10]" value="legitimate" checked/>
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* Meta Box Template
|
||||
*
|
||||
* The template wrapper for post/page meta box.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<div id="sharethis-meta-box">
|
||||
<?php if ( ! in_array( $inline_enable, array( null, false, 'false' ), true ) ) : ?>
|
||||
<div id="inline" class="button-setting-wrap">
|
||||
<h3><?php esc_html_e( 'Inline share buttons', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<div class="button-check-wrap">
|
||||
<input class="top" type="checkbox" id="sharethis-top-post" <?php echo checked( 'true', $this->is_box_checked( 'inline', '_top' ) ); ?>>
|
||||
|
||||
<label for="sharethis-top-post">
|
||||
<?php
|
||||
// translators: The post type.
|
||||
printf( esc_html__( 'Include at top of %1$s content', 'sharethis-share-buttons' ), esc_html( $post_type ) );
|
||||
?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="button-check-wrap">
|
||||
<input class="bottom" type="checkbox" id="sharethis-bottom-post" <?php echo checked( 'true', $this->is_box_checked( 'inline', '_bottom' ) ); ?>>
|
||||
|
||||
<label for="sharethis-bottom-post">
|
||||
<?php
|
||||
// translators: The post type.
|
||||
printf( esc_html__( 'Include at bottom of %1$s content', 'sharethis-share-buttons' ), esc_html( $post_type ) );
|
||||
?>
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="sharethis-shortcode" readonly value="[sharethis-inline-buttons]">
|
||||
|
||||
<span class="under-message"><?php esc_html_e( 'Inline share button shortcode.', 'sharethis-share-buttons' ); ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! in_array( $sticky_enable, array( null, false, 'false' ), true ) ) : ?>
|
||||
<div id="sticky" class="button-setting-wrap">
|
||||
<h3><?php esc_html_e( 'Sticky share buttons', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<input class="" type="checkbox" id="sharethis-sticky-show" <?php echo checked( 'true', $this->is_box_checked( 'sticky' ) ); ?>>
|
||||
|
||||
<label for="sharethis-sticky-show">
|
||||
<?php
|
||||
// translators: The post type.
|
||||
printf( esc_html__( 'Include on this %1$s', 'sharethis-share-buttons' ), esc_html( $post_type ) );
|
||||
?>
|
||||
</label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=sharethis-share-buttons' ) ); ?>">
|
||||
<?php esc_html_e( 'Update your default settings', 'sharethis-share-buttons' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
@@ -0,0 +1,321 @@
|
||||
<?php
|
||||
/**
|
||||
* Platform button configurations
|
||||
*
|
||||
* The template wrapper for the platform button configurations.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
use ShareThisShareButtons\Plugin;
|
||||
|
||||
$button = 'share_button_section_2' === $button['id'] ? 'sticky' : 'inline';
|
||||
$button_title = ucfirst( $button ) . ' Share Buttons';
|
||||
|
||||
// Set up classes.
|
||||
$classes = array();
|
||||
$classes[] = 'inline' === $button ? 'engage ' : '';
|
||||
$classes[] = strtolower( $button ) . '-platform platform-config-wrapper';
|
||||
?>
|
||||
<div data-enabled="<?php echo esc_attr( $enabled[ $button ] ); ?>" class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">
|
||||
<h2><?php echo esc_html( $button_title ); ?></h2>
|
||||
<?php if ( 'Disabled' === $enabled[ $button ] ) : ?>
|
||||
<button class="enable-tool" data-button="<?php echo esc_attr( $button ); ?>">Enable Tool</button>
|
||||
<?php endif; ?>
|
||||
<div class="sharethis-selected-networks">
|
||||
<div id="<?php echo esc_attr( strtolower( $button ) ); ?>-8" class="sharethis-<?php echo esc_attr( $button ); ?>-share-buttons"></div>
|
||||
</div>
|
||||
|
||||
<?php if ( 'inline' === $button ) : ?>
|
||||
<p class="st-preview-message manual-select engage">
|
||||
⇧ <?php echo esc_html__( 'Preview: click and drag to reorder' ); ?> ⇧
|
||||
</p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
require 'ssb.php';
|
||||
?>
|
||||
|
||||
<div id="<?php echo esc_attr( strtolower( $button ) ); ?>" class="button-configuration-wrap selected-button">
|
||||
<h3 class="manual-select engage"><?php echo esc_html__( 'Social networks', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<span class="config-desc manual-select engage">click a network to add or remove it from your preview. We've already included the most popular networks.</span>
|
||||
|
||||
<div class="<?php echo esc_attr( $button ); ?>-network-list share-buttons manual-select engage">
|
||||
<?php
|
||||
foreach ( $networks as $network_name => $network_info ) :
|
||||
$social_image = Plugin::getFormattedNetworkImage( $network_name );
|
||||
$network_name = Plugin::getPlatformName( $network_name );
|
||||
?>
|
||||
<div class="share-button" data-color="<?php echo esc_attr( $network_info['color'] ); ?>"
|
||||
data-selected="<?php echo esc_attr( true === isset( $network_info['selected'] ) ? $network_info['selected'] : '' ); ?>"
|
||||
data-network="<?php echo esc_attr( str_replace( 'pocket', 'getpocket', $network_name ) ); ?>"
|
||||
title="<?php echo esc_attr( $network_name ); ?>"
|
||||
style="background-color: <?php echo esc_attr( $network_info['color'] ); ?>;">
|
||||
<img alt="<?php echo esc_attr( $network_name ); ?>" src="<?php echo esc_url( $social_image ); ?>" />
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<span class="manual-select engage">
|
||||
<div class="notes">
|
||||
<span style="background: rgb(255, 189, 0); border-radius: 20px; font-size: 20px; margin: 0 .5rem; padding: 6px 0 0 5px;">
|
||||
<svg fill="#fff" preserveAspectRatio="xMidYMid meet" height="1em" width="1em" viewBox="0 0 40 40">
|
||||
<g>
|
||||
<path d="M29.577,23.563 C27.233,23.563 25.935,22.138 25.935,22.138 L27.22,20.283 C27.22,20.283 28.349,21.315 29.605,21.315 C30.108,21.315 30.652,21.12 30.652,20.52 C30.652,19.334 26.158,19.376 26.158,16.306 C26.158,14.464 27.707,13.25 29.688,13.25 C31.839,13.25 32.898,14.38 32.898,14.38 L31.866,16.376 C31.866,16.376 30.861,15.497 29.661,15.497 C29.159,15.497 28.6,15.72 28.6,16.278 C28.6,17.534 33.094,17.311 33.094,20.464 C33.094,22.125 31.824,23.563 29.577,23.563 L29.577,23.563 Z M23.027,23.394 L22.721,18.901 C22.665,18.147 22.721,17.227 22.721,17.227 L22.692,17.227 C22.692,17.227 22.356,18.273 22.134,18.901 L21.088,21.79 L18.994,21.79 L17.947,18.901 C17.724,18.273 17.389,17.227 17.389,17.227 L17.361,17.227 C17.361,17.227 17.417,18.147 17.361,18.901 L17.055,23.394 L14.598,23.394 L15.422,13.417 L18.073,13.417 L19.524,17.631 C19.748,18.273 20.026,19.278 20.026,19.278 L20.055,19.278 C20.055,19.278 20.334,18.273 20.557,17.631 L22.008,13.417 L24.66,13.417 L25.469,23.394 L23.027,23.394 Z M10.548,23.563 C8.204,23.563 6.906,22.138 6.906,22.138 L8.19,20.283 C8.19,20.283 9.32,21.315 10.576,21.315 C11.078,21.315 11.623,21.12 11.623,20.52 C11.623,19.334 7.129,19.376 7.129,16.306 C7.129,14.464 8.678,13.25 10.66,13.25 C12.808,13.25 13.869,14.38 13.869,14.38 L12.836,16.376 C12.836,16.376 11.832,15.497 10.632,15.497 C10.129,15.497 9.571,15.72 9.571,16.278 C9.571,17.534 14.064,17.311 14.064,20.464 C14.064,22.125 12.795,23.563 10.548,23.563 L10.548,23.563 Z M32.814,6 L7.185,6 C5.437,6 4,7.438 4,9.213 L4,28.99 C4,30.756 5.426,32.203 7.185,32.203 L10.61,32.203 L12.445,34.295 C13.086,34.952 14.117,34.949 14.755,34.295 L16.59,32.203 L32.814,32.203 C34.562,32.203 36,30.764 36,28.99 L36,9.213 C36,7.446 34.574,6 32.814,6 L32.814,6 Z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</span>
|
||||
|
||||
<?php echo esc_html__( 'The sms button only appears on mobile devices. It is included in your desktop preview for reference only.', 'sharethis-share-buttons' ); ?>
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<hr>
|
||||
|
||||
<?php if ( 'inline' === $button ) : ?>
|
||||
<div class="button-alignment">
|
||||
<h3><?php echo esc_html__( 'Alignment', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<div class="alignment-button" data-alignment="left" data-selected="false">
|
||||
<div class="top">
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
<div class="bottom"><?php echo esc_html__( 'Left', 'sharethis-share-buttons' ); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="alignment-button" data-alignment="center" data-selected="true">
|
||||
<div class="top">
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
<div class="bottom"><?php echo esc_html__( 'Center', 'sharethis-share-buttons' ); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="alignment-button" data-alignment="right" data-selected="false">
|
||||
<div class="top">
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
</div><div class="bottom"><?php echo esc_html__( 'Right', 'sharethis-share-buttons' ); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="alignment-button" data-alignment="justified" data-selected="false">
|
||||
<div class="top">
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
<div class="bottom"><?php echo esc_html__( 'Justified', 'sharethis-share-buttons' ); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ( 'inline' === $button ) : ?>
|
||||
<div class="st-radio-config button-config button-size">
|
||||
<h3><?php echo esc_html__( 'Size', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on" checked="checked">
|
||||
|
||||
<label id="small"><?php echo esc_html__( 'Small', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
<label id="medium"><?php echo esc_html__( 'Medium', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
<label id="large"><?php echo esc_html__( 'Large', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="button-config">
|
||||
<h3><?php echo esc_html__( 'Alignment', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<div class="item">
|
||||
<label>
|
||||
<span><?php echo esc_html__( 'Left', 'sharethis-share-buttons' ); ?></span>
|
||||
|
||||
<div class="switch sticky-alignment">
|
||||
<label>
|
||||
<input type="checkbox" value="on">
|
||||
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span><?php echo esc_html__( 'Right', 'sharethis-share-buttons' ); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lbl"><?php echo esc_html__( 'Vertical Alignment', 'sharethis-share-buttons' ); ?></span>
|
||||
|
||||
<input class="vertical-alignment" type="text" value="160">
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lbl"><?php echo esc_html__( 'Mobile Breakpoint', 'sharethis-share-buttons' ); ?></span>
|
||||
|
||||
<input class="mobile-breakpoint" type="text" value="1024">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="st-radio-config button-config button-labels">
|
||||
<h3><?php echo esc_html__( 'Labels', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on" checked="checked">
|
||||
|
||||
<label id="cta"><?php echo esc_html__( 'Call to Action', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
|
||||
<label id="counts"><?php echo esc_html__( 'Share Counts', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
|
||||
<label id="none"><?php echo esc_html__( 'None', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="st-radio-config button-config button-color">
|
||||
<h3><?php esc_html_e( 'Color', 'sharethis-share-buttons' ); ?></h3>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on" checked="checked">
|
||||
<label id="social"><?php esc_html_e( 'Social', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
<label id="white"><?php esc_html_e( 'White', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
<label id="black"><?php esc_html_e( 'Black', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
<label id="gray"><?php esc_html_e( 'Gray', 'sharethis-share-buttons' ); ?></label>
|
||||
</div>
|
||||
<div class="item">
|
||||
<input type="radio" class="with-gap" value="on">
|
||||
<label style="margin-bottom:1rem" id="custom"><?php esc_html_e( 'Custom', 'sharethis-share-buttons' ); ?></label>
|
||||
<br>
|
||||
<label id="background-color">Background</label>
|
||||
<input type="text" value="#bada55" class="custom-<?php echo 'inline' !== $button ? 'st-' : ''; ?>button-color" />
|
||||
<br>
|
||||
<label id="icon-color">Icon</label>
|
||||
<input type="text" value="#ffffff" class="custom-<?php echo 'inline' !== $button ? 'st-' : ''; ?>icon-color" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="button-config">
|
||||
<h3><?php echo esc_html__( 'Counts', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<div class="item">
|
||||
<span class="lbl show-total-count"><?php echo esc_html__( 'Show total count', 'sharethis-share-buttons' ); ?></span>
|
||||
|
||||
<div class="switch">
|
||||
<label>
|
||||
<input type="checkbox" value="on" checked="checked">
|
||||
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item tooltip">
|
||||
<span class="lbl">
|
||||
<?php echo esc_html__( 'Minimum Count', 'sharethis-share-buttons' ); ?>
|
||||
<span class="tooltip-icon tooltipped" data-delay="50" data-position="right" data-tooltip="This is the minimum number of shares a page needs to have before we'll show your share counts." data-tooltip-id="233a37b7-7c96-eb8b-128e-80c62a922f41">
|
||||
<svg fill="#fff" preserveAspectRatio="xMidYMid meet" height="1em" width="1em" viewBox="0 0 40 40">
|
||||
<g>
|
||||
<path d="m23.2 28v5.4q0 0.4-0.3 0.6t-0.6 0.3h-5.3q-0.4 0-0.7-0.3t-0.2-0.6v-5.4q0-0.3 0.2-0.6t0.7-0.3h5.3q0.4 0 0.6 0.3t0.3 0.6z m7.1-13.4q0 1.2-0.4 2.3t-0.8 1.7-1.2 1.3-1.3 1-1.3 0.8q-0.9 0.5-1.6 1.4t-0.6 1.5q0 0.4-0.2 0.8t-0.7 0.3h-5.3q-0.4 0-0.6-0.4t-0.2-0.8v-1q0-1.9 1.4-3.5t3.2-2.5q1.3-0.6 1.9-1.2t0.5-1.7q0-0.9-1-1.7t-2.4-0.7q-1.4 0-2.4 0.7-0.8 0.5-2.4 2.5-0.3 0.4-0.7 0.4-0.2 0-0.5-0.2l-3.7-2.8q-0.3-0.2-0.3-0.5t0.1-0.6q3.5-6 10.3-6 1.8 0 3.6 0.7t3.3 1.9 2.4 2.8 0.9 3.5z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</span>
|
||||
<div class="material-tooltip"><span><?php echo esc_html__( 'This is the minimum number of shares a page needs to have before we\'ll show your share counts.', 'sharethis-share-buttons' ); ?></span><div class="backdrop" style="top: -7px; left: 0px; width: 14px; height: 14px; border-radius: 0px 14px 14px 0px; transform-origin: 5% 50% 0px; margin-top: 31px; margin-left: 0px; display: none; opacity: 0; transform: scaleX(1) scaleY(1);"></div></div>
|
||||
</span>
|
||||
|
||||
<input class="minimum-count" type="text" value="10">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="button-config">
|
||||
<h3 class="center"><?php echo esc_html__( 'Corners', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<span><?php echo esc_html__( 'Square', 'sharethis-share-buttons' ); ?></span>
|
||||
<span class="range-field">
|
||||
<input type="range" min="0" max="16" value="4" id="radius-selector" style="width: 200px; margin: 5px;">
|
||||
<span class="thumb">
|
||||
<span class="value"></span>
|
||||
</span>
|
||||
</span>
|
||||
<span><?php echo esc_html__( 'Rounded', 'sharethis-share-buttons' ); ?></span>
|
||||
</div>
|
||||
<div class="button-config">
|
||||
<h3><?php echo esc_html__( 'Extras', 'sharethis-share-buttons' ); ?></h3>
|
||||
|
||||
<?php if ( 'inline' === $button ) : ?>
|
||||
<div class="item">
|
||||
<span class="lbl"><?php echo esc_html__( 'Add Spacing', 'sharethis-share-buttons' ); ?></span>
|
||||
|
||||
<div class="switch extra-spacing">
|
||||
<label>
|
||||
<input type="checkbox" value="on" checked="checked">
|
||||
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="item">
|
||||
<span class="lbl"><?php echo esc_html__( 'Show on mobile', 'sharethis-share-buttons' ); ?></span>
|
||||
|
||||
<div class="switch show-on-mobile">
|
||||
<label>
|
||||
<input type="checkbox" value="on" checked="checked">
|
||||
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lbl"><?php echo esc_html__( 'Show on desktop', 'sharethis-share-buttons' ); ?></span>
|
||||
|
||||
<div class="switch show-on-desktop">
|
||||
<label>
|
||||
<input type="checkbox" value="on" checked="checked">
|
||||
|
||||
<span class="lever"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="button-config">
|
||||
<h3 class="center"><?php echo esc_html__( 'Languages', 'sharethis-share-buttons' ); ?></h3>
|
||||
<span class="select-field">
|
||||
<select id="st-language-<?php echo esc_attr( $button ); ?>">
|
||||
<?php foreach ( $languages as $language_name => $code ) : ?>
|
||||
<option class="language-option" value="<?php echo esc_attr( $code ); ?>">
|
||||
<?php echo esc_html( $language_name ); ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ( 'Enabled' === $enabled[ $button ] ) : ?>
|
||||
<button class="disable-tool" data-button="<?php echo esc_attr( $button ); ?>">Disable Tool</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Enable Button Template
|
||||
*
|
||||
* The template wrapper for the enable button settings.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
$option_value = get_option( 'sharethis_' . $id );
|
||||
?>
|
||||
<div id="<?php echo esc_attr( ucfirst( $id ) ); ?>" class="enable-buttons">
|
||||
<label class="share-on">
|
||||
<input type="radio" id="sharethis_<?php echo esc_attr( $id ); ?>_on" name="sharethis_<?php echo esc_attr( $id ); ?>" value="true" <?php echo esc_attr( checked( 'true', $option_value, false ) ); ?>>
|
||||
<div class="label-text"><?php esc_html_e( 'On', 'sharethis-share-buttons' ); ?></div>
|
||||
</label>
|
||||
<label class="share-off">
|
||||
<input type="radio" id="sharethis_<?php echo esc_attr( $id ); ?>_off" name="sharethis_<?php echo esc_attr( $id ); ?>" value="false" <?php echo esc_attr( checked( 'false', $option_value, false ) ); ?>>
|
||||
<div class="label-text"><?php esc_html_e( 'Off', 'sharethis-share-buttons' ); ?></div>
|
||||
</label>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* List Template
|
||||
*
|
||||
* The template wrapper for the list of pages / categories used for exclusion.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="list-wrapper">
|
||||
<h4>
|
||||
<?php
|
||||
// translators: The list type plural.
|
||||
printf( esc_html__( 'Exclude specific %1$s', 'sharethis-share-buttons' ), esc_html( $type['multi'] ) );
|
||||
?>
|
||||
</h4>
|
||||
<input id="<?php echo esc_attr( $type['single'] ); ?>-ta" type="text" placeholder="
|
||||
<?php
|
||||
// translators: The list type singular.
|
||||
printf( esc_html__( 'Search for a %1$s', 'sharethis-share-buttons' ), esc_html( $type['single'] ) );
|
||||
?>
|
||||
" size="40" autocomplete="off">
|
||||
<span id="<?php echo esc_attr( $type['single'] ); ?>" class="search-st-icon"></span>
|
||||
<ul id="<?php echo esc_attr( $type['single'] ); ?>-result-wrapper"></ul>
|
||||
<ul id="<?php echo esc_attr( $type['single'] ); ?>-current-omit"><?php echo wp_kses( $current_omit, $allowed ); ?></ul>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* On Off Button Template
|
||||
*
|
||||
* The template wrapper for the On Off button settings.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="onoff-buttons">
|
||||
<label class="share-on">
|
||||
<input type="radio" id="sharethis_<?php echo esc_attr( $type ); ?>_settings_<?php echo esc_attr( $option ); ?>_on" name="sharethis_<?php echo esc_attr( $type ); ?>_settings[<?php echo esc_attr( $option ); ?>]" value="true" <?php echo false !== $option_value[ $option ] && 'true' === $option_value[ $option ] ? 'checked="checked"' : esc_attr( $default['true'] ); ?>>
|
||||
|
||||
<div class="label-text"><?php esc_html_e( 'On', 'sharethis-share-buttons' ); ?></div>
|
||||
</label>
|
||||
<label class="share-off">
|
||||
<input type="radio" id="sharethis_<?php echo esc_attr( $type ); ?>_settings_<?php echo esc_attr( $option ); ?>_off" name="sharethis_<?php echo esc_attr( $type ); ?>_settings[<?php echo esc_attr( $option ); ?>]" value="false" <?php echo false !== $option_value[ $option ] && 'false' === $option_value[ $option ] ? 'checked="checked"' : esc_attr( $default['false'] ); ?>>
|
||||
|
||||
<div class="label-text"><?php esc_html_e( 'Off', 'sharethis-share-buttons' ); ?></div>
|
||||
</label>
|
||||
|
||||
<div class="option-title"><?php echo esc_html( $title ); ?></div>
|
||||
<?php if ( $margin ) : ?>
|
||||
<button class="margin-control-button<?php echo ' ' . esc_attr( $active['class'] ); ?>" type="button">
|
||||
<?php esc_html_e( 'margin', 'sharethis-share-buttons' ); ?>
|
||||
<span class="margin-on-off"><?php echo esc_html( $active['onoff'] ); ?></span>
|
||||
</button>
|
||||
<div class="margin-input-fields">
|
||||
<?php esc_html_e( 'top', 'sharethis-share-buttons' ); ?> <input id="sharethis_<?php echo esc_attr( $type ); ?>_settings_<?php echo esc_attr( $option ); ?>_margin_top" name="sharethis_<?php echo esc_attr( $type ); ?>_settings[<?php echo esc_attr( $option ); ?>_margin_top]" type="number" value="<?php echo intval( $option_value[ $option . '_margin_top' ] ); ?>" min="0"> px
|
||||
<span class="margin-input-spacer">|</span>
|
||||
<?php esc_html_e( 'bottom', 'sharethis-share-buttons' ); ?> <input id="sharethis_<?php echo esc_attr( $type ); ?>_settings_<?php echo esc_attr( $option ); ?>_margin_bottom" name="sharethis_<?php echo esc_attr( $type ); ?>_settings[<?php echo esc_attr( $option ); ?>_margin_bottom]" type="number" value="<?php echo intval( $option_value[ $option . '_margin_bottom' ] ); ?>" min="0"> px
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Share Button Settings Template
|
||||
*
|
||||
* The template wrapper for the share buttons settings page.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<hr class="wp-header-end" style="display:none;">
|
||||
<div class="wrap sharethis-wrap">
|
||||
<?php echo wp_kses_post( $description ); ?>
|
||||
<div class="tabs-wrap">
|
||||
<?php require $this->plugin->dir_path . '/templates/share-buttons/tabs.php'; ?>
|
||||
</div>
|
||||
|
||||
<form action="options.php" method="post" id="sharethissharebuttonsform" name="sharethissharebuttonsform">
|
||||
<?php
|
||||
settings_fields( $this->menu_slug . '-share-buttons' );
|
||||
do_settings_sections( $this->menu_slug . '-share-buttons' );
|
||||
submit_button( esc_html__( 'Update', 'sharethis-share-buttons' ) );
|
||||
?>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode Template
|
||||
*
|
||||
* The template wrapper for inline share button shortcode.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<textarea id="holdtext" style="display:none;"></textarea>
|
||||
|
||||
<div class="readonly-input-field">
|
||||
<input type="text" id="inline-<?php echo esc_attr( $type['type'] ); ?>" value="<?php echo esc_attr( $type['value'] ); ?>" readonly size="40"/>
|
||||
<button type="button" id="copy-<?php echo esc_attr( $type['type'] ); ?>"><?php esc_html_e( 'Copy', 'sharethis-share-buttons' ); ?></button>
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Template for ssb selector.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<p class="st-preview-message ssb-select">
|
||||
<?php esc_html_e( 'Preview: for reference only', 'sharethis-custom' ); ?>
|
||||
</p>
|
||||
<div class="network-select-type-wrap">
|
||||
<h2 style="text-align: center;"><?php esc_html_e( 'Channels', 'sharethis-custom' ); ?></h2>
|
||||
<div class="manual-share network-type st-radio-config engage">
|
||||
<div class="item">
|
||||
<input name="network-select-type engage" class="with-gap" type="radio" value="manual-share" checked="checked" />
|
||||
<label>
|
||||
<?php esc_html_e( 'Choose Buttons Manually', 'sharethis-custom' ); ?>
|
||||
</label>
|
||||
<p>
|
||||
<?php esc_html_e( 'Select your own social networks and customize', 'sharethis-custom' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="smart-share network-type st-radio-config">
|
||||
<div class="item">
|
||||
<input name="network-select-type" class="with-gap" type="radio" value="smart-share" />
|
||||
<label>
|
||||
<?php esc_html_e( 'Smart Share Buttons', 'sharethis-custom' ); ?>
|
||||
</label>
|
||||
</div>
|
||||
<p>
|
||||
<?php esc_html_e( 'Automatically selects which social channels to display based on each user’s geolocation and device type', 'sharethis-custom' ); ?>
|
||||
</p>
|
||||
<label for="social-service-count">
|
||||
<?php esc_html_e( 'Select the number or Social Services' ); ?>
|
||||
<select id="social-service-count" name="social-service-count">
|
||||
<?php foreach ( array( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ) as $count ) : ?>
|
||||
<option value="<?php echo esc_html( $count ); ?>" <?php echo selected( 6, $count ); ?>><?php echo esc_html( $count ); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Tabs for product select.
|
||||
*
|
||||
* @package ShareThisShareButtons
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="button-tab inline engage">
|
||||
<img src="<?php echo esc_url( $this->plugin->dir_url ) . '/assets/inline-share-buttons.svg'; ?>">
|
||||
<?php esc_html_e( 'Inline Share Buttons' ); ?>
|
||||
<span><?php echo esc_html( $enabled['inline'] ); ?></span>
|
||||
</div>
|
||||
<div class="button-tab sticky">
|
||||
<img src="<?php echo esc_url( $this->plugin->dir_url ) . '/assets/sticky-share-buttons.svg'; ?>">
|
||||
<?php esc_html_e( 'Sticky Share Buttons' ); ?>
|
||||
<span><?php echo esc_html( $enabled['sticky'] ); ?></span>
|
||||
</div>
|
||||
<div class="button-tab gdpr">
|
||||
<img src="<?php echo esc_url( $this->plugin->dir_url ) . '/assets/consent-management-platform.svg'; ?>">
|
||||
<?php esc_html_e( 'Consent Management Platform' ); ?>
|
||||
<span><?php echo esc_html( $enabled['gdpr'] ); ?></span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user