<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
} // Exit

function qcld_sliderhero_edit_slider_view( $_row, $_id, $_slider ) {
    function qcldsliderherodeleteSpacesNewlines( $str ) {
        return preg_replace( array( '/\r/', '/\n/' ), '', $str );
    }

    $style   = json_decode( $_slider[0]->style );
    $params  = json_decode( $_slider[0]->params );
    $customs = json_decode( ( $_slider[0]->custom ) );

	

    $paramsJson = qcldsliderherodeleteSpacesNewlines( $_slider[0]->params );
	//print_r($params);exit;
    $styleJson  = qcldsliderherodeleteSpacesNewlines( $_slider[0]->style );
    $customJson = qcldsliderherodeleteSpacesNewlines( $_slider[0]->custom );

    $count = 0;
    foreach ( $_row as $slide ) {
        if ( $slide->published == 0 ) {
            continue;
        }
        $count ++;
    }; 
	//print_r($_slider[0]->bg_gradient);exit;

	?>
    <script>
        

        // initialize slider values in slider admin page
        var qcheror = {
            id: '<?php echo esc_attr( $_id );?>',
            name: '<?php echo esc_html( $_slider[0]->title );?>',
            params: JSON.parse('<?php echo ($paramsJson);?>'),
            style: JSON.parse('<?php echo ($styleJson);?>'),
            custom: JSON.parse('<?php echo ($customJson);?>'),
            count: parseInt('<?php echo esc_attr( $count );?>'),
            length: 0,

            slides: {}
        };
        <?php
        $Slidecount = 0;
        foreach ($_row as $row) {
        $Slidecount ++;
        $customSlideJson = qcldsliderherodeleteSpacesNewlines( $row->custom );
        $image_link = '';
        $description = esc_js( html_entity_decode( $row->description, ENT_COMPAT, 'UTF-8' ) );
        $title = esc_js( html_entity_decode( $row->title, ENT_COMPAT, 'UTF-8' ) );
        ?>
        // initialize slider's slides's values in slider admin page
        qcheror['slides']['slide' + '<?php echo esc_attr( $row->id );?>'] = {};
        qcheror['slides']['slide' + '<?php echo esc_attr( $row->id );?>']['id'] = '<?php echo esc_attr( $row->id );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id);?>']['title'] = '<?php echo esc_html( $title );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id );?>']['description'] = '<?php echo esc_html( $description );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id );?>']['image_link'] = '<?php echo esc_html( $image_link );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id );?>']['url'] = '<?php echo esc_url( $row->thumbnail );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id );?>']['type'] = '<?php echo esc_html( $row->type );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id );?>']['published'] = +'<?php echo esc_html( $row->published );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id );?>']['ordering'] = +'<?php echo esc_html( $row->ordering );?>';
        qcheror.slides['slide' + '<?php echo esc_attr( $row->id );?>']['custom'] = JSON.parse('<?php echo ($customSlideJson);?>');
        <?php
        }?>
        qcheror.length = +'<?php echo esc_attr( $Slidecount );?>';
    </script>
		<style>
			<?php if($_slider[0]->type=='intro'): ?>
				.mce-container{display:none !important;}
				.hero_slide_inputs{display:none !important;}
				.qcheroitem-add-btn1{display:none !important;}
				.qcheroitem-btn2-sw{display:none !important;}
				.qcheroitem-edit-description{display:none !important}

			<?php else: ?>
				.qcheroitem-stomp-config{display:none !important;}
				.hero_configuration_info{display:none;}
			<?php endif; ?>

		</style>	


	
    <div class="qchero_slider_view_wrapper">
	<div id="qchero_slider_view_wrapper_top">

	
		<div class="sliderhero_menu_title effect_title" style="margin-bottom: 10px;width: 100%;margin-top: 8px;">
			<?php if( isset($_slider[0]->type) && $_slider[0]->type=='intro'): ?>
				<h2>TOTAL SLIDE TIME : <span class="total_delay_time"><?php echo esc_attr( $delay_time ); ?></span></h2>
			<?php else: ?>
				<h2>Change Effect</h2>
			<?php endif; ?>
				<div class="right_form_effect">
					<form action="admin.php" method="post">
						<select name="effect" id="effect" style="display: inline-block;">
							<option value="no_effect" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='no_effect'?'selected="selected"':''); ?> >No Effect</option>
							<option value="youtube_video" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='youtube_video'?'selected="selected"':''); ?> >Youtube Video</option>
							<option value="intro" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='intro'?'selected="selected"':''); ?> >Intro Builder</option>
							
							<option value="particle" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='particle'?'selected="selected"':''); ?> >Particle Effect</option>
							<option value="particle_nasa" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='particle_nasa'?'selected="selected"':''); ?> >Particle Nasa Effect</option>
							<option value="particle_snow" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='particle_snow'?'selected="selected"':''); ?> >Particle Snow Effect</option>
							<option value="particle_bubble" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='particle_bubble'?'selected="selected"':''); ?> >Particle bubble Effect</option>
							<option value="nyan_cat" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='nyan_cat'?'selected="selected"':''); ?> >Nyan Cat Effect</option>
							<option value="cubes_animation" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='cubes_animation'?'selected="selected"':''); ?> >Cubes Animation</option>
							
							<option value="aeronautics" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='aeronautics'?'selected="selected"':''); ?> disabled>Aeronautics Effect</option>
							
							<option value="antigravity" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='antigravity'?'selected="selected"':''); ?> disabled>Antigravity Effect</option>
							
							<option value="ballsgravity" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='ballsgravity'?'selected="selected"':''); ?> disabled>Balls & Gravity Effect</option>
							<option value="bird" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='bird'?'selected="selected"':''); ?> disabled>Bird Flying Effect</option>
							<option value="blade" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='blade'?'selected="selected"':''); ?> disabled>Blade Effect</option>
							
							<option value="blob" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='blob'?'selected="selected"':''); ?> disabled>Blob Effect</option>
							
							<option value="blur" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='blur'?'selected="selected"':''); ?> disabled>Blur Effect</option>
							
							
							<option value="campfire" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='campfire'?'selected="selected"':''); ?> disabled>Campfire</option>
							
							<option value="circle" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='circle'?'selected="selected"':''); ?> disabled>Circle Effect</option>
							
							<option value="confetti" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='confetti'?'selected="selected"':''); ?> disabled>Confetti Effect</option>
							<option value="cloudysky" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='cloudysky'?'selected="selected"':''); ?> disabled>Cloudy Sky Effect</option>
							<option value="cosmic_web" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='cosmic_web'?'selected="selected"':''); ?> disabled>Cosmic Web Effect</option>
							<option value="colorful_particle" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='colorful_particle'?'selected="selected"':''); ?> disabled>Colorful Particle</option>
							<option value="cursorandpaint" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='cursorandpaint'?'selected="selected"':''); ?> disabled>Cursor And Paint Effect</option>
							
							
							
							
							<option value="daynight" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='daynight'?'selected="selected"':''); ?> disabled>Day Night Effect</option>
							<option value="division" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='division'?'selected="selected"':''); ?> disabled>Division Effect</option>
							<option value="directional" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='directional'?'selected="selected"':''); ?> disabled>Directional Effect</option>
							<option value="distance" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='distance'?'selected="selected"':''); ?> disabled>Distance Effect</option>
							
							
							<option value="electric_clock" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='electric_clock'?'selected="selected"':''); ?> disabled>Electric Clock</option>
							
							
							<option value="flowingcircle" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='flowingcircle'?'selected="selected"':''); ?> disabled>Flowing Circle Effect</option>
							
							<option value="fizzy_sparks" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='fizzy_sparks'?'selected="selected"':''); ?> disabled>Fizzy Sparks</option>
							
							<option value="firework" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='firework'?'selected="selected"':''); ?> disabled>Firework</option>
							
							<option value="floatrain" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='floatrain'?'selected="selected"':''); ?> disabled>Float Rain Effect</option>
							<option value="floatingleafs" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='floatingleafs'?'selected="selected"':''); ?> disabled>Floating Leafs Effect</option>
							<option value="flyingrocket" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='flyingrocket'?'selected="selected"':''); ?> disabled>Flying Rocket Effect</option>
							
							<option value="grid" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='grid'?'selected="selected"':''); ?> disabled>Grid Effect</option>

							
							
							<option value="chaos" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='chaos'?'selected="selected"':''); ?> disabled>Helix Chaos</option>
							
							<option value="corruption" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='corruption'?'selected="selected"':''); ?> disabled>Helix Corruption Effect</option>
							
							<option value="helix_multiple" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='helix_multiple'?'selected="selected"':''); ?> disabled>Helix Multiple Effect</option>
							
							<option value="hero_404" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='hero_404'?'selected="selected"':''); ?> disabled>Glitch</option>
							
							<option value="iconsahedron" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='iconsahedron'?'selected="selected"':''); ?> disabled>Iconsahedron Effect</option>
							
							<option value="just_cloud" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='just_cloud'?'selected="selected"':''); ?> disabled>Just Cloud</option>
							
							<option value="line" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='line'?'selected="selected"':''); ?> disabled>Line Effect</option>
							
							<option value="liquid_landscape" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='liquid_landscape'?'selected="selected"':''); ?> disabled>Liquid Landscape</option>
							
							<option value="link_particle" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='link_particle'?'selected="selected"':''); ?> disabled>Link Particle</option>
							
							<option value="matrix" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='matrix'?'selected="selected"':''); ?> disabled>Matrix Effect</option>
							<option value="metaballs" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='metaballs'?'selected="selected"':''); ?> disabled>Metaballs Effect</option>
							<option value="microcosm" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='microcosm'?'selected="selected"':''); ?> disabled>Microcosm Effect</option>
							<option value="svg_animation" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='svg_animation'?'selected="selected"':''); ?> disabled>Moving Color Wave</option>
							
							
							<option value="neno_hexagon" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='neno_hexagon'?'selected="selected"':''); ?> disabled>Neno Hexagon Effect</option>
							<option value="noise_effect" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='noise_effect'?'selected="selected"':''); ?> disabled>Noise Effect</option>
							
							<option value="orbital" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='orbital'?'selected="selected"':''); ?> disabled>Orbital Effect</option>
							
							
							<option value="particle_system" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='particle_system'?'selected="selected"':''); ?> disabled>Particle System</option>
							
							<option value="helix" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='helix'?'selected="selected"':''); ?> disabled>Particle Helix Effect</option>
							<option value="physics_bug" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='physics_bug'?'selected="selected"':''); ?> disabled>Physics Bug Effect</option>
							
							<option value="play_or_work" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='play_or_work'?'selected="selected"':''); ?> disabled>Play or Work?</option>
							
							<option value="pretend_hacker" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='pretend_hacker'?'selected="selected"':''); ?> disabled>Hacker</option>
							
							
							<option value="racing_particles" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='racing_particles'?'selected="selected"':''); ?> disabled>Racing Particles</option>
							
							<option value="rain" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='rain'?'selected="selected"':''); ?> disabled>Rain Effect</option>
							<option value="rainy_season" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='rainy_season'?'selected="selected"':''); ?> disabled>Rainy Season</option>
							
							<option value="rays_particles" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='rays_particles'?'selected="selected"':''); ?> disabled>Rays and Particles</option>
							
							<option value="rainofline" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='rainofline'?'selected="selected"':''); ?> disabled>Rain of Line Effect</option>
							
							<option value="rising_cubes" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='rising_cubes'?'selected="selected"':''); ?> disabled>Rising Cubes</option>
							
							<option value="stars" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='stars'?'selected="selected"':''); ?> disabled>Stars Effect</option>
							
							
							<option value="stellar" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='stellar'?'selected="selected"':''); ?> disabled>Stellar Effect</option>
							<option value="shapeanimation" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='shapeanimation'?'selected="selected"':''); ?> disabled>Shape Animation Effect</option>
							<option value="space_elevator" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='space_elevator'?'selected="selected"':''); ?> disabled>Space Elevator</option>
							
							<option value="squidematics" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='squidematics'?'selected="selected"':''); ?> disabled>Squidematics Effect</option>
							<option value="subvisual" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='subvisual'?'selected="selected"':''); ?> disabled>Subvisual Effect</option>
							
							
							
							<option value="tagcanvas" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='tagcanvas'?'selected="selected"':''); ?> disabled>Tag Canvas Effect</option>
							
							<option value="header_banner" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='header_banner'?'selected="selected"':''); ?> disabled>The Great Attractor</option>
							
							<option value="tiny_galaxy" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='tiny_galaxy'?'selected="selected"':''); ?> disabled>Tiny Galaxy Effect</option>
							<option value="thibaut" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='thibaut'?'selected="selected"':''); ?> disabled>Thibaut Effect</option>
							<option value="torus" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='torus'?'selected="selected"':''); ?> disabled>Torus Effect</option>
							<option value="valentine" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='valentine'?'selected="selected"':''); ?> disabled>Valentine Effect</option>
							
							<option value="water" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='water'?'selected="selected"':''); ?> disabled>Water Effect</option>
							<option value="wave" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='wave'?'selected="selected"':''); ?> disabled>Wave Effect</option>
							
							<option value="wave_animation" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='wave_animation'?'selected="selected"':''); ?> disabled>Wave Animation Effect</option>
							
							<option value="waaave" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='waaave'?'selected="selected"':''); ?> disabled>Waaave Effect</option>
							<option value="warp_speed" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='warp_speed'?'selected="selected"':''); ?> disabled>Warp Speed Effect</option>
							<option value="walkingbackground" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='walkingbackground'?'selected="selected"':''); ?> disabled>Walking Background Effect</option>
							
							<option value="waving_cloth" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='waving_cloth'?'selected="selected"':''); ?> disabled>Waving Cloth</option>
							
							<option value="waterdroplet" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='waterdroplet'?'selected="selected"':''); ?> disabled>Water Droplet</option>
							<option value="water_swimming" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='water_swimming'?'selected="selected"':''); ?> disabled>Water Swimming Effect</option>
							<option value="wordcloud" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='wordcloud'?'selected="selected"':''); ?> disabled>Word Cloud Effect</option>
							<option value="wormhole" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='wormhole'?'selected="selected"':''); ?> disabled>Wormhole</option>
							
							<option value="ygekpg" <?php echo (isset($_slider[0]->type)&&$_slider[0]->type=='ygekpg'?'selected="selected"':''); ?> disabled>Ygekpg Effect</option>

						</select>
						<input type="hidden" name="page" value="Slider-Hero" />
						<input type="hidden" name="task" value="hero_changeeffect" />
						<input type="hidden" name="id" value="<?php echo esc_attr( $_id ); ?>" />
						
						<input class="effect_change_button" type="Submit" value="Change and Save" name="submit" />
					
					</form>
				</div>
			</div>




											 
             <div class="qchero_slider_main-heading_wrapper">
				<div class="qchero_slider_main-heading_wrapper_title"><span><img src="https://ps.w.org/slider-hero/assets/icon-256x256.png"/></span>Slider Hero</div>
				<div class="qchero_slider_main-heading_wrapper_setting">

					<ul>
						<li> <a class="openPopup">Settings</a></li>
						<li><a href="https://www.quantumcloud.com/products/slider-hero/" target="_blank">Go Pro</a></li>
					</ul>

				</div>
			</div>





			<div class="sliderhero_menu_title" style="margin-bottom: 10px;width: 100%;margin-top: 7px;">
				<h2 style="font-size: 26px;"><?php echo wp_unslash($_slider[0]->title); ?></h2>
					
                    <a class="qchero_save_all" href="#">Save</a>
