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
'desc' => esc_html__('Switch this on to enable advertising on Instant Article pages.', 'accelerated-mobile-pages'),
[3000] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3001] Fix | Delete
),
[3002] Fix | Delete
array(
[3003] Fix | Delete
'id' => 'fb-instant-article-ad-type',
[3004] Fix | Delete
'type' => 'select',
[3005] Fix | Delete
'title' => esc_html__('Select Advertisement Format', 'accelerated-mobile-pages'),
[3006] Fix | Delete
'default' => '1',
[3007] Fix | Delete
'desc' => esc_html__('Select the type of advertising on Instant Article pages you want to display.', 'accelerated-mobile-pages'),
[3008] Fix | Delete
'options' => array(
[3009] Fix | Delete
'1' => 'Facebook Audience Network',
[3010] Fix | Delete
'2' => 'Custom iframe URL',
[3011] Fix | Delete
'3' => 'Custom Embed Code'
[3012] Fix | Delete
),
[3013] Fix | Delete
'required' => array('fb-instant-article-ads', '=', 1)
[3014] Fix | Delete
),
[3015] Fix | Delete
array(
[3016] Fix | Delete
'id' => 'fb-instant-article-ad-id',
[3017] Fix | Delete
'type' => 'text',
[3018] Fix | Delete
'title' => esc_html__('Enter your Audience Network Placement ID', 'accelerated-mobile-pages'),
[3019] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s">%s</a>.', esc_html__('You can find out more about this','accelerated-mobile-pages'), esc_url('https://developers.facebook.com/docs/instant-articles/monetization/audience-network'),esc_html__('here','accelerated-mobile-pages') ),
[3020] Fix | Delete
'desc' => sprintf('<a href="%s" target="_blank">%s</a> %s', esc_url('https://ampforwp.com/tutorials/article/how-to-enter-audience-network-placement-id-of-advertisement-in-the-instant-article/'), esc_html__('Click here','accelerated-mobile-pages'), esc_html__('on how to get Audience Network Placement Id.','accelerated-mobile-pages')),
[3021] Fix | Delete
'required' => array('fb-instant-article-ad-type', '=', '1')
[3022] Fix | Delete
),
[3023] Fix | Delete
array(
[3024] Fix | Delete
'id' => 'fb-instant-article-custom-iframe-ad',
[3025] Fix | Delete
'type' => 'text',
[3026] Fix | Delete
'placeholder'=> 'https://www.adserver.com/ss',
[3027] Fix | Delete
'title' => esc_html__('Enter your Custom iframe ad source URL'),
[3028] Fix | Delete
'required' => array('fb-instant-article-ad-type', '=', '2')
[3029] Fix | Delete
),
[3030] Fix | Delete
array(
[3031] Fix | Delete
'id' => 'fb-instant-article-custom-embed-ad',
[3032] Fix | Delete
'type' => 'textarea',
[3033] Fix | Delete
'placeholder'=> '',
[3034] Fix | Delete
'title' => esc_html__('Enter your Custom Embed ad code'),
[3035] Fix | Delete
'required' => array('fb-instant-article-ad-type', '=', '3')
[3036] Fix | Delete
),
[3037] Fix | Delete
array(
[3038] Fix | Delete
'id' => 'fb-instant-article-ad-density-setup',
[3039] Fix | Delete
'type' => 'select',
[3040] Fix | Delete
'title' => esc_html__('How often should ads show in Instant Article pages', 'accelerated-mobile-pages'),
[3041] Fix | Delete
'options' => array(
[3042] Fix | Delete
'default' => esc_html__('Every 250 words', 'accelerated-mobile-pages' ),
[3043] Fix | Delete
'medium' => esc_html__('Every 350 words', 'accelerated-mobile-pages' ),
[3044] Fix | Delete
'low' => esc_html__('Every 500 words', 'accelerated-mobile-pages' ),
[3045] Fix | Delete
),
[3046] Fix | Delete
'required' => array('fb-instant-article-ads', '=', 1),
[3047] Fix | Delete
'default' => 'default',
[3048] Fix | Delete
),
[3049] Fix | Delete
array(
[3050] Fix | Delete
'id' => 'fb-instant-article-analytics',
[3051] Fix | Delete
'type' => 'switch',
[3052] Fix | Delete
'title' => esc_html__('Analytics', 'accelerated-mobile-pages'),
[3053] Fix | Delete
'default' => 0,
[3054] Fix | Delete
'true' => 'true',
[3055] Fix | Delete
'false' => 'false',
[3056] Fix | Delete
'desc' => esc_html__('Switch this on to enable analytics on Instant Article pages.', 'accelerated-mobile-pages'),
[3057] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3058] Fix | Delete
),
[3059] Fix | Delete
array(
[3060] Fix | Delete
'id' => 'fb-instant-article-analytics-code',
[3061] Fix | Delete
'type' => 'textarea',
[3062] Fix | Delete
'title' => esc_html__('Enter your Analytics script code', 'accelerated-mobile-pages'),
[3063] Fix | Delete
'tooltip-subtitle' => esc_html__('Do not enter iframe tag. Find out more about support <a href="https://developers.facebook.com/docs/instant-articles/analytics">here</a> ', 'accelerated-mobile-pages'),
[3064] Fix | Delete
'required' => array('fb-instant-article-analytics', '=', 1)
[3065] Fix | Delete
),
[3066] Fix | Delete
array(
[3067] Fix | Delete
'id' => 'fb-instant-crawler-ingestion',
[3068] Fix | Delete
'type' => 'switch',
[3069] Fix | Delete
'title' => esc_html__('Crawler Ingestion', 'accelerated-mobile-pages'),
[3070] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a>',
[3071] Fix | Delete
esc_html__('Add ia:markup meta tag. Find out more about', 'accelerated-mobile-pages'), esc_url('https://developers.facebook.com/docs/instant-articles/crawler-ingestion'), esc_html__('here','accelerated-mobile-pages')),
[3072] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3073] Fix | Delete
),
[3074] Fix | Delete
array(
[3075] Fix | Delete
'id' => 'fb-instant-feedback',
[3076] Fix | Delete
'type' => 'switch',
[3077] Fix | Delete
'title' => esc_html__('Feedback for Media', 'accelerated-mobile-pages'),
[3078] Fix | Delete
'tooltip-subtitle' => esc_html__('Allow like and comment for media', 'accelerated-mobile-pages'),
[3079] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3080] Fix | Delete
),
[3081] Fix | Delete
array(
[3082] Fix | Delete
'id' =>'hide-amp-ia-categories',
[3083] Fix | Delete
'type' => 'select',
[3084] Fix | Delete
'title' => esc_html__('Select Categories to Hide in IA'),
[3085] Fix | Delete
'tooltip-subtitle' => esc_html__( 'Hide IA from all the posts of a selected category.', 'accelerated-mobile-pages' ),
[3086] Fix | Delete
'multi' => true,
[3087] Fix | Delete
'ajax' => true,
[3088] Fix | Delete
'data-action' => 'ampforwp_categories',
[3089] Fix | Delete
'options' => ampforwp_get_categories('hide-amp-ia-categories'),
[3090] Fix | Delete
'data' => 'categories',
[3091] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3092] Fix | Delete
),
[3093] Fix | Delete
array(
[3094] Fix | Delete
'id' => 'fbia-header-text-area',
[3095] Fix | Delete
'type' => 'textarea',
[3096] Fix | Delete
'title' => esc_html__('Custom HTML in Head Tag', 'accelerated-mobile-pages'),
[3097] Fix | Delete
'desc' => esc_html__('Add custom HTML in Head Tag in Instant Articles Markup. Click','accelerated-mobile-pages').' <a href="https://developers.facebook.com/docs/instant-articles/guides/articlecreate" target="_blank">'.esc_html__('here', 'accelerated-mobile-pages').'</a>'. esc_html__(' for more info on Instant Articles Markup', 'accelerated-mobile-pages'),
[3098] Fix | Delete
'default' => '',
[3099] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3100] Fix | Delete
),
[3101] Fix | Delete
array(
[3102] Fix | Delete
'id' => 'fbia-body-text-area',
[3103] Fix | Delete
'type' => 'textarea',
[3104] Fix | Delete
'title' => esc_html__('Custom HTML in Body Tag', 'accelerated-mobile-pages'),
[3105] Fix | Delete
'desc' => esc_html__('Add custom HTML in Body Tag in Instant Articles Markup. Click','accelerated-mobile-pages').' <a href="https://developers.facebook.com/docs/instant-articles/guides/articlecreate" target="_blank">'.esc_html__('here', 'accelerated-mobile-pages').'</a>'. esc_html__(' for more info on Instant Articles Markup', 'accelerated-mobile-pages'),
[3106] Fix | Delete
'default' => '',
[3107] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3108] Fix | Delete
),
[3109] Fix | Delete
array(
[3110] Fix | Delete
'id' => 'fbia-footer-text-area',
[3111] Fix | Delete
'type' => 'textarea',
[3112] Fix | Delete
'title' => esc_html__('Custom HTML in Footer Tag', 'accelerated-mobile-pages'),
[3113] Fix | Delete
'desc' => esc_html__('Add custom HTML in Footer Tag in Instant Articles Markup. Click','accelerated-mobile-pages').' <a href="https://developers.facebook.com/docs/instant-articles/guides/articlecreate" target="_blank">'.esc_html__('here', 'accelerated-mobile-pages').'</a>'. esc_html__(' for more info on Instant Articles Markup', 'accelerated-mobile-pages'),
[3114] Fix | Delete
'default' => '',
[3115] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[3116] Fix | Delete
),
[3117] Fix | Delete
),
[3118] Fix | Delete
)
[3119] Fix | Delete
);
[3120] Fix | Delete
function ampforwp_get_post_percent(){
[3121] Fix | Delete
$total_post = $post_count = $post_percent = '';
[3122] Fix | Delete
$args=array(
[3123] Fix | Delete
'fields' => 'ids',
[3124] Fix | Delete
'post_type' => 'post',
[3125] Fix | Delete
'posts_per_page'=> 1,
[3126] Fix | Delete
'ignore_sticky_posts'=>1,
[3127] Fix | Delete
'has_password' => false ,
[3128] Fix | Delete
'post_status'=> 'publish',
[3129] Fix | Delete
'no_found_rows' => true,
[3130] Fix | Delete
'meta_query' => array(
[3131] Fix | Delete
array(
[3132] Fix | Delete
'key' => 'ampforwp-amp-on-off',
[3133] Fix | Delete
'compare' => 'NOT EXISTS',
[3134] Fix | Delete
)
[3135] Fix | Delete
)
[3136] Fix | Delete
);
[3137] Fix | Delete
$my_query = new wp_query( $args );
[3138] Fix | Delete
$post_count = $my_query->post_count;
[3139] Fix | Delete
if ($post_count == 0) {
[3140] Fix | Delete
return 100;
[3141] Fix | Delete
}
[3142] Fix | Delete
$count_posts = wp_count_posts();
[3143] Fix | Delete
if($count_posts){
[3144] Fix | Delete
$total_post = $count_posts->publish;
[3145] Fix | Delete
}
[3146] Fix | Delete
$post_count = $total_post-$post_count;
[3147] Fix | Delete
$post_percent = ($post_count/$total_post)*100;
[3148] Fix | Delete
$post_percent = $post_percent - 24;
[3149] Fix | Delete
return round($post_percent);
[3150] Fix | Delete
}
[3151] Fix | Delete
$post_percent = 0;
[3152] Fix | Delete
$current_page = ampforwp_get_admin_current_page();
[3153] Fix | Delete
$refresh_btn = "";
[3154] Fix | Delete
$refresh_text = esc_html__('All post metas are upto date.', 'accelerated-mobile-pages'); ;
[3155] Fix | Delete
if($current_page=="amp_options"){
[3156] Fix | Delete
$post_percent = ampforwp_get_post_percent();
[3157] Fix | Delete
if ($post_percent != 100) {
[3158] Fix | Delete
$refresh_btn = "<span class='button button-primary button-small' id='ampforwp-refersh-related-post' target='_blank' data-id='".intval($post_percent)."' data-nonce='".wp_create_nonce( 'ampforwp_refresh_related_poost')."'><i class='el el-refresh'></i> Refresh</span>";
[3159] Fix | Delete
$refresh_text = esc_html__('It will refresh only 30 records at once, please try refreshing until it will complete to 100%', 'accelerated-mobile-pages');
[3160] Fix | Delete
}
[3161] Fix | Delete
}
[3162] Fix | Delete
// Hide AMP Bulk Tools
[3163] Fix | Delete
Redux::setSection( $opt_name, array(
[3164] Fix | Delete
'title' => esc_html__( 'Tools', 'accelerated-mobile-pages' ),
[3165] Fix | Delete
'id' => 'hide-amp-section',
[3166] Fix | Delete
'subsection' => true,
[3167] Fix | Delete
'fields' => array(
[3168] Fix | Delete
array(
[3169] Fix | Delete
'id' => 'hide-amp-bulk-tools',
[3170] Fix | Delete
'type' => 'section',
[3171] Fix | Delete
'title' => esc_html__('Hide AMP Bulk Tools', 'accelerated-mobile-pages'),
[3172] Fix | Delete
'indent' => true,
[3173] Fix | Delete
'layout_type' => 'accordion',
[3174] Fix | Delete
'accordion-open'=> 1,
[3175] Fix | Delete
),
[3176] Fix | Delete
array(
[3177] Fix | Delete
'id' => 'amp-pages-meta-default',
[3178] Fix | Delete
'type' => 'select',
[3179] Fix | Delete
'title' => esc_html__( 'Individual AMP Page (Bulk Edit)', 'accelerated-mobile-pages' ),
[3180] Fix | Delete
'tooltip-subtitle' => esc_html__( 'Allows you to Show or Hide AMP from All pages, so it can be changed individually later. This option will change the Default value of AMP metabox in Pages', 'accelerated-mobile-pages' ),
[3181] Fix | Delete
'desc' => esc_html__( 'NOTE: Changes will overwrite the previous settings.', 'accelerated-mobile-pages' ),
[3182] Fix | Delete
'options' => array(
[3183] Fix | Delete
'show' => esc_html__('Show by Default', 'accelerated-mobile-pages' ),
[3184] Fix | Delete
'hide' => esc_html__('Hide by default', 'accelerated-mobile-pages' ),
[3185] Fix | Delete
),
[3186] Fix | Delete
'default' => 'show',
[3187] Fix | Delete
'required'=>array('amp-on-off-for-all-pages','=','1'),
[3188] Fix | Delete
),
[3189] Fix | Delete
array(
[3190] Fix | Delete
'id' =>'hide-amp-categories2',
[3191] Fix | Delete
'type' => 'select',
[3192] Fix | Delete
'title' => esc_html__('Select Categories to Hide AMP posts'),
[3193] Fix | Delete
'tooltip-subtitle' => esc_html__( 'Hide AMP from all the posts of a selected category.', 'accelerated-mobile-pages' ),
[3194] Fix | Delete
'multi' => true,
[3195] Fix | Delete
'ajax' => true,
[3196] Fix | Delete
'options' => ampforwp_get_categories('hide-amp-categories2'),
[3197] Fix | Delete
'data-action' => 'ampforwp_categories',
[3198] Fix | Delete
'data' => 'categories',
[3199] Fix | Delete
),
[3200] Fix | Delete
array(
[3201] Fix | Delete
'id' =>'hide-amp-tags-bulk-option2',
[3202] Fix | Delete
'type' => 'select',
[3203] Fix | Delete
'title' => esc_html__('Select Tags to Hide AMP posts'),
[3204] Fix | Delete
'tooltip-subtitle' => esc_html__( 'Hide AMP from all the posts of a selected tags.', 'accelerated-mobile-pages' ),
[3205] Fix | Delete
'multi' => true,
[3206] Fix | Delete
'ajax' => true,
[3207] Fix | Delete
'options' => ampforwp_get_all_tags('hide-amp-tags-bulk-option2'),
[3208] Fix | Delete
'data-action' => 'ampforwp_tags',
[3209] Fix | Delete
'data' => 'tags',
[3210] Fix | Delete
[3211] Fix | Delete
),
[3212] Fix | Delete
array(
[3213] Fix | Delete
'id' => 'amp-other-tools',
[3214] Fix | Delete
'type' => 'section',
[3215] Fix | Delete
'title' => esc_html__('Others', 'accelerated-mobile-pages'),
[3216] Fix | Delete
'indent' => true,
[3217] Fix | Delete
'layout_type' => 'accordion',
[3218] Fix | Delete
'accordion-open'=> 1,
[3219] Fix | Delete
),
[3220] Fix | Delete
array(
[3221] Fix | Delete
'id' => 'ampforwp-query-monitor',
[3222] Fix | Delete
'type' => 'switch',
[3223] Fix | Delete
'title' => esc_html__('Show Query Monitor data in AMP', 'accelerated-mobile-pages'),
[3224] Fix | Delete
'default' => 1,
[3225] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Query Monitor for amp when logged in as admin and Query Monitor Plugin installed', 'accelerated-mobile-pages'),
[3226] Fix | Delete
),
[3227] Fix | Delete
array(
[3228] Fix | Delete
'id' => 'ampforwp-refersh-related-post',
[3229] Fix | Delete
'type' => 'raw',
[3230] Fix | Delete
'title' => esc_html__('Refresh Related Post', 'accelerated-mobile-pages'),
[3231] Fix | Delete
'content' => $refresh_btn /* XXS OK */."
[3232] Fix | Delete
<div class='ref-rel-bar-cont'>
[3233] Fix | Delete
<div id='ref_rel_post_bar' class='ref-rel-post-bar' style='width:".intval($post_percent)."%;'>".intval($post_percent)."%</div>
[3234] Fix | Delete
</div>",
[3235] Fix | Delete
'tooltip-subtitle' => esc_html__('If related post is not showing up properly, please refresh it and check it once again.', 'accelerated-mobile-pages'),
[3236] Fix | Delete
'full_width' => false,
[3237] Fix | Delete
'description' => $refresh_text, /* XXS OK */
[3238] Fix | Delete
),
[3239] Fix | Delete
)
[3240] Fix | Delete
)
[3241] Fix | Delete
);
[3242] Fix | Delete
[3243] Fix | Delete
// Advance Settings SECTION
[3244] Fix | Delete
function ampforwp_featured_video_default(){
[3245] Fix | Delete
$default = '';
[3246] Fix | Delete
if(function_exists( 'csco_setup' )){
[3247] Fix | Delete
$default = 'csco_post_embed';
[3248] Fix | Delete
}
[3249] Fix | Delete
return $default;
[3250] Fix | Delete
}
[3251] Fix | Delete
Redux::setSection( $opt_name, array(
[3252] Fix | Delete
'title' => esc_html__( 'Advance Settings', 'accelerated-mobile-pages' ),
[3253] Fix | Delete
'desc' => esc_html__( 'This section has some advanced settings, please use it with care','accelerated-mobile-pages'),
[3254] Fix | Delete
'id' => 'amp-advance',
[3255] Fix | Delete
'subsection' => true,
[3256] Fix | Delete
'fields' => array(
[3257] Fix | Delete
[3258] Fix | Delete
array(
[3259] Fix | Delete
'id' => 'amp-mobile-redirection',
[3260] Fix | Delete
'type' => 'switch',
[3261] Fix | Delete
'title' => esc_html__('Mobile Redirection', 'accelerated-mobile-pages'),
[3262] Fix | Delete
'tooltip-subtitle' => esc_html__('
[3263] Fix | Delete
Enable AMP for your mobile users. Give your visitors a Faster mobile User Experience.','accelerated-mobile-pages'),
[3264] Fix | Delete
'default' => 0,
[3265] Fix | Delete
[3266] Fix | Delete
),
[3267] Fix | Delete
array(
[3268] Fix | Delete
'id' => 'amp-mob-redirection-pres-link',
[3269] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[3270] Fix | Delete
'type' => 'switch',
[3271] Fix | Delete
'title' => esc_html__('Preserve Original Permalinks', 'accelerated-mobile-pages'),
[3272] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Mobile redirection for preserve original permalinks.','accelerated-mobile-pages'),
[3273] Fix | Delete
'default' => 0,
[3274] Fix | Delete
'required' => array( 'amp-mobile-redirection', '=' , 1 )
[3275] Fix | Delete
),
[3276] Fix | Delete
array(
[3277] Fix | Delete
'id' => 'amp-tablet-redirection',
[3278] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[3279] Fix | Delete
'type' => 'switch',
[3280] Fix | Delete
'title' => esc_html__('Tablets', 'accelerated-mobile-pages'),
[3281] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Mobile redirection for Tablets.','accelerated-mobile-pages'),
[3282] Fix | Delete
'default' => 1,
[3283] Fix | Delete
'required' => array( 'amp-mobile-redirection', '=' , 1 )
[3284] Fix | Delete
),
[3285] Fix | Delete
array(
[3286] Fix | Delete
'id' => 'amp-server-side-rendering',
[3287] Fix | Delete
'type' => 'switch',
[3288] Fix | Delete
'title' => esc_html__('Server Side Rendering', 'accelerated-mobile-pages'),
[3289] Fix | Delete
'tooltip-subtitle' => esc_html__('Improve the Google Page Speed and Loading time with Server Side Rendering', 'accelerated-mobile-pages'),
[3290] Fix | Delete
'default' => 0
[3291] Fix | Delete
),
[3292] Fix | Delete
array(
[3293] Fix | Delete
'id' => 'amp-redirection-search',
[3294] Fix | Delete
'type' => 'switch',
[3295] Fix | Delete
'title' => esc_html__('Search Result Page in AMP', 'accelerated-mobile-pages'),
[3296] Fix | Delete
'tooltip-subtitle' => esc_html__('Disable this option if you want your search pages in Non-AMP.','accelerated-mobile-pages'),
[3297] Fix | Delete
'default' => 1,
[3298] Fix | Delete
),
[3299] Fix | Delete
array(
[3300] Fix | Delete
'id' => 'amp-desktop-redirection',
[3301] Fix | Delete
'type' => 'switch',
[3302] Fix | Delete
'title' => esc_html__('Disable AMP on Desktop', 'accelerated-mobile-pages'),
[3303] Fix | Delete
'tooltip-subtitle' => esc_html__('
[3304] Fix | Delete
Enable this option to give your visitors normal version on Desktop when accessing AMP','accelerated-mobile-pages'),
[3305] Fix | Delete
'default' => 0,
[3306] Fix | Delete
),
[3307] Fix | Delete
array(
[3308] Fix | Delete
'id' => 'convert-internal-nonamplinks-to-amp',
[3309] Fix | Delete
'type' => 'switch',
[3310] Fix | Delete
'title' => esc_html__('Change Internal Links to AMP', 'accelerated-mobile-pages'),
[3311] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable if you want all your links inside the article to go to /amp/. All the outbound links will remain untouched.','accelerated-mobile-pages'),
[3312] Fix | Delete
'default' => 0,
[3313] Fix | Delete
),
[3314] Fix | Delete
array(
[3315] Fix | Delete
'id' => 'hide-amp-version-from-source',
[3316] Fix | Delete
'type' => 'switch',
[3317] Fix | Delete
'title' => esc_html__('Hide AMP Version', 'accelerated-mobile-pages'),
[3318] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable if you want hide AMP version in view source page(generator).','accelerated-mobile-pages'),
[3319] Fix | Delete
'default' => 0,
[3320] Fix | Delete
),
[3321] Fix | Delete
array(
[3322] Fix | Delete
'id' => 'ampforwp-cat-description',
[3323] Fix | Delete
'type' => 'switch',
[3324] Fix | Delete
'title' => esc_html__('Category Description', 'accelerated-mobile-pages'),
[3325] Fix | Delete
'tooltip-subtitle' => esc_html__('Disable this option if you dont want to show category description in AMP','accelerated-mobile-pages'),
[3326] Fix | Delete
'default' => 1,
[3327] Fix | Delete
),
[3328] Fix | Delete
array(
[3329] Fix | Delete
'id' => 'ampforwp-smooth-scrolling-for-links',
[3330] Fix | Delete
'type' => 'switch',
[3331] Fix | Delete
'title' => esc_html__('Smooth Scrolling For Links', 'accelerated-mobile-pages'),
[3332] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable this option if you want smooth scrolling for jumping links','accelerated-mobile-pages'),
[3333] Fix | Delete
'default' => 0,
[3334] Fix | Delete
),
[3335] Fix | Delete
// End-point option
[3336] Fix | Delete
$amp_endpoint,
[3337] Fix | Delete
array(
[3338] Fix | Delete
'id' => 'ampforwp-amp-convert-to-wp',
[3339] Fix | Delete
'type' => 'switch',
[3340] Fix | Delete
'title' => esc_html__('Convert AMP to WP theme (Beta)', 'accelerated-mobile-pages'),
[3341] Fix | Delete
'tooltip-subtitle' => sprintf( '%s<a href="%s" target="_blank">%s</a>%s', esc_html__("It makes your AMP & Non-AMP Same! (AMP will output AMP Compatible code, while WordPress will have the WP code but with the same design and ",'accelerated-mobile-pages'),esc_url('https://ampforwp.com/tutorials/article/how-to-convert-your-non-amp-website-to-amp/'),esc_html__('Click Here','accelerated-mobile-pages'),esc_html__(' for more info','accelerated-mobile-pages')),
[3342] Fix | Delete
'default' => ampforwp_amp2wp_default(),
[3343] Fix | Delete
'required' => array(
[3344] Fix | Delete
array('amp-design-selector', '=', '4'),
[3345] Fix | Delete
array('ampforwp-amp-takeover', '=' , '0'),
[3346] Fix | Delete
)
[3347] Fix | Delete
),
[3348] Fix | Delete
array(
[3349] Fix | Delete
'id' => 'ampforwp-right-click-disable',
[3350] Fix | Delete
'type' => 'switch',
[3351] Fix | Delete
'title' => esc_html__('Disable Right Click', 'accelerated-mobile-pages'),
[3352] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[3353] Fix | Delete
esc_html__('Enable this option if you want a disable the right click in AMP to protect your data from copying', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-disable-right-click-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[3354] Fix | Delete
'default' => false,
[3355] Fix | Delete
),
[3356] Fix | Delete
array(
[3357] Fix | Delete
'id' => 'ampforwp-meta-viewport',
[3358] Fix | Delete
'type' => 'switch',
[3359] Fix | Delete
'title' => esc_html__('Full Meta Viewport', 'accelerated-mobile-pages'),
[3360] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable this option if you want full meta viewport','accelerated-mobile-pages'),
[3361] Fix | Delete
'default' => 0,
[3362] Fix | Delete
),
[3363] Fix | Delete
array(
[3364] Fix | Delete
'id' => 'ampforwp-meta-viewport-notice',
[3365] Fix | Delete
'type' => 'info',
[3366] Fix | Delete
'style' => 'info',
[3367] Fix | Delete
'desc' => esc_html__('Enabling this causes a 300-350ms tap delay which can decrease FID ( First Input Delay ). Please use this with caution.', 'accelerated-mobile-pages'),
[3368] Fix | Delete
'required' => array('ampforwp-meta-viewport', '=', 1)
[3369] Fix | Delete
),
[3370] Fix | Delete
array(
[3371] Fix | Delete
'id' => 'ampforwp-search-google',
[3372] Fix | Delete
'type' => 'switch',
[3373] Fix | Delete
'title' => esc_html__('Search Results in Google', 'accelerated-mobile-pages'),
[3374] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable this option if you want the search results as Google search','accelerated-mobile-pages'),
[3375] Fix | Delete
'default' => 0,
[3376] Fix | Delete
),
[3377] Fix | Delete
array(
[3378] Fix | Delete
'id' => 'amp-header-text-area-for-html',
[3379] Fix | Delete
'type' => 'textarea',
[3380] Fix | Delete
'title' => esc_html__('Enter HTML in Head', 'accelerated-mobile-pages'),
[3381] Fix | Delete
'tooltip-subtitle' => esc_html__('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
[3382] Fix | Delete
'desc' => esc_html__('check your markup here (enter markup between HEAD tag) : https://validator.ampproject.org/', 'accelerated-mobile-pages'),
[3383] Fix | Delete
'default' => ''
[3384] Fix | Delete
),
[3385] Fix | Delete
array(
[3386] Fix | Delete
'id' => 'amp-body-text-area',
[3387] Fix | Delete
'type' => 'textarea',
[3388] Fix | Delete
'title' => esc_html__('Enter HTML in Body (beginning of body tag) ', 'accelerated-mobile-pages'),
[3389] Fix | Delete
'tooltip-subtitle' => esc_html__('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
[3390] Fix | Delete
'desc' => esc_html__('check your markup here (enter markup in the beginning of body tag) : https://validator.ampproject.org/', 'accelerated-mobile-pages'),
[3391] Fix | Delete
'default' => ''
[3392] Fix | Delete
),
[3393] Fix | Delete
array(
[3394] Fix | Delete
'id' => 'amp-footer-text-area-for-html',
[3395] Fix | Delete
'type' => 'textarea',
[3396] Fix | Delete
'title' => esc_html__('Enter HTML in Footer', 'accelerated-mobile-pages'),
[3397] Fix | Delete
'tooltip-subtitle' => esc_html__('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
[3398] Fix | Delete
'desc' => esc_html__('check your markup here (enter markup between BODY tag) : https://validator.ampproject.org/',
[3399] Fix | Delete
'accelerated-mobile-pages'),
[3400] Fix | Delete
'default' => ''
[3401] Fix | Delete
),
[3402] Fix | Delete
array(
[3403] Fix | Delete
'id' => 'amp-prefetch-options',
[3404] Fix | Delete
'type' => 'repeater',
[3405] Fix | Delete
'title' => esc_html__('DNS Priority URL(s)', 'accelerated-mobile-pages'),
[3406] Fix | Delete
'tooltip-subtitle' => sprintf( '%s<a href="%s" target="_blank">%s</a>%s', esc_html__("DNS Priority ask your browser to do a DNS lookup and connection before you need any resources from that domain. ",'accelerated-mobile-pages'),esc_url('https://ampforwp.com/tutorials/article/how-to-use-dns-prefetch-urls-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'),esc_html__(' for more info','accelerated-mobile-pages')),
[3407] Fix | Delete
'repeat-fields'=> array(
[3408] Fix | Delete
array(
[3409] Fix | Delete
'id' => 'amp-dns-urls-type',
[3410] Fix | Delete
'type' => 'select',
[3411] Fix | Delete
'options' => array(
[3412] Fix | Delete
'prefetch'=>'Prefetch',
[3413] Fix | Delete
'dns-prefetch'=>'DNS-Prefetch',
[3414] Fix | Delete
'preload'=>'Preload',
[3415] Fix | Delete
'preconnect'=>'Preconnect'
[3416] Fix | Delete
),
[3417] Fix | Delete
),
[3418] Fix | Delete
array(
[3419] Fix | Delete
'id' => 'amp-dns-urls-field',
[3420] Fix | Delete
'type' => 'text',
[3421] Fix | Delete
),
[3422] Fix | Delete
),
[3423] Fix | Delete
),
[3424] Fix | Delete
array(
[3425] Fix | Delete
'id' => 'ampforwp-auto-amp-menu-link',
[3426] Fix | Delete
'type' => 'switch',
[3427] Fix | Delete
'title' => esc_html__('Auto Add AMP in Menu URL', 'accelerated-mobile-pages'),
[3428] Fix | Delete
'tooltip-subtitle' => esc_html__('Automatically add <code>AMP</code> at the end of menu url', 'accelerated-mobile-pages'),
[3429] Fix | Delete
'true' => 'true',
[3430] Fix | Delete
'false' => 'false',
[3431] Fix | Delete
'default' => 0,
[3432] Fix | Delete
//'required' => array('ampforwp-amp-menu', '=' , '1')
[3433] Fix | Delete
),
[3434] Fix | Delete
//Category Base Removal in AMP
[3435] Fix | Delete
array(
[3436] Fix | Delete
'id' => 'ampforwp-category-base-removel-link',
[3437] Fix | Delete
'type' => 'switch',
[3438] Fix | Delete
'title' => esc_html__('Category base remove in AMP', 'accelerated-mobile-pages'),
[3439] Fix | Delete
'tooltip-subtitle' => esc_html__('Category base removal in <code>AMP</code> from url', 'accelerated-mobile-pages'),
[3440] Fix | Delete
'true' => 'true',
[3441] Fix | Delete
'false' => 'false',
[3442] Fix | Delete
'default' => 0,
[3443] Fix | Delete
[3444] Fix | Delete
),
[3445] Fix | Delete
//Tag base Removal in AMP
[3446] Fix | Delete
array(
[3447] Fix | Delete
'id' => 'ampforwp-tag-base-removal-link',
[3448] Fix | Delete
'type' => 'switch',
[3449] Fix | Delete
'title' => esc_html__('Tag base remove in AMP', 'accelerated-mobile-pages'),
[3450] Fix | Delete
'tooltip-subtitle' => esc_html__('Tag base remove in <code>AMP</code> from url', 'accelerated-mobile-pages'),
[3451] Fix | Delete
'true' => 'true',
[3452] Fix | Delete
'false' => 'false',
[3453] Fix | Delete
'default' => 0,
[3454] Fix | Delete
[3455] Fix | Delete
),
[3456] Fix | Delete
[3457] Fix | Delete
// Featured Image from Custom Fields
[3458] Fix | Delete
array(
[3459] Fix | Delete
'id' => 'ampforwp-custom-fields-featured-image-switch',
[3460] Fix | Delete
'type' => 'switch',
[3461] Fix | Delete
'title' => esc_html__('Featured Image from Custom Fields', 'accelerated-mobile-pages'),
[3462] Fix | Delete
'tooltip-subtitle' => esc_html__('This will allow you to add Featured Image from Custom Fields', 'accelerated-mobile-pages'),
[3463] Fix | Delete
'true' => 'true',
[3464] Fix | Delete
'false' => 'false',
[3465] Fix | Delete
'default' => 0,
[3466] Fix | Delete
),
[3467] Fix | Delete
array(
[3468] Fix | Delete
'id' => 'ampforwp-custom-fields-featured-image',
[3469] Fix | Delete
'type' => 'text',
[3470] Fix | Delete
'title' => esc_html__('Custom Field For Featured Image', 'accelerated-mobile-pages'),
[3471] Fix | Delete
'default' => esc_html__ ('','accelerated-mobile-pages'),
[3472] Fix | Delete
'placeholder'=>esc_html__('Write the Custom Field of Featured Image','accelerated-mobile-pages'),
[3473] Fix | Delete
'required' => array( 'ampforwp-custom-fields-featured-image-switch', '=' , 1 )
[3474] Fix | Delete
),
[3475] Fix | Delete
// Grab the First Image for Featured Image if there is none
[3476] Fix | Delete
array(
[3477] Fix | Delete
'id' => 'ampforwp-featured-image-from-content',
[3478] Fix | Delete
'type' => 'switch',
[3479] Fix | Delete
'title' => esc_html__('Featured Image from The Content', 'accelerated-mobile-pages'),
[3480] Fix | Delete
'tooltip-subtitle' => esc_html__('Show the first image of the content as Featured Image if there is no featured image', 'accelerated-mobile-pages'),
[3481] Fix | Delete
'true' => 'true',
[3482] Fix | Delete
'false' => 'false',
[3483] Fix | Delete
'default' => 0,
[3484] Fix | Delete
),
[3485] Fix | Delete
// Duplicate Featured Image
[3486] Fix | Delete
array(
[3487] Fix | Delete
'id' => 'ampforwp-duplicate-featured-image',
[3488] Fix | Delete
'type' => 'switch',
[3489] Fix | Delete
'title' => esc_html__('Show Featured Image if already preset in content.', 'accelerated-mobile-pages'),
[3490] Fix | Delete
'tooltip-subtitle' => esc_html__('Turn On the support if you want to show the Featured Image if it already exists in post content.', 'accelerated-mobile-pages'),
[3491] Fix | Delete
'true' => 'true',
[3492] Fix | Delete
'false' => 'false',
[3493] Fix | Delete
'default' => 0,
[3494] Fix | Delete
),
[3495] Fix | Delete
// DEFAULT FALLBACK IMAGE
[3496] Fix | Delete
array(
[3497] Fix | Delete
'id' => 'ampforwp_default_fallback_image',
[3498] Fix | Delete
'type' => 'media',
[3499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function