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
'required' => array('ampforwp-seo-selection', '=' , 'yoast'),
[2500] Fix | Delete
),
[2501] Fix | Delete
array(
[2502] Fix | Delete
'class' => 'child_opt',
[2503] Fix | Delete
'id' => 'ampforwp-yoast-seo-analysis',
[2504] Fix | Delete
'type' => 'switch',
[2505] Fix | Delete
'tooltip-subtitle' => esc_html__('Get the Yoast Analysis from AMP PageBuilder Content', 'accelerated-mobile-pages'),
[2506] Fix | Delete
'title' => esc_html__( 'Yoast Analysis for AMP PageBuilder', 'accelerated-mobile-pages' ),
[2507] Fix | Delete
'default' => 1,
[2508] Fix | Delete
'required' => array(array('ampforwp-seo-selection', '=' , 'yoast'),array('ampforwp-amp-takeover', '=' , '1')),
[2509] Fix | Delete
),
[2510] Fix | Delete
array(
[2511] Fix | Delete
'id' => 'ampforwp-seo-aioseo',
[2512] Fix | Delete
'type' => 'info',
[2513] Fix | Delete
'style' => 'success',
[2514] Fix | Delete
'desc' => esc_html__("All in One SEO works out of the Box with our plugin. It deosn't requires any extra config except Canonicals.", 'accelerated-mobile-pages'),
[2515] Fix | Delete
'required' => array('ampforwp-seo-selection', '=', 'aioseo')
[2516] Fix | Delete
),
[2517] Fix | Delete
array(
[2518] Fix | Delete
'class' => 'child_opt',
[2519] Fix | Delete
'id' => 'ampforwp-seo-aioseo-canonical',
[2520] Fix | Delete
'type' => 'switch',
[2521] Fix | Delete
'tooltip-subtitle' => esc_html__('Pull Canonical from All In One SEO for AMP pages', 'accelerated-mobile-pages'),
[2522] Fix | Delete
'title' =>esc_html__( 'Canonical from All In One SEO', 'accelerated-mobile-pages' ),
[2523] Fix | Delete
'default' => 0,
[2524] Fix | Delete
'required' => array('ampforwp-seo-selection', '=' , 'aioseo'),
[2525] Fix | Delete
),
[2526] Fix | Delete
array(
[2527] Fix | Delete
'id' => 'ampforwp-seo-index-noindex-sub-section',
[2528] Fix | Delete
'type' => 'section',
[2529] Fix | Delete
'title' => esc_html__('Advanced Indexing', 'accelerated-mobile-pages'),
[2530] Fix | Delete
'indent' => true,
[2531] Fix | Delete
'layout_type' => 'accordion',
[2532] Fix | Delete
'accordion-open'=> 1,
[2533] Fix | Delete
),
[2534] Fix | Delete
array(
[2535] Fix | Delete
'id' => 'amp-paginated-pages-indexing',
[2536] Fix | Delete
'type' => 'switch',
[2537] Fix | Delete
'title' => esc_html__('Remove Paginated Pages Indexing', 'accelerated-mobile-pages'),
[2538] Fix | Delete
'tooltip-subtitle' => sprintf( '%s<a href="%s" target="_blank">%s</a>', esc_html__("You can read more about it ",'accelerated-mobile-pages'),esc_url('https://ampforwp.com/tutorials/article/how-to-remove-paginated-pages-indexing-in-amp/'),esc_html__('here','accelerated-mobile-pages')),
[2539] Fix | Delete
'default' => 0,
[2540] Fix | Delete
),
[2541] Fix | Delete
array(
[2542] Fix | Delete
'id' => 'amp-inspection-tool',
[2543] Fix | Delete
'type' => 'switch',
[2544] Fix | Delete
'title' => esc_html__('URL Inspection Tool Compatibility', 'accelerated-mobile-pages'),
[2545] Fix | Delete
'tooltip-subtitle' => sprintf( '%s<a href="%s" target="_blank">%s</a>', esc_html__("You can read about it ",'accelerated-mobile-pages'),esc_url('https://webmasters.googleblog.com/2018/06/new-url-inspection-tool-more-in-search.html'),esc_html__('here','accelerated-mobile-pages')),
[2546] Fix | Delete
'default' => 1,
[2547] Fix | Delete
),
[2548] Fix | Delete
array(
[2549] Fix | Delete
'id' => 'ampforwp-robots-archive-sub-pages-sitewide',
[2550] Fix | Delete
'type' => 'switch',
[2551] Fix | Delete
'title' => esc_html__('Archive subpages (sitewide)', 'accelerated-mobile-pages'),
[2552] Fix | Delete
'tooltip-subtitle' => esc_html__("Such as /page/2 so on and so forth",'accelerated-mobile-pages'),
[2553] Fix | Delete
'default' => 0,
[2554] Fix | Delete
'on' => 'index',
[2555] Fix | Delete
'off' => 'noindex',
[2556] Fix | Delete
'required' => array('amp-inspection-tool', '=' , '0'),
[2557] Fix | Delete
'switch-text' => true,
[2558] Fix | Delete
),
[2559] Fix | Delete
array(
[2560] Fix | Delete
'id' => 'ampforwp-robots-archive-author-pages',
[2561] Fix | Delete
'type' => 'switch',
[2562] Fix | Delete
'title' => esc_html__('Author Archives', 'accelerated-mobile-pages'),
[2563] Fix | Delete
'tooltip-subtitle' => esc_html__("Enable it to set Indexing for Author Archives",'accelerated-mobile-pages'),
[2564] Fix | Delete
'default' => 1,
[2565] Fix | Delete
'on' => 'index',
[2566] Fix | Delete
'off' => 'noindex',
[2567] Fix | Delete
'required' => array('amp-inspection-tool', '=' , '0'),
[2568] Fix | Delete
'switch-text' => true,
[2569] Fix | Delete
),
[2570] Fix | Delete
array(
[2571] Fix | Delete
'id' => 'ampforwp-robots-archive-date-pages',
[2572] Fix | Delete
'type' => 'switch',
[2573] Fix | Delete
'title' => esc_html__('Date Archives', 'accelerated-mobile-pages'),
[2574] Fix | Delete
'tooltip-subtitle' => esc_html__("Enable it to set Indexing for Date Archives",'accelerated-mobile-pages'),
[2575] Fix | Delete
'default' => 1,
[2576] Fix | Delete
'on' => 'index',
[2577] Fix | Delete
'off' => 'noindex',
[2578] Fix | Delete
'required' => array('amp-inspection-tool', '=' , '0'),
[2579] Fix | Delete
'switch-text' => true,
[2580] Fix | Delete
),
[2581] Fix | Delete
array(
[2582] Fix | Delete
'id' => 'ampforwp-robots-archive-category-pages',
[2583] Fix | Delete
'type' => 'switch',
[2584] Fix | Delete
'title' => esc_html__('Categories', 'accelerated-mobile-pages'),
[2585] Fix | Delete
'tooltip-subtitle' => esc_html__("Enable it to set Indexing for Categories",'accelerated-mobile-pages'),
[2586] Fix | Delete
'default' => 1,
[2587] Fix | Delete
'on' => 'index',
[2588] Fix | Delete
'off' => 'noindex',
[2589] Fix | Delete
'required' => array('amp-inspection-tool', '=' , '0'),
[2590] Fix | Delete
'switch-text' => true,
[2591] Fix | Delete
),
[2592] Fix | Delete
array(
[2593] Fix | Delete
'id' => 'ampforwp-robots-archive-tag-pages',
[2594] Fix | Delete
'type' => 'switch',
[2595] Fix | Delete
'title' => esc_html__('Tags', 'accelerated-mobile-pages'),
[2596] Fix | Delete
'tooltip-subtitle' => esc_html__("Enable it to set Indexing for Tags",'accelerated-mobile-pages'),
[2597] Fix | Delete
'default' => 1,
[2598] Fix | Delete
'on' => 'index',
[2599] Fix | Delete
'off' => 'noindex',
[2600] Fix | Delete
'required' => array('amp-inspection-tool', '=' , '0'),
[2601] Fix | Delete
'switch-text' => true,
[2602] Fix | Delete
),
[2603] Fix | Delete
)
[2604] Fix | Delete
)
[2605] Fix | Delete
);
[2606] Fix | Delete
[2607] Fix | Delete
if ( ! function_exists('amp_activate') ) {
[2608] Fix | Delete
// PageBuilders section
[2609] Fix | Delete
ampforwp_page_builders_support_options($opt_name);
[2610] Fix | Delete
//Page booster
[2611] Fix | Delete
ampforwp_admin_page_booster_options($opt_name);
[2612] Fix | Delete
// Performance section
[2613] Fix | Delete
ampforwp_admin_performance_options($opt_name);
[2614] Fix | Delete
// Analytics section
[2615] Fix | Delete
ampforwp_analytics_options($opt_name);
[2616] Fix | Delete
// Structured Data section
[2617] Fix | Delete
ampforwp_structure_data_options($opt_name);
[2618] Fix | Delete
// Notifications section
[2619] Fix | Delete
ampforwp_notice_bar_options($opt_name);
[2620] Fix | Delete
// Push Notifications section
[2621] Fix | Delete
ampforwp_push_notification_options($opt_name);
[2622] Fix | Delete
// Contact Form section
[2623] Fix | Delete
ampforwp_admin_contact_form_options($opt_name);
[2624] Fix | Delete
}
[2625] Fix | Delete
[2626] Fix | Delete
// comments
[2627] Fix | Delete
Redux::setSection( $opt_name, array(
[2628] Fix | Delete
'title' => esc_html__( 'Comments', 'accelerated-mobile-pages' ),
[2629] Fix | Delete
'desc' => $comment_desc,
[2630] Fix | Delete
'id' => 'disqus-comments',
[2631] Fix | Delete
'subsection' => true,
[2632] Fix | Delete
'fields' => array(
[2633] Fix | Delete
array(
[2634] Fix | Delete
'id' => 'ampforwp-display-comments',
[2635] Fix | Delete
'type' => 'section',
[2636] Fix | Delete
'title' => esc_html__('Display', 'accelerated-mobile-pages'),
[2637] Fix | Delete
'indent' => true,
[2638] Fix | Delete
'layout_type' => 'accordion',
[2639] Fix | Delete
'accordion-open'=> 1,
[2640] Fix | Delete
),
[2641] Fix | Delete
array(
[2642] Fix | Delete
'id' => 'ampforwp-display-on-pages',
[2643] Fix | Delete
'type' => 'switch',
[2644] Fix | Delete
'title' => esc_html__('Display on Pages', 'accelerated-mobile-pages'),
[2645] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable comments on pages using this switch.', 'accelerated-mobile-pages'),
[2646] Fix | Delete
'default' => 1
[2647] Fix | Delete
),
[2648] Fix | Delete
array(
[2649] Fix | Delete
'id' => 'ampforwp-display-on-posts',
[2650] Fix | Delete
'type' => 'switch',
[2651] Fix | Delete
'title' => esc_html__('Display on Posts', 'accelerated-mobile-pages'),
[2652] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable comments on posts using this switch.', 'accelerated-mobile-pages'),
[2653] Fix | Delete
'default' => 1
[2654] Fix | Delete
),
[2655] Fix | Delete
[2656] Fix | Delete
array(
[2657] Fix | Delete
'id' => 'ampforwp-comments',
[2658] Fix | Delete
'type' => 'section',
[2659] Fix | Delete
'title' => esc_html__('Discussion', 'accelerated-mobile-pages'),
[2660] Fix | Delete
'indent' => true,
[2661] Fix | Delete
'layout_type' => 'accordion',
[2662] Fix | Delete
'accordion-open'=> 1,
[2663] Fix | Delete
),
[2664] Fix | Delete
array(
[2665] Fix | Delete
'title' =>esc_html__('WordPress Comments','accelerated-mobile-pages'),
[2666] Fix | Delete
'id' => 'wordpress-comments-support',
[2667] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable WordPress comments using this switch.', 'accelerated-mobile-pages'),
[2668] Fix | Delete
'type' => 'switch',
[2669] Fix | Delete
'default' => 1,
[2670] Fix | Delete
),
[2671] Fix | Delete
array(
[2672] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2673] Fix | Delete
'id' => 'ampforwp-number-of-comments',
[2674] Fix | Delete
'type' => 'text',
[2675] Fix | Delete
'tooltip-subtitle' => esc_html__('This refers to the normal comments','accelerated-mobile-pages'),
[2676] Fix | Delete
'title' => esc_html__('No of Comments', 'accelerated-mobile-pages'),
[2677] Fix | Delete
'default' => 10,
[2678] Fix | Delete
'required' => array('wordpress-comments-support' , '=' , 1
[2679] Fix | Delete
),
[2680] Fix | Delete
),
[2681] Fix | Delete
array(
[2682] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2683] Fix | Delete
'id' => 'ampforwp-display-avatar',
[2684] Fix | Delete
'type' => 'switch',
[2685] Fix | Delete
'title' => esc_html__('User Avatar', 'accelerated-mobile-pages'),
[2686] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable user Avatar.', 'accelerated-mobile-pages'),
[2687] Fix | Delete
'default' => 1,
[2688] Fix | Delete
'required' => array('wordpress-comments-support' , '=' , 1
[2689] Fix | Delete
),
[2690] Fix | Delete
),
[2691] Fix | Delete
array(
[2692] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2693] Fix | Delete
'id' => 'ampforwp-nofollow-comment-btn',
[2694] Fix | Delete
'type' => 'switch',
[2695] Fix | Delete
'title' => esc_html__('No follow button', 'accelerated-mobile-pages'),
[2696] Fix | Delete
'tooltip-subtitle' => esc_html__('Add or remove No follow in comment button', 'accelerated-mobile-pages'),
[2697] Fix | Delete
'default' => 1,
[2698] Fix | Delete
'required' => array('wordpress-comments-support' , '=' , 1 ),
[2699] Fix | Delete
),
[2700] Fix | Delete
array(
[2701] Fix | Delete
'id' => 'ampforwp-disqus-comments-support',
[2702] Fix | Delete
'type' => 'switch',
[2703] Fix | Delete
'title' => esc_html__('Disqus', 'accelerated-mobile-pages'),
[2704] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[2705] Fix | Delete
esc_html__('Enable/Disable Disqus comments using this switch and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-disqus-comments-in-amp/'), esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('to view the tutorial','accelerated-mobile-pages')),
[2706] Fix | Delete
'default' => 0
[2707] Fix | Delete
),
[2708] Fix | Delete
array(
[2709] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2710] Fix | Delete
'id' => 'ampforwp-disqus-comments-name',
[2711] Fix | Delete
'type' => 'text',
[2712] Fix | Delete
'title' => esc_html__('Disqus Name', 'accelerated-mobile-pages'),
[2713] Fix | Delete
'tooltip-subtitle' => esc_html__('Eg: https://xyz.disqus.com', 'accelerated-mobile-pages'),
[2714] Fix | Delete
'required' => array('ampforwp-disqus-comments-support', '=' , '1'),
[2715] Fix | Delete
'default' => ''
[2716] Fix | Delete
),
[2717] Fix | Delete
[2718] Fix | Delete
array(
[2719] Fix | Delete
'class' => 'child_opt',
[2720] Fix | Delete
'id' => 'ampforwp-disqus-host-position',
[2721] Fix | Delete
'type' => 'switch',
[2722] Fix | Delete
'title' => esc_html__('Host on AMPforWP API', 'accelerated-mobile-pages'),
[2723] Fix | Delete
'tooltip-subtitle' => esc_html__('Use AMPforWP secure servers to serve Comments file. Recommended if your site is non HTTPS', 'accelerated-mobile-pages'),
[2724] Fix | Delete
'default' => 1,
[2725] Fix | Delete
'required' => array('ampforwp-disqus-comments-support', '=' , '1'),
[2726] Fix | Delete
),
[2727] Fix | Delete
[2728] Fix | Delete
array(
[2729] Fix | Delete
'class' => 'child_opt',
[2730] Fix | Delete
'id' => 'ampforwp-disqus-host-file',
[2731] Fix | Delete
'type' => 'text',
[2732] Fix | Delete
'title' => esc_html__('Disqus Host File', 'accelerated-mobile-pages'),
[2733] Fix | Delete
'desc' => '<a href="https://ampforwp.com/host-disqus-comments/" target="_blank"> Click here to know, How to Setup Disqus Host file on your servers </a>',
[2734] Fix | Delete
'tooltip-subtitle' => esc_html__('Enter the URL of host file', 'accelerated-mobile-pages'),
[2735] Fix | Delete
'placeholder' => 'https://comments.example.com/disqus.php',
[2736] Fix | Delete
'required' => array('ampforwp-disqus-host-position', '=' , '0'),
[2737] Fix | Delete
),
[2738] Fix | Delete
array(
[2739] Fix | Delete
'id' => 'ampforwp-disqus-layout',
[2740] Fix | Delete
'title' => esc_html__('Disqus Layout', 'accelerated-mobile-pages'),
[2741] Fix | Delete
'type' => 'select',
[2742] Fix | Delete
'options' => array(
[2743] Fix | Delete
'fixed' => 'Fixed',
[2744] Fix | Delete
'responsive' => 'Responsive'
[2745] Fix | Delete
),
[2746] Fix | Delete
'default' => 'responsive',
[2747] Fix | Delete
'required'=>array('ampforwp-disqus-comments-support','=','1'),
[2748] Fix | Delete
),
[2749] Fix | Delete
[2750] Fix | Delete
array(
[2751] Fix | Delete
'id' => 'ampforwp-disqus-height',
[2752] Fix | Delete
'type' => 'text',
[2753] Fix | Delete
'title' => esc_html__('Disqus Iframe Height', 'accelerated-mobile-pages'),
[2754] Fix | Delete
'placeholder' => 'Enter the height',
[2755] Fix | Delete
'default' => '420',
[2756] Fix | Delete
'required'=>array('ampforwp-disqus-comments-support','=','1'),
[2757] Fix | Delete
),
[2758] Fix | Delete
array(
[2759] Fix | Delete
'id' => 'ampforwp-facebook-comments-support',
[2760] Fix | Delete
'type' => 'switch',
[2761] Fix | Delete
'title' => esc_html__('Facebook Comments', 'accelerated-mobile-pages'),
[2762] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Facebook comments using this switch.', 'accelerated-mobile-pages'),
[2763] Fix | Delete
'default' => 0,
[2764] Fix | Delete
),
[2765] Fix | Delete
array(
[2766] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2767] Fix | Delete
'id' => 'ampforwp-fb-moderation-app-id',
[2768] Fix | Delete
'type' => 'text',
[2769] Fix | Delete
'tooltip-subtitle' =>
[2770] Fix | Delete
sprintf('%s <a href="https://developers.facebook.com/docs/plugins/comments/#moderation-setup-instructions" target="_blank">%s</a>.',esc_html__( 'If your site has many comments boxes, we recommend you specify a Facebook app ID as the managing entity, which means that all app administrators can moderate comments. Doing this enables a moderator interface on Facebook where comments from all plugins administered by your app ID can be easily moderated together. For details, see the','accelerated-mobile-pages' ),esc_html__('Facebook Moderation Setup documentation','accelerated-mobile-pages') ),
[2771] Fix | Delete
'title' => esc_html__('Facebook APP ID', 'accelerated-mobile-pages'),
[2772] Fix | Delete
'default' => '',
[2773] Fix | Delete
'required' => array(
[2774] Fix | Delete
array('ampforwp-facebook-comments-support', '=' , 1),
[2775] Fix | Delete
),
[2776] Fix | Delete
),
[2777] Fix | Delete
array(
[2778] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2779] Fix | Delete
'id' => 'ampforwp-fb-moderation-admin-id',
[2780] Fix | Delete
'type' => 'text',
[2781] Fix | Delete
'tooltip-subtitle' =>
[2782] Fix | Delete
sprintf('%s <a href="https://developers.facebook.com/docs/plugins/comments/#moderation-setup-instructions" target="_blank">%s</a>.',esc_html__( 'To assign a Facebook account to be the admin of a comments plugin implementation, see the','accelerated-mobile-pages' ),esc_html__('Facebook Moderation Setup documentation','accelerated-mobile-pages') ),
[2783] Fix | Delete
'title' => esc_html__('Facebook Admin User ID', 'accelerated-mobile-pages'),
[2784] Fix | Delete
'default' => '',
[2785] Fix | Delete
'desc' => 'You can add multiple ID(S) separated by comma(,) sign',
[2786] Fix | Delete
'required' => array(
[2787] Fix | Delete
array('ampforwp-facebook-comments-support', '=' , 1),
[2788] Fix | Delete
),
[2789] Fix | Delete
),
[2790] Fix | Delete
array(
[2791] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2792] Fix | Delete
'id' => 'ampforwp-facebook-comments-title',
[2793] Fix | Delete
'type' => 'text',
[2794] Fix | Delete
'title' => esc_html__('Title', 'accelerated-mobile-pages'),
[2795] Fix | Delete
'default' => 'Leave a Comment',
[2796] Fix | Delete
'required' =>
[2797] Fix | Delete
array('ampforwp-facebook-comments-support', '=' , 1),
[2798] Fix | Delete
),
[2799] Fix | Delete
array(
[2800] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2801] Fix | Delete
'id' => 'ampforwp-number-of-fb-no-of-comments',
[2802] Fix | Delete
'type' => 'text',
[2803] Fix | Delete
'tooltip-subtitle' =>
[2804] Fix | Delete
sprintf('%s <a href="https://developers.facebook.com/docs/plugins/comments" target="_blank">%s</a>.',esc_html__( 'Enter the number of comments to show, Currently Facebook SDK limits this to max 100. For details, see the','accelerated-mobile-pages' ),esc_html__('Facebook comments documentation','accelerated-mobile-pages') ),
[2805] Fix | Delete
'title' => esc_html__('No of Comments', 'accelerated-mobile-pages'),
[2806] Fix | Delete
'default' => 10,
[2807] Fix | Delete
'required' => array(
[2808] Fix | Delete
array('ampforwp-facebook-comments-support', '=' , 1),
[2809] Fix | Delete
),
[2810] Fix | Delete
),
[2811] Fix | Delete
array(
[2812] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2813] Fix | Delete
'id' => 'ampforwp-fb-comments-lang',
[2814] Fix | Delete
'type' => 'text',
[2815] Fix | Delete
'tooltip-subtitle' => esc_html__('Enter the Language code','accelerated-mobile-pages'),
[2816] Fix | Delete
'title' => esc_html__('Language', 'accelerated-mobile-pages'),
[2817] Fix | Delete
'desc' => '<a href="https://developers.facebook.com/docs/internationalization" target="_blank">Locales and Languages Supported by Facebook </a>',
[2818] Fix | Delete
'default' => get_locale(),
[2819] Fix | Delete
'required' => array(
[2820] Fix | Delete
array('ampforwp-facebook-comments-support', '=' , 1)
[2821] Fix | Delete
),
[2822] Fix | Delete
),
[2823] Fix | Delete
//Vuukle options
[2824] Fix | Delete
array(
[2825] Fix | Delete
'id' => 'ampforwp-vuukle-comments-support',
[2826] Fix | Delete
'type' => 'switch',
[2827] Fix | Delete
'title' => esc_html__('Vuukle Comments', 'accelerated-mobile-pages'),
[2828] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Vuukle comments using this switch.', 'accelerated-mobile-pages'),
[2829] Fix | Delete
'default' => 0,
[2830] Fix | Delete
),
[2831] Fix | Delete
array(
[2832] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2833] Fix | Delete
'id' => 'ampforwp-vuukle-comments-apiKey',
[2834] Fix | Delete
'type' => 'text',
[2835] Fix | Delete
'tooltip-subtitle' => esc_html__('Enter the API key of Vuukle','accelerated-mobile-pages'),
[2836] Fix | Delete
'title' => esc_html__('API Key', 'accelerated-mobile-pages'),
[2837] Fix | Delete
'default' => '',
[2838] Fix | Delete
'desc' => "For Example xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
[2839] Fix | Delete
'required' => array(
[2840] Fix | Delete
array('ampforwp-vuukle-comments-support', '=' , 1),
[2841] Fix | Delete
),
[2842] Fix | Delete
),
[2843] Fix | Delete
array(
[2844] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2845] Fix | Delete
'id' => 'ampforwp-vuukle-comments-emoji',
[2846] Fix | Delete
'type' => 'switch',
[2847] Fix | Delete
'title' => esc_html__('Vuukle Emoji', 'accelerated-mobile-pages'),
[2848] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Vuukle comments emoji using this switch.', 'accelerated-mobile-pages'),
[2849] Fix | Delete
'default' => 1,
[2850] Fix | Delete
'required' => array(
[2851] Fix | Delete
array('ampforwp-vuukle-comments-support', '=' , 1),
[2852] Fix | Delete
),
[2853] Fix | Delete
),
[2854] Fix | Delete
//SpotIM Options
[2855] Fix | Delete
array(
[2856] Fix | Delete
'id' => 'ampforwp-spotim-comments-support',
[2857] Fix | Delete
'type' => 'switch',
[2858] Fix | Delete
'title' => esc_html__('Spot.IM Conversation', 'accelerated-mobile-pages'),
[2859] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Spot.IM Conversation using this switch.', 'accelerated-mobile-pages'),
[2860] Fix | Delete
'default' => 0,
[2861] Fix | Delete
),
[2862] Fix | Delete
array(
[2863] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[2864] Fix | Delete
'id' => 'ampforwp-spotim-comments-apiKey',
[2865] Fix | Delete
'type' => 'text',
[2866] Fix | Delete
'tooltip-subtitle' => esc_html__('Enter the SPOT_ID of Spot.IM','accelerated-mobile-pages'),
[2867] Fix | Delete
'title' => esc_html__('SPOT ID', 'accelerated-mobile-pages'),
[2868] Fix | Delete
'default' => '',
[2869] Fix | Delete
'desc' => "For Example xxxxxxxx-xxxx-xxxx-xxxx",
[2870] Fix | Delete
'required' => array(
[2871] Fix | Delete
array('ampforwp-spotim-comments-support', '=' , 1),
[2872] Fix | Delete
),
[2873] Fix | Delete
),
[2874] Fix | Delete
[2875] Fix | Delete
)
[2876] Fix | Delete
) );
[2877] Fix | Delete
[2878] Fix | Delete
function ampforwp_fb_instant_article() {
[2879] Fix | Delete
$feedname = '';
[2880] Fix | Delete
$fb_instant_article_feed = '';
[2881] Fix | Delete
$input = '';
[2882] Fix | Delete
[2883] Fix | Delete
$feedname = 'instant_articles';
[2884] Fix | Delete
if(get_option('permalink_structure') == ''){
[2885] Fix | Delete
$feedname = '?feed=instant_articles';
[2886] Fix | Delete
}
[2887] Fix | Delete
$fb_instant_article_feed = trailingslashit( get_home_url() ).$feedname ;
[2888] Fix | Delete
$input = '<a href=" '. esc_url_raw($fb_instant_article_feed) . '" target="_blank">' . esc_url_raw( $fb_instant_article_feed ). '</a>' ;
[2889] Fix | Delete
[2890] Fix | Delete
return strip_tags($input, '<a>');
[2891] Fix | Delete
}
[2892] Fix | Delete
[2893] Fix | Delete
// Facebook Instant Articles
[2894] Fix | Delete
Redux::setSection( $opt_name, array(
[2895] Fix | Delete
'title' => esc_html__( 'Instant Articles', 'accelerated-mobile-pages' ),
[2896] Fix | Delete
'id' => 'fb-instant-article',
[2897] Fix | Delete
'subsection' => true,
[2898] Fix | Delete
'fields' => array(
[2899] Fix | Delete
array(
[2900] Fix | Delete
'id' => 'ampforwp-fbia_1',
[2901] Fix | Delete
'type' => 'section',
[2902] Fix | Delete
'title' => esc_html__('Facebook Instant Articles Setup', 'accelerated-mobile-pages'),
[2903] Fix | Delete
'indent' => true,
[2904] Fix | Delete
'layout_type' => 'accordion',
[2905] Fix | Delete
'accordion-open'=> 1,
[2906] Fix | Delete
),
[2907] Fix | Delete
array(
[2908] Fix | Delete
'id' =>'fb-instant-article-switch',
[2909] Fix | Delete
'type' => 'switch',
[2910] Fix | Delete
'title' => esc_html__('Instant Articles', 'accelerated-mobile-pages'),
[2911] Fix | Delete
'default' => 0,
[2912] Fix | Delete
'true' => 'true',
[2913] Fix | Delete
'false' => 'false',
[2914] Fix | Delete
'desc' => esc_html__('Re-Save permalink when you enable this option, please have a look', 'accelerated-mobile-pages').' <a href="https://ampforwp.com/flush-rewrite-urls/">'.esc_html__('here', 'accelerated-mobile-pages').'</a> '.esc_html__('on how to do it', 'accelerated-mobile-pages'),
[2915] Fix | Delete
),
[2916] Fix | Delete
array(
[2917] Fix | Delete
'id' => 'fb-instant-article-feed-url',
[2918] Fix | Delete
'type' => 'info',
[2919] Fix | Delete
'style' => 'critical',
[2920] Fix | Delete
'desc' => ampforwp_fb_instant_article(),
[2921] Fix | Delete
'title' => esc_html__('Facebook Instant Articles Feed URL', 'accelerated-mobile-pages'),
[2922] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[2923] Fix | Delete
),
[2924] Fix | Delete
array(
[2925] Fix | Delete
'id' => 'fb-instant-page-id',
[2926] Fix | Delete
'type' => 'text',
[2927] Fix | Delete
'title' => esc_html__('Facebook Page ID', 'accelerated-mobile-pages'),
[2928] Fix | Delete
'desc' => esc_html__('Follow ','accelerated-mobile-pages').'<a href="https://www.facebook.com/instant_articles/signup" target="_blank">'.esc_html__('these instructions.','accelerated-mobile-pages').'</a>'.esc_html__(' to sign up to Instant Articles and get your Facebook Page ID.', 'accelerated-mobile-pages'),
[2929] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[2930] Fix | Delete
),
[2931] Fix | Delete
[2932] Fix | Delete
array(
[2933] Fix | Delete
'id' => 'amp-fbia_2',
[2934] Fix | Delete
'type' => 'section',
[2935] Fix | Delete
'title' => esc_html__('Facebook Instant Articles Settings', 'accelerated-mobile-pages'),
[2936] Fix | Delete
'indent' => true,
[2937] Fix | Delete
'layout_type' => 'accordion',
[2938] Fix | Delete
'accordion-open'=> 1,
[2939] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1),
[2940] Fix | Delete
),
[2941] Fix | Delete
array(
[2942] Fix | Delete
'id' => 'fb-instant-article-order-by',
[2943] Fix | Delete
'type' => 'select',
[2944] Fix | Delete
'title' => esc_html__('Show instant article on', 'accelerated-mobile-pages'),
[2945] Fix | Delete
'default' => '1',
[2946] Fix | Delete
'tooltip-subtitle' => esc_html__('Select the type to show instant article on Publish Date/Updated Date.', 'accelerated-mobile-pages'),
[2947] Fix | Delete
'options' => array(
[2948] Fix | Delete
'1' => 'Published Date',
[2949] Fix | Delete
'2' => 'Updated Date'
[2950] Fix | Delete
),
[2951] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[2952] Fix | Delete
),
[2953] Fix | Delete
array(
[2954] Fix | Delete
'id' => 'ampforwp-fb-instant-article-posts',
[2955] Fix | Delete
'type' => 'text',
[2956] Fix | Delete
'title' => esc_html__('Number of Posts', 'accelerated-mobile-pages'),
[2957] Fix | Delete
'tooltip-subtitle' => esc_html__('Enter the number of posts to generate for Instant Articles.', 'accelerated-mobile-pages'),
[2958] Fix | Delete
'desc' => esc_html__('Leave this empty to generate All Posts (50).', 'accelerated-mobile-pages'),
[2959] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1),
[2960] Fix | Delete
'default' => '50'
[2961] Fix | Delete
),
[2962] Fix | Delete
array(
[2963] Fix | Delete
'id' => 'ampforwp-instant-article-author-meta',
[2964] Fix | Delete
'type' => 'switch',
[2965] Fix | Delete
'title' => esc_html__('Author Meta', 'accelerated-mobile-pages'),
[2966] Fix | Delete
'default' => 1,
[2967] Fix | Delete
'true' => 'true',
[2968] Fix | Delete
'false' => 'false',
[2969] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Author Meta', 'accelerated-mobile-pages'),
[2970] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[2971] Fix | Delete
),
[2972] Fix | Delete
array(
[2973] Fix | Delete
'id' => 'ampforwp-instant-article-author-bio',
[2974] Fix | Delete
'type' => 'switch',
[2975] Fix | Delete
'title' => esc_html__('Author Bio', 'accelerated-mobile-pages'),
[2976] Fix | Delete
'default' => 0,
[2977] Fix | Delete
'true' => 'true',
[2978] Fix | Delete
'false' => 'false',
[2979] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable/Disable Author Bio', 'accelerated-mobile-pages'),
[2980] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[2981] Fix | Delete
),
[2982] Fix | Delete
array(
[2983] Fix | Delete
'id' => 'ampforwp-ia-related-articles',
[2984] Fix | Delete
'type' => 'switch',
[2985] Fix | Delete
'title' => esc_html__('Related Articles', 'accelerated-mobile-pages'),
[2986] Fix | Delete
'default' => 0,
[2987] Fix | Delete
'true' => 'true',
[2988] Fix | Delete
'false' => 'false',
[2989] Fix | Delete
'tooltip-subtitle' => esc_html__('Show/Hide Related Articles', 'accelerated-mobile-pages'),
[2990] Fix | Delete
'required' => array('fb-instant-article-switch', '=', 1)
[2991] Fix | Delete
),
[2992] Fix | Delete
array(
[2993] Fix | Delete
'id' => 'fb-instant-article-ads',
[2994] Fix | Delete
'type' => 'switch',
[2995] Fix | Delete
'title' => esc_html__('Advertisement', 'accelerated-mobile-pages'),
[2996] Fix | Delete
'default' => 0,
[2997] Fix | Delete
'true' => 'true',
[2998] Fix | Delete
'false' => 'false',
[2999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function