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.../modules
File: feature-mod-module.php
<?php
[0] Fix | Delete
// Exit if accessed directly.
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) exit;
[2] Fix | Delete
$output = '
[3] Fix | Delete
<div {{if_id}}id="{{id}}"{{ifend_id}} class="ln-fx {{user_class}}">{{repeater}}</div>';
[4] Fix | Delete
$css = '
[5] Fix | Delete
{{module-class}}.feature-mod{margin:{{margin_css}};padding:{{padding_css}};}
[6] Fix | Delete
{{if_condition_feature_layout_type==1}}
[7] Fix | Delete
{{module-class}} .ln-fx{width:100%;display:flex; flex-wrap:wrap;}
[8] Fix | Delete
{{module-class}} .feat-blk{ margin: 0 3% 3% 0; background: {{background_color_picker}}; width: 47%; text-align: {{align_type}};padding: 40px; position: relative;color: #26292c;}
[9] Fix | Delete
{{module-class}} .feat-blk p{color: #333;font-size: 18px;padding-top:15px;}
[10] Fix | Delete
{{module-class}} .feat-blk h1{font-size:28px;}
[11] Fix | Delete
{{module-class}} .feat-blk h2{font-size:25px;}
[12] Fix | Delete
{{module-class}} .feat-blk h3{font-size:22px;}
[13] Fix | Delete
{{module-class}} .feat-blk h4{font-size:19px;}
[14] Fix | Delete
{{module-class}} .feat-blk h5{font-size:17px;}
[15] Fix | Delete
{{module-class}} .feat-blk h6{font-size:15px;}
[16] Fix | Delete
{{module-class}} .feat-blk h1, {{module-class}} .feat-blk h2, {{module-class}} .feat-blk h3, {{module-class}} .feat-blk h4, {{module-class}} .feat-blk h5, {{module-class}} .feat-blk h6{
[17] Fix | Delete
color:{{font_color_picker}};font-weight:400;padding-bottom:15px;
[18] Fix | Delete
}
[19] Fix | Delete
{{module-class}} .feat-blk amp-img{margin:0 auto;width:{{img_width}};max-width:100%;}
[20] Fix | Delete
{{if_condition_check_for_btn==1}}
[21] Fix | Delete
{{module-class}} .feat-blk .fe_btn{
[22] Fix | Delete
font-size:{{btn_size}};
[23] Fix | Delete
font-weight:{{btn_weight}};
[24] Fix | Delete
color:{{btn_color}};
[25] Fix | Delete
background:{{btn_bg_color}};
[26] Fix | Delete
border-radius:{{bdr_rds}};
[27] Fix | Delete
padding: 10px 20px;
[28] Fix | Delete
margin-top: 15px;
[29] Fix | Delete
display: inline-block;
[30] Fix | Delete
}
[31] Fix | Delete
{{ifend_condition_check_for_btn_1}}
[32] Fix | Delete
@media(max-width:768px){
[33] Fix | Delete
{{module-class}} .feat-blk{width: 100%;margin-right: 0;}
[34] Fix | Delete
}
[35] Fix | Delete
@media(max-width:425px){
[36] Fix | Delete
{{module-class}} .feat-blk amp-img{width:100%;}
[37] Fix | Delete
}
[38] Fix | Delete
{{ifend_condition_feature_layout_type_1}}
[39] Fix | Delete
';
[40] Fix | Delete
return array(
[41] Fix | Delete
'label' =>'Feature',
[42] Fix | Delete
'name' =>'feature-mod',
[43] Fix | Delete
'default_tab'=> 'customizer',
[44] Fix | Delete
'tabs' => array(
[45] Fix | Delete
'customizer'=>'Content',
[46] Fix | Delete
'layouts'=> 'Layouts',
[47] Fix | Delete
'design'=>'Design',
[48] Fix | Delete
'advanced' => 'Advanced'
[49] Fix | Delete
),
[50] Fix | Delete
'fields' => array(
[51] Fix | Delete
array(
[52] Fix | Delete
'type' =>'layout-image-picker',
[53] Fix | Delete
'name' =>"feature_layout_type",
[54] Fix | Delete
'label' =>"Select Layout",
[55] Fix | Delete
'tab' =>'layouts',
[56] Fix | Delete
'default' =>'1',
[57] Fix | Delete
'options_details'=>array(
[58] Fix | Delete
array(
[59] Fix | Delete
'value'=>'1',
[60] Fix | Delete
'label'=>'',
[61] Fix | Delete
'demo_image'=> AMPFORWP_PLUGIN_DIR_URI.'/images/feature-1.png'
[62] Fix | Delete
),
[63] Fix | Delete
),
[64] Fix | Delete
'content_type'=>'html',
[65] Fix | Delete
),
[66] Fix | Delete
array(
[67] Fix | Delete
'type' =>'select',
[68] Fix | Delete
'name' =>'heading_tags',
[69] Fix | Delete
'label' => esc_html__('Heading Tags','accelerated-mobile-pages'),
[70] Fix | Delete
'tab' =>'customizer',
[71] Fix | Delete
'default' =>'h3',
[72] Fix | Delete
'options_details'=>array(
[73] Fix | Delete
'h1' =>'H1',
[74] Fix | Delete
'h2' =>'H2',
[75] Fix | Delete
'h3' =>'H3',
[76] Fix | Delete
'h4' =>'H4',
[77] Fix | Delete
'h5' =>'H5',
[78] Fix | Delete
'h6' =>'H6'
[79] Fix | Delete
),
[80] Fix | Delete
'content_type'=>'html',
[81] Fix | Delete
'required' => array('feature_layout_type'=> 1),
[82] Fix | Delete
),
[83] Fix | Delete
array(
[84] Fix | Delete
'type' =>'checkbox',
[85] Fix | Delete
'name' =>"image_layout",
[86] Fix | Delete
'tab' =>'customizer',
[87] Fix | Delete
'label' =>'Image Type',
[88] Fix | Delete
'default' =>array('layout="responsive"'),
[89] Fix | Delete
'options' =>array(
[90] Fix | Delete
array(
[91] Fix | Delete
'label'=>'Responsive',
[92] Fix | Delete
'value'=>'layout="responsive"',
[93] Fix | Delete
),
[94] Fix | Delete
),
[95] Fix | Delete
'content_type'=>'html',
[96] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[97] Fix | Delete
),
[98] Fix | Delete
array(
[99] Fix | Delete
'type' =>'text',
[100] Fix | Delete
'name' =>'img_width',
[101] Fix | Delete
'label' =>'Image Size',
[102] Fix | Delete
'tab' =>'customizer',
[103] Fix | Delete
'default' =>'300px',
[104] Fix | Delete
'content_type'=>'css',
[105] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[106] Fix | Delete
),
[107] Fix | Delete
array(
[108] Fix | Delete
'type' =>'checkbox_bool',
[109] Fix | Delete
'name' =>"check_for_btn",
[110] Fix | Delete
'label' => 'Enable Button',
[111] Fix | Delete
'tab' =>'customizer',
[112] Fix | Delete
'default' =>0,
[113] Fix | Delete
'options' =>array(
[114] Fix | Delete
array(
[115] Fix | Delete
'label'=>'Yes',
[116] Fix | Delete
'value'=>1,
[117] Fix | Delete
)
[118] Fix | Delete
),
[119] Fix | Delete
'content_type'=>'html',
[120] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[121] Fix | Delete
),
[122] Fix | Delete
[123] Fix | Delete
array(
[124] Fix | Delete
'type' =>'color-picker',
[125] Fix | Delete
'name' =>"background_color_picker",
[126] Fix | Delete
'label' =>'Background Color',
[127] Fix | Delete
'tab' =>'design',
[128] Fix | Delete
'default' =>'#f4f4f4',
[129] Fix | Delete
'content_type'=>'css',
[130] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[131] Fix | Delete
),
[132] Fix | Delete
array(
[133] Fix | Delete
'type' =>'color-picker',
[134] Fix | Delete
'name' =>"font_color_picker",
[135] Fix | Delete
'label' =>'Text Color',
[136] Fix | Delete
'tab' =>'design',
[137] Fix | Delete
'default' =>'#333',
[138] Fix | Delete
'content_type'=>'css',
[139] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[140] Fix | Delete
),
[141] Fix | Delete
array(
[142] Fix | Delete
'type' =>'select',
[143] Fix | Delete
'name' =>'align_type',
[144] Fix | Delete
'label' =>esc_html__('Content Alignment','accelerated-mobile-pages'),
[145] Fix | Delete
'tab' =>'design',
[146] Fix | Delete
'default' =>'center',
[147] Fix | Delete
'options_details'=>array(
[148] Fix | Delete
'center' =>'Center',
[149] Fix | Delete
'left' =>'Left',
[150] Fix | Delete
'right' =>'Right', ),
[151] Fix | Delete
'content_type'=>'css',
[152] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[153] Fix | Delete
),
[154] Fix | Delete
array(
[155] Fix | Delete
'type' =>'text',
[156] Fix | Delete
'name' =>"btn_size",
[157] Fix | Delete
'label' =>'Button Font Size',
[158] Fix | Delete
'tab' =>'design',
[159] Fix | Delete
'default' =>'16px',
[160] Fix | Delete
'content_type'=>'css',
[161] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[162] Fix | Delete
),
[163] Fix | Delete
array(
[164] Fix | Delete
'type' =>'select',
[165] Fix | Delete
'name' =>'btn_weight',
[166] Fix | Delete
'label' =>"Button Font Weight",
[167] Fix | Delete
'tab' =>'design',
[168] Fix | Delete
'default' =>'400',
[169] Fix | Delete
'options_details'=>array(
[170] Fix | Delete
'300' =>'Light',
[171] Fix | Delete
'400' =>'Regular',
[172] Fix | Delete
'500' =>'Medium',
[173] Fix | Delete
'600' =>'Semi Bold',
[174] Fix | Delete
'700' =>'Bold',
[175] Fix | Delete
),
[176] Fix | Delete
'content_type'=>'css',
[177] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[178] Fix | Delete
),
[179] Fix | Delete
array(
[180] Fix | Delete
'type' =>'color-picker',
[181] Fix | Delete
'name' =>"btn_color",
[182] Fix | Delete
'label' =>'Button Text Color',
[183] Fix | Delete
'tab' =>'design',
[184] Fix | Delete
'default' =>'#fff',
[185] Fix | Delete
'content_type'=>'css',
[186] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[187] Fix | Delete
),
[188] Fix | Delete
array(
[189] Fix | Delete
'type' =>'color-picker',
[190] Fix | Delete
'name' =>"btn_bg_color",
[191] Fix | Delete
'label' =>'Background Color',
[192] Fix | Delete
'tab' =>'design',
[193] Fix | Delete
'default' =>'#555',
[194] Fix | Delete
'content_type'=>'css',
[195] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[196] Fix | Delete
),
[197] Fix | Delete
array(
[198] Fix | Delete
'type' =>'text',
[199] Fix | Delete
'name' =>'bdr_rds',
[200] Fix | Delete
'label' =>'Border Radius',
[201] Fix | Delete
'tab' =>'design',
[202] Fix | Delete
'default' =>'0px',
[203] Fix | Delete
'content_type'=>'css',
[204] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[205] Fix | Delete
),
[206] Fix | Delete
array(
[207] Fix | Delete
'type' =>'text',
[208] Fix | Delete
'name' =>"id",
[209] Fix | Delete
'label' =>'ID',
[210] Fix | Delete
'tab' =>'advanced',
[211] Fix | Delete
'default' =>'',
[212] Fix | Delete
'content_type'=>'html'
[213] Fix | Delete
),
[214] Fix | Delete
array(
[215] Fix | Delete
'type' =>'text',
[216] Fix | Delete
'name' =>"user_class",
[217] Fix | Delete
'label' =>'Class',
[218] Fix | Delete
'tab' =>'advanced',
[219] Fix | Delete
'default' =>'',
[220] Fix | Delete
'content_type'=>'html'
[221] Fix | Delete
),
[222] Fix | Delete
array(
[223] Fix | Delete
'type' =>'spacing',
[224] Fix | Delete
'name' =>"margin_css",
[225] Fix | Delete
'label' =>'Margin',
[226] Fix | Delete
'tab' =>'advanced',
[227] Fix | Delete
'default' =>
[228] Fix | Delete
array(
[229] Fix | Delete
'top'=>'20px',
[230] Fix | Delete
'right'=>'0px',
[231] Fix | Delete
'bottom'=>'20px',
[232] Fix | Delete
'left'=>'0px',
[233] Fix | Delete
),
[234] Fix | Delete
'content_type'=>'css',
[235] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[236] Fix | Delete
),
[237] Fix | Delete
array(
[238] Fix | Delete
'type' =>'spacing',
[239] Fix | Delete
'name' =>"padding_css",
[240] Fix | Delete
'label' =>'Padding',
[241] Fix | Delete
'tab' =>'advanced',
[242] Fix | Delete
'default' =>array(
[243] Fix | Delete
'left'=>'0px',
[244] Fix | Delete
'right'=>'0px',
[245] Fix | Delete
'top'=>'0px',
[246] Fix | Delete
'bottom'=>'0px'
[247] Fix | Delete
),
[248] Fix | Delete
'content_type'=>'css',
[249] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[250] Fix | Delete
),
[251] Fix | Delete
[252] Fix | Delete
),
[253] Fix | Delete
'front_template'=> $output,
[254] Fix | Delete
'front_css'=> $css,
[255] Fix | Delete
'front_common_css'=>'',
[256] Fix | Delete
'repeater'=>array(
[257] Fix | Delete
'tab'=>'customizer',
[258] Fix | Delete
'fields'=>array(
[259] Fix | Delete
array(
[260] Fix | Delete
'type' =>'text',
[261] Fix | Delete
'name' =>"content_title",
[262] Fix | Delete
'label' =>'Heading',
[263] Fix | Delete
'tab' =>'customizer',
[264] Fix | Delete
'default' =>'Your Feature Title',
[265] Fix | Delete
'content_type'=>'html',
[266] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[267] Fix | Delete
),
[268] Fix | Delete
array(
[269] Fix | Delete
'type' =>'upload',
[270] Fix | Delete
'name' =>"img_upload",
[271] Fix | Delete
'label' =>'Image',
[272] Fix | Delete
'tab' =>'customizer',
[273] Fix | Delete
'default' =>'',
[274] Fix | Delete
'content_type'=>'html',
[275] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[276] Fix | Delete
),
[277] Fix | Delete
array(
[278] Fix | Delete
'type' =>'text-editor',
[279] Fix | Delete
'name' =>"content",
[280] Fix | Delete
'label' =>'Content',
[281] Fix | Delete
'tab' =>'customizer',
[282] Fix | Delete
'default' =>'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut.',
[283] Fix | Delete
'content_type'=>'html',
[284] Fix | Delete
'required' => array('feature_layout_type'=> 1)
[285] Fix | Delete
),
[286] Fix | Delete
[287] Fix | Delete
[288] Fix | Delete
array(
[289] Fix | Delete
'type' => 'text',
[290] Fix | Delete
'name' => "btn_txt",
[291] Fix | Delete
'label' => 'Button Text',
[292] Fix | Delete
'tab' => 'customizer',
[293] Fix | Delete
'default' => 'Learn More',
[294] Fix | Delete
'content_type' => 'html',
[295] Fix | Delete
'helpmessage' => 'Leave empty if do not want to show button.',
[296] Fix | Delete
'required' => array('feature_layout_type'=>'1', 'check_for_btn'=>'1'),
[297] Fix | Delete
),
[298] Fix | Delete
array(
[299] Fix | Delete
'type' =>'text',
[300] Fix | Delete
'name' =>"btn_link",
[301] Fix | Delete
'label' =>'URL',
[302] Fix | Delete
'tab' =>'customizer',
[303] Fix | Delete
'default' =>'#',
[304] Fix | Delete
'content_type'=>'html',
[305] Fix | Delete
'required' => array('feature_layout_type'=>'1', 'check_for_btn'=>'1'),
[306] Fix | Delete
),
[307] Fix | Delete
array(
[308] Fix | Delete
'type' =>'select',
[309] Fix | Delete
'name' =>'page_link_open',
[310] Fix | Delete
'label' =>"Open link in",
[311] Fix | Delete
'tab' =>'customizer',
[312] Fix | Delete
'default' =>'new_page',
[313] Fix | Delete
'options_details'=>array(
[314] Fix | Delete
'new_page' =>'New tab',
[315] Fix | Delete
'same_page' =>'Same page'
[316] Fix | Delete
),
[317] Fix | Delete
'content_type'=>'html',
[318] Fix | Delete
'required' => array('feature_layout_type'=>'1', 'check_for_btn'=>'1'),
[319] Fix | Delete
),
[320] Fix | Delete
[321] Fix | Delete
),
[322] Fix | Delete
'front_template'=>
[323] Fix | Delete
'{{if_condition_feature_layout_type==1}}<div class="feat-blk">
[324] Fix | Delete
{{if_heading_tags}}<{{heading_tags}} class="t-txt">{{content_title}}</{{heading_tags}}>{{ifend_heading_tags}}
[325] Fix | Delete
{{if_img_upload}}<amp-img src="{{img_upload}}" width="{{image_width}}" height="{{image_height}}" {{image_layout}} alt="{{image_alt}}"></amp-img>{{ifend_img_upload}}
[326] Fix | Delete
<p>{{content}}</p>
[327] Fix | Delete
{{if_condition_check_for_btn==1}}
[328] Fix | Delete
{{if_btn_txt}}
[329] Fix | Delete
<a href="{{btn_link}}" {{if_condition_page_link_open==new_page}}target="_blank"{{ifend_condition_page_link_open_new_page}} class="fe_btn">{{btn_txt}}</a>
[330] Fix | Delete
{{ifend_btn_txt}}
[331] Fix | Delete
{{ifend_condition_check_for_btn_1}}
[332] Fix | Delete
</div> {{ifend_condition_feature_layout_type_1}}'
[333] Fix | Delete
),
[334] Fix | Delete
[335] Fix | Delete
);
[336] Fix | Delete
[337] Fix | Delete
?>
[338] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function