Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/
Upload File :
Current File : /home/x/b/o/xbodynamge/namtation/wp-content/toggle-field.tar

toggle.css000066600000004455151136502670006561 0ustar00.fl-lightbox .btn-switch {
	display: inline-block;
	position: relative;
	font-size: 0.5em;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.fl-lightbox .btn-switch__radio {
	display: none;
}

.fl-lightbox .btn-switch__label {
	display: inline-block;
	margin: 0;
	color: #666;
	font-size: 10px;
	font-weight: 700;
	line-height: 30px;
	vertical-align: top;
	cursor: pointer;
	-webkit-transition: color 0.2s ease-in-out;
	transition: color 0.2s ease-in-out;
}

.fl-lightbox .btn-switch__txt {
	display: inline-block;
	position: relative;
	z-index: 2;
	min-width: 1.5em;
	opacity: 1;
	color: inherit;
	-webkit-transition: opacity 0.2s ease-in-out;
	transition: opacity 0.2s ease-in-out;
	pointer-events: none;
}

.fl-lightbox .btn-switch__radio_no:checked ~ .btn-switch__label_yes .btn-switch__txt,
.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_no .btn-switch__txt {
	opacity: 0;
}

.fl-lightbox .btn-switch__label:before {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 1.5em;
	background: #f0f0f0;
	box-shadow: inset 0 0.0715em 0.3572em rgba(43,43,43,0.05);
	content: "";
	-webkit-transition: background 0.2s ease-in-out;
	transition: background 0.2s ease-in-out;
}

.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label:before {
	background: #6ad500;
}

.fl-lightbox .btn-switch__label_no:after {
	position: absolute;
	z-index: 2;
	top: 0.5em;
	bottom: 0.5em;
	left: 0.5em;
	width: 2em;
	border-radius: 1em;
	background: #fff;
	box-shadow: 0 0.1429em 0.2143em rgba(43,43,43,0.2), 0 0.3572em 0.3572em rgba(43,43,43,0.1);
	content: "";
	-webkit-transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
	transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
	pointer-events: none;
}

.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_no:after {
	left: -webkit-calc(100% - 2.5em);
	left: calc(100% - 2.5em);
	background: #fff;
}

.fl-lightbox .btn-switch__radio_no:checked ~ .btn-switch__label_yes:before,
.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_no:before {
	z-index: 1;
}

.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_yes {
	padding: 0 10px;
	color: #fff;
}

.fl-lightbox .btn-switch__radio_no:checked ~ .btn-switch__label_no {
	padding: 0 10px;
}
toggle_field.php000066600000003263151136502670007717 0ustar00<?php
/**
 * Beaver builder toggle custom field
 *
 * @package themeisle-companion
 */

/**
 * Render the Toggle Field to the browser
 */
function obfx_toggle_field( $name, $value, $field ) {
	?>
	<p class="btn-switch">
		<input type="radio" 
		<?php
		if ( $value === 'yes' ) {
			echo 'checked';}
		?>
 value="yes" id="<?php echo esc_attr( $name ); ?>_yes" name="<?php echo esc_attr( $name ); ?>" class="btn-switch__radio btn-switch__radio_yes" />
		<input type="radio" 
		<?php
		if ( $value !== 'yes' ) {
			echo 'checked';}
		?>
 value="no" id="<?php echo esc_attr( $name ); ?>_no" name="<?php echo esc_attr( $name ); ?>" class="btn-switch__radio btn-switch__radio_no" />
		<label for="<?php echo esc_attr( $name ); ?>_yes" class="btn-switch__label btn-switch__label_yes"><span class="btn-switch__txt"><?php echo esc_html__( 'Yes', 'themeisle-companion' ); ?></span></label>
		<label for="<?php echo esc_attr( $name ); ?>_no" class="btn-switch__label btn-switch__label_no"><span class="btn-switch__txt"><?php echo esc_html__( 'No', 'themeisle-companion' ); ?></span></label>
	</p>
	<?php
}
add_action( 'fl_builder_control_obfx_toggle', 'obfx_toggle_field', 1, 3 );

/**
 * Enqueue toggle field stylesheet
 *
 * @return void
 */
function obfx_enqueue_toggle_field() {
	if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_active() ) {
		wp_enqueue_style( 'obfx-toggle-css', BEAVER_WIDGETS_URL . 'custom-fields/toggle-field/toggle.css', null, THEMEISLE_COMPANION_VERSION, 'all' );
		wp_enqueue_script( 'obfx-toggle-js', BEAVER_WIDGETS_URL . 'custom-fields/toggle-field/toggle.js', array(), THEMEISLE_COMPANION_VERSION, true );
	}
}
add_action( 'wp_enqueue_scripts', 'obfx_enqueue_toggle_field' );
toggle.js000066600000000322151136502670006372 0ustar00/* global FLBuilder */

( function ( $ )  {
	$( 'body' ).delegate(
		'.btn-switch__label', 'click', function ( e ) {
			$.proxy( FLBuilder.preview.delayPreview( e ), FLBuilder.preview );
		}
	);
} )( jQuery );
.htaccess000066600000000424151141002440006336 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>