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/section-videolightbox.php.tar

home/xbodynamge/lebauwcentre/wp-content/themes/onepress/section-parts/section-videolightbox.php000064400000003272151143144110027346 0ustar00<?php
$id       = get_theme_mod( 'onepress_videolightbox_id', 'videolightbox' );
$disable  = get_theme_mod( 'onepress_videolightbox_disable' ) == 1 ? true : false;
$heading  = get_theme_mod( 'onepress_videolightbox_title' );
$video    = get_theme_mod( 'onepress_videolightbox_url' );
if ( onepress_is_selective_refresh() ) {
    $disable = false;
}

if ( ! $disable ) {
    if ( (!$disable && ($video || $heading)) || onepress_is_selective_refresh()) {
        ?>
        <section id="<?php if ($id != '') echo esc_attr($id); ?>" <?php do_action('onepress_section_atts', 'videolightbox'); ?>
        class="<?php echo esc_attr(apply_filters('onepress_section_class', 'section-videolightbox section-padding section-padding-larger section-inverse onepage-section', 'videolightbox')); ?>">
    <?php } ?>
    <?php do_action('onepress_section_before_inner', 'videolightbox'); ?>
    <div class="<?php echo esc_attr(apply_filters('onepress_section_container_class', 'container', 'videolightbox')); ?>">
        <?php if ($video) { ?>
            <div class="videolightbox__icon videolightbox-popup">
                <a href="<?php echo esc_attr($video); ?>" data-scr="<?php echo esc_attr($video); ?>" class="popup-video">
                    <span class="video_icon"><i class="fa fa-play"></i></span>
                </a>
            </div>
        <?php } ?>
        <?php if ($heading) { ?>
            <h2 class="videolightbox__heading"><?php echo do_shortcode(wp_kses_post($heading)); ?></h2>
        <?php } ?>
    </div>
    <?php do_action('onepress_section_after_inner', 'videolightbox'); ?>
    <?php if ( ( !$disable && ($video || $heading)) || onepress_is_selective_refresh()) { ?>
        </section>
    <?php }
}
xbodynamge/lebauwcentre/wp-content/themes/onepress/inc/customize-configs/section-videolightbox.php000064400000005625151150775750030743 0ustar00home<?php
/*------------------------------------------------------------------------*/
/*  Section: Video Popup
/*------------------------------------------------------------------------*/
$wp_customize->add_panel( 'onepress_videolightbox' ,
	array(
		'priority'        => 180,
		'title'           => esc_html__( 'Section: Video Lightbox', 'onepress' ),
		'description'     => '',
		'active_callback' => 'onepress_showon_frontpage'
	)
);

$wp_customize->add_section( 'onepress_videolightbox_settings' ,
	array(
		'priority'    => 3,
		'title'       => esc_html__( 'Section Settings', 'onepress' ),
		'description' => '',
		'panel'       => 'onepress_videolightbox',
	)
);

// Show Content
$wp_customize->add_setting( 'onepress_videolightbox_disable',
	array(
		'sanitize_callback' => 'onepress_sanitize_checkbox',
		'default'           => '',
	)
);
$wp_customize->add_control( 'onepress_videolightbox_disable',
	array(
		'type'        => 'checkbox',
		'label'       => esc_html__('Hide this section?', 'onepress'),
		'section'     => 'onepress_videolightbox_settings',
		'description' => esc_html__('Check this box to hide this section.', 'onepress'),
	)
);

// Section ID
$wp_customize->add_setting( 'onepress_videolightbox_id',
	array(
		'sanitize_callback' => 'onepress_sanitize_text',
		'default'           => 'videolightbox',
	)
);
$wp_customize->add_control( 'onepress_videolightbox_id',
	array(
		'label' 		=> esc_html__('Section ID:', 'onepress'),
		'section' 		=> 'onepress_videolightbox_settings',
		'description'   => esc_html__('The section ID should be English character, lowercase and no space.', 'onepress' )
	)
);

// Title
$wp_customize->add_setting( 'onepress_videolightbox_title',
	array(
		'sanitize_callback' => 'onepress_sanitize_text',
		'default'           => '',
	)
);

$wp_customize->add_control( new OnePress_Editor_Custom_Control(
	$wp_customize,
	'onepress_videolightbox_title',
	array(
		'label'     	=>  esc_html__('Section heading', 'onepress'),
		'section' 		=> 'onepress_videolightbox_settings',
		'description'   => '',
	)
));

// Video URL
$wp_customize->add_setting( 'onepress_videolightbox_url',
	array(
		'sanitize_callback' => 'esc_url_raw',
		'default'           => '',
	)
);
$wp_customize->add_control( 'onepress_videolightbox_url',
	array(
		'label' 		=> esc_html__('Video url', 'onepress'),
		'section' 		=> 'onepress_videolightbox_settings',
		'description'   =>  esc_html__('Paste Youtube or Vimeo url here', 'onepress'),
	)
);

// Parallax image
$wp_customize->add_setting( 'onepress_videolightbox_image',
	array(
		'sanitize_callback' => 'onepress_sanitize_number',
		'default'           => '',
	)
);
$wp_customize->add_control( new WP_Customize_Media_Control(
	$wp_customize,
	'onepress_videolightbox_image',
	array(
		'label' 		=> esc_html__('Background image', 'onepress'),
		'section' 		=> 'onepress_videolightbox_settings',
	)
));

onepress_add_upsell_for_section( $wp_customize, 'onepress_videolightbox_settings' );