Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/accelera.../pagebuil.../config
File: moduleTemplate.php
<?php
[0] Fix | Delete
// Exit if accessed directly.
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) exit;
[2] Fix | Delete
$moduleTemplate = array();
[3] Fix | Delete
$layoutTemplate = array();
[4] Fix | Delete
[5] Fix | Delete
add_action("plugins_loaded", "ampforwp_module_templates");
[6] Fix | Delete
[7] Fix | Delete
[8] Fix | Delete
if(!function_exists("ampforwp_module_templates")){
[9] Fix | Delete
function ampforwp_module_templates(){
[10] Fix | Delete
global $moduleTemplate, $layoutTemplate;
[11] Fix | Delete
[12] Fix | Delete
$dir = AMP_PAGE_BUILDER.'/modules/';
[13] Fix | Delete
$checkpb = false;
[14] Fix | Delete
global $pagenow;
[15] Fix | Delete
if('post-new.php' == $pagenow || 'post.php' == $pagenow || 'index.php' == $pagenow){
[16] Fix | Delete
$checkpb = true;
[17] Fix | Delete
}
[18] Fix | Delete
if (is_dir($dir) && $checkpb) {
[19] Fix | Delete
if ($dh = opendir($dir)) {
[20] Fix | Delete
while (($file = readdir($dh)) !== false) {
[21] Fix | Delete
if(is_file($dir.$file) && strpos($file, '-module.php') == true){
[22] Fix | Delete
$moduleTemplate[str_replace("-module.php", "", $file)] = include $dir.$file;
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
closedir($dh);
[26] Fix | Delete
$moduleTemplate = apply_filters("ampforwp_pagebuilder_modules_filter", $moduleTemplate);
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
[31] Fix | Delete
$dir = AMP_PAGE_BUILDER.'/layouts/';
[32] Fix | Delete
if (is_dir($dir)) {
[33] Fix | Delete
if ($dh = opendir($dir)) {
[34] Fix | Delete
[35] Fix | Delete
while (($file = readdir($dh)) !== false) {
[36] Fix | Delete
if(is_dir($dir.$file) && strpos($file, '-layouts') == true){
[37] Fix | Delete
$layoutTemplate[str_replace('-layouts', "", $file)] = array();
[38] Fix | Delete
$layoutdir = $dir.$file."/";
[39] Fix | Delete
if ($dhInside = opendir($layoutdir)) {
[40] Fix | Delete
$layOutPreview = "";
[41] Fix | Delete
while (($layoutfile = readdir($dhInside)) !== false) {
[42] Fix | Delete
if(is_file($layoutdir.$layoutfile) && strpos($layoutfile, '-layout.php') == true){
[43] Fix | Delete
$layoutTemplate[str_replace('-layouts', "", $file)][str_replace(".php", "", $layoutfile)] = include $layoutdir.$layoutfile;
[44] Fix | Delete
}
[45] Fix | Delete
}
[46] Fix | Delete
closedir($dhInside);
[47] Fix | Delete
}
[48] Fix | Delete
}
[49] Fix | Delete
/*if(is_file($dir.$file) && strpos($file, '-layout.php') == true){
[50] Fix | Delete
$layoutTemplate[str_replace(".php", "", $file)] = include $dir.$file;
[51] Fix | Delete
}*/
[52] Fix | Delete
}
[53] Fix | Delete
closedir($dh);
[54] Fix | Delete
$layoutTemplate = apply_filters("ampforwp_pagebuilder_layout_filter", $layoutTemplate);
[55] Fix | Delete
}
[56] Fix | Delete
}
[57] Fix | Delete
}//Function closed
[58] Fix | Delete
}//If Fucntion check closed
[59] Fix | Delete
[60] Fix | Delete
//Row Contents
[61] Fix | Delete
$ampforwp_module_output = '<section {{if_row_id}}id={{row_id}}{{ifend_row_id}} class="ap_m {{row_class}} {{grid_type}} {{mobile_display}} {{if_condition_check_for_slant==1}}slant_clr{{ifend_condition_check_for_slant_1}}">
[62] Fix | Delete
{{if_condition_background_type==video}}
[63] Fix | Delete
<div class="amp_video">
[64] Fix | Delete
<div class="amp-txt">
[65] Fix | Delete
<h1>{{title}}</h1>
[66] Fix | Delete
{{content_title}}
[67] Fix | Delete
</div>
[68] Fix | Delete
<amp-iframe class="vdo" width="854" height="480"
[69] Fix | Delete
sandbox="allow-scripts allow-same-origin"
[70] Fix | Delete
layout="responsive"
[71] Fix | Delete
frameborder="0"
[72] Fix | Delete
src="{{row_background_video}}">
[73] Fix | Delete
</amp-iframe>
[74] Fix | Delete
{{if_condition_check_for_overlay==1}}
[75] Fix | Delete
<div class="overlay"></div>
[76] Fix | Delete
{{ifend_condition_check_for_overlay_1}}
[77] Fix | Delete
</div>
[78] Fix | Delete
{{ifend_condition_background_type_video}}
[79] Fix | Delete
{{if_condition_background_type==mp4video}}
[80] Fix | Delete
<div class="amp_video">
[81] Fix | Delete
<div class="amp-txt">
[82] Fix | Delete
<h1>{{title}}</h1>
[83] Fix | Delete
{{content_title}}
[84] Fix | Delete
</div>
[85] Fix | Delete
<amp-video class="vdo" width="720" height="405"
[86] Fix | Delete
{{if_condition_enable_mp4video_autoplay==1}}autoplay{{ifend_condition_enable_mp4video_autoplay_1}}
[87] Fix | Delete
src="{{row_background_mp4video}}"
[88] Fix | Delete
layout="responsive"
[89] Fix | Delete
{{if_condition_enable_youtube_loop==1}}loop{{ifend_condition_enable_youtube_loop_1}}
[90] Fix | Delete
{{if_condition_enable_mp4video_controls==1}}controls{{ifend_condition_enable_mp4video_controls_1}}>
[91] Fix | Delete
</amp-video>
[92] Fix | Delete
{{if_condition_check_for_overlay==1}}
[93] Fix | Delete
<div class="overlay"></div>
[94] Fix | Delete
{{ifend_condition_check_for_overlay_1}}
[95] Fix | Delete
</div>
[96] Fix | Delete
{{ifend_condition_background_type_mp4video}}
[97] Fix | Delete
{{if_condition_background_type==youtubevideo}}
[98] Fix | Delete
<div class="amp_video">
[99] Fix | Delete
<div class="amp-txt">
[100] Fix | Delete
<h1>{{title}}</h1>
[101] Fix | Delete
{{content_title}}
[102] Fix | Delete
</div>
[103] Fix | Delete
<amp-youtube class="vdo" width="480" height="270"
[104] Fix | Delete
layout="responsive"
[105] Fix | Delete
{{if_condition_enable_youtube_controls==1}}data-param-controls=1{{ifend_condition_enable_youtube_controls_1}}
[106] Fix | Delete
{{if_condition_enable_youtube_controls==0}}data-param-controls=0{{ifend_condition_enable_youtube_controls_0}}
[107] Fix | Delete
{{if_condition_enable_modestbranding==1}}data-param-modestbranding="1"{{ifend_condition_enable_modestbranding_1}}
[108] Fix | Delete
{{if_condition_enable_youtube_rel==1}}data-param-rel="1"{{ifend_condition_enable_youtube_rel_1}}
[109] Fix | Delete
{{if_condition_enable_youtube_rel==0}}data-param-rel="0"{{ifend_condition_enable_youtube_rel_0}}
[110] Fix | Delete
{{if_condition_enable_youtube_loop==1}}loop{{ifend_condition_enable_youtube_loop_1}}
[111] Fix | Delete
data-videoid="{{row_background_youtubevideo}}"
[112] Fix | Delete
{{if_condition_enable_youtube_autoplay==1}}autoplay{{ifend_condition_enable_youtube_autoplay_1}}>
[113] Fix | Delete
</amp-youtube>
[114] Fix | Delete
{{if_condition_check_for_overlay==1}}
[115] Fix | Delete
<div class="overlay"></div>
[116] Fix | Delete
{{ifend_condition_check_for_overlay_1}}
[117] Fix | Delete
</div>
[118] Fix | Delete
{{ifend_condition_background_type_youtubevideo}}
[119] Fix | Delete
';
[120] Fix | Delete
$outputEnd = '<div class="cb"></div> </section>';
[121] Fix | Delete
$front_css = '
[122] Fix | Delete
{{if_condition_background_type==image}}
[123] Fix | Delete
{{row-class}}{
[124] Fix | Delete
background-image: url({{row_background_image}});
[125] Fix | Delete
background-repeat: no-repeat;
[126] Fix | Delete
background-size: cover;
[127] Fix | Delete
height: auto;
[128] Fix | Delete
background-position:{{align_type}};
[129] Fix | Delete
{{if_condition_check_for_parallax==1}}
[130] Fix | Delete
min-height: 550px;
[131] Fix | Delete
background-attachment: initial;
[132] Fix | Delete
{{ifend_condition_check_for_parallax_1}}
[133] Fix | Delete
}
[134] Fix | Delete
{{ifend_condition_background_type_image}}
[135] Fix | Delete
[136] Fix | Delete
{{row-class}}.amppb-fluid{width:{{fluid-width}};}
[137] Fix | Delete
{{row-class}}.amppb-fluid .col, {{row-class}}.amppb-fluid .col-2-wrap{margin:0 auto;max-width:{{fluid-wrapper}}; }
[138] Fix | Delete
{{row-class}}.amppb-fixed .col {max-width:{{content-width}};width:{{fixed-width}};margin: 0 auto;}
[139] Fix | Delete
{{row-class}}{
[140] Fix | Delete
{{if_condition_check_for_brdr==1}}
[141] Fix | Delete
border-width:{{border_sz}};
[142] Fix | Delete
border-color: {{border_clr_pkr}};
[143] Fix | Delete
border-style: solid;
[144] Fix | Delete
{{ifend_condition_check_for_brdr_1}}
[145] Fix | Delete
color: {{font_color_picker}};
[146] Fix | Delete
background-color: {{color_picker}};
[147] Fix | Delete
{{if_selected_gradient}}{{selected_gradient}};{{ifend_selected_gradient}}
[148] Fix | Delete
margin: {{margin_css}};
[149] Fix | Delete
padding:{{padding_css}};
[150] Fix | Delete
[151] Fix | Delete
{{shadow}}
[152] Fix | Delete
}
[153] Fix | Delete
{{if_condition_check_for_slant==1}}
[154] Fix | Delete
{{row-class}}.st{position:relative;}
[155] Fix | Delete
{{ifend_condition_check_for_slant_1}}
[156] Fix | Delete
{{if_condition_check_for_enbtp==1}}
[157] Fix | Delete
{{row-class}}.st:before{
[158] Fix | Delete
content:"";
[159] Fix | Delete
height:110px;
[160] Fix | Delete
width:100%;
[161] Fix | Delete
display:block;
[162] Fix | Delete
background-image:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' preserveAspectRatio=\'none\' viewBox=\'0 0 100 100\'><polygon fill=\'{{color_picker}}\' points=\'0,0 100,0 100,44 0,0\' /></svg>");
[163] Fix | Delete
background-repeat:no-repeat;
[164] Fix | Delete
top: -110px;
[165] Fix | Delete
position: absolute;
[166] Fix | Delete
{{if_condition_align_type_slant==left}}
[167] Fix | Delete
transform: rotate(-180deg);
[168] Fix | Delete
{{ifend_condition_align_type_slant_left}}
[169] Fix | Delete
{{if_condition_align_type_slant==right}}
[170] Fix | Delete
transform: rotate(-180deg) scaleX(-1);
[171] Fix | Delete
{{ifend_condition_align_type_slant_right}}
[172] Fix | Delete
}
[173] Fix | Delete
{{ifend_condition_check_for_enbtp_1}}
[174] Fix | Delete
[175] Fix | Delete
{{if_condition_check_for_enbbt==1}}
[176] Fix | Delete
{{row-class}}.st:after{
[177] Fix | Delete
content:"";
[178] Fix | Delete
height:110px;
[179] Fix | Delete
width:100%;
[180] Fix | Delete
display:block;
[181] Fix | Delete
background-image:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' preserveAspectRatio=\'none\' viewBox=\'0 0 100 100\'><polygon fill=\'{{color_picker}}\' points=\'0,0 100,0 100,44 0,0\' /></svg>");
[182] Fix | Delete
background-repeat:no-repeat;
[183] Fix | Delete
bottom: -110px;
[184] Fix | Delete
position: absolute;
[185] Fix | Delete
{{if_condition_align_type_slate_btn==lft}}
[186] Fix | Delete
transform: rotate(-0deg) scaleX(-1);
[187] Fix | Delete
{{ifend_condition_align_type_slate_btn_lft}}
[188] Fix | Delete
{{if_condition_align_type_slate_btn==rht}}
[189] Fix | Delete
transform: rotate(0deg);
[190] Fix | Delete
{{ifend_condition_align_type_slate_btn_rht}}
[191] Fix | Delete
}
[192] Fix | Delete
{{ifend_condition_check_for_enbbt_1}}
[193] Fix | Delete
{{if_condition_background_type==video}}
[194] Fix | Delete
{{row-class}} .amp_video{
[195] Fix | Delete
position: relative;
[196] Fix | Delete
}
[197] Fix | Delete
{{row-class}} .amp_video .amp-txt{
[198] Fix | Delete
font-size: {{cnt_size}};
[199] Fix | Delete
line-height: {{cnt_ln_hgt}};
[200] Fix | Delete
font-weight: {{cnt_font_type}};
[201] Fix | Delete
{{if_condition_check_for_overlay==0}}
[202] Fix | Delete
color:{{cnt_color}};
[203] Fix | Delete
{{ifend_condition_check_for_overlay_0}}
[204] Fix | Delete
position: absolute;
[205] Fix | Delete
top: 10%;
[206] Fix | Delete
bottom: auto;
[207] Fix | Delete
left: 20%;
[208] Fix | Delete
right: 20%;
[209] Fix | Delete
margin: 0 auto;
[210] Fix | Delete
text-align: center;
[211] Fix | Delete
z-index: 9;
[212] Fix | Delete
}
[213] Fix | Delete
{{row-class}} .amp-txt h1{
[214] Fix | Delete
font-size: {{tlt_size}};
[215] Fix | Delete
font-weight: {{tlt_wgt}};
[216] Fix | Delete
letter-spacing: {{letter_spacing}};
[217] Fix | Delete
line-height: {{tlt_ln_hgt}};
[218] Fix | Delete
{{if_condition_check_for_overlay==0}}
[219] Fix | Delete
color:{{tlt_color}};
[220] Fix | Delete
{{ifend_condition_check_for_overlay_0}}
[221] Fix | Delete
margin-bottom:20px;
[222] Fix | Delete
}
[223] Fix | Delete
{{if_condition_check_for_overlay==1}}
[224] Fix | Delete
{{row-class}} .overlay{
[225] Fix | Delete
background: #000;
[226] Fix | Delete
bottom: 0;
[227] Fix | Delete
left: 0;
[228] Fix | Delete
position: absolute;
[229] Fix | Delete
right: 0;
[230] Fix | Delete
top: 0;
[231] Fix | Delete
opacity: 0.4;
[232] Fix | Delete
}
[233] Fix | Delete
{{row-class}} .amp-txt{
[234] Fix | Delete
color:{{overlay_cnt_color}};
[235] Fix | Delete
}
[236] Fix | Delete
{{ifend_condition_check_for_overlay_1}}
[237] Fix | Delete
{{ifend_condition_background_type_video}}
[238] Fix | Delete
[239] Fix | Delete
{{if_condition_background_type==mp4video}}
[240] Fix | Delete
{{row-class}} .amp_video{
[241] Fix | Delete
position: relative;
[242] Fix | Delete
}
[243] Fix | Delete
{{row-class}} .amp_video .amp-txt{
[244] Fix | Delete
font-size: {{cnt_size}};
[245] Fix | Delete
line-height: {{cnt_ln_hgt}};
[246] Fix | Delete
font-weight: {{cnt_font_type}};
[247] Fix | Delete
{{if_condition_check_for_overlay==0}}
[248] Fix | Delete
color:{{cnt_color}};
[249] Fix | Delete
{{ifend_condition_check_for_overlay_0}}
[250] Fix | Delete
position: absolute;
[251] Fix | Delete
top: 10%;
[252] Fix | Delete
bottom: auto;
[253] Fix | Delete
left: 20%;
[254] Fix | Delete
right: 20%;
[255] Fix | Delete
margin: 0 auto;
[256] Fix | Delete
text-align: center;
[257] Fix | Delete
z-index: 9;
[258] Fix | Delete
}
[259] Fix | Delete
{{row-class}} .amp-txt h1{
[260] Fix | Delete
font-size: {{tlt_size}};
[261] Fix | Delete
font-weight: {{tlt_wgt}};
[262] Fix | Delete
letter-spacing: {{letter_spacing}};
[263] Fix | Delete
line-height: {{tlt_ln_hgt}};
[264] Fix | Delete
{{if_condition_check_for_overlay==0}}
[265] Fix | Delete
color:{{tlt_color}};
[266] Fix | Delete
{{ifend_condition_check_for_overlay_0}}
[267] Fix | Delete
margin-bottom:20px;
[268] Fix | Delete
}
[269] Fix | Delete
{{if_condition_check_for_overlay==1}}
[270] Fix | Delete
{{row-class}} .overlay{
[271] Fix | Delete
background: #000;
[272] Fix | Delete
bottom: 0;
[273] Fix | Delete
left: 0;
[274] Fix | Delete
position: absolute;
[275] Fix | Delete
right: 0;
[276] Fix | Delete
top: 0;
[277] Fix | Delete
opacity: 0.4;
[278] Fix | Delete
}
[279] Fix | Delete
{{row-class}} .amp-txt{
[280] Fix | Delete
color:{{overlay_cnt_color}};
[281] Fix | Delete
}
[282] Fix | Delete
{{ifend_condition_check_for_overlay_1}}
[283] Fix | Delete
{{ifend_condition_background_type_mp4video}}
[284] Fix | Delete
{{if_condition_background_type==youtubevideo}}
[285] Fix | Delete
{{row-class}} .amp_video{
[286] Fix | Delete
position: relative;
[287] Fix | Delete
}
[288] Fix | Delete
{{row-class}} .amp_video .amp-txt{
[289] Fix | Delete
font-size: {{cnt_size}};
[290] Fix | Delete
line-height: {{cnt_ln_hgt}};
[291] Fix | Delete
font-weight: {{cnt_font_type}};
[292] Fix | Delete
{{if_condition_check_for_overlay==0}}
[293] Fix | Delete
color:{{cnt_color}};
[294] Fix | Delete
{{ifend_condition_check_for_overlay_0}}
[295] Fix | Delete
position: absolute;
[296] Fix | Delete
top: 10%;
[297] Fix | Delete
bottom: auto;
[298] Fix | Delete
left: 20%;
[299] Fix | Delete
right: 20%;
[300] Fix | Delete
margin: 0 auto;
[301] Fix | Delete
text-align: center;
[302] Fix | Delete
z-index: 9;
[303] Fix | Delete
}
[304] Fix | Delete
{{row-class}} .amp-txt h1{
[305] Fix | Delete
font-size: {{tlt_size}};
[306] Fix | Delete
font-weight: {{tlt_wgt}};
[307] Fix | Delete
letter-spacing: {{letter_spacing}};
[308] Fix | Delete
line-height: {{tlt_ln_hgt}};
[309] Fix | Delete
{{if_condition_check_for_overlay==0}}
[310] Fix | Delete
color:{{tlt_color}};
[311] Fix | Delete
{{ifend_condition_check_for_overlay_0}}
[312] Fix | Delete
margin-bottom:20px;
[313] Fix | Delete
}
[314] Fix | Delete
{{if_condition_check_for_overlay==1}}
[315] Fix | Delete
{{row-class}} .overlay{
[316] Fix | Delete
background: #000;
[317] Fix | Delete
bottom: 0;
[318] Fix | Delete
left: 0;
[319] Fix | Delete
position: absolute;
[320] Fix | Delete
right: 0;
[321] Fix | Delete
top: 0;
[322] Fix | Delete
opacity: 0.4;
[323] Fix | Delete
}
[324] Fix | Delete
{{row-class}} .amp-txt{
[325] Fix | Delete
color:{{overlay_cnt_color}};
[326] Fix | Delete
}
[327] Fix | Delete
{{ifend_condition_check_for_overlay_1}}
[328] Fix | Delete
{{ifend_condition_background_type_youtubevideo}}
[329] Fix | Delete
[330] Fix | Delete
@media(max-width:768px){
[331] Fix | Delete
{{row-class}}.amppb-fluid{width:100%;}
[332] Fix | Delete
{{row-class}}.amppb-fluid .col, {{row-class}}.amppb-fluid .col-2-wrap{max-width:{{fluid-wrapper}};}
[333] Fix | Delete
}
[334] Fix | Delete
[335] Fix | Delete
@media(max-width:425px){
[336] Fix | Delete
{{row-class}}{
[337] Fix | Delete
{{if_condition_check_for_pdng==1}}
[338] Fix | Delete
padding:{{res_pdng}};
[339] Fix | Delete
{{ifend_condition_check_for_pdng_1}}
[340] Fix | Delete
{{if_condition_check_for_mrgn==1}}
[341] Fix | Delete
margin: {{res_mrgn}};
[342] Fix | Delete
{{ifend_condition_check_for_mrgn_1}}
[343] Fix | Delete
}
[344] Fix | Delete
}
[345] Fix | Delete
';
[346] Fix | Delete
$front_common_css = '.amppb-fluid .col{margin:0 auto;max-width:{{fluid-width}}; }
[347] Fix | Delete
.amppb-fixed .col {max-width: {{fixed-width}};width:1125px;margin: 0 auto;}';
[348] Fix | Delete
/*border-size: {{border_css}};
[349] Fix | Delete
border-style:{{border_type}};*/
[350] Fix | Delete
$containerCommonSettings = array(
[351] Fix | Delete
'label' => 'Row Settings',
[352] Fix | Delete
'settingType' =>'row',
[353] Fix | Delete
'default_tab'=> 'customizer',
[354] Fix | Delete
'tabs' => array(
[355] Fix | Delete
'customizer'=>'Basic',
[356] Fix | Delete
'container_css'=>'Advance',
[357] Fix | Delete
'design'=>'Design'
[358] Fix | Delete
),
[359] Fix | Delete
'fields' => array(
[360] Fix | Delete
array(
[361] Fix | Delete
'type' =>'text',
[362] Fix | Delete
'name' =>"row_label",
[363] Fix | Delete
'label' =>'Row label',
[364] Fix | Delete
'tab' =>'container_css',
[365] Fix | Delete
'default' =>'',
[366] Fix | Delete
'content_type'=>'html',
[367] Fix | Delete
),
[368] Fix | Delete
array(
[369] Fix | Delete
'type' =>'text',
[370] Fix | Delete
'name' =>'row_id',
[371] Fix | Delete
'label' =>esc_html__('Row ID', 'accelerated-mobile-pages'),
[372] Fix | Delete
'tab' =>'container_css',
[373] Fix | Delete
'default' =>'',
[374] Fix | Delete
'content_type'=>'html',
[375] Fix | Delete
),
[376] Fix | Delete
[377] Fix | Delete
array(
[378] Fix | Delete
'type' =>'text',
[379] Fix | Delete
'name' =>"row_class",
[380] Fix | Delete
'label' =>'Row class',
[381] Fix | Delete
'tab' =>'container_css',
[382] Fix | Delete
'default' =>'',
[383] Fix | Delete
'content_type'=>'html',
[384] Fix | Delete
),
[385] Fix | Delete
array(
[386] Fix | Delete
'type' =>'radio',
[387] Fix | Delete
'name' =>"grid_type",
[388] Fix | Delete
'label' =>'Grid type',
[389] Fix | Delete
'tab' =>'customizer',
[390] Fix | Delete
'default' =>'amppb-fluid',
[391] Fix | Delete
'options' =>array(
[392] Fix | Delete
array(
[393] Fix | Delete
'label'=>'Fixed',
[394] Fix | Delete
'value'=>'amppb-fixed',
[395] Fix | Delete
),
[396] Fix | Delete
array(
[397] Fix | Delete
'label'=>'Fluid',
[398] Fix | Delete
'value'=>'amppb-fluid',
[399] Fix | Delete
),
[400] Fix | Delete
),
[401] Fix | Delete
'content_type'=>'html',
[402] Fix | Delete
),
[403] Fix | Delete
[404] Fix | Delete
array(
[405] Fix | Delete
'type' =>'text',
[406] Fix | Delete
'name' =>"fixed-width",
[407] Fix | Delete
'label' =>'Width',
[408] Fix | Delete
'tab' =>'customizer',
[409] Fix | Delete
'default' =>'1100px',
[410] Fix | Delete
'content_type'=>'css',
[411] Fix | Delete
'required' => array('grid_type'=>'amppb-fixed')
[412] Fix | Delete
),
[413] Fix | Delete
array(
[414] Fix | Delete
'type' =>'text',
[415] Fix | Delete
'name' =>"content-width",
[416] Fix | Delete
'label' =>'Content Width',
[417] Fix | Delete
'tab' =>'customizer',
[418] Fix | Delete
'default' =>'95%',
[419] Fix | Delete
'content_type'=>'css',
[420] Fix | Delete
'required' => array('grid_type'=>'amppb-fixed')
[421] Fix | Delete
),
[422] Fix | Delete
[423] Fix | Delete
array(
[424] Fix | Delete
'type' =>'text',
[425] Fix | Delete
'name' =>"fluid-width",
[426] Fix | Delete
'label' =>'Width',
[427] Fix | Delete
'tab' =>'customizer',
[428] Fix | Delete
'default' =>'100%',
[429] Fix | Delete
'content_type'=>'css',
[430] Fix | Delete
'required' => array('grid_type'=>'amppb-fluid')
[431] Fix | Delete
),
[432] Fix | Delete
array(
[433] Fix | Delete
'type' =>'text',
[434] Fix | Delete
'name' =>"fluid-wrapper",
[435] Fix | Delete
'label' =>'Wrapper',
[436] Fix | Delete
'tab' =>'customizer',
[437] Fix | Delete
'default' =>'90%',
[438] Fix | Delete
'content_type'=>'css',
[439] Fix | Delete
'required' => array('grid_type'=>'amppb-fluid')
[440] Fix | Delete
),
[441] Fix | Delete
array(
[442] Fix | Delete
'type' =>'color-picker',
[443] Fix | Delete
'name' =>"font_color_picker",
[444] Fix | Delete
'label' => esc_html__( 'Overlay Text Color', 'accelerated-mobile-pages' ),
[445] Fix | Delete
'tab' =>'customizer',
[446] Fix | Delete
'default' =>'#000',
[447] Fix | Delete
'content_type'=>'css',
[448] Fix | Delete
'output_format'=>"color: %default%"
[449] Fix | Delete
),
[450] Fix | Delete
array(
[451] Fix | Delete
'type' => 'radio',
[452] Fix | Delete
'name' => "mobile_display",
[453] Fix | Delete
'label' => esc_html__('Mobile Display'),
[454] Fix | Delete
'tab' => 'customizer',
[455] Fix | Delete
'default' => 'stack',
[456] Fix | Delete
'options' => array(
[457] Fix | Delete
array(
[458] Fix | Delete
'label'=> 'Stack',
[459] Fix | Delete
'value'=> 'stack',
[460] Fix | Delete
),
[461] Fix | Delete
array(
[462] Fix | Delete
'label'=> 'Side By Side',
[463] Fix | Delete
'value'=> 'sbs',
[464] Fix | Delete
),
[465] Fix | Delete
),
[466] Fix | Delete
'content_type' => 'html',
[467] Fix | Delete
),
[468] Fix | Delete
array(
[469] Fix | Delete
'type' =>'select',
[470] Fix | Delete
'name' =>"background_type",
[471] Fix | Delete
'label' => esc_html__("Background Type", 'accelerated-mobile-pages' ),
[472] Fix | Delete
'tab' =>'customizer',
[473] Fix | Delete
'default' =>'color',
[474] Fix | Delete
'options_details'=>array(
[475] Fix | Delete
'color'=>'Color',
[476] Fix | Delete
'gradient'=>'Gradient',
[477] Fix | Delete
'image'=>'Background Image',
[478] Fix | Delete
'video'=>'Background Video (Third Party Embed)',
[479] Fix | Delete
'mp4video'=>'Background Video (MP4)',
[480] Fix | Delete
'youtubevideo'=>'Background Video (Youtube)',
[481] Fix | Delete
),
[482] Fix | Delete
'content_type'=>'html',
[483] Fix | Delete
'output_format'=>''
[484] Fix | Delete
),
[485] Fix | Delete
array(
[486] Fix | Delete
'type' =>'require_script',
[487] Fix | Delete
'name' =>"embeded_script",
[488] Fix | Delete
'label' =>'amp-iframe',
[489] Fix | Delete
'default' =>'https://cdn.ampproject.org/v0/amp-iframe-0.1.js',
[490] Fix | Delete
'content_type'=>'js',
[491] Fix | Delete
'required' => array('background_type'=>'video'),
[492] Fix | Delete
),
[493] Fix | Delete
array(
[494] Fix | Delete
'type' =>'require_script',
[495] Fix | Delete
'name' =>"embeded_script",
[496] Fix | Delete
'label' =>'amp-iframe',
[497] Fix | Delete
'default' =>'https://cdn.ampproject.org/v0/amp-video-0.1.js',
[498] Fix | Delete
'content_type'=>'js',
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function