<a class="<?php echo (  (isset($_slider[0]->type) && $_slider[0]->type=='directional') ||  (isset($_slider[0]->type) && $_slider[0]->type=='ygekpg') ?'qchero_preview_p5':'qchero_preview') ?>" href="#" data-id="<?php echo esc_attr( $_id ); ?>" style="margin-right: 12px;">Save & Preview</a>		
			</div>


				</div>





 <div class="qchero_slider_edit">
	
		<?php if( isset($_slider[0]->type) && $_slider[0]->type=='play_or_work'): ?>
			<p style="text-align:center;color:red;">Play Or Work effect does not support more then one slide.</p>
		<?php endif; ?>

	
            <div class="settings">
				
                <div class="menu-content">
                    <ul class="main-content">
                        <li class="generalcustom">
                            <ul id="general-settingscbgfdgb">
                                <li class="style designstyle"><label for="qchero-name">Name:</label><input class="myElements" id="qcheror-name"
                                                                                                name="cs[name]" type="text"
                                                                                                value="<?php echo esc_attr( stripslashes_deep($_slider[0]->title) ); ?>"/>
                                </li>
                                <div class="designstyle-wrap">
								<li class="style designstyle"><label for="qcslide-width">Width(px):</label><input class="myElements" style="width:60px" id="qcslide-width" name="style[width]"type="number" value="<?php echo esc_attr($style->width); ?>"/>
								
								<span style="    color: #444;
    margin-right: 4px;
    display: inline-block;
    margin-left: 0;     font-weight: bold;
    font-size: 14px;">Custom:</span> <input class="myElements" name="style[fullwidth]" style="display: inline-block;width: 13px;height: 16px;margin: 0px;float: none;" type="radio" value="0" <?php 
									if(isset($style->screenoption) and $style->screenoption=='0'){
										echo "checked";
									}else{
										echo "checked";
									}
								?>/>
								<span style="    color: #444;
    margin-right: 4px;
    display: inline-block;
    margin-left: 0;">Full Width:</span> <input class="myElements" name="style[fullwidth]" style="display: inline-block;width: 13px;height: 16px;margin: 0px;float: none;" type="radio" value="1" <?php 
									if(isset($style->screenoption) and $style->screenoption=='1'){
										echo "checked";
									}
								?>/>
<span style="    color: #444;
    margin-right: 4px;
    display: inline-block;
    margin-left: 0;">Full Screen:</span> <input class="myElements" name="style[fullwidth]" style="display: inline-block;width: 13px;height: 16px;margin: 0px;float: none;" type="radio" value="2" <?php 
									if(isset($style->screenoption) and $style->screenoption=='2'){
										echo "checked";
									}
								?>/>
								<span style="    color: #444;
    margin-right: 4px;
    display: inline-block;
    margin-left: 0;padding: 10px 0px;">Auto:</span> <input class="myElements" name="style[fullwidth]" style="display: inline-block;width: 13px;height: 16px;margin: 0px;float: none;" type="radio" value="3" <?php 
									if(isset($style->screenoption) and $style->screenoption=='3'){
										echo "checked";
									}
								?>/>								
                                </li>
                                <li class="style designstyle"><label for="qcslide-height">Height(px):</label><input class="myElements" id="qcslide-height"
                                                                                                        name="style[height]"
                                                                                                        type="number"
                                                                                                        value="<?php echo esc_attr($style->height); ?>"/>
                                </li>
								</div>

                                <a class="openPopup qchero_preview_button">More Settings</a>							

                            </ul>



	<div id="qchero_slider_view_doc_inner_pro_into">

									<div class="qchero_slider_view_doc_inner_pro_into_inn">

									<h2>Why upgrade to Slider Hero Pro?</h2>
									<ul>
										<li><i class="fa fa-check-circle" aria-hidden="true"></i>85+ Special Effects</li>
										<li><i class="fa fa-check-circle" aria-hidden="true"></i>Cinematic Intro Builder</li>
										<li><i class="fa fa-check-circle" aria-hidden="true"></i>Unique Text Animation</li>
										<li><i class="fa fa-check-circle" aria-hidden="true"></i>Background Video and Audio</li>
										<li><i class="fa fa-check-circle" aria-hidden="true"></i>Google Fonts & Call to Action</li>
										<li><i class="fa fa-check-circle" aria-hidden="true"></i>Video Slider</li>
									</ul>
									<a href="https://www.quantumcloud.com/products/slider-hero/" target="_blank">Upgrade to Pro <i class="fa fa-external-link" aria-hidden="true"></i>
