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: map-module.php
<?php
[0] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[1] Fix | Delete
exit;
[2] Fix | Delete
}
[3] Fix | Delete
$output = '
[4] Fix | Delete
<amp-iframe {{if_id}}id="{{id}}"{{ifend_id}} class="{{user_class}}" width="{{width}}" height="{{height}}"
[5] Fix | Delete
sandbox="allow-scripts allow-same-origin"
[6] Fix | Delete
{{if_condition_mode_type==place}}src="https://www.google.com/maps/embed/v1/place?key={{map_key}}&q={{address}}"{{ifend_condition_mode_type_place}}
[7] Fix | Delete
{{if_condition_mode_type==view}}src="https://www.google.com/maps/embed/v1/view?key={{map_key}}&center={{latitude}},{{longitude}}&zoom={{zooming}}&maptype={{map_type}}"{{ifend_condition_mode_type_view}}>
[8] Fix | Delete
{{if_map_placeholder}}<amp-img layout="fill" src="{{map_placeholder}}" placeholder></amp-img>{{ifend_map_placeholder}}
[9] Fix | Delete
</amp-iframe>';
[10] Fix | Delete
[11] Fix | Delete
$css = '';
[12] Fix | Delete
[13] Fix | Delete
return array(
[14] Fix | Delete
'label' => esc_html__('Map', 'accelerated-mobile-pages'),
[15] Fix | Delete
'name' =>'map',
[16] Fix | Delete
'default_tab'=> 'customizer',
[17] Fix | Delete
'tabs' => array(
[18] Fix | Delete
'customizer'=>'Content',
[19] Fix | Delete
'design'=>'Design',
[20] Fix | Delete
'advanced' => 'Advanced'
[21] Fix | Delete
),
[22] Fix | Delete
'fields' => array(
[23] Fix | Delete
[24] Fix | Delete
array(
[25] Fix | Delete
'type' =>'text',
[26] Fix | Delete
'name' =>"width",
[27] Fix | Delete
'label' =>esc_html__('Map Width','accelerated-mobile-pages'),
[28] Fix | Delete
'tab' =>'design',
[29] Fix | Delete
'default' =>'600',
[30] Fix | Delete
'content_type'=>'html',
[31] Fix | Delete
),
[32] Fix | Delete
array(
[33] Fix | Delete
'type' =>'text',
[34] Fix | Delete
'name' =>"height",
[35] Fix | Delete
'label' =>esc_html__('Map Height','accelerated-mobile-pages'),
[36] Fix | Delete
'tab' =>'design',
[37] Fix | Delete
'default' =>'450',
[38] Fix | Delete
'content_type'=>'html',
[39] Fix | Delete
),
[40] Fix | Delete
[41] Fix | Delete
array(
[42] Fix | Delete
'type' =>'text',
[43] Fix | Delete
'name' =>"map_key",
[44] Fix | Delete
'label' =>esc_html__('API Key','accelerated-mobile-pages'),
[45] Fix | Delete
'tab' =>'customizer',
[46] Fix | Delete
'default' =>'',
[47] Fix | Delete
'content_type'=>'html',
[48] Fix | Delete
'helpmessage' => '<a href="https://developers.google.com/maps/documentation/embed/get-api-key#quick-guide" target="_blank">Get API Key</a><br><b> Note: According to the AMP standards - use this module only if your MAP is either 600px away from the top or not within the first 75% of the viewport</b>',
[49] Fix | Delete
),
[50] Fix | Delete
array(
[51] Fix | Delete
'type' =>'select',
[52] Fix | Delete
'name' =>'mode_type',
[53] Fix | Delete
'label' =>esc_html__("Select Mode Type",'accelerated-mobile-pages'),
[54] Fix | Delete
'tab' =>'customizer',
[55] Fix | Delete
'default' =>'place',
[56] Fix | Delete
'options_details'=>array(
[57] Fix | Delete
'place' =>'Place Mode',
[58] Fix | Delete
'view' =>'View Mode',
[59] Fix | Delete
),
[60] Fix | Delete
'content_type'=>'html',
[61] Fix | Delete
),
[62] Fix | Delete
array(
[63] Fix | Delete
'type' =>'text',
[64] Fix | Delete
'name' =>"address",
[65] Fix | Delete
'label' =>esc_html__('Address','accelerated-mobile-pages'),
[66] Fix | Delete
'tab' =>'customizer',
[67] Fix | Delete
'default' =>'Eiffel Tower,Paris France',
[68] Fix | Delete
'content_type'=>'html',
[69] Fix | Delete
'required' => array('mode_type'=>'place'),
[70] Fix | Delete
),
[71] Fix | Delete
array(
[72] Fix | Delete
'type' =>'text',
[73] Fix | Delete
'name' =>"latitude",
[74] Fix | Delete
'label' =>esc_html__('Latitude','accelerated-mobile-pages'),
[75] Fix | Delete
'tab' =>'customizer',
[76] Fix | Delete
'default' =>'-33.8569',
[77] Fix | Delete
'content_type'=>'html',
[78] Fix | Delete
'required' => array('mode_type'=>'view'),
[79] Fix | Delete
),
[80] Fix | Delete
array(
[81] Fix | Delete
'type' =>'text',
[82] Fix | Delete
'name' =>"longitude",
[83] Fix | Delete
'label' =>esc_html__('Longitude','accelerated-mobile-pages'),
[84] Fix | Delete
'tab' =>'customizer',
[85] Fix | Delete
'default' =>'151.2152',
[86] Fix | Delete
'content_type'=>'html',
[87] Fix | Delete
'required' => array('mode_type'=>'view'),
[88] Fix | Delete
),
[89] Fix | Delete
array(
[90] Fix | Delete
'type' =>'text',
[91] Fix | Delete
'name' =>"zooming",
[92] Fix | Delete
'label' =>esc_html__('Zooming','accelerated-mobile-pages'),
[93] Fix | Delete
'tab' =>'customizer',
[94] Fix | Delete
'default' =>'18',
[95] Fix | Delete
'content_type'=>'html',
[96] Fix | Delete
'required' => array('mode_type'=>'view'),
[97] Fix | Delete
),
[98] Fix | Delete
array(
[99] Fix | Delete
'type' =>'select',
[100] Fix | Delete
'name' =>"map_type",
[101] Fix | Delete
'label' =>esc_html__('Map Type','accelerated-mobile-pages'),
[102] Fix | Delete
'tab' =>'customizer',
[103] Fix | Delete
'default' =>'roadmap',
[104] Fix | Delete
'content_type'=>'html',
[105] Fix | Delete
'required' => array('mode_type'=>'view'),
[106] Fix | Delete
'options_details'=>array(
[107] Fix | Delete
'satellite' =>'SATELLITE',
[108] Fix | Delete
'roadmap' =>'ROADMAP',
[109] Fix | Delete
'hybrid' => 'HYBRID',
[110] Fix | Delete
'terrain' => 'TERRAIN'
[111] Fix | Delete
),
[112] Fix | Delete
),
[113] Fix | Delete
array(
[114] Fix | Delete
'type' =>'upload',
[115] Fix | Delete
'name' =>"map_placeholder",
[116] Fix | Delete
'label' =>esc_html__('Upload Placeholder','accelerated-mobile-pages'),
[117] Fix | Delete
'tab' =>'customizer',
[118] Fix | Delete
'default' =>'',
[119] Fix | Delete
'content_type'=>'html',
[120] Fix | Delete
),
[121] Fix | Delete
array(
[122] Fix | Delete
'type' =>'text',
[123] Fix | Delete
'name' =>"id",
[124] Fix | Delete
'label' =>esc_html__('ID','accelerated-mobile-pages'),
[125] Fix | Delete
'tab' =>'advanced',
[126] Fix | Delete
'default' =>'',
[127] Fix | Delete
'content_type'=>'html'
[128] Fix | Delete
),
[129] Fix | Delete
array(
[130] Fix | Delete
'type' =>'text',
[131] Fix | Delete
'name' =>"user_class",
[132] Fix | Delete
'label' =>esc_html__('Class','accelerated-mobile-pages'),
[133] Fix | Delete
'tab' =>'advanced',
[134] Fix | Delete
'default' =>'',
[135] Fix | Delete
'content_type'=>'html'
[136] Fix | Delete
),
[137] Fix | Delete
[138] Fix | Delete
),
[139] Fix | Delete
'front_template'=> $output,
[140] Fix | Delete
'front_css'=> $css,
[141] Fix | Delete
'front_common_css'=>'',
[142] Fix | Delete
);
[143] Fix | Delete
[144] Fix | Delete
?>
[145] Fix | Delete
[146] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function