{{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', 'default' =>array('responsive'), 'options' =>array( array( 'label'=>'Responsive', 'value'=>'responsive', ), ), 'content_type'=>'html', ), 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', ), ), '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', ), ), 'front_template'=> array( "image"=>' {{if_img_upload}}
{{image_caption}}
{{ifend_img_upload}} ', "button"=>'' ) ), ); ?>