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:
SRIRAM RAO TAKKALLAPELLY
2024-05-17 14:24:19 +00:00
parent 5dbb0b284e
commit 4783d97a46
44 changed files with 7815 additions and 0 deletions

View File

@@ -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>