{{if_condition_carousel_layout_type==1}} {{repeater_image}} {{ifend_condition_carousel_layout_type_1}} {{if_condition_carousel_layout_type==2}} {{repeater_image}}
{{repeater_button}}
{{ifend_condition_carousel_layout_type_2}} '; $css = ' {{if_condition_carousel_layout_type==1}} .amp-img{ width:100%; height:auto; max-width:100%; } {{module-class}}{text-align:{{align_type}};margin:{{margin_css}};padding:{{padding_css}};width:{{width}}} {{ifend_condition_carousel_layout_type_1}} {{if_condition_carousel_layout_type==2}} .slid-prv button{ height: 90px; width: 90px; margin: 0 9px 0 0px; padding: 0; } .slid-prv amp-img{ width:100%; height:100%; } {{ifend_condition_carousel_layout_type_2}} '; return array( 'label' =>'Slider', 'name' =>'slider-mod', 'default_tab'=> 'customizer', 'tabs' => array( 'customizer'=>'Content', 'design'=>'Design', 'advanced' => 'Advanced', 'layout' => 'Layout' ), 'fields' => array( array( 'type' =>'layout-image-picker', 'name' =>"carousel_layout_type", 'label' =>"Select Layout", 'tab' =>'layout', 'default' =>'1', 'options_details'=>array( array( 'value'=>'1', 'label'=>'', 'demo_image'=> AMPFORWP_PLUGIN_DIR_URI.'/images/slider-1.png' ), array( 'value'=>'2', 'label'=>'', 'demo_image'=> AMPFORWP_PLUGIN_DIR_URI.'/images/slider-2.png' ), ), 'content_type'=>'html', ), array( 'type' =>'text', 'name' =>"width", 'label' =>'Image Size', 'tab' =>'customizer', 'default' =>'90%', 'content_type'=>'css', ), array( 'type' =>'text', 'name' =>"delay", 'label' =>'Slider Delay', 'tab' =>'customizer', 'default' =>'2000', 'content_type'=>'html', ), array( 'type' =>'checkbox', 'name' =>"image_layout", 'tab' =>'customizer', 'label' =>'Responsive', 'default' =>array('responsive'), 'options' =>array( array( 'label'=>'Responsive', 'value'=>'responsive', ), ), 'content_type'=>'html', ), array( 'type' =>'checkbox_bool', 'name' =>"lightbox_gallery", 'tab' =>'customizer', 'label' =>'Lightbox', 'default' =>0, 'options' =>array( array( 'label'=>esc_html__('Make a Lightbox for Images','accelerated-mobile-pages'), 'value'=>1, ), ), 'content_type'=>'html', ), array( 'type' =>'checkbox_bool', 'name' =>"img_hyperlink", 'label' =>'Hyperlink', 'tab' =>'customizer', 'default' =>0, 'content_type'=>'html', 'options' =>array( array( 'label'=>'Make an Hyperlink on Images', 'value'=>1, ), ), ), array( 'type' =>'select', 'name' =>'align_type', 'label' =>"Align", 'tab' =>'design', 'default' =>'center', 'options_details'=>array( 'center' =>'Center', 'left' =>'Left', 'right' =>'Right', ), 'content_type'=>'css', ), array( 'type' =>'text', 'name' =>"id", 'label' =>'ID', 'tab' =>'advanced', 'default' =>'', 'content_type'=>'html' ), array( 'type' =>'text', 'name' =>"user_class", 'label' =>'Class', 'tab' =>'advanced', 'default' =>'', 'content_type'=>'html' ), array( 'type' =>'spacing', 'name' =>"margin_css", 'label' =>'Margin', 'tab' =>'advanced', 'default' => array( 'top'=>'20px', 'right'=>'auto', 'bottom'=>'20px', 'left'=>'auto', ), 'content_type'=>'css', ), array( 'type' =>'spacing', 'name' =>"padding_css", 'label' =>'Padding', 'tab' =>'advanced', 'default' =>array( 'left'=>'0px', 'right'=>'0px', 'top'=>'0px', 'bottom'=>'0px' ), 'content_type'=>'css', ), array( 'type' =>'require_script', 'name' =>"carousel_script", 'label' =>'amp-carousel', 'default' =>'https://cdn.ampproject.org/v0/amp-carousel-0.1.js', 'content_type'=>'js', ), array( 'type' =>'require_script', 'name' =>"lightbox_script", 'label' =>'amp-lightbox-gallery', 'default' =>'https://cdn.ampproject.org/v0/amp-lightbox-gallery-0.1.js', 'content_type'=>'js', 'required' => array('lightbox_gallery'=>1), ), ), 'front_template'=> $output, 'front_css'=> $css, 'front_common_css'=>'', 'repeater'=>array( 'tab'=>'customizer', 'fields'=>array( array( 'type' =>'upload', 'name' =>"img_upload", 'label' =>'Upload', 'tab' =>'customizer', 'default' =>'', 'content_type'=>'html', ), array( 'type' =>'text', 'name' =>"hyperlink_link_img", 'label' =>'URL', 'tab' =>'customizer', 'default' =>'#', 'content_type'=>'html', 'required' => array('img_hyperlink'=>1), ), array( 'type' =>'select', 'name' =>'img_link_open', 'label' =>"Open link in", 'tab' =>'customizer', 'default' =>'new_page', 'options_details'=>array( 'new_page' =>'New tab', 'same_page' =>'Same page' ), 'content_type'=>'html', 'required' => array('img_hyperlink'=>'1'), ), ), 'front_template'=> array( "image"=>' {{if_condition_img_hyperlink==1}}{{ifend_condition_img_hyperlink_1}} {{if_img_upload}}
{{if_image_caption}}
{{image_caption}}
{{ifend_image_caption}}
{{ifend_img_upload}}{{if_condition_img_hyperlink==1}}
{{ifend_condition_img_hyperlink_1}} ', "button"=>'' ) ), ); ?>