button-config.php
8 years ago
enable-buttons.php
8 years ago
follow-button-settings.php
8 years ago
list.php
8 years ago
onoff-buttons.php
8 years ago
shortcode-templatecode.php
8 years ago
widget.php
8 years ago
onoff-buttons.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * On Off Button Template |
| 4 | * |
| 5 | * The template wrapper for the On Off button settings. |
| 6 | * |
| 7 | * @package ShareThisReacionButtons |
| 8 | */ |
| 9 | |
| 10 | ?> |
| 11 | <div class="onoff-buttons"> |
| 12 | <label class="share-on"> |
| 13 | <input type="radio" id="sharethis_inline-follow_settings_<?php echo esc_attr( $option ); ?>_on" name="sharethis_inline-follow_settings[<?php echo esc_attr( $option ); ?>]" value="true" <?php echo false !== $option_value[ $option ] && 'true' === $option_value[ $option ] ? 'checked="checked"' : esc_attr( $default['true'] ); ?>> |
| 14 | |
| 15 | <div class="label-text"><?php esc_html_e( 'On', 'sharethis-follow-buttons' ); ?></div> |
| 16 | </label> |
| 17 | <label class="share-off"> |
| 18 | <input type="radio" id="sharethis_inline-follow_settings_<?php echo esc_attr( $option ); ?>_off" name="sharethis_inline-follow_settings[<?php echo esc_attr( $option ); ?>]" value="false" <?php echo false !== $option_value[ $option ] && 'false' === $option_value[ $option ] ? 'checked="checked"' : esc_attr( $default['false'] ); ?>> |
| 19 | |
| 20 | <div class="label-text"><?php esc_html_e( 'Off', 'sharethis-follow-buttons' ); ?></div> |
| 21 | </label> |
| 22 | |
| 23 | <div class="option-title"><?php echo esc_html( $title ); ?></div> |
| 24 | <?php if ( $margin ) : ?> |
| 25 | <button class="margin-control-button<?php echo ' ' . esc_attr( $active['class'] ); ?>" type="button"> |
| 26 | <?php esc_html_e( 'margin', 'sharethis-follow-buttons' ); ?> |
| 27 | <span class="margin-on-off"><?php echo esc_html( $active['onoff'] ); ?></span> |
| 28 | </button> |
| 29 | <div class="margin-input-fields"> |
| 30 | <?php esc_html_e( 'top', 'sharethis-follow-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 |
| 31 | <span class="margin-input-spacer">|</span> |
| 32 | <?php esc_html_e( 'bottom', 'sharethis-follow-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 |
| 33 | </div> |
| 34 | <?php endif; ?> |
| 35 | </div> |
| 36 |