: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;
<div {{if_id}}id="{{id}}"{{ifend_id}} class="{{user_class}}">
{{if_condition_carousel_layout_type==1}}
<amp-carousel {{if_condition_lightbox_gallery==1}} lightbox {{ifend_condition_lightbox_gallery_1}}
width="400" height="300" layout="responsive" type="slides" {{if_condition_slider_autoplay==1}} autoplay {{ifend_condition_slider_autoplay_1}} controls delay="{{delay}}">
{{ifend_condition_carousel_layout_type_1}}
{{if_condition_carousel_layout_type==2}}
<amp-carousel {{if_condition_lightbox_gallery==1}} lightbox {{ifend_condition_lightbox_gallery_1}} id="carousel-with-preview-{{unique_cell_id}}" width="400" height="300" layout="responsive" type="slides">
{{ifend_condition_carousel_layout_type_2}}
{{if_condition_carousel_layout_type==1}}
{{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}}
{{ifend_condition_carousel_layout_type_2}}
'default_tab'=> 'customizer',
'advanced' => 'Advanced',
'type' =>'layout-image-picker',
'name' =>"carousel_layout_type",
'label' =>"Select Layout",
'options_details'=>array(
'demo_image'=> AMPFORWP_PLUGIN_DIR_URI.'/images/slider-1.png'
'demo_image'=> AMPFORWP_PLUGIN_DIR_URI.'/images/slider-2.png'
'label' =>'Slider Delay',
'default' =>array('responsive'),
'type' => 'checkbox_bool',
'name' => "slider_autoplay",
'label'=>esc_html__('Autoplay','accelerated-mobile-pages'),
'type' =>'checkbox_bool',
'name' =>"lightbox_gallery",
'label'=>esc_html__('Make a Lightbox for Images','accelerated-mobile-pages'),
'type' =>'checkbox_bool',
'name' =>"img_hyperlink",
'label'=>'Make an Hyperlink on Images',
'options_details'=>array(
'type' =>'require_script',
'name' =>"carousel_script",
'label' =>'amp-carousel',
'default' =>'https://cdn.ampproject.org/v0/amp-carousel-0.2.js',
'type' =>'require_script',
'name' =>"lightbox_script",
'label' =>'amp-lightbox-gallery',
'default' =>'https://cdn.ampproject.org/v0/amp-lightbox-gallery-0.1.js',
'required' => array('lightbox_gallery'=>1),
'front_template'=> $output,
'name' =>"image_ind_alt",
'name' =>"hyperlink_link_img",
'required' => array('img_hyperlink'=>1),
'name' =>'img_link_open',
'label' =>"Open link in",
'options_details'=>array(
'same_page' =>'Same page'
'required' => array('img_hyperlink'=>'1'),
{{if_condition_img_hyperlink==1}}<a href="{{hyperlink_link_img}}" {{if_condition_img_link_open==new_page}}target="_blank"{{ifend_condition_img_link_open_new_page}}>{{ifend_condition_img_hyperlink_1}}
{{if_img_upload}}<figure><amp-img src="{{img_upload}}" {{if_image_width}}width="{{image_width}}"{{ifend_image_width}} {{if_image_height}}height="{{image_height}}"{{ifend_image_height}} {{if_image_layout}}layout="{{image_layout}}"{{ifend_image_layout}}
{{if_condition_image_ind_alt==}}{{if_image_alt}}alt="{{image_alt}}"{{ifend_image_alt}} {{ifend_condition_image_ind_alt_}}
{{if_image_ind_alt}}alt="{{image_ind_alt}}"{{ifend_image_ind_alt}}></amp-img>{{if_image_caption}}<figcaption>{{image_caption}}</figcaption>{{ifend_image_caption}}</figure>{{ifend_img_upload}}{{if_condition_img_hyperlink==1}}</a>{{ifend_condition_img_hyperlink_1}}
"button"=>'<button on="tap:carousel-with-preview-{{unique_cell_id}}.goToSlide(index={{repeater_unique}})">
{{if_img_upload}}<amp-img src="{{img_upload-thumbnail}}" width="150" height="150" {{if_image_layout}}layout="{{image_layout}}"{{ifend_image_layout}} alt="{{image_alt}}"></amp-img>{{ifend_img_upload}}