File "switch.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/elementskit-lite/libs/framework/controls/settings/switch.php
File size: 1.78 KB
MIME-type: text/plain
Charset: utf-8
<div class="attr-input attr-input-switch <?php echo esc_attr( $class ); ?>">
<?php
// note:
// $options['large_img'] $options['icon'] $options['small_img'] self::strify($name) $label $value
// $options['checked'] true / false
$no_demo = array(
'sticky-content',
'nav-menu',
'header-info',
'elementskit-icon-pack',
'back-to-top',
'image-swap',
'facebook-messenger',
'advanced-tooltip',
'fluent-forms',
'zoom',
'form-conditional-fields',
'pro-form-reset-button',
'google_sheet_for_elementor_pro_form',
'pro-form-signature-field'
);
?>
<div class="ekit-admin-input-switch ekit-admin-card-shadow attr-card-body">
<input <?php echo esc_attr( $options['checked'] === true ? 'checked' : '' ); ?>
type="checkbox" value="<?php echo esc_attr( $value ); ?>"
class="ekit-admin-control-input"
name="<?php echo esc_attr( $name ); ?>"
id="ekit-admin-switch__<?php echo esc_attr( self::strify( $name ) . $value ); ?>"
<?php
if ( isset( $attr ) ) {
foreach ( $attr as $k => $v ) {
echo esc_attr($k) .'='. esc_attr($v);
}
}
?>
>
<label class="ekit-admin-control-label" for="ekit-admin-switch__<?php echo esc_attr( self::strify( $name ) . $value ); ?>">
<span class="ekit-admin-control-label-text"><?php echo esc_html( $label ); ?></span>
<span class="ekit-admin-control-label-switch" data-active="ON" data-inactive="OFF"></span>
</label>
</div>
<?php
$slug = 'elementskit/';
if ( ! in_array( $value, $no_demo ) ) :
if ( $value === 'parallax' ) {
$value = 'effects';
}
?>
<a target="_blank" href="https://wpmet.com/plugin/<?php echo esc_attr( $slug ) . esc_attr( $value ); ?>/" class="ekit-admin-demo-tooltip"><i class="fa fa-laptop"></i><?php esc_html_e( 'View Demo', 'elementskit-lite' ); ?></a>
<?php endif; ?>
</div>