</a>

									</div>

	</div>






					
						
						
                    </ul>
                </div>
            </div>
          
    </div>





        
	<div id="qchero_slider_view_wrapper_inner">
		<div id="qchero_slider_view">
            


            <div class="qchero_slider_images_list_wrapper">
                <ul id="qchero_slider_images_list">


                    <?php if ( ! count( $_row ) ) {
                        ; ?>
                        <li class="noimage">
							<span class="noimage-add" href="#">No Slides!</span>
                        </li>



						
                        <?php
                    }
					$delay_time = 0;
					$slide_count = 0;
                    foreach ( $_row as $rows ) {
						$slide_count++;
                        switch ( $rows->type ) {
							

                            default: ?>
								
								<?php 
									$draftclass='';
									if(isset($rows->draft) and $rows->draft==1){
										$draftclass='hero_draft_elem';
									}
								?>
								

									


                                <li id="qcheroitem_<?php echo esc_attr( $rows->id ); ?>" data-sid="<?php echo esc_attr( $rows->id ); ?>" class="qcheroitem <?php echo sanitize_html_class( $draftclass ); ?> ">
                                    <div class="qcheroitem-img-container">
									<div class="qcheroitem-image-wrapper">
										<?php if(isset($_slider[0]->type) && $_slider[0]->type!='youtube_video' && $_slider[0]->type!='vimeo_video' ): ?>
										<div class="qcheroitem-image">
											<div class="slide_image_container">
											<?php if(isset($rows->image_link) and $rows->image_link!=''): ?>
												<img data-slide-id="<?php echo esc_attr( $rows->id ); ?>" src="<?php echo (isset($_slider[0]->type) && $_slider[0]->type=='video'?QCLD_SLIDERHERO_IMAGES.'/video.png':$rows->image_link); ?>" <?php echo (isset($_slider[0]->type) && $_slider[0]->type=='video'?'style="width:57px"':''); ?> />
												<span class="qchero_slide_image_remove" data-slide-id="<?php echo esc_attr( $rows->id ); ?>" title="Remove image">X</span>
											<?php else: ?>
												<button class="qchero_slide_image_upload" data-slide-id="<?php echo esc_attr( $rows->id ); ?>"><?php echo (isset($_slider[0]->type) && $_slider[0]->type=='video'?'Upload Video':'Upload Image'); ?></button>
											<?php endif; ?>
											</div>
										</div>
										<?php endif; ?>
										
										<?php if(isset($_slider[0]->type) && $_slider[0]->type=='youtube_video'): ?>
										<input type="text" class="qcheroitem-add-url" value="<?php echo esc_attr($rows->image_link); ?>" placeholder="Youtube Video ID">
										<?php endif; ?>
										
										<?php if(isset($_slider[0]->type) && $_slider[0]->type=='vimeo_video'): ?>
										<input type="text" class="qcheroitem-add-url" value="<?php echo esc_attr($rows->image_link); ?>" placeholder="Vimeo Video ID">
										<?php endif; ?>
										
										<div class="slider-hero-slide-number">
											<span class="slide-number-title">Slide</span>
											<span class="slide-order-number"><?php echo ($slide_count); ?></span>
											<?php 
											if(isset($rows->draft) and $rows->draft==1){
												echo '<span class="hero_draft_style">Draft</span>';
											}
											?>
										</div>
										
                                        <div class="qcheroitem-properties">
                                            <b title="collapse"><a href="#" class="quick_edit"
                                                  data-slide-id="<?php echo esc_attr($rows->id); ?>"><i
                                                        class="fa fa-compress" aria-hidden="true"></i></a></b>
                                            </a>
                                            <b title="Remove slide"><a href="#" class="qchero_remove_image"
                                                  data-slide-id="<?php echo esc_attr($rows->id); ?>"><i class="fa fa-remove"
                                                                                              aria-hidden="true"></i></a></b>
                                            <b title="Published"><label href="#" class="qchero_on_off_image"><input style="margin-top: 0px;"
                                                        data-slide-id="<?php echo esc_attr( $rows->id ); ?>"
                                                        class="slide-checkbox" <?php if ( $rows->published == 1 ) {echo 'checked  value="1"';}else{echo 'value="0"';} ?> type="checkbox" /></label></b>
											<b style="cursor:move" title="Order using drag and drop"><i class="fa fa-arrows" aria-hidden="true"></i></b>
                                        </div>
  									</div>


                                        <form class="qchero-nodisplay">
										
											
											
                                            <input type="text" class="qcheroitem-edit-title"
                                                   value="<?php echo esc_attr( wp_unslash( $rows->title ) ); ?>" placeholder="Default Title">
                                            <textarea class="qcheroitem-edit-description"><?php echo qchero_text_sanitize( $rows->description ); ?></textarea>
											
											
											<div class="hero_configuration_info">
												<?php 
													$config = json_decode(wp_unslash(htmlspecialchars_decode($rows->stomp)));
												?>
												<?php if(isset($config->hero_stomp_animation) && $config->hero_stomp_animation!=''): ?>
												<div class="hero_config_item">
													<p><span>Animation: </span><?php echo esc_attr( $config->hero_stomp_animation ); ?></p>
												</div>
												<?php endif; ?>
												<?php if(isset($config->hero_stomp_delay) && $config->hero_stomp_delay!=''): 
												$delay_time = $delay_time+$config->hero_stomp_delay;
												?>
												<div class="hero_config_item">
													<p><span>Delay: </span><?php echo esc_attr( $config->hero_stomp_delay ); ?></p>
												</div>
												<?php endif; ?>
												
												<?php if(isset($config->hero_stomp_fontsize) && $config->hero_stomp_fontsize!=''): ?>
												<div class="hero_config_item">
													<p><span>Font Size: </span><?php echo esc_attr( $config->hero_stomp_fontsize ); ?></p>
												</div>
												<?php endif; ?>
												
												<?php if(isset($config->hero_stomp_text_color) && $config->hero_stomp_text_color!=''): ?>
												<div class="hero_config_item">
													<p style="color:<?php echo esc_attr( $config->hero_stomp_text_color ); ?>"><span>Font</span></p>
												</div>
												<?php endif; ?>
												
												<?php if(isset($config->hero_stomp_background_color) && $config->hero_stomp_background_color!=''): ?>
												<div class="hero_config_item">
													<p style="color:<?php echo esc_attr( $config->hero_stomp_background_color ); ?>"><span>Background</span></p>
												</div>
												<?php endif; ?>
												
												
											</div>
											
											
											<div class="hero_slide_inputs">
												<input type="text" class="hero_title_gfont" placeholder="Title Font" value="<?php echo wp_unslash( $rows->t_font ); ?>" /><input type="text" class="hero_description_gfont" placeholder="Description Font" value="<?php echo wp_unslash( $rows->d_font ); ?>" />
												<input type="text" class="hero_title_lspace" placeholder="Title Letter Spacing(px)" value="<?php echo wp_unslash( $rows->tl_space ); ?>" />
												<input type="text" class="hero_description_lspace" placeholder="Desc Letter Spacing(px)" value="<?php echo wp_unslash( $rows->dl_space ); ?>" />
											</div>
											<input type="hidden" class="qcheroitem-add-btn"
                                                   value="<?php echo wp_unslash( esc_js($rows->btn) ); ?>" placeholder="Add Button">
											<input type="button" class="qcheroitem-add-btn1" style="width: 49%;border: 1px solid #ddd;float:left;" value="<?php echo (isset($rows->btn)&&strlen($rows->btn)>10)?'Edit Button':'Add A Button';?>" />  
											
											<input type="hidden" class="qcheroitem-btn2-hd"
                                                   value="<?php echo wp_unslash( esc_js($rows->btn2) ); ?>" placeholder="Add Button">
											<input type="button" class="qcheroitem-btn2-sw" style="width: 49%;border: 1px solid #ddd;" value="<?php echo (isset($rows->btn2)&&strlen($rows->btn2)>10)?'Edit Button':'Add A Button';?>" />

											<input type="button" data-ordering="<?php echo esc_attr( $rows->ordering ); ?>" class="qcheroitem-stomp-config" style="width: 99%;border: 1px solid #ddd;" value="<?php echo (isset($rows->stomp)&&strlen($rows->stomp)>10)?'Edit Configuration':'Add Configuration';?>" />
											
											<input type="hidden" class="qcheroitem-stomp-value"
                                                   value="<?php echo wp_unslash( esc_js($rows->stomp) ); ?>" />
											<input type="hidden" class="qcheroitem-draft-value"
                                                   value="0" />
											<?php if(isset($_slider[0]->type) && $_slider[0]->type!='youtube_video'): ?>
											<input type="hidden" class="qcheroitem-add-url" value="<?php echo esc_attr($rows->image_link); ?>">
											<?php endif; ?>
                                            <input type="hidden" class="qcheroitem-ordering"
                                                   value="<?php echo esc_attr($rows->ordering); ?>">
                                        </form>
										</div>


									

                                </li>
                                <?php
                        }
                    } ?>

<li class="qcld-hero-add-new-slide">
			<?php if( isset($_slider[0]->type) && $_slider[0]->type=='play_or_work'): ?>
				<?php if(! count( $_row )): ?>
                <div class="add_slide_container"><a class="add_image"><span><?php _e( 'Add Slide', 'qchero' ); ?></span><span><i class="fa fa-plus-circle" aria-hidden="true"></i>
</span></a></div>
				<?php endif; ?>		
			<?php else: ?>
				<div class="add_slide_container"><a class="add_image"><span><?php _e( 'Add Slide', 'qchero' ); ?></span><span><i class="fa fa-plus-circle" aria-hidden="true"></i>
</span></a></div>
			<?php endif; ?>		
			</li>
 </ul>

 
      



               
                <button id="save_slider">Save Slide Changes</button>
            
			</div>
        </div>
        




		
       
 </div>


    <div id="qchero_slider_title_styling" class="qchero-styling main-content">
        <div class="qchero_close"><i class="fa fa-remove" aria-hidden="true"></i></div>
        <span class="popup-type" data="off"><img
                src="<?php echo QCLD_SLIDERHERO_IMAGES . "/light_1.png"; ?>"></span>
        <form id="qchero-title-styling" class="params">
            <input type="hidden" class="width" name="params[title][style][width]" rel="px"
                   value="<?php echo esc_attr($params->title->style->width); ?>">
            <input type="hidden" class="height" name="params[title][style][height]" rel="px"
                   value="<?php echo esc_attr($params->title->style->height); ?>">
            <input type="hidden" class="top" name="params[title][style][top]" rel="0"
                   value="<?php echo esc_attr($params->title->style->top); ?>">
            <input type="hidden" class="left" name="params[title][style][left]" rel="0"
                   value="<?php echo esc_attr($params->title->style->left); ?>">
            
        </form>
        <div class="qchero_content">
            <div class="qchero_title">
                <div class="qchero_title_child"></div>
                <span class="title">Title</span>
            </div>
        </div>
    </div>
	
    <div id="qchero_slider_button1_styling" class="qchero-styling main-content">
        <div class="qchero_close"><i class="fa fa-remove" aria-hidden="true"></i></div>
        <span class="popup-type" data="off"><img
                src="<?php echo QCLD_SLIDERHERO_IMAGES . "/light_1.png"; ?>"></span>
        <form id="qchero-button1-styling" class="params">
            <input type="hidden" class="width" name="params[button1][style][width]" rel="px"
                   value="<?php echo esc_attr($params->button1->style->width); ?>">
            <input type="hidden" class="height" name="params[button1][style][height]" rel="px"
                   value="<?php echo esc_attr($params->button1->style->height); ?>">
            <input type="hidden" class="top" name="params[button1][style][top]" rel="0"
                   value="<?php echo esc_attr($params->button1->style->top); ?>">
            <input type="hidden" class="left" name="params[button1][style][left]" rel="0"
                   value="<?php echo esc_attr($params->button1->style->left); ?>">
            
        </form>
        <div class="qchero_content">
            <div class="qchero_button1">
                <div class="qchero_button1_child"></div>
                <span class="title">button1</span>
            </div>
        </div>
    </div>
	
    <div id="qchero_slider_description_styling" class="qchero-styling main-content">
        <div class="qchero_close"><i class="fa fa-remove" aria-hidden="true"></i></div>
        <span class="popup-type" data="off"><img
                src="<?php echo QCLD_SLIDERHERO_IMAGES . "/light_1.png"; ?>"></span>
        <form id="qchero-description-styling" class="params">
            <input type="hidden" class="width" name="params[description][style][width]" rel="px"
                   value="<?php echo esc_attr($params->description->style->width); ?>">
            <input type="hidden" class="height" name="params[description][style][height]" rel="px"
                   value="<?php echo esc_attr($params->description->style->height); ?>">
            <input type="hidden" class="top" name="params[description][style][top]" rel="0"
                   value="<?php echo esc_attr($params->description->style->top); ?>">
            <input type="hidden" class="left" name="params[description][style][left]" rel="0"
                   value="<?php echo esc_attr($params->description->style->left); ?>">
            
        </form>
        <div class="qchero_content">
            <div class="qchero_description">
                <div class="qchero_description_child"></div>
                <span class="description">description</span>
            </div>
        </div>
    </div>
<div id="qchero_loading_overlay" style="display:none;">
	<div class="hero_loader"></div>
</div>

    <style>
        #qchero_slider_preview_popup {
            display: none;
            position: fixed;
            height: 100%;
            width: 100%;
            background: #000000;
            opacity: 0.7;
            top: 0;
            left: 0;
            z-index: 9998;
        }

        #qchero_slider_preview {
            padding: 40px;
            overflow-y: scroll;
            overflow: overlay;
            display: none;
            position: fixed;
            height: 80%;
            width: 90%;
            background: #f1f1f1;
            opacity: 1;
            top: 10%;
            left: 5%;
            z-index: 10000;
            box-sizing: border-box;
        }

        .qchero-custom-styling .qchero_content .qchero_custom .qchero_img {
            box-sizing: border-box;
            border-style: solid !important;
        }

        .qchero-custom-styling .qchero_content .qchero_custom img {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            display: block;
        }

        .qcheroimg {
            overflow: hidden;
            box-sizing: border-box;
            box-sizing: border-box;
        }

        #qchero_slider_preview .qchero_content {
            position: absolute;
            background: #FBABAB;
            width: 100%;
            height: 100%;
        }

        #qchero-slider-construct {
            width: 100%;
            height: 500px;
            position: relative;
            background-size: 100% 100%;
            background-repeat: no-repeat;
            overflow: hidden;
            background: #E5E3DF;
            background-size: 100% 100%;
            background-repeat: no-repeat;
            

        }

        .qchero_construct {
            max-width: 100%;
            max-height: <?php echo absint($style->height);?>px;
            position: absolute;
            width: 100px;
            height: 50px;
            margin: 0;
            padding: 0;
            word-wrap: break-word;
            background: green;
            display: inline-block;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            cursor: move;
        }

        img.qchero_construct {
            width: 100px;
            height: auto;
        }

        #qchero-title-construct {
            position: absolute;
            min-width: 50px;
            width: 100%;
            height: <?php echo absint($params->title->style->height);?>px;
            background: transparent;
            cursor: move;
            top: <?php echo esc_attr($params->title->style->top);?>;
            left: <?php echo esc_attr($params->title->style->left);?>;
            opacity: 0.9;
            color: rgb(86, 88, 85);
            filter: alpha(opacity=<?php echo (isset($params->title->style->opacity)?abs($params->title->style->opacity):'');?>);
            border: 2px dashed #898989;
            word-wrap: break-word;
            overflow: hidden;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            box-sizing: border-box;
        }
        #qchero-button1-construct {
            position: absolute;
            min-width: 50px;
            width: 100%;
            height: <?php echo absint($params->button1->style->height);?>px;
            background: transparent;
            cursor: move;
            top: <?php echo esc_attr($params->button1->style->top);?>;
            left: <?php echo esc_attr($params->button1->style->left);?>;
            opacity: 0.9;
            color: rgb(86, 88, 85);
            filter: alpha(opacity=<?php echo (isset($params->title->style->opacity)?abs($params->title->style->opacity):'');?>);
            border: 2px dashed #898989;
            word-wrap: break-word;
            overflow: hidden;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            box-sizing: border-box;
        }

        #qchero-description-construct {
            position: absolute;
            min-width: 50px;
            width: 100%;
            height: <?php echo absint($params->description->style->height);?>px;
            background: <?php echo (isset($params->description->style->background->color)?"#".$params->description->style->background->color:'');?>;
            background: transparent;

            cursor: move;
            top: <?php echo esc_attr($params->description->style->top);?>;
            left: <?php echo esc_attr($params->description->style->left);?>;
            opacity: 0.9;
            color: rgb(86, 88, 85);
            border: 2px dashed #898989;
            filter: alpha(opacity=<?php echo (isset($params->description->style->opacity)?abs($params->description->style->opacity):'');?>);
            word-wrap: break-word;
            overflow: hidden;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            box-sizing: border-box;
        }

        #qchero-custom-construct {
            position: absolute;
            min-width: 50px;
            cursor: move;
            word-wrap: break-word;
            overflow: hidden;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }


        #qchero-description-construct #qchero_remove {
            opacity: 0;
        }
    </style>














