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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/accelera.../includes/options
File: admin-config.php
return $options;
[2000] Fix | Delete
}
[2001] Fix | Delete
$amp_cpt_option = array();
[2002] Fix | Delete
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
[2003] Fix | Delete
$ampforwp_cpt_plugin_check = is_plugin_active( 'amp-custom-post-type/amp-custom-post-type.php' );
[2004] Fix | Delete
if ( false == $ampforwp_cpt_plugin_check ) {
[2005] Fix | Delete
$amp_cpt_option = array(
[2006] Fix | Delete
'id' => 'ampforwp-custom-type',
[2007] Fix | Delete
'type' => 'select',
[2008] Fix | Delete
'title' => esc_html__('Custom Post Types', 'accelerated-mobile-pages'),
[2009] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Custom Post Types', 'accelerated-mobile-pages'),
[2010] Fix | Delete
'multi' => true,
[2011] Fix | Delete
//'data' => 'post_type',
[2012] Fix | Delete
'options' => ampforwp_get_cpt_generated_post_types(),
[2013] Fix | Delete
);
[2014] Fix | Delete
}
[2015] Fix | Delete
function ampforwp_get_categories($id){
[2016] Fix | Delete
$data = get_transient($id);
[2017] Fix | Delete
[2018] Fix | Delete
if($data){
[2019] Fix | Delete
return $data;
[2020] Fix | Delete
}
[2021] Fix | Delete
[2022] Fix | Delete
$result = array();
[2023] Fix | Delete
$selected_categories = ampforwp_get_setting($id);
[2024] Fix | Delete
[2025] Fix | Delete
if(is_numeric($selected_categories)){
[2026] Fix | Delete
$temp_array = array();
[2027] Fix | Delete
$temp_array[0] = $selected_categories;
[2028] Fix | Delete
$selected_categories = $temp_array;
[2029] Fix | Delete
}
[2030] Fix | Delete
if(isset($selected_categories) && $selected_categories) {
[2031] Fix | Delete
$get_required_data = array_filter( $selected_categories );
[2032] Fix | Delete
if ( count( $get_required_data ) != 0 ) {
[2033] Fix | Delete
$categories = get_terms( 'category', array( 'include' => $get_required_data ) );
[2034] Fix | Delete
foreach ( $categories as $category ) {
[2035] Fix | Delete
$result[ esc_attr( $category->term_id ) ] = esc_html( $category->name );
[2036] Fix | Delete
}
[2037] Fix | Delete
set_transient( $id, $result);
[2038] Fix | Delete
}
[2039] Fix | Delete
}
[2040] Fix | Delete
return $result;
[2041] Fix | Delete
}
[2042] Fix | Delete
function ampforwp_get_all_tags($id){
[2043] Fix | Delete
[2044] Fix | Delete
$data = get_transient($id);
[2045] Fix | Delete
if ( $data) {
[2046] Fix | Delete
return $data;
[2047] Fix | Delete
}
[2048] Fix | Delete
[2049] Fix | Delete
$result = array();
[2050] Fix | Delete
$selected_tags = ampforwp_get_setting($id);
[2051] Fix | Delete
[2052] Fix | Delete
if ( $selected_tags ){
[2053] Fix | Delete
if(is_numeric($selected_tags)){
[2054] Fix | Delete
$temp_array = array();
[2055] Fix | Delete
$temp_array[0] = $selected_tags;
[2056] Fix | Delete
$selected_tags = $temp_array;
[2057] Fix | Delete
}
[2058] Fix | Delete
$get_required_data = array_filter( $selected_tags );
[2059] Fix | Delete
[2060] Fix | Delete
if ( count( $get_required_data ) != 0 ) {
[2061] Fix | Delete
$tags = get_terms( 'post_tag', array( 'include' => $get_required_data ) );
[2062] Fix | Delete
foreach($tags as $tag ) {
[2063] Fix | Delete
$result[esc_attr($tag->term_id)] = esc_html($tag->name);
[2064] Fix | Delete
}
[2065] Fix | Delete
set_transient( $id, $result);
[2066] Fix | Delete
}
[2067] Fix | Delete
}
[2068] Fix | Delete
return $result;
[2069] Fix | Delete
}
[2070] Fix | Delete
function ampforwp_get_user_roles(){
[2071] Fix | Delete
global $wp_roles;
[2072] Fix | Delete
$allroles = array();
[2073] Fix | Delete
foreach ( $wp_roles->roles as $key=>$value ){
[2074] Fix | Delete
$allroles[esc_attr($key)] = esc_html($value['name']);
[2075] Fix | Delete
}
[2076] Fix | Delete
return $allroles;
[2077] Fix | Delete
}
[2078] Fix | Delete
function ampforwp_default_user_roles(){
[2079] Fix | Delete
$roles = '';
[2080] Fix | Delete
$metabox_access = ampforwp_get_setting('amp-meta-permissions');
[2081] Fix | Delete
if($metabox_access == 'admin'){
[2082] Fix | Delete
$rba = ampforwp_get_setting('ampforwp-role-based-access');
[2083] Fix | Delete
if(empty($rba)){
[2084] Fix | Delete
$roles = array('administrator');
[2085] Fix | Delete
}else{
[2086] Fix | Delete
$roles = ampforwp_get_setting('ampforwp-role-based-access');
[2087] Fix | Delete
}
[2088] Fix | Delete
}else{
[2089] Fix | Delete
$rba = ampforwp_get_setting('ampforwp-role-based-access');
[2090] Fix | Delete
if(empty($rba)){
[2091] Fix | Delete
$roles = array('administrator','editor');
[2092] Fix | Delete
}else{
[2093] Fix | Delete
$roles = ampforwp_get_setting('ampforwp-role-based-access');
[2094] Fix | Delete
}
[2095] Fix | Delete
}
[2096] Fix | Delete
return $roles;
[2097] Fix | Delete
}
[2098] Fix | Delete
function ampforwp_get_generated_custom_taxonomies(){
[2099] Fix | Delete
$taxonomies = '';
[2100] Fix | Delete
$taxonomies = get_transient('ampforwp_get_taxonomies');
[2101] Fix | Delete
return $taxonomies;
[2102] Fix | Delete
}
[2103] Fix | Delete
$amp_custom_tax_option = array();
[2104] Fix | Delete
$taxonomies = ampforwp_get_generated_custom_taxonomies();
[2105] Fix | Delete
if( !empty($taxonomies) && $taxonomies != false){
[2106] Fix | Delete
$amp_custom_tax_option = array(
[2107] Fix | Delete
'id' => 'ampforwp-custom-taxonomies',
[2108] Fix | Delete
'type' => 'select',
[2109] Fix | Delete
'title' => esc_html__('Custom Taxonomies', 'accelerated-mobile-pages'),
[2110] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Archives for Custom Taxonomies.', 'accelerated-mobile-pages'),
[2111] Fix | Delete
'multi' => true,
[2112] Fix | Delete
'options' => ampforwp_get_generated_custom_taxonomies(),
[2113] Fix | Delete
'required' => array('ampforwp-archive-support', '=' , '1')
[2114] Fix | Delete
);
[2115] Fix | Delete
}
[2116] Fix | Delete
$design_types = ampforwp_get_setting('amp-design-selector');
[2117] Fix | Delete
$secondary_text = 'Content';
[2118] Fix | Delete
if($design_types == 1 || $design_types == 2 || $design_types == 3){
[2119] Fix | Delete
$secondary_text = 'Secondary';
[2120] Fix | Delete
}
[2121] Fix | Delete
$show_for_admin = '';
[2122] Fix | Delete
if(!current_user_can('administrator') ){
[2123] Fix | Delete
$show_for_admin = 'hide';
[2124] Fix | Delete
}
[2125] Fix | Delete
// AMP to WP Default value
[2126] Fix | Delete
function ampforwp_amp2wp_default(){
[2127] Fix | Delete
$default = 0;
[2128] Fix | Delete
if (true == ampforwp_get_setting('ampforwp-amp-takeover')){
[2129] Fix | Delete
return $default;
[2130] Fix | Delete
}
[2131] Fix | Delete
$theme = '';
[2132] Fix | Delete
$theme = wp_get_theme(); // gets the current theme
[2133] Fix | Delete
[2134] Fix | Delete
if ( 'AMP WordPress Theme' == $theme->name || 'AMP WordPress Theme' == $theme->parent_theme ) {
[2135] Fix | Delete
$default = 1;
[2136] Fix | Delete
}
[2137] Fix | Delete
return $default;
[2138] Fix | Delete
}
[2139] Fix | Delete
Redux::setSection( $opt_name, array(
[2140] Fix | Delete
'title' => esc_html__( 'General', 'accelerated-mobile-pages' ),
[2141] Fix | Delete
'id' => 'opt-text-subsection',
[2142] Fix | Delete
'subsection' => true,
[2143] Fix | Delete
'fields' => array(
[2144] Fix | Delete
array(
[2145] Fix | Delete
'id' => 'amp-logo',
[2146] Fix | Delete
'type' => 'section',
[2147] Fix | Delete
'title' => esc_html__('Branding', 'accelerated-mobile-pages'),
[2148] Fix | Delete
'indent' => true,
[2149] Fix | Delete
'layout_type' => 'accordion',
[2150] Fix | Delete
'accordion-open'=> 1,
[2151] Fix | Delete
),
[2152] Fix | Delete
[2153] Fix | Delete
array(
[2154] Fix | Delete
'id' => 'opt-media',
[2155] Fix | Delete
'type' => 'media',
[2156] Fix | Delete
'url' => true,
[2157] Fix | Delete
'title' => esc_html__('Logo', 'accelerated-mobile-pages'),
[2158] Fix | Delete
'tooltip-subtitle'=>esc_html__('Upload a logo for the AMP version. (Recommended logo size: 190x36)', 'accelerated-mobile-pages'),
[2159] Fix | Delete
'default' => array('url' => ampforwp_default_logo_settings() ),
[2160] Fix | Delete
),
[2161] Fix | Delete
array(
[2162] Fix | Delete
'id' => 'ampforwp-custom-logo-dimensions',
[2163] Fix | Delete
'title' => esc_html__('Resize', 'accelerated-mobile-pages'),
[2164] Fix | Delete
'type' => 'switch',
[2165] Fix | Delete
'default' => 0,
[2166] Fix | Delete
'required'=>array('opt-media','!=',''),
[2167] Fix | Delete
),
[2168] Fix | Delete
array(
[2169] Fix | Delete
'id' => 'ampforwp-custom-logo-dimensions-options',
[2170] Fix | Delete
'title' => esc_html__('Resize Method', 'accelerated-mobile-pages'),
[2171] Fix | Delete
'type' => 'select',
[2172] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2173] Fix | Delete
'default' => '100',
[2174] Fix | Delete
'options' => array(
[2175] Fix | Delete
'flexible' => 'Flexible Width',
[2176] Fix | Delete
'prescribed' => 'Fixed Width'
[2177] Fix | Delete
),
[2178] Fix | Delete
'default' => ampforwp_custom_logo_dimensions_options(),
[2179] Fix | Delete
'required'=>array('ampforwp-custom-logo-dimensions','=','1'),
[2180] Fix | Delete
),
[2181] Fix | Delete
array(
[2182] Fix | Delete
'id' => 'ampforwp-custom-logo-dimensions-slider',
[2183] Fix | Delete
'title' => esc_html__('Resize Your Logo', 'accelerated-mobile-pages'),
[2184] Fix | Delete
'type' => 'amp_slider',
[2185] Fix | Delete
'class' => 'child_opt',
[2186] Fix | Delete
'default' => '100',
[2187] Fix | Delete
'min' => 0,
[2188] Fix | Delete
'max' => 100,
[2189] Fix | Delete
'required'=>array('ampforwp-custom-logo-dimensions-options','=','flexible'),
[2190] Fix | Delete
),
[2191] Fix | Delete
array(
[2192] Fix | Delete
'class' => 'child_opt',
[2193] Fix | Delete
'id' => 'opt-media-width',
[2194] Fix | Delete
'type' => 'text',
[2195] Fix | Delete
'title' => esc_html__('Logo Width', 'accelerated-mobile-pages'),
[2196] Fix | Delete
'tooltip-subtitle' => __('Default width is 190 pixels', 'accelerated-mobile-pages'),
[2197] Fix | Delete
'default' => '190',
[2198] Fix | Delete
'required'=>array('ampforwp-custom-logo-dimensions-options','=','prescribed'),
[2199] Fix | Delete
),
[2200] Fix | Delete
array(
[2201] Fix | Delete
'class' => 'child_opt',
[2202] Fix | Delete
'id' => 'opt-media-height',
[2203] Fix | Delete
'type' => 'text',
[2204] Fix | Delete
'title' => esc_html__('Logo Height', 'accelerated-mobile-pages'),
[2205] Fix | Delete
'tooltip-subtitle' => __('Default height is 36 pixels', 'accelerated-mobile-pages'),
[2206] Fix | Delete
'default' => '36',
[2207] Fix | Delete
'required'=>array('ampforwp-custom-logo-dimensions-options','=','prescribed'),
[2208] Fix | Delete
[2209] Fix | Delete
),
[2210] Fix | Delete
array(
[2211] Fix | Delete
'id' => 'amp-support',
[2212] Fix | Delete
'type' => 'section',
[2213] Fix | Delete
'title' => esc_html__('AMP Support', 'accelerated-mobile-pages'),
[2214] Fix | Delete
'indent' => true,
[2215] Fix | Delete
'layout_type' => 'accordion',
[2216] Fix | Delete
'accordion-open'=> 1,
[2217] Fix | Delete
),
[2218] Fix | Delete
array(
[2219] Fix | Delete
'id' =>'amp-on-off-for-all-posts',
[2220] Fix | Delete
'type' => 'switch',
[2221] Fix | Delete
'title' => esc_html__('Posts', 'accelerated-mobile-pages'),
[2222] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Posts', 'accelerated-mobile-pages'),
[2223] Fix | Delete
'default' => 1,
[2224] Fix | Delete
),
[2225] Fix | Delete
array(
[2226] Fix | Delete
'id' =>'amp-on-off-for-all-pages',
[2227] Fix | Delete
'type' => 'switch',
[2228] Fix | Delete
'title' => esc_html__('Pages', 'accelerated-mobile-pages'),
[2229] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Pages.', 'accelerated-mobile-pages'),
[2230] Fix | Delete
'default' => 1,
[2231] Fix | Delete
),
[2232] Fix | Delete
array(
[2233] Fix | Delete
'id' => 'ampforwp-homepage-on-off-support',
[2234] Fix | Delete
'type' => 'switch',
[2235] Fix | Delete
'title' => esc_html__('Homepage', 'accelerated-mobile-pages'),
[2236] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Homepage.', 'accelerated-mobile-pages'),
[2237] Fix | Delete
'default' => '1'
[2238] Fix | Delete
),
[2239] Fix | Delete
array(
[2240] Fix | Delete
'id' =>'amp-frontpage-select-option',
[2241] Fix | Delete
'type' => 'switch',
[2242] Fix | Delete
'title' => esc_html__('Custom Front Page', 'accelerated-mobile-pages'),
[2243] Fix | Delete
'default' => 0,
[2244] Fix | Delete
'tooltip-subtitle' => esc_html__('Set Custom Front Page as Homepage', 'accelerated-mobile-pages'),
[2245] Fix | Delete
'true' => 'true',
[2246] Fix | Delete
'false' => 'false',
[2247] Fix | Delete
'required' => array('ampforwp-homepage-on-off-support','=','1'),
[2248] Fix | Delete
),
[2249] Fix | Delete
array(
[2250] Fix | Delete
'id' => 'amp-frontpage-select-option-pages',
[2251] Fix | Delete
'type' => 'select',
[2252] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2253] Fix | Delete
'title' => esc_html__('Select Page as Front Page', 'accelerated-mobile-pages'),
[2254] Fix | Delete
'required' => array('amp-frontpage-select-option', '=' , '1'),
[2255] Fix | Delete
// Must provide key => value pairs for select options
[2256] Fix | Delete
'data' => 'page',
[2257] Fix | Delete
'args' => array(
[2258] Fix | Delete
'post_type' => 'page',
[2259] Fix | Delete
'posts_per_page' => 500
[2260] Fix | Delete
),
[2261] Fix | Delete
'default' => '2',
[2262] Fix | Delete
),
[2263] Fix | Delete
array(
[2264] Fix | Delete
'id' => 'ampforwp-title-on-front-page',
[2265] Fix | Delete
'type' => 'switch',
[2266] Fix | Delete
'class' => 'child_opt',
[2267] Fix | Delete
'url' => true,
[2268] Fix | Delete
'title' => esc_html__('Title on Static Front Page', 'accelerated-mobile-pages'),
[2269] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable display of title on the Static Front Page.', 'accelerated-mobile-pages'),
[2270] Fix | Delete
'default' => 0,
[2271] Fix | Delete
'required' => array('amp-frontpage-select-option', '=' , '1'),
[2272] Fix | Delete
),
[2273] Fix | Delete
[2274] Fix | Delete
array(
[2275] Fix | Delete
'id' => 'ampforwp-archive-support',
[2276] Fix | Delete
'type' => 'switch',
[2277] Fix | Delete
'title' => esc_html__('Archives [Category & Tags]', 'accelerated-mobile-pages'),
[2278] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Archives.', 'accelerated-mobile-pages'),
[2279] Fix | Delete
'default' => '1'
[2280] Fix | Delete
),
[2281] Fix | Delete
array(
[2282] Fix | Delete
'id' => 'ampforwp-archive-support-cat',
[2283] Fix | Delete
'type' => 'switch',
[2284] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2285] Fix | Delete
'title' => esc_html__('Category', 'accelerated-mobile-pages'),
[2286] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Categories.', 'accelerated-mobile-pages'),
[2287] Fix | Delete
'default' => '1',
[2288] Fix | Delete
'required' => array('ampforwp-archive-support', '=' , '1')
[2289] Fix | Delete
),
[2290] Fix | Delete
array(
[2291] Fix | Delete
'id' => 'ampforwp-archive-support-tag',
[2292] Fix | Delete
'type' => 'switch',
[2293] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2294] Fix | Delete
'title' => esc_html__('Tags', 'accelerated-mobile-pages'),
[2295] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable AMP Support on Tags.', 'accelerated-mobile-pages'),
[2296] Fix | Delete
'default' => '1',
[2297] Fix | Delete
'required' => array('ampforwp-archive-support', '=' , '1')
[2298] Fix | Delete
),
[2299] Fix | Delete
$amp_cpt_option,
[2300] Fix | Delete
$amp_custom_tax_option,
[2301] Fix | Delete
array(
[2302] Fix | Delete
'id' => 'ampforwp-amp-takeover',
[2303] Fix | Delete
'type' => 'switch',
[2304] Fix | Delete
'title' => esc_html__('AMP Takeover (Beta)', 'accelerated-mobile-pages'),
[2305] Fix | Delete
'tooltip-subtitle' => esc_html__('Make your non-amp to load the AMP (AMP & NON-AMP both will be AMP with same design)', 'accelerated-mobile-pages'),
[2306] Fix | Delete
'default' => '0'
[2307] Fix | Delete
),
[2308] Fix | Delete
)
[2309] Fix | Delete
) );//END
[2310] Fix | Delete
/* $pb_title = 'Page Builder';
[2311] Fix | Delete
$theme = wp_get_theme(); // gets the current theme
[2312] Fix | Delete
if( class_exists('Vc_Manager') || ( class_exists('ET_Builder_Plugin') || 'Divi' == $theme->name || 'Divi' == $theme->parent_theme ) || did_action( 'elementor/loaded' ) ){
[2313] Fix | Delete
if(class_exists('Vc_Manager') ){
[2314] Fix | Delete
$pb_title = 'WPBakery Page Builder Support';
[2315] Fix | Delete
}
[2316] Fix | Delete
if( class_exists('ET_Builder_Plugin') || 'Divi' == $theme->name || 'Divi' == $theme->parent_theme ){
[2317] Fix | Delete
$pb_title = 'Divi Builder Support';
[2318] Fix | Delete
}
[2319] Fix | Delete
if(did_action( 'elementor/loaded' ) ){
[2320] Fix | Delete
$pb_title = 'Elementor Support';
[2321] Fix | Delete
}
[2322] Fix | Delete
}
[2323] Fix | Delete
// AMP Content Page Builder SECTION
[2324] Fix | Delete
Redux::setSection( $opt_name, array(
[2325] Fix | Delete
'title' => esc_html__( $pb_title, 'accelerated-mobile-pages' ),
[2326] Fix | Delete
'id' => 'amp-content-builder',
[2327] Fix | Delete
'class' => 'ampforwp_new_features ',
[2328] Fix | Delete
'subsection' => true,
[2329] Fix | Delete
'fields' => $pb_for_amp,
[2330] Fix | Delete
)
[2331] Fix | Delete
[2332] Fix | Delete
) ;*/
[2333] Fix | Delete
[2334] Fix | Delete
// Ads Section
[2335] Fix | Delete
if ( ! function_exists('amp_activate') ) {
[2336] Fix | Delete
ampforwp_admin_advertisement_options($opt_name);
[2337] Fix | Delete
}
[2338] Fix | Delete
if ( ! function_exists('ampforwp_seo_default') ) {
[2339] Fix | Delete
function ampforwp_seo_default() {
[2340] Fix | Delete
$default = '';
[2341] Fix | Delete
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
[2342] Fix | Delete
if ( is_plugin_active('wordpress-seo/wp-seo.php') ) {
[2343] Fix | Delete
$default = 'yoast';
[2344] Fix | Delete
}
[2345] Fix | Delete
elseif ( is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php') ) {
[2346] Fix | Delete
$default = 'aioseo';
[2347] Fix | Delete
}
[2348] Fix | Delete
elseif ( defined( 'RANK_MATH_FILE' ) ) {
[2349] Fix | Delete
$default = 'rank_math';
[2350] Fix | Delete
}
[2351] Fix | Delete
elseif ( function_exists('genesis_theme_support') ) {
[2352] Fix | Delete
$default = 'genesis';
[2353] Fix | Delete
}
[2354] Fix | Delete
elseif ( is_plugin_active('wp-seopress/seopress.php') ) {
[2355] Fix | Delete
$default = 'seopress';
[2356] Fix | Delete
}
[2357] Fix | Delete
elseif ( function_exists( 'the_seo_framework' ) ) {
[2358] Fix | Delete
$default = 'seo_framework';
[2359] Fix | Delete
}
[2360] Fix | Delete
elseif ( class_exists('SQ_Classes_ObjController') ) {
[2361] Fix | Delete
$default = 'squirrly';
[2362] Fix | Delete
}
[2363] Fix | Delete
return $default;
[2364] Fix | Delete
}
[2365] Fix | Delete
}
[2366] Fix | Delete
$seo_options = array(
[2367] Fix | Delete
'yoast' => 'Yoast',
[2368] Fix | Delete
'aioseo' => 'All in One SEO',
[2369] Fix | Delete
'rank_math' => 'Rank Math SEO',
[2370] Fix | Delete
'genesis' => 'Genesis',
[2371] Fix | Delete
'seopress' => 'SEOPress',
[2372] Fix | Delete
'bridge' => 'Bridge Qode SEO',
[2373] Fix | Delete
'seo_framework' => 'The SEO Framework',
[2374] Fix | Delete
'squirrly' => 'Squirrly SEO',
[2375] Fix | Delete
'smartcrawl' => 'SmartCrawl'
[2376] Fix | Delete
);
[2377] Fix | Delete
// SEO SECTION
[2378] Fix | Delete
Redux::setSection( $opt_name, array(
[2379] Fix | Delete
'title' => esc_html__( 'SEO', 'accelerated-mobile-pages' ),
[2380] Fix | Delete
'id' => 'amp-seo',
[2381] Fix | Delete
'subsection' => true,
[2382] Fix | Delete
'fields' => array(
[2383] Fix | Delete
array(
[2384] Fix | Delete
'id' => 'ampforwp-seo-general-section',
[2385] Fix | Delete
'type' => 'section',
[2386] Fix | Delete
'title' => esc_html__('General', 'accelerated-mobile-pages'),
[2387] Fix | Delete
'indent' => true,
[2388] Fix | Delete
'layout_type' => 'accordion',
[2389] Fix | Delete
'accordion-open'=> 1,
[2390] Fix | Delete
),
[2391] Fix | Delete
array(
[2392] Fix | Delete
'id' => 'ampforwp-seo-meta-desc',
[2393] Fix | Delete
'type' => 'switch',
[2394] Fix | Delete
'title' => esc_html__('Meta Description', 'accelerated-mobile-pages'),
[2395] Fix | Delete
'tooltip-subtitle' => esc_html__('The meta tag that displays in head', 'accelerated-mobile-pages'),
[2396] Fix | Delete
'default' => 1
[2397] Fix | Delete
),
[2398] Fix | Delete
array(
[2399] Fix | Delete
'id' => 'ampforwp-seo-og-meta-tags',
[2400] Fix | Delete
'type' => 'switch',
[2401] Fix | Delete
'title' => esc_html__('OpenGraph Meta Tags', 'accelerated-mobile-pages'),
[2402] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Default OpenGraph Meta Tags', 'accelerated-mobile-pages'),
[2403] Fix | Delete
'default' => 0,
[2404] Fix | Delete
),
[2405] Fix | Delete
array(
[2406] Fix | Delete
'id' => 'ampforwp-seo-custom-additional-meta',
[2407] Fix | Delete
'type' => 'textarea',
[2408] Fix | Delete
'title' => esc_html__('Head Section', 'accelerated-mobile-pages'),
[2409] Fix | Delete
'tooltip-subtitle' => esc_html__('Adds additional Meta to the head section', 'accelerated-mobile-pages', 'accelerated-mobile-pages'),
[2410] Fix | Delete
'placeholder' => esc_html__('<!-- Paste your Additional HTML , that goes between <head> </head> tags -->','accelerated-mobile-pages')
[2411] Fix | Delete
),
[2412] Fix | Delete
array(
[2413] Fix | Delete
'id' => 'ampforwp-seo-plugins-section',
[2414] Fix | Delete
'type' => 'section',
[2415] Fix | Delete
'title' => esc_html__('SEO Plugin Integration', 'accelerated-mobile-pages'),
[2416] Fix | Delete
'indent' => true,
[2417] Fix | Delete
'layout_type' => 'accordion',
[2418] Fix | Delete
'accordion-open'=> 1,
[2419] Fix | Delete
),
[2420] Fix | Delete
array(
[2421] Fix | Delete
'id' => 'ampforwp-seo-selection',
[2422] Fix | Delete
'type' => 'select',
[2423] Fix | Delete
'title' => esc_html__('Select SEO Plugin', 'accelerated-mobile-pages'),
[2424] Fix | Delete
'options' => $seo_options,
[2425] Fix | Delete
'default' => ampforwp_seo_default(),
[2426] Fix | Delete
),
[2427] Fix | Delete
array(
[2428] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2429] Fix | Delete
'id' => 'ampforwp-seo-rank_math-meta',
[2430] Fix | Delete
'type' => 'switch',
[2431] Fix | Delete
'tooltip-subtitle' => esc_html__('Adds Social and Open Graph Meta Tags from Rank Math', 'accelerated-mobile-pages'),
[2432] Fix | Delete
'title' => esc_html__( 'Meta Tags from Rank Math', 'accelerated-mobile-pages' ),
[2433] Fix | Delete
'default' => '1',
[2434] Fix | Delete
'required' => array('ampforwp-seo-selection', '=' , 'rank_math'),
[2435] Fix | Delete
),
[2436] Fix | Delete
array(
[2437] Fix | Delete
'class' => 'child_opt',
[2438] Fix | Delete
'id' => 'ampforwp-seo-rank_math-schema',
[2439] Fix | Delete
'type' => 'switch',
[2440] Fix | Delete
'tooltip-subtitle' => esc_html__('Adds Rank Math ld+json for AMP page', 'accelerated-mobile-pages'),
[2441] Fix | Delete
'title' => esc_html__( 'Rank Math ld+json data', 'accelerated-mobile-pages' ),
[2442] Fix | Delete
'default' => '1',
[2443] Fix | Delete
'required' => array('ampforwp-seo-selection', '=' , 'rank_math'),
[2444] Fix | Delete
),
[2445] Fix | Delete
array(
[2446] Fix | Delete
'class' => 'child_opt',
[2447] Fix | Delete
'id' => 'ampforwp-seo-rank_math-canonical',
[2448] Fix | Delete
'type' => 'switch',
[2449] Fix | Delete
'tooltip-subtitle' => esc_html__('Pull Canonical from Rank Math for AMP pages', 'accelerated-mobile-pages'),
[2450] Fix | Delete
'title' => esc_html__( 'Canonical from Rank Math', 'accelerated-mobile-pages' ),
[2451] Fix | Delete
'default' => '1',
[2452] Fix | Delete
'required' => array('ampforwp-seo-selection', '=' , 'rank_math'),
[2453] Fix | Delete
),
[2454] Fix | Delete
array(
[2455] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2456] Fix | Delete
'id' => 'ampforwp-seo-yoast-meta',
[2457] Fix | Delete
'type' => 'switch',
[2458] Fix | Delete
'tooltip-subtitle' => esc_html__('Adds Social and Open Graph Meta Tags from Yoast', 'accelerated-mobile-pages'),
[2459] Fix | Delete
'title' => esc_html__( 'Meta Tags from Yoast', 'accelerated-mobile-pages' ),
[2460] Fix | Delete
'default' => '1',
[2461] Fix | Delete
'required' => array('ampforwp-seo-selection', '=' , 'yoast'),
[2462] Fix | Delete
),
[2463] Fix | Delete
array(
[2464] Fix | Delete
'class' => 'child_opt',
[2465] Fix | Delete
'id' => 'ampforwp-seo-yoast-description',
[2466] Fix | Delete
'type' => 'switch',
[2467] Fix | Delete
'tooltip-subtitle' => esc_html__('Adds Yoast Custom description to ld+json for AMP page', 'accelerated-mobile-pages'),
[2468] Fix | Delete
'title' => esc_html__( 'Yoast Description in ld+json', 'accelerated-mobile-pages' ),
[2469] Fix | Delete
'default' => 0,
[2470] Fix | Delete
'required' => array('ampforwp-seo-selection', '=' , 'yoast'),
[2471] Fix | Delete
),
[2472] Fix | Delete
array(
[2473] Fix | Delete
'class' => 'child_opt',
[2474] Fix | Delete
'id' => 'ampforwp-seo-yoast-canonical',
[2475] Fix | Delete
'type' => 'switch',
[2476] Fix | Delete
'tooltip-subtitle' => esc_html__('Pull Canonical from Yoast for AMP pages', 'accelerated-mobile-pages'),
[2477] Fix | Delete
'title' => esc_html__( 'Canonical from Yoast', 'accelerated-mobile-pages' ),
[2478] Fix | Delete
'default' => 0,
[2479] Fix | Delete
'required' => array('ampforwp-seo-selection', '=' , 'yoast'),
[2480] Fix | Delete
),
[2481] Fix | Delete
array(
[2482] Fix | Delete
'id' => 'ampforwp-yoast-bread-crumb',
[2483] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2484] Fix | Delete
'type' => 'switch',
[2485] Fix | Delete
'default' => false,
[2486] Fix | Delete
'title' => esc_html__('Breadcrumbs From Yoast', 'accelerated-mobile-pages'),
[2487] Fix | Delete
'required' => array(
[2488] Fix | Delete
array('ampforwp-bread-crumb', '=' , '1'),
[2489] Fix | Delete
array('ampforwp-seo-selection', '=' , 'yoast')
[2490] Fix | Delete
),
[2491] Fix | Delete
),
[2492] Fix | Delete
array(
[2493] Fix | Delete
'class' => 'child_opt',
[2494] Fix | Delete
'id' => 'ampforwp-seo-yoast-schema',
[2495] Fix | Delete
'type' => 'switch',
[2496] Fix | Delete
'tooltip-subtitle' => esc_html__('Fetch Schema from the Yoast Seo for AMP Pages', 'accelerated-mobile-pages'),
[2497] Fix | Delete
'title' => esc_html__( 'Schema from Yoast', 'accelerated-mobile-pages' ),
[2498] Fix | Delete
'default' => 0,
[2499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function