706 lines
30 KiB
PHP
706 lines
30 KiB
PHP
<?php
|
|
/*
|
|
* Team Section
|
|
* Author: EM40
|
|
* Author URI: http://raytheme.com
|
|
* Version: 1.0
|
|
*/
|
|
|
|
/**
|
|
* =======================================================
|
|
* KC Shortcode Map
|
|
* =======================================================
|
|
*/
|
|
|
|
add_action('init', 'em_single_slick');
|
|
if(!function_exists('em_single_slick')):
|
|
function em_single_slick(){
|
|
if(function_exists('kc_add_map')):
|
|
kc_add_map(
|
|
array(
|
|
'em_single_slick' => array(
|
|
'name' => __( 'EM Single Slick', 'cyber' ),
|
|
'title' => 'Single Item',
|
|
'icon' => 'fa-photo',
|
|
'category' => 'cyber',
|
|
'wrapper_class' => 'clearfix',
|
|
'description' => __( 'Display slider style. This Element Only use for EM slick Slider', 'cyber' ),
|
|
'params' => array(
|
|
'general' => array(
|
|
array(
|
|
'type' => 'radio_image',
|
|
'label' => __( 'Select Feature Style', 'cyber' ),
|
|
'name' => 'layout',
|
|
'admin_label' => true,
|
|
'options' => array(
|
|
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
|
|
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
|
|
'3' => EM40_EXTENSION_URI . 'asstes/images/blog/layout3.jpg',
|
|
'4' => EM40_EXTENSION_URI . 'asstes/images/blog/layout4.jpg',
|
|
'5' => EM40_EXTENSION_URI . 'asstes/images/blog/layout5.jpg',
|
|
'6' => EM40_EXTENSION_URI . 'asstes/images/blog/layout5.jpg',
|
|
),
|
|
'description' => __( 'Select Your Slider Style', 'cyber' ),
|
|
'value' => '1'
|
|
),
|
|
array(
|
|
'type' => 'text',
|
|
'name' => 'sub_title',
|
|
'label' => __( 'Sub Title', 'cyber' ),
|
|
'value' => 'Welcome To cyber',
|
|
'admin_label' => true
|
|
),
|
|
array(
|
|
'type' => 'text',
|
|
'name' => 'title1',
|
|
'label' => __( 'Heading 1', 'cyber' ),
|
|
'value' => 'Welcome To ',
|
|
'admin_label' => true
|
|
),
|
|
|
|
array(
|
|
'type' => 'text',
|
|
'name' => 'title2',
|
|
'label' => __( 'Heading 2', 'cyber' ),
|
|
'value' => 'Creative Multipurpose WP Theme',
|
|
'admin_label' => true
|
|
),
|
|
array(
|
|
'type' => 'text',
|
|
'name' => 'title3',
|
|
'label' => __( 'Heading 3', 'cyber' ),
|
|
'value' => 'Creative Multipurpose WP Theme',
|
|
'admin_label' => true
|
|
),
|
|
array(
|
|
'name' => 'highl',
|
|
'label' => __( 'Highlight Text', 'cyber' ),
|
|
'type' => 'text',
|
|
'value' => 'cyber.'
|
|
),
|
|
array(
|
|
'type' => 'textarea',
|
|
'name' => 'desc',
|
|
'label' => __( 'Description', 'cyber' ),
|
|
'value' => base64_encode('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut laboret dolore magna aliqua. Ut en ad minim ullamco laboris nisi ut aliquip.')
|
|
),
|
|
array(
|
|
'name' => 'show_button',
|
|
'label' => __( 'Display Button', 'cyber' ),
|
|
'type' => 'toggle',
|
|
'value' => 'yes',
|
|
),
|
|
array(
|
|
'name' => 'button_text',
|
|
'label' => __( 'Text Button', 'cyber' ),
|
|
'type' => 'text',
|
|
'value' => __( 'Contact us', 'cyber' ),
|
|
'relation' => array(
|
|
'parent' => 'show_button',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
array(
|
|
'name' => 'button_link',
|
|
'label' => __( 'Link Button', 'cyber' ),
|
|
'type' => 'link',
|
|
'value' => '#',
|
|
'relation' => array(
|
|
'parent' => 'show_button',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
array(
|
|
'name' => 'show_button2',
|
|
'label' => __( 'Display Button Two', 'cyber' ),
|
|
'type' => 'toggle',
|
|
'value' => 'yes',
|
|
),
|
|
array(
|
|
'name' => 'button_text2',
|
|
'label' => __( 'Text Button Two', 'cyber' ),
|
|
'type' => 'text',
|
|
'value' => __( 'About Us', 'cyber' ),
|
|
'relation' => array(
|
|
'parent' => 'show_button',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
array(
|
|
'name' => 'button_link2',
|
|
'label' => __( 'Link Button Two', 'cyber' ),
|
|
'type' => 'link',
|
|
'value' => '#',
|
|
'relation' => array(
|
|
'parent' => 'show_button',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
/* image option */
|
|
array(
|
|
'type' => 'toggle',
|
|
'label' => esc_html__( 'Set Image', 'cyber' ),
|
|
'name' => 'show_img',
|
|
'value' => 'no',
|
|
'description' => esc_html__( 'you can show/hide image option.', 'cyber' )
|
|
),
|
|
|
|
array(
|
|
'type' => 'attach_image',
|
|
'name' => 'image',
|
|
'label' => esc_html__( 'Image', 'cyber' ),
|
|
'description' => esc_html__( 'Select image display For BG', 'cyber' ),
|
|
'relation' => array(
|
|
'parent' => 'show_img',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
/* single image option */
|
|
array(
|
|
'type' => 'toggle',
|
|
'label' => esc_html__( 'Set Single Image', 'lixto' ),
|
|
'name' => 'show_img2',
|
|
'value' => 'no',
|
|
'description' => esc_html__( 'you can show/hide image option.', 'lixto' )
|
|
),
|
|
|
|
array(
|
|
'type' => 'attach_image',
|
|
'name' => 'image2',
|
|
'label' => esc_html__( 'Image', 'lixto' ),
|
|
'description' => esc_html__( 'Select image display For BG', 'lixto' ),
|
|
'relation' => array(
|
|
'parent' => 'show_img2',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
/* Video Box Option */
|
|
array(
|
|
'name' => 'icon',
|
|
'label' => __( 'Select Icon', 'cyber' ),
|
|
'type' => 'icon_picker',
|
|
'description' => __( 'Select icon display in box', 'cyber' ),
|
|
'value' => 'fa-youtube-play',
|
|
),
|
|
array(
|
|
'type' => 'toggle',
|
|
'label' => esc_html__( 'Set Youtube', 'cyber' ),
|
|
'name' => 'show_youtube',
|
|
'value' => 'no',
|
|
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
|
|
),
|
|
array(
|
|
'type' => 'text',
|
|
'label' => __( 'Youtube Video link', 'cyber' ),
|
|
'name' => 'em_youtube',
|
|
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
|
|
'admin_label' => true,
|
|
'value' => 'https://youtu.be/BS4TUd7FJSg',
|
|
'relation' => array(
|
|
'parent' => 'show_youtube',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
array(
|
|
'type' => 'toggle',
|
|
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
|
|
'name' => 'show_vimeo',
|
|
'value' => 'no',
|
|
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
|
|
),
|
|
array(
|
|
'type' => 'text',
|
|
'label' => __( 'Vimeo Video link', 'cyber' ),
|
|
'name' => 'em_vimeo',
|
|
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
|
|
'admin_label' => true,
|
|
'value' => 'https://vimeo.com/174008281',
|
|
'relation' => array(
|
|
'parent' => 'show_vimeo',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
array(
|
|
'type' => 'text',
|
|
'name' => 'video_title',
|
|
'label' => __( 'Video Title', 'cyber' ),
|
|
'value' => 'See Our Introduction',
|
|
'admin_label' => true,
|
|
'relation' => array(
|
|
'parent' => 'show_youtube',
|
|
'show_when' => 'yes'
|
|
)
|
|
),
|
|
|
|
|
|
|
|
array(
|
|
'type' => 'text',
|
|
'label' => __( 'Custom class', 'cyber' ),
|
|
'name' => 'custom_class',
|
|
'description' => __( 'Enter extra custom class', 'cyber' )
|
|
)
|
|
),
|
|
'styling' => array(
|
|
array(
|
|
'name' => 'css_custom',
|
|
'type' => 'css',
|
|
'options' => array(
|
|
array(
|
|
"screens" => "any,1024,999,767,479",
|
|
'Title one' => array(
|
|
array('property' => 'color', 'label' => 'Color', 'selector' => '.banner-content h1'),
|
|
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.banner-content h1'),
|
|
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.banner-content h1'),
|
|
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.banner-content h1'),
|
|
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.banner-content h1'),
|
|
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.banner-content h1'),
|
|
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.banner-content h1'),
|
|
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.banner-content h1'),
|
|
),
|
|
|
|
'Title Two' => array(
|
|
array('property' => 'color', 'label' => 'Color', 'selector' => '.banner-content h2'),
|
|
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.banner-content h2'),
|
|
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.banner-content h2'),
|
|
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.banner-content h2'),
|
|
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.banner-content h2'),
|
|
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.banner-content h2'),
|
|
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.banner-content h2'),
|
|
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.banner-content h2'),
|
|
),
|
|
|
|
'Subtitle' => array(
|
|
array('property' => 'color', 'label' => 'Color', 'selector' => '.banner-content h4'),
|
|
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.banner-content h4'),
|
|
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.banner-content h4'),
|
|
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.banner-content h4'),
|
|
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.banner-content h4'),
|
|
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.banner-content h4'),
|
|
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.banner-content h4'),
|
|
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.banner-content h4'),
|
|
),
|
|
'Title Three' => array(
|
|
array('property' => 'color', 'label' => 'Color', 'selector' => '.banner-content h3'),
|
|
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.banner-content h3'),
|
|
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.banner-content h3'),
|
|
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.banner-content h3'),
|
|
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.banner-content h3'),
|
|
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.banner-content h3'),
|
|
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.banner-content h3'),
|
|
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.banner-content h3'),
|
|
),
|
|
'Highlight' => array(
|
|
array('property' => 'color', 'label' => 'Color', 'selector' => '.redX'),
|
|
),
|
|
'Desc' => array(
|
|
array('property' => 'color', 'label' => 'Color', 'selector' => '.banner-content p'),
|
|
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.banner-content p'),
|
|
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.banner-content p'),
|
|
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.banner-content p'),
|
|
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.banner-content p'),
|
|
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.banner-content p'),
|
|
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.banner-content p'),
|
|
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.banner-content p'),
|
|
),
|
|
'Button' => array(
|
|
array('property' => 'color', 'label' => 'Button Color', 'selector' => '.btn'),
|
|
array('property' => 'color', 'label' => 'Button Hover Color', 'selector' => '.btn:hover'),
|
|
array('property' => 'background-color', 'label' => 'Button BG Color', 'selector' => '.btn'),
|
|
array('property' => 'background-color', 'label' => 'Button BG Hover Color', 'selector' => '.btn:hover'),
|
|
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.btn'),
|
|
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.btn'),
|
|
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.btn'),
|
|
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.btn'),
|
|
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.btn'),
|
|
array('property' => 'border', 'label' => 'Button Border', 'selector' => '.btn'),
|
|
array('property' => 'border-color', 'label' => 'Button Border Color Hover', 'selector' => '.btn:hover'),
|
|
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.btn'),
|
|
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.btn'),
|
|
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.btn')
|
|
),
|
|
'Button Two' => array(
|
|
array('property' => 'color', 'label' => 'Button Color', 'selector' => '.active .btn'),
|
|
array('property' => 'color', 'label' => 'Button Hover Color', 'selector' => '.active .btn:hover'),
|
|
array('property' => 'background-color', 'label' => 'Button BG Color', 'selector' => '.active .btn'),
|
|
array('property' => 'background-color', 'label' => 'Button BG Hover Color', 'selector' => '.active .btn:hover'),
|
|
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.active .btn'),
|
|
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.active .btn'),
|
|
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.active .btn'),
|
|
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.active .btn'),
|
|
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.active .btn'),
|
|
array('property' => 'border', 'label' => 'Button Border', 'selector' => '.active .btn'),
|
|
array('property' => 'border-color', 'label' => 'Button Border Color Hover', 'selector' => '.active .btn:hover'),
|
|
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.active .btn'),
|
|
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.active .btn'),
|
|
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.active .btn')
|
|
)
|
|
)
|
|
)
|
|
)
|
|
),
|
|
'animate' => array(
|
|
array(
|
|
'name' => 'animate',
|
|
'type' => 'animate'
|
|
)
|
|
),
|
|
)
|
|
),
|
|
)// first array
|
|
); // End add map
|
|
endif;
|
|
}
|
|
endif;
|
|
|
|
|
|
/**
|
|
* =======================================================
|
|
* Register Shortcode banner_slider section
|
|
* =======================================================
|
|
*/
|
|
// [em_single_slick title="" desc="" custom_css_class=""]
|
|
if(!function_exists('em_single_slick_function')){
|
|
function em_single_slick_function($atts,$content){
|
|
ob_start();
|
|
$em_single_slick = shortcode_atts(array(
|
|
'layout' => 1,
|
|
'sub_title' => '',
|
|
'title1' => '',
|
|
'highl' => '',
|
|
'title2' => '',
|
|
'title3' => '',
|
|
'subtitle' => '',
|
|
'desc' => '',
|
|
'show_button' => '',
|
|
'button_text' => '',
|
|
'button_link' => '',
|
|
'show_button2' => '',
|
|
'button_text2' => '',
|
|
'button_link2' => '',
|
|
'show_img' => '',
|
|
'show_img2' => '',
|
|
'image' => '',
|
|
'image2' => '',
|
|
'show_youtube' => '',
|
|
'icon' => '',
|
|
'em_youtube' => '',
|
|
'show_vimeo' => '',
|
|
'em_vimeo' => '',
|
|
'video_title' => '',
|
|
'custom_css' => '',
|
|
'custom_class' => '',
|
|
),$atts);
|
|
extract( $em_single_slick );
|
|
//custom class
|
|
$wrap_class = apply_filters( 'kc-el-class', $atts );
|
|
if( !empty( $custom_class ) ):
|
|
$wrap_class[] = $custom_class;
|
|
endif;
|
|
$extra_class = implode( ' ', $wrap_class );
|
|
$images="";
|
|
$images = wp_get_attachment_image_src( $image, 'full');
|
|
|
|
$data_button2=$data_img=$img_size=$img_link=="";
|
|
$size_array = array('full', 'medium', 'large', 'thumbnail');
|
|
|
|
|
|
$data_button="";
|
|
if ( $show_button == 'yes' ) {
|
|
|
|
if ( !empty( $button_link ) ) {
|
|
$button_link_text = explode( '|', $button_link );
|
|
$button_link = $button_link_text[0];
|
|
}
|
|
|
|
if( empty($button_text) )
|
|
$button_text = __( 'Readmore', 'cyber' );
|
|
|
|
$data_button .= '<div class="b-batton ">';
|
|
$data_button .= '<a class="btn btn-lg" href="'. $button_link .'">'. $button_text .'<i class="fa fa-angle-right"></i></a>';
|
|
$data_button .= '</div>';
|
|
|
|
}
|
|
|
|
|
|
$data_button2="";
|
|
|
|
|
|
if ( $show_button2 == 'yes' ) {
|
|
|
|
if ( !empty( $button_link2 ) ) {
|
|
$button_link_text = explode( '|', $button_link2 );
|
|
$button_link2 = $button_link_text[0];
|
|
}
|
|
|
|
if( empty($button_text2) )
|
|
$button_text2 = __( 'About Us', 'cyber' );
|
|
|
|
$data_button2 .= '<div class="b-batton active">';
|
|
$data_button2 .= '<a class="btn btn-lg" href="'. $button_link2 .'">'. $button_text2 .'<i class="fa fa-angle-right"></i></a>';
|
|
$data_button2 .= '</div>';
|
|
|
|
}
|
|
if ( !empty( $image2 ) ) {
|
|
|
|
if( in_array( $img_size, $size_array ) ){
|
|
$image_data = wp_get_attachment_image_src( $image2, $img_size );
|
|
$img_link = $image_data[0];
|
|
}else{
|
|
$image_full_width = wp_get_attachment_image_src( $image2, 'full' );
|
|
$img_link = kc_tools::createImageSize( $image_full_width[0], $img_size );
|
|
}
|
|
|
|
}
|
|
|
|
|
|
switch($layout){
|
|
case'6':
|
|
?>
|
|
<div class="single-slide slide-one-bg slider-style-six <?php echo esc_attr( $extra_class ); ?>" style="<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>background-image:url(<?php echo esc_url( $images[0] ); ?>)<?php } ?> ">
|
|
<div class="banner-content banner-slick text-left">
|
|
<h4 class="wow fadeInDown" animation-duration="1s" animation-delay="0s"><?php if ( !empty( $sub_title ) ) {echo $sub_title;} ?></h4>
|
|
<h1 class="wow fadeInDown" animation-duration="2s" animation-delay="1s"><?php if ( !empty( $title1 ) ) {echo $title1;} ?><span class="redX"><?php if ( !empty( $highl ) ) {echo $highl;}?></span></h1>
|
|
<h2 class="wow fadeInDown" animation-duration="3s" animation-delay="1s"><?php if ( !empty( $title2 ) ) {echo $title2;} ?></h2>
|
|
<h3 class="wow fadeInDown" animation-duration="3s" animation-delay="1s"><?php if ( !empty( $title3 ) ) {echo $title3;} ?></h3>
|
|
<p><?php if ( !empty( $desc ) ) {echo $desc;} ?></p>
|
|
<?php echo $data_button;?>
|
|
<?php echo $data_button2;?>
|
|
<?php if( !empty( $icon ) ){ ?>
|
|
<div class="slider-video-icon">
|
|
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
|
|
<?php } ?>
|
|
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
<?php } ?>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
<?php
|
|
break;
|
|
|
|
case'5':
|
|
?>
|
|
<div class="single-slide slide-two-bg slick-style-five <?php echo esc_attr( $extra_class ); ?>" style="<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>background-image:url(<?php echo esc_url( $images[0] ); ?>)<?php } ?> ">
|
|
<div class="banner-content banner-slick text-left">
|
|
<h4><?php if ( !empty( $sub_title ) ) {echo $sub_title;} ?></h4>
|
|
<h1><?php if ( !empty( $title1 ) ) {echo $title1;} ?><span class="redX"><?php if ( !empty( $highl ) ) {echo $highl;}?></span></h1>
|
|
<h2><?php if ( !empty( $title2 ) ) {echo $title2;} ?></h2>
|
|
<h3><?php if ( !empty( $title3 ) ) {echo $title3;} ?></h3>
|
|
<p><?php if ( !empty( $desc ) ) {echo $desc;} ?></p>
|
|
<?php echo $data_button;?>
|
|
<?php echo $data_button2;?>
|
|
<?php if( !empty( $icon ) ){ ?>
|
|
<div class="slider-video-icon">
|
|
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
|
|
<?php } ?>
|
|
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
<div class="bottom-img">
|
|
<img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/wave-shap.svg'; ?>" alt="wave shape" class="img-fluid">
|
|
</div>
|
|
</div>
|
|
<?php
|
|
break;
|
|
|
|
case'4':
|
|
?>
|
|
<div class="single-slide slide-one-bg slider-style-four <?php echo esc_attr( $extra_class ); ?>" style="<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>background-image:url(<?php echo esc_url( $images[0] ); ?>)<?php } ?> ">
|
|
<div class="banner-content banner-slick text-left">
|
|
<h4 class="wow fadeInDown" animation-duration="1s" animation-delay="0s"><?php if ( !empty( $sub_title ) ) {echo $sub_title;} ?></h4>
|
|
<h1 class="wow fadeInDown" animation-duration="2s" animation-delay="1s"><?php if ( !empty( $title1 ) ) {echo $title1;} ?><span class="redX"><?php if ( !empty( $highl ) ) {echo $highl;}?></span></h1>
|
|
<h2 class="wow fadeInDown" animation-duration="3s" animation-delay="1s"><?php if ( !empty( $title2 ) ) {echo $title2;} ?></h2>
|
|
<h3 class="wow fadeInDown" animation-duration="3s" animation-delay="1s"><?php if ( !empty( $title3 ) ) {echo $title3;} ?></h3>
|
|
<p><?php if ( !empty( $desc ) ) {echo $desc;} ?></p>
|
|
<?php echo $data_button;?>
|
|
<?php echo $data_button2;?>
|
|
<?php if( !empty( $icon ) ){ ?>
|
|
<div class="slider-video-icon">
|
|
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
|
|
<?php } ?>
|
|
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
<?php } ?>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
<?php
|
|
break;
|
|
|
|
case'3':
|
|
?>
|
|
<div class="single-slide slide-two-bg slick-style-two slick-style-three <?php echo esc_attr( $extra_class ); ?>" style="<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>background-image:url(<?php echo esc_url( $images[0] ); ?>)<?php } ?> ">
|
|
<div class="banner-content banner-slick text-left">
|
|
<h4><?php if ( !empty( $sub_title ) ) {echo $sub_title;} ?></h4>
|
|
<h1><?php if ( !empty( $title1 ) ) {echo $title1;} ?><span class="redX"><?php if ( !empty( $highl ) ) {echo $highl;}?></span></h1>
|
|
<h2><?php if ( !empty( $title2 ) ) {echo $title2;} ?></h2>
|
|
<h3><?php if ( !empty( $title3 ) ) {echo $title3;} ?></h3>
|
|
<p><?php if ( !empty( $desc ) ) {echo $desc;} ?></p>
|
|
<?php echo $data_button;?>
|
|
<?php echo $data_button2;?>
|
|
<?php if( !empty( $icon ) ){ ?>
|
|
<div class="slider-video-icon">
|
|
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
|
|
<?php } ?>
|
|
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
<div class="slider_circle_img rotateme">
|
|
<img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/dot-circle.png'; ?>" alt="circle-image">
|
|
</div>
|
|
</div>
|
|
<?php
|
|
break;
|
|
|
|
case'2':
|
|
?>
|
|
<div class="single-slide slide-one-bg slider-style-two <?php echo esc_attr( $extra_class ); ?>" style="<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>background-image:url(<?php echo esc_url( $images[0] ); ?>)<?php } ?> ">
|
|
<div class="banner-content banner-slick text-left">
|
|
<h4 class="wow fadeInDown" animation-duration="1s" animation-delay="0s"><?php if ( !empty( $sub_title ) ) {echo $sub_title;} ?></h4>
|
|
<h1 class="wow fadeInDown" animation-duration="2s" animation-delay="1s"><?php if ( !empty( $title1 ) ) {echo $title1;} ?><span class="redX"><?php if ( !empty( $highl ) ) {echo $highl;}?></span></h1>
|
|
<h2 class="wow fadeInDown" animation-duration="3s" animation-delay="1s"><?php if ( !empty( $title2 ) ) {echo $title2;} ?></h2>
|
|
<h3 class="wow fadeInDown" animation-duration="3s" animation-delay="1s"><?php if ( !empty( $title3 ) ) {echo $title3;} ?></h3>
|
|
<p><?php if ( !empty( $desc ) ) {echo $desc;} ?></p>
|
|
<?php echo $data_button;?>
|
|
<?php echo $data_button2;?>
|
|
<?php if( !empty( $icon ) ){ ?>
|
|
<div class="slider-video-icon">
|
|
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
|
|
<?php } ?>
|
|
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
<?php } ?>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
<?php
|
|
break;
|
|
|
|
default:
|
|
?>
|
|
<div class="single-slide slide-one-bg <?php echo esc_attr( $extra_class ); ?>" style="<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>background-image:url(<?php echo esc_url( $images[0] ); ?>)<?php } ?> ">
|
|
<!-- <div class="slider-shape layer-1 layer" data-depth="0.10"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/s_shape01.png'; ?>" alt="01"></div>
|
|
<div class="slider-shape layer-2 layer" data-depth="0.15"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/s_shape02.png'; ?>" alt="02"></div>
|
|
<div class="slider-shape layer-3 layer" data-depth="0.08"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/s_shape03.png'; ?>" alt="03"></div>
|
|
<div class="slider-shape layer-4 layer" data-depth="0.25"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/s_shape04.png'; ?>" alt="04"></div>
|
|
<div class="slider-shape layer-5 layer" data-depth="0.10"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/s_shape05.png'; ?>" alt="05"></div> -->
|
|
<div class="banner-content banner-slick text-left">
|
|
<h4><?php if ( !empty( $sub_title ) ) {echo $sub_title;} ?></h4>
|
|
<h1><?php if ( !empty( $title1 ) ) {echo $title1;} ?><span class="redX"><?php if ( !empty( $highl ) ) {echo $highl;}?></span></h1>
|
|
<h2><?php if ( !empty( $title2 ) ) {echo $title2;} ?></h2>
|
|
<h3><?php if ( !empty( $title3 ) ) {echo $title3;} ?></h3>
|
|
<p><?php if ( !empty( $desc ) ) {echo $desc;} ?></p>
|
|
<?php echo $data_button;?>
|
|
<?php echo $data_button2;?>
|
|
<?php if( !empty( $icon ) ){ ?>
|
|
<div class="slider-video-icon">
|
|
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
|
|
<?php } ?>
|
|
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
|
|
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
|
|
<?php if ( !empty( $video_title ) ) {?>
|
|
<span>
|
|
<?php echo $video_title; ?>
|
|
</span>
|
|
<?php }?>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
<?php } ?>
|
|
<?php if($show_img2 == 'yes'){ ?>
|
|
<div class="slider_single_img">
|
|
<img src="<?php echo $img_link; ?>" alt="">
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
break;
|
|
}
|
|
return ob_get_clean();
|
|
}
|
|
add_shortcode('em_single_slick' ,'em_single_slick_function');
|
|
}
|