<div id="overlay"></div>
 <div class="qchero_slider_edit_wrap">
        <div class="qchero_slider_edit">
		<?php if( isset($_slider[0]->type) && $_slider[0]->type=='play_or_work'): ?>
			<p style="text-align:center;color:red;">Play Or Work effect does not support more then one slide.</p>
		<?php endif; ?>

	<button id="closePopup" class="close-btn">&times;</button>
            <div class="settings">
				
			    <div class="menu">
				
                    <ul>
                        <li rel="general"><a href="#" class="active">General Settings</a></li>
                        <li rel="display-setting"><a href="#" class="">Display Settings</a></li>
                        <li rel="audio-setting"><a href="#" class="">Audio Settings</a></li>
                        <li rel="video-settings"><a href="#" class="">Video Settings</a></li>
						<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
                        <li rel="Effect-setting"><a href="#" class="">Effect Settings</a></li>
                        <li rel="arrows"><a href="#" class="">Arrows</a></li>
						<?php endif; ?>
                        <li rel="shortcodes"><a href="#">Shortcode</a></li>
                    </ul>
                </div>
                <div class="menu-content">
                    <ul class="main-content">
                        <li class="general active">
           
                            
						
							
							<div class="othersetting">
								<?php if(isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
									<div class="params deseffect customitemstyle">
										<label class="customlevel" for="qchero-effect-interval"><?php _e('Slide Delay Time', 'qchero'); ?>:</label>
										<input class="myElements" style="width: 96%;" type="number" name="params[effect][interval]"
											   value="<?php echo esc_attr($params->effect->interval); ?>">
									</div>
									
									<div class="params deseffect customitemstyle">
										<label class="customlevel" for="qchero-effect-interval"><?php _e('Slide Padding Time', 'qchero'); ?>:</label>
										<input class="myElements" style="width: 96%;" type="number" name="params[paddingtime]"
											   value="<?php echo (isset($params->paddingtime)&&$params->paddingtime!=''?$params->paddingtime:'500'); ?>">
									</div>
									
									<div class="params customitemstyle">
										<label class="customlevel" for="qchero-background-color" style="display: inline-block;">Auto slide</label> 
										<select name="params[stopslide]">
											<option value="0" <?php echo (isset($params->stopslide)&& $params->stopslide==0?'selected="selected"':''); ?>>On</option>
											<option value="1" <?php echo (isset($params->stopslide)&& $params->stopslide==1?'selected="selected"':''); ?>>Off</option>
										</select>
									</div>
								<?php endif; ?>
								
								
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Slide Repeat</label> 
									<select name="params[repeat]">
										<option value="0" <?php echo (isset($params->repeat)&& $params->repeat==0?'selected="selected"':''); ?>>Off</option>
										<option value="1" <?php echo (isset($params->repeat)&& $params->repeat==1?'selected="selected"':''); ?>>On</option>
									</select>
								</div>
								<?php if(isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Random Slide</label> 
									<select name="params[randomslide]">
										<option value="0" <?php echo (isset($params->randomslide)&& $params->randomslide==0?'selected="selected"':''); ?>>Off</option>
										<option value="1" <?php echo (isset($params->randomslide)&& $params->randomslide==1?'selected="selected"':''); ?>>On</option>
									</select>
								</div>
								
								
									
								<div class="params deseffect customitemstyle">
                                    <label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Title Alignment', 'qcslide'); ?>:</label>
									<select class="myElements" name="params[title][align]" style="width: 96%;">
										
										
										<option value="left" <?php echo ($params->title->align=='left'?'selected="selected"':''); ?>><?php _e('Left', 'qcslide'); ?></option>
										
										<option value="center" <?php echo ($params->title->align=='center'?'selected="selected"':''); ?>><?php _e('Center', 'qcslide'); ?></option>
										
										<option value="right" <?php echo ($params->title->align=='right'?'selected="selected"':''); ?>><?php _e('Right', 'qcslide'); ?></option>
										
										
									</select>
                                    
                                </div>
								<div class="params deseffect customitemstyle">
                                    <label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Description Alignment', 'qcslide'); ?>:</label>
									<select class="myElements" name="params[description][align]" style="width: 96%;">
										
										
										<option value="left" <?php echo ($params->description->align=='left'?'selected="selected"':''); ?>><?php _e('Left', 'qcslide'); ?></option>
										
										<option value="center" <?php echo ($params->description->align=='center'?'selected="selected"':''); ?>><?php _e('Center', 'qcslide'); ?></option>
										
										<option value="right" <?php echo ($params->description->align=='right'?'selected="selected"':''); ?>><?php _e('Right', 'qcslide'); ?></option>
										
										
									</select>
                                    
                                </div>
								
								<div class="params deseffect customitemstyle">
                                    <label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Button Alignment', 'qcslide'); ?>:</label>
									<select class="myElements" name="params[button1][align]" style="width: 96%;">
										
										
										<option value="left" <?php echo ($params->button1->align=='left'?'selected="selected"':''); ?>><?php _e('Left', 'qcslide'); ?></option>
										
										<option value="center" <?php echo ($params->button1->align=='center'?'selected="selected"':''); ?>><?php _e('Center', 'qcslide'); ?></option>
										
										<option value="right" <?php echo ($params->button1->align=='right'?'selected="selected"':''); ?>><?php _e('Right', 'qcslide'); ?></option>
										
										
									</select>
                                    
                                </div>
								
								<?php endif; ?>
								<div class="params deseffect customitemstyle">
                                    <label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Slider End Redirect Url', 'qcslide'); ?> <span class="hero_pro_features">[PRO]</span></label>
									<input class="myElements" style="width: 96%;" type="text" name="params[slidendredirect]"
											   value="<?php echo (isset($params->slidendredirect) && $params->slidendredirect!=''?$params->slidendredirect:''); ?>" placeholder="Ex: http://www.example.com" disabled />
                                </div>
								
								<?php if(isset($_slider[0]->type) && $_slider[0]->type=='intro'): ?>
								<div class="params deseffect customitemstyle">
									<div style="display: inline-block;">Or</div>
									<div style="display: inline-block;width: 92%;">
										<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Slider End Load New slider', 'qcslide'); ?><span class="hero_pro_features">[PRO]</span></label>
										
										<select class="myElements" name="params[newsliderafterend]" style="width:100%">
											<option value="">None</option>
											
											<?php
												global $wpdb;
												$s       = 1;
												$table   = QCLD_TABLE_SLIDERS;
												$sliders = array();
												$row = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $table WHERE %d and `type`!='intro'", $s ) );
												foreach($row as $rows){
													if(isset($params->newsliderafterend) and $params->newsliderafterend==$rows->id){
														
														echo '<option value="'.esc_attr($rows->id).'" selected="selected" disabled >'.esc_html($rows->title).'</option>';
														
													}else{
														
														echo '<option value="'.esc_attr($rows->id).'" disabled >'.esc_html($rows->title).'</option>';
														
													}
													
												}
											?>
											
											
										</select>
                                    </div>
                                </div>
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Show Skip Button <span class="hero_pro_features">[PRO]</span></label> 
									<select name="params[heroskip]">
										<option value="1" <?php echo (isset($params->heroskip)&& $params->heroskip==1?'selected="selected"':''); ?> disabled >Hide</option>
										<option value="0" <?php echo (isset($params->heroskip)&& $params->heroskip==0?'selected="selected"':''); ?> disabled >Show</option>
										
									</select>
								</div>
								<?php endif; ?>
								<?php if( isset($_slider[0]->type) && $_slider[0]->type=='intro'): ?>
								
								<?php endif; ?>
								<div class="params deseffect customitemstyle">
                                    <label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Slider Redirect Delay', 'qcslide'); ?> <span class="hero_pro_features">[PRO]</span></label>
									<input class="myElements" style="width: 96%;" type="number" name="params[slideredirectdelay]"
											   value="" placeholder="Ex: 1000" disabled />
                                </div>
								<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Disable Slider on Mobile</label> 
									<select name="params[disableinmobile]">
										<option value="0" <?php echo (isset($params->disableinmobile)&& $params->disableinmobile==0?'selected="selected"':''); ?>>Off</option>
										<option value="1" <?php echo (isset($params->disableinmobile)&& $params->disableinmobile==1?'selected="selected"':''); ?>>On</option>
									</select>
								</div>
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Show Slider Only Once</label> 
									<select name="params[onlyonce]">
										<option value="0" <?php echo (isset($params->onlyonce)&& $params->onlyonce==0?'selected="selected"':''); ?>>Off</option>
										<option value="1" <?php echo (isset($params->onlyonce)&& $params->onlyonce==1?'selected="selected"':''); ?>>On</option>
									</select>
								</div>
								
								<div class="params fullscreenmobile" style="display: none">
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Full Screen on Tab and mobile</label> 
									<select name="params[fullscreenmobile]">
										<option value="0" <?php echo (isset($params->fullscreenmobile)&& $params->fullscreenmobile==0?'selected="selected"':''); ?>>Off</option>
										<option value="1" <?php echo (isset($params->fullscreenmobile)&& $params->fullscreenmobile==1?'selected="selected"':''); ?>>On</option>
									</select>
								</div>
								
								<?php endif; ?>

							</div>
							
							
							<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
                            <div id="general-view" >
								
								<div class="hero_content_right" style="float: left;">
									<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
									<div class="params">
										<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Content Start From', 'qcslide'); ?>:</label>
										<select class="myElements" name="params[content]" style="width: 96%;">
											
											
											<option value="center" <?php echo (isset($params->content) && $params->content=='center'?'selected="selected"':''); ?>><?php _e('Center', 'qcslide'); ?></option>
											
											<option value="top" <?php echo (isset($params->content) && $params->content=='top'?'selected="selected"':''); ?>><?php _e('Top', 'qcslide'); ?></option>
											
											<option value="bottom" <?php echo (isset($params->content) && $params->content=='bottom'?'selected="selected"':''); ?>><?php _e('Bottom', 'qcslide'); ?></option>
											
											
										</select>
										
									</div>
									<div class="params deseffect">
										<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Content Margin from Top or Bottom', 'qcslide'); ?></label>
										<input class="myElements" style="width: 96%;" type="text" name="params[contentspace]"
												   value="<?php echo (isset($params->contentspace) && $params->contentspace!=''?esc_attr($params->contentspace):''); ?>" placeholder="Ex: 50px or 10%" />
										
									</div>
									
									<div class="params deseffect">
										<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Title Bottom Margin', 'qcslide'); ?></label>
										<input class="myElements" style="width: 96%;" type="text" name="params[titlebottommargin]"
												   value="<?php echo (isset($params->titlebottommargin) && $params->titlebottommargin!=''?esc_attr($params->titlebottommargin):''); ?>" placeholder="Ex: 50px or 10%" />

									</div>
									<div class="params deseffect">
										<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Description Bottom Margin', 'qcslide'); ?></label>
										<input class="myElements" style="width: 96%;" type="text" name="params[descriptionbottommargin]"
												   value="<?php echo (isset($params->descriptionbottommargin) && $params->descriptionbottommargin!=''?esc_attr($params->descriptionbottommargin):''); ?>" placeholder="Ex: 50px or 10%" />
										
									</div>
									
									<div class="params deseffect">
										<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Button Bottom Margin', 'qcslide'); ?></label>
										<input class="myElements" style="width: 96%;" type="text" name="params[buttonbottommargin]"
												   value="<?php echo (isset($params->buttonbottommargin) && $params->buttonbottommargin!=''?esc_attr($params->buttonbottommargin):''); ?>" placeholder="Ex: 50px or 10%" />
										
									</div>
									
									<?php endif; ?>
								</div>




<div class="hero_content_left" style="float:left;width:50%">
								<div class="general_view_left">
									Vertically Order Title, Subtitle & Button Positions.
								</div>
                                <div id="qchero-slider-construct" >
                                    <div id="qchero-construct-vertical"></div>
                                    <div id="qchero-construct-horizontal"></div>
                                    <div id="qchero-title-construct" data="title" class="qchero_construct">
                                        <div class="constructor_text" style="margin-left:5px;color:#565855">Title</div>
                                    </div>
									
                                    <div id="qchero-button1-construct" data="button1" class="qchero_construct">
                                        <div class="constructor_text" style="margin-left:5px;color:#565855">Button</div>
                                    </div>
									
                                    <div id="qchero-description-construct" data="description" class="qchero_construct">
                                        <div class="constructor_text" style="margin-left:5px;color:#565855">Description</div>
                                    </div>

                                    <div id="zoom" class="sizer">
                                    </div>
                                    <a id="qchero_remove" title="Remove Element"><i class="fa fa-remove"
                                                                                     aria-hidden="true"></i></a>
								</div>
								</div>


<div style="clear:both"></div>




							</div>
							<?php endif; ?>
                        </li>
						<li class="display-setting">
						
						
							<h2>Color & Background Section</h2>
							<hr>
							<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
							<div class="othersetting">
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Title Background Color</label> <input type="text" name="params[titlebgcolor]" class="color-field myElements" value="<?php echo (isset($params->titlebgcolor)?esc_attr($params->titlebgcolor):''); ?>" />
								</div>
								
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Title Color</label> <input type="text" name="params[titlecolor]" class="color-field myElements" value="<?php echo (isset($params->titlecolor)?esc_attr($params->titlecolor):''); ?>" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Description Background Color</label> <input type="text" name="params[descriptionbgcolor]" class="color-field myElements" value="<?php echo (isset($params->descriptionbgcolor)?esc_attr($params->descriptionbgcolor):''); ?>" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Description Color</label> <input type="text" name="params[descriptioncolor]" class="color-field myElements" value="<?php echo esc_attr($params->descriptioncolor); ?>" />
								</div>
										
							</div>
							
							
							<div class="params deseffect customitemstyle">
								 <label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Top Decoration', 'qcslide'); ?>:</label>
								<select class="myElements" name="params[herotop][decoration]">
															
									<option value="">None</option>
									<option value="slope-left" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='slope-left'?'selected="selected"':''); ?>>Slope Left</option>
									
									<option value="slope-right" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='slope-right'?'selected="selected"':''); ?>>Slope Right</option>
									
									<option value="rounded-outer" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='rounded-outer'?'selected="selected"':''); ?>>Rounded Outer</option>
									
									<option value="rounded-inner" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='rounded-inner'?'selected="selected"':''); ?>>Rounded Inner</option>
									
									<option value="triangle-outer" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='triangle-outer'?'selected="selected"':''); ?>>Triangle Outer</option>
									
									<option value="triangle-inner" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='triangle-inner'?'selected="selected"':''); ?>>Triangle Inner</option>
									
									<option value="arrow" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='arrow'?'selected="selected"':''); ?>>Arrow</option>
									
									<option value="circle" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='circle'?'selected="selected"':''); ?>>Circle</option>
									
									<option value="clouds" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='clouds'?'selected="selected"':''); ?>>Clouds</option>
									
									<option value="repeat-triangle" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='repeat-triangle'?'selected="selected"':''); ?>>Triangle Pattern</option>
									
									
									
									<option value="repeat-circle" <?php echo (isset($params->herotop->decoration)&&$params->herotop->decoration=='repeat-circle'?'selected="selected"':''); ?>>Half Circle Pattern</option>
									
								</select>
								
							</div>
							<div class="params customitemstyle">
									<label class="customlevel" for="qchero-background-color">Top Decoration Color</label> <input type="text" name="params[topdecorationcolor]" class="color-field" value="<?php echo (isset($params->topdecorationcolor)?esc_attr($params->topdecorationcolor):''); ?>" />
							</div>
						<div class="params deseffect customitemstyle">
							 <label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Bottom Decoration', 'qcslide'); ?>:</label>
							<select class="myElements" name="params[herobottom][decoration]">
							
								<option value="">None</option>
								<option value="slope-left" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='slope-left'?'selected="selected"':''); ?>>Slope Left</option>
								
								<option value="slope-right" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='slope-right'?'selected="selected"':''); ?>>Slope Right</option>
								
								<option value="rounded-outer" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='rounded-outer'?'selected="selected"':''); ?>>Rounded Outer</option>
								
								<option value="rounded-inner" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='rounded-inner'?'selected="selected"':''); ?>>Rounded Inner</option>
								
								<option value="triangle-outer" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='triangle-outer'?'selected="selected"':''); ?>>Triangle Outer</option>
								
								<option value="triangle-inner" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='triangle-inner'?'selected="selected"':''); ?>>Triangle Inner</option>
								
								<option value="arrow" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='arrow'?'selected="selected"':''); ?>>Arrow</option>
								
								<option value="circle" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='circle'?'selected="selected"':''); ?>>Circle</option>
								
								<option value="clouds" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='clouds'?'selected="selected"':''); ?>>Clouds</option>
								
								<option value="repeat-triangle" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='repeat-triangle'?'selected="selected"':''); ?>>Triangle Pattern</option>
								
								
								<option value="repeat-circle" <?php echo (isset($params->herobottom->decoration)&&$params->herobottom->decoration=='repeat-circle'?'selected="selected"':''); ?>>Half Circle Pattern</option>
															
							</select>
							
						</div>
						<div class="params customitemstyle">
								<label class="customlevel" for="qchero-background-color">Bottom Decoration Color</label> <input type="text" name="params[bottomdecorationcolor]" class="color-field" value="<?php echo (isset($params->bottomdecorationcolor)?esc_attr($params->bottomdecorationcolor):''); ?>" />
						</div>
						
					
							
						<?php endif; ?>
							
							<div class="params customitemstyle">
									<label class="customlevel" for="qchero-background-color">Background Color</label> <input type="text" name="params[background]" class="color-field" value="<?php echo (isset($params->background)?esc_attr($params->background):''); ?>" />
							</div>

							<div class="othersetting" style="display: inline-block; float: left; width: 25%;">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_image_url">Background/Cover Image</label>
									<input type="hidden" name="cs[bg_image_url]" id="bg_image_url" class="regular-text" value="<?php echo esc_attr($_slider[0]->bg_image_url); ?>">
									<input type="button" name="upload-btn" id="bg-upload-btn" class="button-secondary" value="Upload Image">
								</div>
								<div style="clear:both"></div>
								<div id="bg_preview_img">
								
								<?php 
									if($_slider[0]->bg_image_url != '') :
								?>
									<span class="remove_bg_image">X</span>
									<img src="<?php echo esc_attr($_slider[0]->bg_image_url); ?>" alt="" />
								<?php endif; ?>
								</div>
							

							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; margin-right: 0px;width: 25%;">
									<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_image_url">Background Gradient</label>
									<input type="hidden" name="cs[bg_gradient]" id="bg_gradient" class="regular-text" value='<?php echo str_replace('"','',preg_replace('/\\\\/', '', $_slider[0]->bg_gradient)); ?>' />
									<input type="button" name="upload-btn" id="bg_gradient_select" class="button-secondary" value="Select Gradient">

								</div>
								<?php
									if(isset($_slider[0]->bg_gradient) and strlen($_slider[0]->bg_gradient)>5){
								?>
									
									<div id="gradient_view" style="display:inline-block;<?php echo str_replace('"','',preg_replace('/\\\\/', '', $_slider[0]->bg_gradient)); ?>">
										<span class="remove_gradient">x</span>
									</div>
								<?php 
									}else{
								?>	
									
									<div id="gradient_view">
										<span class="remove_gradient">x</span>
									</div>
								<?php
									}
								?>

							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;">
								
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_video">Background Image Effect <span class="hero_pro_features">[PRO]</span></label>
									<select class="myElements" name="params[bgimageeffect]">
									
										<option value="">None</option>
										<option value="parallax" <?php echo (isset($params->bgimageeffect)&&$params->bgimageeffect=='parallax'?'selected="selected"':''); ?> disabled>Parallax Effect</option>
										<option value="ken-burn" <?php echo (isset($params->bgimageeffect)&&$params->bgimageeffect=='ken-burn'?'selected="selected"':''); ?> disabled>Ken Burn Effect</option>
										
																	
									</select>
									
								</div>
								

							</div>
							
							
							<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
						
						
						<div class="params deseffect customitemstyle">
							<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Slide Image Effect', 'qcslide'); ?>:</label>
							<select class="myElements" name="params[slideimageeffect]">

								<option value="fade" <?php echo (isset($params->slideimageeffect) && $params->slideimageeffect=='fade'?'selected="selected"':''); ?>>Fade</option>
							
								<option value="slide-left" <?php echo (isset($params->slideimageeffect) && $params->slideimageeffect=='slide-left'?'selected="selected"':''); ?>>Slide Left</option>
								
								<option value="slide-right" <?php echo (isset($params->slideimageeffect) && $params->slideimageeffect=='slide-right'?'selected="selected"':''); ?>>Slide Right</option>
								
								<option value="slide-top" <?php echo (isset($params->slideimageeffect) && $params->slideimageeffect=='slide-top'?'selected="selected"':''); ?>>Slide Top</option>
								
								<option value="slide-bottom" <?php echo (isset($params->slideimageeffect) && $params->slideimageeffect=='slide-bottom'?'selected="selected"':''); ?>>Slide Bottom</option>

							</select>
							
						</div>
						<div class="params deseffect customitemstyle">
							<label class="customlevel" for="qcslide-effect-slideffect"><?php _e('Reverse Slide Image Effect', 'qcslide'); ?>:</label>
							<select class="myElements" name="params[slideimageeffectreverse]">

								<option value="fade" <?php echo (isset($params->slideimageeffectreverse) && $params->slideimageeffectreverse=='fade'?'selected="selected"':''); ?>>Fade</option>
							
								<option value="slide-left" <?php echo (isset($params->slideimageeffectreverse) && $params->slideimageeffectreverse=='slide-left'?'selected="selected"':''); ?>>Slide Left</option>
								
								<option value="slide-right" <?php echo (isset($params->slideimageeffectreverse) && $params->slideimageeffectreverse=='slide-right'?'selected="selected"':''); ?>>Slide Right</option>
								
								<option value="slide-top" <?php echo (isset($params->slideimageeffectreverse) && $params->slideimageeffectreverse=='slide-top'?'selected="selected"':''); ?>>Slide Top</option>
								
								<option value="slide-bottom" <?php echo (isset($params->slideimageeffectreverse) && $params->slideimageeffectreverse=='slide-bottom'?'selected="selected"':''); ?>>Slide Bottom</option>

							</select>
							
						</div>
						<div class="params customitemstyle">
							<label class="customlevel" for="qchero-caption-text-color">Canvas Opacity</label> <input type="text" name="params[canvasopacity]" class="myElements" placeholder="Ex: 0.5" value="<?php echo (isset($params->canvasopacity)?esc_attr($params->canvasopacity):''); ?>" />
						</div>
						<?php endif; ?>

					
					<div style="clear:both;"></div>
							<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
							<h2>Font Section</h2>
							<hr>
							<div class="othersetting">
			
					
								<div class="params titlefontsize customitemstyle">
                                    <label class="customlevel" for="qchero-title-fontsize">Title Font Size(px)</label>
									<input class="myElements" type="number" name="params[titlefontsize]" value="<?php echo esc_attr($params->titlefontsize); ?>"  />
                                </div>
								<div class="params descfontsize customitemstyle">
                                    <label class="customlevel" for="qchero-desc-fontsize">Description Font Size(px)</label>
									<input class="myElements" type="number" name="params[descfontsize]" value="<?php echo esc_attr($params->descfontsize); ?>"  />
                                </div>	
								<div class="params titlefontsize customitemstyle">
                                    <label class="customlevel" for="qchero-title-fontsize">Title Line Height(px)</label>
									<input class="myElements" type="number" name="params[titlefontheight]" value="<?php echo esc_attr(isset( $params->titlefontheight ) ? $params->titlefontheight : '' ); ?>"  />
                                </div>
								<div class="params descfontsize customitemstyle">
                                    <label class="customlevel" for="qchero-desc-fontsize">Description Line Height(px)</label>
									<input class="myElements" type="number" name="params[descfontheight]" value="<?php echo esc_attr( isset( $params->descfontheight ) ? $params->descfontheight : '' ); ?>"  />
                                </div>	
							</div>
							<?php endif; ?>
							<?php if($_slider[0]->type!='intro'): ?>
						<p class="qcld-slidermodal-notic">
					* Please note that some effects are not Transparent and do NOT support slider background Color, Image, Gradient or Video!<br>
					* To use video background simply add a video from the Video Settings tab <br>
					* Slide (background) image effect will only work if you put image in slide
						</p>
						<?php endif; ?>
					
								<h2>Effect Section</h2>
								<hr>
								<div class="tab">
								<button class="tablinks active" onclick="openCity(event, 'animatecss')">
								<?php 
									if($_slider[0]->type!='intro'){
										echo 'Animate Css & Custom';
									}else{
										echo 'Background Animation <span class="hero_pro_features">[PRO]</span>';
									}
								?>
								</button>
								<?php if($_slider[0]->type!='intro'): ?>
								<button class="tablinks" >Letter Fx <span class="hero_pro_features">[PRO]</span></button>
								<?php endif; ?>
								</div>

								<div id="animatecss" class="tabcontent" style="display:block">
								<?php 
								require(QCLD_sliderhero_view.'/slider_hero_tab_animate_css_section.php');
								?>
								</div>

								<div id="letterfx" class="tabcontent">
								<?php
								if($_slider[0]->type!='intro'):
									require(QCLD_sliderhero_view.'/slider_hero_tab_letterfx.php');
								endif;
								?>
								</div>						
							<h2>Control Section</h2>
							<hr>
							<div class="othersetting ">
							
								<?php if( isset($_slider[0]->type) && $_slider[0]->type!='intro'): ?>
								
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-background-color">Content Offset(Left & Right)</label> 
									<input type="text" placeholder="45px or 10%" value="<?php echo (isset($params->contentoffset)&& $params->contentoffset!=''?$params->contentoffset:''); ?>" name="params[contentoffset]" />
								</div>
								
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Arrows</label> 
									<select name="params[hidearrow]">
										<option value="0" <?php echo (isset($params->hidearrow)&& $params->hidearrow==0?'selected="selected"':''); ?>>Show</option>
										<option value="1" <?php echo (isset($params->hidearrow)&& $params->hidearrow==1?'selected="selected"':''); ?>>Hide</option>
									</select>
								</div>
								
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Bottom Navigation</label> 
									<select name="params[hidenavigation]">
										<option value="0" <?php echo (isset($params->hidenavigation)&& $params->hidenavigation==0?'selected="selected"':''); ?>>Show</option>
										<option value="1" <?php echo (isset($params->hidenavigation)&& $params->hidenavigation==1?'selected="selected"':''); ?>>Hide</option>
									</select>
								</div>
								<?php endif; ?>
								
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Show Restart Button</label> 
									<select name="params[herorestart]">
										<option value="0" <?php echo (isset($params->herorestart)&& $params->herorestart==0?'selected="selected"':''); ?>>Show</option>
										<option value="1" <?php echo (isset($params->herorestart)&& $params->herorestart==1?'selected="selected"':''); ?>>Hide</option>
									</select>
								</div>
								
								<?php if($_slider[0]->type!='intro'): ?>
								
								<?php endif; ?>
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Show Pause Button</label> 
									<select name="params[heropause]">
										<option value="0" <?php echo (isset($params->heropause)&& $params->heropause==0?'selected="selected"':''); ?>>Show</option>
										<option value="1" <?php echo (isset($params->heropause)&& $params->heropause==1?'selected="selected"':''); ?>>Hide</option>
									</select>
								</div>
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Select Title Tag</label> 
									<select name="params[titletag]">
										<option value="h2" <?php echo (isset($params->titletag)&& $params->titletag=='h2'?'selected="selected"':''); ?>>h2</option>
										<option value="h1" <?php echo (isset($params->titletag)&& $params->titletag=='h1'?'selected="selected"':''); ?>>h1</option>
										<option value="h3" <?php echo (isset($params->titletag)&& $params->titletag=='h3'?'selected="selected"':''); ?>>h3</option>
										<option value="h4" <?php echo (isset($params->titletag)&& $params->titletag=='h4'?'selected="selected"':''); ?>>h4</option>
										<option value="h5" <?php echo (isset($params->titletag)&& $params->titletag=='h5'?'selected="selected"':''); ?>>h5</option>
										<option value="h6" <?php echo (isset($params->titletag)&& $params->titletag=='h6'?'selected="selected"':''); ?>>h6</option>
										<option value="p" <?php echo (isset($params->titletag)&& $params->titletag=='p'?'selected="selected"':''); ?>>p</option>
										<option value="span" <?php echo (isset($params->titletag)&& $params->titletag=='span'?'selected="selected"':''); ?>>span</option>
										<option value="div" <?php echo (isset($params->titletag)&& $params->titletag=='div'?'selected="selected"':''); ?>>div</option>
									</select>
								</div>
								
								<div class="params customitemstyle" >
									<label class="customlevel" for="qchero-caption-text-color" style="display: inline-block;">Select Description Tag</label> 
									<select name="params[hero_description_tag]">
										<option value="p" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='p'?'selected="selected"':''); ?>>p</option>
										<option value="h1" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='h1'?'selected="selected"':''); ?>>h1</option>
										<option value="h2" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='h2'?'selected="selected"':''); ?>>h2</option>
										<option value="h3" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='h3'?'selected="selected"':''); ?>>h3</option>
										<option value="h4" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='h4'?'selected="selected"':''); ?>>h4</option>
										<option value="h5" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='h5'?'selected="selected"':''); ?>>h5</option>
										<option value="h6" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='h6'?'selected="selected"':''); ?>>h6</option>
										<option value="span" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='span'?'selected="selected"':''); ?>>span</option>
										<option value="div" <?php echo (isset($params->hero_description_tag)&& $params->hero_description_tag=='div'?'selected="selected"':''); ?>>div</option>
									</select>
								</div>
								
								
								
								
							</div>	
							



						
						</li>
						
						<li class="video-settings">
						
							<?php if($_slider[0]->type!='vimeo_video' && $_slider[0]->type!='youtube_video' && $_slider[0]->type!='video'): ?>
						
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="video">Use Video Background</label>
									<select name="params[video]" id="sh_video" class="myElements">
										<option value="">None</option>
										<option value="custom" <?php echo (isset($params->video)&& $params->video=='custom'?'selected="selected"':''); ?> disabled>Custom Video (Pro)</option>
										<option value="youtube" <?php echo (isset($params->video)&& $params->video=='youtube'?'selected="selected"':''); ?>>Youtube Video</option>
										<option value="vimeo" <?php echo (isset($params->video)&& $params->video=='vimeo'?'selected="selected"':''); ?> disabled>Vimeo Video (Pro)</option>
									</select>
									
								</div>
								
							</div>
							
							
							
							
							
							
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video=='custom'?'display:block;':'display:none;'); ?>" id="sh_custom_video">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_video">Background Video (MP4)</label>
									<input type="hidden" name="params[custom_video_mp4]" id="bg_video" class="regular-text" value="<?php echo (isset($params->custom_video_mp4)&& $params->custom_video_mp4!=''?$params->custom_video_mp4:''); ?>">
									<input type="button" name="upload-btn" id="bg-video-upload-btn" class="button-secondary" value="Upload Video">
								</div>
							
								<div id="bg_preview_video">
								
								<?php 
									if(isset($params->custom_video_mp4)&& $params->custom_video_mp4!='') :
								?>
									<span class="remove_bg_video">X</span>
									<img style="width:100px;" src="<?php echo QCLD_SLIDERHERO_IMAGES.'/video.png'; ?>" alt="" />
								<?php endif; ?>
								</div>

							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video=='custom'?'display:block;':'display:none;'); ?>" id="sh_custom_video2">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_video2">Background Video (webm)</label>
									<input type="hidden" name="params[custom_video_webm]" id="bg_video2" class="regular-text" value="<?php echo (isset($params->custom_video_webm)&& $params->custom_video_webm!=''?$params->custom_video_webm:''); ?>">
									<input type="button" name="upload-btn" id="bg-video-upload-btn2" class="button-secondary" value="Upload Video">
								</div>
							
								<div id="bg_preview_video2">
								
								<?php 
									if(isset($params->custom_video_webm)&& $params->custom_video_webm!='') :
								?>
									<span class="remove_bg_video2">X</span>
									<img style="width:100px;" src="<?php echo QCLD_SLIDERHERO_IMAGES.'/video.png'; ?>" alt="" />
								<?php endif; ?>
								</div>

							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video=='youtube'?'display:block;':'display:none;'); ?>" id="sh_youtube_video">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_video">Background Video (Youtube)</label>
									<input type="text" name="params[bg_video_youtube]" id="bg_video_youtube" placeholder="Video ID" class="myElements" value="<?php echo (isset($params->bg_video_youtube)&& $params->bg_video_youtube!=''?$params->bg_video_youtube:''); ?>">
									
								</div>
								

							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video=='vimeo'?'display:block;':'display:none;'); ?>" id="sh_vimeo_video">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_video">Background Video (Vimeo)</label>
									<input type="text" name="params[bg_video_vimeo]" id="bg_video_vimeo" placeholder="Video ID" class="myElements" value="<?php echo (isset($params->bg_video_vimeo)&& $params->bg_video_vimeo!=''?$params->bg_video_vimeo:''); ?>">
									
								</div>
								

							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video!=''?'display:block;':'display:none;'); ?>;" id="sh_video_loop">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="video_loop">Video Loop</label>
									<select name="params[video_loop]" id="video_loop" class="myElements">
										<option value="1" <?php echo (isset($params->video_loop)&& $params->video_loop=='1'?'selected="selected"':''); ?>>True</option>
										<option value="0" <?php echo (isset($params->video_loop)&& $params->video_loop=='0'?'selected="selected"':''); ?>>False</option>
									</select>
									
								</div>

							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video!=''?'display:block;':'display:none;'); ?>;" id="sh_video_mute">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="video_mute">Video Mute</label>
									<select name="params[video_mute]" id="video_mute" class="myElements">
										<option value="1" <?php echo (isset($params->video_mute)&& $params->video_mute=='1'?'selected="selected"':''); ?>>True</option>
										<option value="0" <?php echo (isset($params->video_mute)&& $params->video_mute=='0'?'selected="selected"':''); ?>>False</option>
									</select>
									<span style="color:red">Because of the browser <a href="https://developers.google.com/web/updates/2017/09/autoplay-policy-changes" target="_blank">policies</a>, videos with sounds may not auto play. Mute sound to ensure that the videos auto play.</span>
								</div>
								

							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video=='custom'?'display:block;':'display:none;'); ?>;" id="sh_video_loop">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="sound_control">Sound Control Option</label>
									<select name="params[sound_control]" id="sound_control" class="myElements">
										<option value="1" <?php echo (isset($params->sound_control)&& $params->sound_control=='1'?'selected="selected"':''); ?>>Hide</option>
										<option value="0" <?php echo (isset($params->sound_control)&& $params->sound_control=='0'?'selected="selected"':''); ?>>Show</option>
									</select>
									
								</div>

							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video!=''?'display:block;':'display:none;'); ?>;" id="sh_video_overlay">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="video_overlay">Video Overlay</label>
									<select name="params[video_overlay]" id="video_overlay" class="myElements">
										<option value="0" <?php echo (isset($params->video_overlay)&& $params->video_overlay=='0'?'selected="selected"':''); ?>>False</option>
										<option value="1" <?php echo (isset($params->video_overlay)&& $params->video_overlay=='1'?'selected="selected"':''); ?>>True</option>
										
									</select>
									
								</div>
								

							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video!=''?'display:block;':'display:none;'); ?>;" id="sh_video_overlay_color">
								<div class="params customitemstyle" style="width:100%;">
									<label class="customlevel" for="qchero-background-color">Video Overlay Color</label> <input type="text" name="params[video_overlay_color]" class="color-field" value="<?php echo (isset($params->video_overlay_color)?esc_attr($params->video_overlay_color):''); ?>" />
								</div>

							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;<?php echo (isset($params->video)&& $params->video!=''?'display:block;':'display:none;'); ?>;" id="sh_video_overlay_opacity">
							
								<div class="params customitemstyle" style="width:100%;">
									<label class="customlevel" for="qchero-background-color">Video Overlay opacity</label> <input type="text" name="params[video_overlay_opacity]" class="myElements" placeholder="0.4" value="<?php echo (isset($params->video_overlay_opacity)?esc_attr($params->video_overlay_opacity):''); ?>" />
								</div>

							</div>
							<?php else: ?>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="videoslide_loop">Video Loop</label>
									<select name="params[videoslide_loop]" id="videoslide_loop" class="myElements">
										<option value="1" <?php echo (isset($params->videoslide_loop)&& $params->videoslide_loop=='1'?'selected="selected"':''); ?>>True</option>
										<option value="0" <?php echo (isset($params->videoslide_loop)&& $params->videoslide_loop=='0'?'selected="selected"':''); ?>>False</option>
									</select>
									
								</div>

							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 25%;">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="videoslide_mute">Video Mute</label>
									<select name="params[videoslide_mute]" id="videoslide_mute" class="myElements">
										<option value="1" <?php echo (isset($params->videoslide_mute)&& $params->videoslide_mute=='1'?'selected="selected"':''); ?>>True</option>
										<option value="0" <?php echo (isset($params->videoslide_mute)&& $params->videoslide_mute=='0'?'selected="selected"':''); ?>>False</option>
									</select>
									<span style="color:red">Because of the browser <a href="https://developers.google.com/web/updates/2017/09/autoplay-policy-changes" target="_blank">policies</a>, videos with sounds may not auto play. Mute sound to ensure that the videos auto play.</span>
								</div>
								

							</div>
							
							<?php endif; ?>
						</li>
						
						<li class="audio-setting">
							<div class="othersetting" style="display: inline-block; float: left; width: 33%;">
								<div class="params customitemstyle" style="width:100%;">
									
									<label class="customlevel" for="bg_image_url">Background Music</label>
									<input type="hidden" name="cs[bg_audio_url]" id="bg_audio_url" class="regular-text" value="<?php echo esc_attr($_slider[0]->bg_audio_url); ?>">
									<input type="button" name="upload-btn" id="bg-audio-upload-btn" class="button-secondary" value="Upload Audio">
								</div>
								<div style="clear:both"></div>
								<div id="bg_preview_audio">
								
								<?php 
									if($_slider[0]->bg_audio_url != '') :
								?>
									<span class="remove_bg_audio">X</span>
									<img style="width:50px;" src="<?php echo QCLD_SLIDERHERO_IMAGES.'/audio.png'; ?>" alt="" />
								<?php endif; ?>
								</div>
							

							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 33%;">
								<div class="params customitemstyle" style="width:100%">
									<label class="customlevel" for="qchero-background-color" style="display: inline-block;">Auto Play</label> 
									<select name="params[audioautoplay]">
										<option value="1" <?php echo (isset($params->audioautoplay)&& $params->audioautoplay==1?'selected="selected"':''); ?>>On</option>
										<option value="0" <?php echo (isset($params->audioautoplay)&& $params->audioautoplay==0?'selected="selected"':''); ?>>Off</option>
									</select>
								</div>
							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 33%;">
								<div class="params customitemstyle" style="width:100%">
									<label class="customlevel" for="qchero-background-color" style="display: inline-block;">Audio Control</label> 
									<select name="params[audiocontrol]">
										<option value="1" <?php echo (isset($params->audiocontrol)&& $params->audiocontrol==1?'selected="selected"':''); ?>>Show</option>
										<option value="0" <?php echo (isset($params->audiocontrol)&& $params->audiocontrol==0?'selected="selected"':''); ?>>Hide</option>
									</select>
								</div>
							</div>
							
							<div class="othersetting" style="display: inline-block; float: left; width: 33%;">
								<div class="params customitemstyle" style="width:100%">
									<label class="customlevel" for="qchero-background-color" style="display: inline-block;">Audio Repeat <span class="hero_pro_features">[PRO]</span></label> 
									<select name="params[audiorepeat]">
										<option value="0" <?php echo (isset($params->audiorepeat)&& $params->audiorepeat==0?'selected="selected"':''); ?>>False</option>
										<option value="1" <?php echo (isset($params->audiorepeat)&& $params->audiorepeat==1?'selected="selected"':''); ?> disabled>True</option>
										
									</select>
								</div>
							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 33%;">
								<div class="params customitemstyle" style="width:100%">
									<label class="customlevel" for="qchero-background-color" style="display: inline-block;">Audio Repeat Count (Leave blank for infinity)</label> 
									<input type="text" name="params[audiorepeatcount]" placeholder="Ex: 5" value="<?php echo (isset($params->audiorepeatcount)&& $params->audiorepeatcount!=''?$params->audiorepeatcount:'') ?>" />
										
								</div>
							</div>
							<div class="othersetting" style="display: inline-block; float: left; width: 33%;">
								<div class="params customitemstyle" style="width:100%">
									<label class="customlevel" for="qchero-background-color" style="display: inline-block;">Controller Position</label> 
									<select name="params[controllerposition]">
									
										<option value="topleft" <?php echo (isset($params->controllerposition)&& $params->controllerposition=='topleft'?'selected="selected"':''); ?>>Top Left</option>
										
										<option value="topright" <?php echo (isset($params->controllerposition)&& $params->controllerposition=='topright'?'selected="selected"':''); ?>>Top Right</option>
										
										<option value="bottomleft" <?php echo (isset($params->controllerposition)&& $params->controllerposition=='bottomleft'?'selected="selected"':''); ?>>Bottom Left</option>
										
										<option value="bottomright" <?php echo (isset($params->controllerposition)&& $params->controllerposition=='bottomright'?'selected="selected"':''); ?>>Bottom Right</option>
										
									</select>
								</div>
							</div>
							
							
						</li>
						<li class="Effect-setting">
							<div class="othersetting" style="position:relative">
								<?php
									if(isset($_slider[0]->type) and $_slider[0]->type=='particle') :
								?>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-background-color">Particle Type</label> <select name="params[particle_type]">
											<option value="circle" <?php echo (isset($params->particle_type) &&$params->particle_type=='circle'?'selected="selected"':''); ?>>Circle</option>
											<option value="edge" <?php echo (isset($params->particle_type) && $params->particle_type=='edge'?'selected="selected"':''); ?>>Edge</option>
											<option value="triangle" <?php echo (isset($params->particle_type) && $params->particle_type=='triangle'?'selected="selected"':''); ?>>Triangle</option>
											<option value="polygon" <?php echo (isset($params->particle_type)&&$params->particle_type=='polygon'?'selected="selected"':''); ?>>Polygon</option>
											<option value="star" <?php echo (isset($params->particle_type)&&$params->particle_type=='star'?'selected="selected"':''); ?>>Star</option>

									</select>
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Interactivity</label> <select name="params[interactivity]">
											<option value="grab" <?php echo (isset($params->interactivity)&&$params->interactivity=='grab'?'selected="selected"':''); ?>>Grab</option>
											<option value="repulse" <?php echo (isset($params->interactivity)&&$params->interactivity=='repulse'?'selected="selected"':''); ?>>Repulse</option>
									</select>
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Particle Color</label> <input type="text" name="params[particle_color]" class="color-field myElements" value="<?php echo (isset($params->particle_color)?esc_attr($params->particle_color):''); ?>" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Line Linked Color</label> <input type="text" name="params[linelink_color]" class="color-field myElements" value="<?php echo (isset($params->linelink_color)?esc_attr($params->linelink_color):''); ?>" />
								</div>
								<?php
									elseif(isset($_slider[0]->type) and $_slider[0]->type=='particle_snow') :
								?>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-background-color">Particle Type</label> <select name="params[particle_snow][type]">
											<option value="circle" <?php echo (isset($params->particle_snow->type) &&$params->particle_snow->type=='circle'?'selected="selected"':''); ?>>Circle</option>
											<option value="edge" <?php echo (isset($params->particle_snow->type) && $params->particle_snow->type=='edge'?'selected="selected"':''); ?>>Edge</option>
											<option value="triangle" <?php echo (isset($params->particle_snow->type) && $params->particle_snow->type=='triangle'?'selected="selected"':''); ?>>Triangle</option>
											<option value="polygon" <?php echo (isset($params->particle_snow->type)&&$params->particle_snow->type=='polygon'?'selected="selected"':''); ?>>Polygon</option>
											<option value="star" <?php echo (isset($params->particle_snow->type)&&$params->particle_snow->type=='star'?'selected="selected"':''); ?>>Star</option>

									</select>
								</div>
								
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Particle Color</label> <input type="text" name="params[particle_snow][color]" class="color-field myElements" value="<?php echo (isset($params->particle_snow->color)?esc_attr($params->particle_snow->color):''); ?>" />
								</div>
								
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='campfire') :
							?>
							<div class="params customitemstyle">
									<label class="customlevel" for="qchero-background-color">Campfire Position</label> <select name="params[campfire_position]">
											<option value="center" <?php echo (isset($params->campfire_position) &&$params->campfire_position=='center'?'selected="selected"':''); ?>>Center</option>
											<option value="left" <?php echo (isset($params->campfire_position) &&$params->campfire_position=='left'?'selected="selected"':''); ?>>Left</option>
											<option value="right" <?php echo (isset($params->campfire_position) &&$params->campfire_position=='right'?'selected="selected"':''); ?>>Right</option>
											

									</select>
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='blur') :
							?>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Canvas Background Color</label> <input type="text" name="params[blur][canvas_bg]" class="color-field myElements" value="<?php echo (isset($params->blur->canvas_bg)?esc_attr($params->blur->canvas_bg):''); ?>" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Particle Color</label> <input type="text" name="params[blur][particle_color]" class="color-field myElements" value="<?php echo (isset($params->blur->particle_color)?esc_attr($params->blur->particle_color):''); ?>" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='wave') :
							?>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Wave One Color</label> <input type="text" name="params[wave][one_color]" class="color-field myElements" value="<?php echo (isset($params->wave->one_color)?esc_attr($params->wave->one_color):''); ?>" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Wave Two Color</label> <input type="text" name="params[wave][two_color]" class="color-field myElements" value="<?php echo (isset($params->wave->two_color)?esc_attr($params->wave->two_color):''); ?>" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Wave Three Color</label> <input type="text" name="params[wave][three_color]" class="color-field myElements" value="<?php echo (isset($params->wave->three_color)?esc_attr($params->wave->three_color):''); ?>" />
								</div>							
							
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='metaballs') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Metaballs Color</label> <input type="text" name="params[metaballs][color]" class="color-field myElements" value="<?php echo (isset($params->metaballs->color)?esc_attr($params->metaballs->color):''); ?>" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='matrix') :
							?>
							<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Material Color</label> <input type="text" name="params[matrix][meterial_color]" class="color-field myElements" value="<?php echo (isset($params->matrix->meterial_color)?esc_attr($params->matrix->meterial_color):''); ?>" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='tiny_galaxy') :
							?>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Material Color</label> <input type="text" name="params[tiny_galaxy][meterial_color]" class="color-field myElements" value="<?php echo (isset($params->tiny_galaxy->meterial_color)?esc_attr($params->tiny_galaxy->meterial_color):''); ?>" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='water_swimming') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Valocity Min</label> <input type="text" name="params[water_swimming][mini]" class="myElements" value="<?php echo (isset($params->water_swimming->mini)?esc_attr($params->water_swimming->mini):''); ?>" placeholder="Ex: 3" />
								</div>
								
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Valocity Max</label> <input type="text" name="params[water_swimming][maxi]" class="myElements" value="<?php echo (isset($params->water_swimming->maxi)?esc_attr($params->water_swimming->maxi):''); ?>" placeholder="Ex: 30" />
								</div>
							
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='tagcanvas') :
							?>
							
							<div class="params customitemstyle" style="width: 445px;">
									<label class="customlevel" for="qchero-caption-text-color">Tags( Coma(,) seperated )</label> <textarea rows="10" cols="50" type="text" name="params[tagcanvas][tags]" class="myElements" ><?php echo (isset($params->tagcanvas->tags)?esc_attr(str_replace("#","'",$params->tagcanvas->tags)):''); ?></textarea>
							</div>
							
							<div class="params customitemstyle" style="width: 445px;">
									<label class="customlevel" for="qchero-caption-text-color">Tag Link URLs( Coma(,) seperated )</label> <textarea rows="10" cols="50" type="text" name="params[tagcanvas][urls]" class="myElements" ><?php echo (isset($params->tagcanvas->urls)?esc_attr(str_replace("#","'",$params->tagcanvas->urls)):''); ?></textarea>
							</div>
							
							<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Text Color</label> <input type="text" name="params[tagcanvas][textcolor]" class="color-field myElements" value="<?php echo (isset($params->tagcanvas->textcolor)?esc_attr($params->tagcanvas->textcolor):''); ?>" />
							</div>
							<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Outline Color</label> <input type="text" name="params[tagcanvas][outlinecolor]" class="color-field myElements" value="<?php echo (isset($params->tagcanvas->outlinecolor)?esc_attr($params->tagcanvas->outlinecolor):''); ?>" />
							</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='warp_speed') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Stars Amount</label> <input type="text" name="params[warp_speed][stars]" class="myElements" value="<?php echo (isset($params->warp_speed->stars)?esc_attr($params->warp_speed->stars):''); ?>" placeholder="Ex: 1000" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='line') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Total Number Of Line</label> <input type="text" name="params[line][line]" class="myElements" value="<?php echo (isset($params->line->line)?esc_attr($params->line->line):''); ?>" placeholder="Ex: 15" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='circle') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Total Number Of Circle</label> <input type="text" name="params[circle][circle]" class="myElements" value="<?php echo (isset($params->circle->circle)?esc_attr($params->circle->circle):''); ?>" placeholder="Ex: 15" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='waaave') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Particle Density(max value min density)</label> <input type="text" name="params[waaave][density]" class="myElements" value="<?php echo (isset($params->waaave->density)?esc_attr($params->waaave->density):''); ?>" placeholder="Ex: 50" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='rays_particles') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Particles</label> <input type="text" name="params[rays_particles][particles]" class="myElements" value="<?php echo (isset($params->rays_particles->particles)?esc_attr($params->rays_particles->particles):'100'); ?>" placeholder="Ex: 100" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='iconsahedron') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Particle Density(max value min density)</label> <input type="text" name="params[iconsahedron][density]" class="myElements" value="<?php echo (isset($params->iconsahedron->density)?esc_attr($params->iconsahedron->density):''); ?>" placeholder="Ex: 50" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='ballsgravity') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Total Balls</label> <input type="text" name="params[ballsgravity][balls]" class="myElements" value="<?php echo (isset($params->ballsgravity->balls)?esc_attr($params->ballsgravity->balls):''); ?>" placeholder="Ex: 300" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='helix') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Max Dots</label> <input type="text" name="params[helix][maxdot]" class="myElements" value="<?php echo (isset($params->helix->maxdot)?esc_attr($params->helix->maxdot):''); ?>" placeholder="Ex: 2000" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Speed</label> <input type="text" name="params[helix][speed]" class="myElements" value="<?php echo (isset($params->helix->speed)?esc_attr($params->helix->speed):''); ?>" placeholder="Ex: 2.5" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='corruption') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Dot Size</label> <input type="text" name="params[corruption][size]" class="myElements" value="<?php echo (isset($params->corruption->size)?esc_attr($params->corruption->size):''); ?>" placeholder="Ex: 56" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Speed</label> <input type="text" name="params[corruption][speed]" class="myElements" value="<?php echo (isset($params->corruption->speed)?esc_attr($params->corruption->speed):''); ?>" placeholder="Ex: 0.2" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='chaos') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Dot Size</label> <input type="text" name="params[chaos][size]" class="myElements" value="<?php echo (isset($params->chaos->size)?esc_attr($params->chaos->size):''); ?>" placeholder="Ex: 56" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Speed</label> <input type="text" name="params[chaos][speed]" class="myElements" value="<?php echo (isset($params->chaos->speed)?esc_attr($params->chaos->speed):''); ?>" placeholder="Ex: 0.2" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='helix_multiple') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Dot Size</label> <input type="text" name="params[helix_multiple][size]" class="myElements" value="<?php echo (isset($params->helix_multiple->size)?esc_attr($params->helix_multiple->size):''); ?>" placeholder="Ex: 56" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Speed</label> <input type="text" name="params[helix_multiple][speed]" class="myElements" value="<?php echo (isset($params->helix_multiple->speed)?esc_attr($params->helix_multiple->speed):''); ?>" placeholder="Ex: 1" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='neno_hexagon') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Hexagon Length</label> <input type="text" name="params[neno_hexagon][len]" class="myElements" value="<?php echo (isset($params->neno_hexagon->len)?esc_attr($params->neno_hexagon->len):''); ?>" placeholder="Ex: 20" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='cosmic_web') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Background Color</label> <input type="text" name="params[cosmic_web][bgcolor]" class="color-field myElements" value="<?php echo (isset($params->cosmic_web->bgcolor)?esc_attr($params->cosmic_web->bgcolor):''); ?>" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Number of Dot</label> <input type="text" name="params[cosmic_web][dot]" class="myElements" value="<?php echo (isset($params->cosmic_web->dot)?esc_attr($params->cosmic_web->dot):''); ?>" placeholder="Ex: 50" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='directional') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Number Of Particles</label> <input type="text" name="params[directional][particle]" class="myElements" value="<?php echo (isset($params->directional->particle)?esc_attr($params->directional->particle):''); ?>" placeholder="Ex: 1000" />
								</div>
								
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='distance') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Number Of Particles</label> <input type="text" name="params[distance][particle]" class="myElements" value="<?php echo (isset($params->distance->particle)?esc_attr($params->distance->particle):''); ?>" placeholder="Ex: 100" />
								</div>
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Frequency</label> <input type="text" name="params[distance][frequency]" class="myElements" value="<?php echo (isset($params->distance->frequency)?esc_attr($params->distance->frequency):''); ?>" placeholder="Ex: 200" />
								</div>
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='valentine') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Number Of Particles</label> <input type="text" name="params[valentine][particle]" class="myElements" value="<?php echo (isset($params->valentine->particle)?esc_attr($params->valentine->particle):''); ?>" placeholder="Ex: 42" />
								</div>
								
								
								<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='water') :
							?>

							<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Water Color</label> <input type="text" name="params[watereffect][color]" class="color-field myElements" value="<?php echo (isset($params->watereffect->color)?esc_attr($params->watereffect->color):''); ?>" />
								</div>
							<?php 
								elseif(isset($_slider[0]->type) and $_slider[0]->type=='cloudysky') :
							?>
							
								<div class="params customitemstyle">
									<label class="customlevel" for="qchero-caption-text-color">Animation Speed</label> <input type="text" name="params[cloudysky][speed]" class="myElements" value="<?php echo (isset($params->cloudysky->speed)?esc_attr($params->cloudysky->speed):''); ?>" placeholder="Ex: 40" />
								</div>

							<?php else: ?>
								
									<p style="font-size: 16px;color: #fff; font-weight:bold;">There is no Custom Setting for this Effect</p>
								
							<?php endif; ?>
							</div>						
						</li>
						<li class="arrows">
							
							<div class="othersetting" style="position:relative;">
								<div class="params customitemstyle" id="hero_arrow_style">
									<label class="customlevel" for="qcslide-caption-text-color">Arrows Style</label> 
									<select id="arrow_style" name="params[arrow_style]">
											<option value="default" <?php echo (isset($params->arrow_style) &&$params->arrow_style=='default'?'selected="selected"':''); ?>>Default</option>
											<option value="floating" <?php echo (isset($params->arrow_style) && $params->arrow_style=='floating'?'selected="selected"':''); ?>>Floating</option>
									</select>
								</div>
								<div id="hero_default_arrow">
									<div class="params customitemstyle">
										<label class="customlevel" for="qcslide-caption-text-color">Arrows</label> <input type="text" name="params[arrow]" id="arrowselect" class="" value="<?php echo ((isset($params->arrow)&&$params->arrow!='')?esc_attr($params->arrow):'arrow-circle'); ?>" />
									</div>	
									<div class="params customitemstyle">
										<label class="customlevel" for="qchero-caption-text-color">Arrow Color</label> <input type="text" name="params[arrowcolor]" class="color-field myElements" value="<?php echo (isset($params->arrowcolor)?esc_attr($params->arrowcolor):''); ?>" />
									</div>
									<div class="params customitemstyle">
										<label class="customlevel" for="qchero-caption-text-color">Arrow Hover Color</label> <input type="text" name="params[arrowhovercolor]" class="color-field myElements" value="<?php echo (isset($params->arrowhovercolor)?esc_attr($params->arrowhovercolor):''); ?>" />
									</div>
									<div class="params customitemstyle">
										<label class="customlevel" for="qchero-caption-text-color">Navigator Color</label> <input type="text" name="params[navigatorcolor]" class="color-field myElements" value="<?php echo (isset($params->navigatorcolor)?esc_attr($params->navigatorcolor):''); ?>" />
									</div>
									<div class="params customitemstyle">
										<label class="customlevel" for="qchero-caption-text-color">Navigator Hover Color</label> <input type="text" name="params[navigatorhovercolor]" class="color-field myElements" value="<?php echo (isset($params->navigatorhovercolor)?esc_attr($params->navigatorhovercolor):''); ?>" />
									</div>
								</div>
							</div>	
														
						</li>
                        <li class="shortcodes">
							<div class="shortcodes-contents">
								<div style="margin-bottom: 12px;">
									Copy & paste the shortcode directly into any WordPress post or page.
									<p style="font-size: 18px;line-height: 34px;color: #fff;">[qcld_hero id=<?php echo intval($_slider[0]->id); ?>]</p>
								</div>
								<span>OR</span>
								<div>
									Copy & paste this code into a template file to include the slideshow within your
                                    theme.
                                    <p style="font-size: 18px;line-height: 34px;color: #fff;">&lt;?php echo do_shortcode("[qcld_hero id=<?php echo intval($_slider[0]->id); ?>]"); ?&gt;</p>
								</div>
							</div>
						</li>
                    </ul>
                </div>
            </div>
        
        <div id="qchero_slide_edit" style="display:none;">
            <input class="title" name="title" value=""/>
            <input class="description" name="description" value=""/>
            <div class="content">
                <span id="logo">Logo</span>
                <div class="contents">

                </div>
            </div>
        </div>
        <div id="qchero_slider_preview_popup">

        </div>
        <div id="qchero_slider_preview">
            <div class="qchero_close" style="position:fixed;top: 12%;right: 6%;"><i class="fa fa-remove"
                                                                                     aria-hidden="true"></i></div>
        </div>
        <!--SLIDER-->
        <style>
            /*** title ***/
            .qchero_bullets {
                position: absolute;

            }
            .qchero_bullets div, .qchero_bullets div:hover, .qchero_bullets .av {
                position: absolute;
                /* size of bullet elment */
                width: 12px;
                height: 12px;
                border-radius: 10px;
                filter: alpha(opacity=70);
                opacity: .7;
                overflow: hidden;
                cursor: pointer;
                border: #4B4B4B 1px solid;
            }



            .qchero_bullets .bulletav {
                background-color: #74B8CF !important;
                border: #fff 1px solid;
            }

            .qchero_bullets .dn, .qchero_bullets .dn:hover {
                background-color: #555555;
            }



            /*** title ***/
            .qcherotitle {
                box-sizing: border-box;
                padding: 1%;
                overflow: hidden;
            }

            .qcherotitle h3 {
                margin: 0;
                padding: 0;
                word-wrap: break-word;
                width: 100%;
                text-align: center;
                font-size: inherit !important;
            }


        </style>
    </div>
 </div>

 </div>

<div class="hero_bottom_save_button">
	<a class="qchero_save_all2" href="#">Save</a>
</div>
    <?php
}
