PluginProbe ʕ •ᴥ•ʔ
ShareThis Follow Buttons / 1.1.1
ShareThis Follow Buttons v1.1.1
1.4.7 trunk 1.0.1 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6
sharethis-follow-buttons / templates / follow-buttons / onoff-buttons.php
sharethis-follow-buttons / templates / follow-buttons Last commit date
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