DID YOU KNOW?You can create your own Custom theme with AMP Theme Framework';
// #1093 Display only If AMP Comments is Not Installed
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if(!is_plugin_active( 'amp-comments/amp-comments.php' )){
$comment_AD_URL = "http://ampforwp.com/amp-comments/#utm_source=options-panel&utm_medium=comments-tab&utm_campaign=AMP%20Plugin";
$comment_desc = '
';
}
$wpbakery_for_ampchecker = $divi_pb_for_ampchecker = $elemntr_pb_for_ampchecker = array();
if(!is_plugin_active( 'amp-pagebuilder-compatibility/amp-pagebuilder-compatibility.php' )){
$wpbakery_for_ampchecker = array(
'id' => 'wpbakery_pb_for_amp_info_normal',
'type' => 'info',
'required' => array(
array('ampforwp-wpbakery-pb-for-amp', '=' , true),
),
'desc' => sprintf('
';
}
// If CTA is not Activated
$cta_desc = "";
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if(!is_plugin_active( 'AMP-cta/amp-cta.php' )){
$cta_AD_URL = "http://ampforwp.com/call-to-action/#utm_source=options-panel&utm_medium=call-to-action_banner_in_notification_bar&utm_campaign=AMP%20Plugin";
$cta_desc = '
';
}
$all_extensions_data = array();
global $all_extensions_data;
$extension_listing_array = array(
array(
'name'=>'Advanced AMP ADS',
'desc'=>'Add Advertisement directly in the content',
'img_src'=>AMPFORWP_IMAGE_DIR . '/click.png',
'price'=>'$29',
'url_link'=>'http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=extension-tab_advanced-amp-ads&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-incontent-ads/amptoolkit-incontent-ads.php',
'item_name'=>'Advanced AMP Ads',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-incontent-ads/amptoolkit-incontent-ads.php')? 1:2),
'settingUrl'=>'{ampforwp-incontent-ads-subsection}',
),
array(
'name'=>'Contact Form 7',
'desc'=>'Add Contact Us Form in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/cf7.png',
'price'=>'$39',
'url_link'=>'http://ampforwp.com/contact-form-7/#utm_source=options-panel&utm_medium=extension-tab_cf7&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-cf7/amp-cf7.php',
'item_name'=>'Contact Form 7 for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-cf7/amp-cf7.php')? 1 : 2),
'settingUrl'=>'{ampforwp-cf7-subsection}',
),
array(
'name'=>'Caldera Forms for AMP',
'desc'=>'Add Caldera Form in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/cf.png',
'price'=>'$39',
'url_link'=>'http://ampforwp.com/caldera-forms-for-amp',
'plugin_active_path'=> 'caldera-forms-for-amp/caldera-forms-for-amp.php',
'item_name'=>'Caldera Forms for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('caldera-forms-for-amp/caldera-forms-for-amp.php')? 1 : 2),
),
array(
'name'=>'Gravity Forms',
'desc'=>'Add Gravity Forms Support in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/gf.png',
'price'=>'$79',
'url_link'=>'http://ampforwp.com/gravity-forms/#utm_source=options-panel&utm_medium=extension-tab_gf&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-gravity-forms/amp-gravity-forms.php',
'item_name'=>'Gravity Forms',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-gravity-forms/amp-gravity-forms.php')? 1 : 2),
'settingUrl'=>'{ampforwp-gf-subsection}',
),
array(
'name'=>'bbPress For AMP',
'desc'=>'Add bbPress Forum Compatibility to your AMP version',
'img_src'=>AMPFORWP_IMAGE_DIR . '/bbp-icon.png',
'price'=>'$89',
'url_link'=>'http://ampforwp.com/bbpress/#utm_source=options-panel&utm_medium=extension-tab_bbpress-for-wordpress&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'bbpress-for-amp/bbpress-for-amp.php',
'item_name'=>'bbPress for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('bbpress-for-amp/bbpress-for-amp.php')? 1 : 2),
),
array(
'name'=>'Ninja Forms for AMP',
'desc'=>'Add Ninja Forms Support in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/nf.png',
'price'=>'$79',
'url_link'=>'http://ampforwp.com/ninja-forms/#utm_source=options-panel&utm_medium=extension-tab_gf&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-ninja-forms/amp-ninja-forms.php',
'item_name'=>'Ninja Forms',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-ninja-forms/amp-ninja-forms.php')? 1 : 2),
'settingUrl'=>'{ampforwp-nf-subsection}',
),
array(
'name'=>'WP Forms for AMP',
'desc'=>'Add WP Forms Support in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/wpf.png',
'price'=>'$79',
'url_link'=>'http://ampforwp.com/wp-forms/#utm_source=options-panel&utm_medium=extension-tab_gf&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'wp-forms-for-amp/amp-wpforms.php',
'item_name'=>'WP Forms for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('wp-forms-for-amp/amp-wpforms.php')? 1 : 2),
'settingUrl'=>'{ampforwp-wpf-subsection}',
),
array(
'name'=>'Email Opt-in Forms',
'desc'=>'Capture Leads with Email Subscription.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/email.png',
'price'=>'$79',
'url_link'=>'http://ampforwp.com/opt-in-forms/#utm_source=options-panel&utm_medium=extension-tab_opt-in-forms&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-optin/amp-optin.php',
'item_name'=>'Opt-in-Forms for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-optin/amp-optin.php')? 1 : 2),
'settingUrl'=>'{ampforwp-optin-subsection}'
),
array(
'name'=>'AMP Cache',
'desc'=>'AMP Cache is a Revolutionary Cache System for AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/cache-icon.png',
'price'=>'$89',
'url_link'=>'http://ampforwp.com/amp-cache/#utm_source=options-panel&utm_medium=extension-tab_cache&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-cache/ampforwp-cache.php',
'item_name'=>'AMP Cache',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-cache/ampforwp-cache.php')? 1 : 2),
'settingUrl'=>'{opt-go-amp-cache}',
),
array(
'name'=>'PWA For WordPress',
'desc'=>'Add Progressive Web App support for WordPress website',
'img_src'=>AMPFORWP_IMAGE_DIR . '/pwa-icon.png',
'price'=>'$89',
'url_link'=>'http://ampforwp.com/pwa/#utm_source=options-panel&utm_medium=extension-tab_pwa-for-wordpress&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'pwa-for-wordpress/amp-pwa.php',
'item_name'=>'PWA For WordPress',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('pwa-for-wordpress/amp-pwa.php')? 1 : 2),
'settingUrl'=>admin_url( 'admin.php?page=ampforwp-pwa' ),
),
array(
'name'=>'AMP Popup',
'desc'=>'Pop-Up Functionality for AMP in WordPress. Most easiest and the best way to include Pop-Up in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/pwa-icon.png',
'price'=>'$39',
'url_link'=>'https://ampforwp.com/amp-popup/',
'plugin_active_path'=> 'amp-popup/amp-popup.php',
'item_name'=>'AMP Popup',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-popup/amp-popup.php')? 1 : 2),
),
array(
'name'=>'AMP Pagebuilder Compatibility',
'desc'=>'Page Builder Functionality for AMP in WordPress. Most easiest and the best way to include Page Builder in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/pwa-icon.png',
'price'=>'$89',
'url_link'=>'http://ampforwp.com/page-builder-compatibility-for-amp/#utm_source=options-panel&utm_medium=extension-tab_pagebuilder-for-amp&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-pagebuilder-compatibility/amp-pagebuilder-compatibility.php',
'item_name'=>'AMP Pagebuilder Compatibility',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-pagebuilder-compatibility/amp-pagebuilder-compatibility.php')? 1 : 2),
'settingUrl'=>'{amp-content-builder}',
),
array(
'name'=>'Call To Action (CTA)',
'desc'=>'Higher Visibility & More Conversions',
'img_src'=>AMPFORWP_IMAGE_DIR . '/mac-click.png',
'price'=>'$29',
'url_link'=>'http://ampforwp.com/call-to-action/#utm_source=options-panel&utm_medium=extension-tab_amp-cta&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-cta/amp-cta.php',
'item_name'=>'Call To Action for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-cta/amp-cta.php')? 1 : 2),
'settingUrl'=>'{ampforwp-cta-subsection}',
),
array(
'name'=>'Classipress for AMP',
'desc'=>'Amp Compatibility for Classipress Theme',
'img_src'=>AMPFORWP_IMAGE_DIR . '/cp.png',
'price'=>'$19',
'url_link'=>'http://ampforwp.com/classipress-for-amp',
'plugin_active_path'=> 'classipress-for-amp/classipress-for-amp.php',
'item_name'=>'Classipress for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('classipress-for-amp/classipress-for-amp.php')? 1 : 2),
),
array(
'name'=>'AMP WooCommerce Pro',
'desc'=>'Advanced WooCommerce in AMP in two clicks.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/woo.png',
'price'=>'$79',
'url_link'=>'https://ampforwp.com/woocommerce/#utm_source=options-panel&utm_medium=extension-tab_woocommerce&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-woocommerce-pro/amp-woocommerce.php',
'item_name'=>'WooCommerce',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-woocommerce-pro/amp-woocommerce.php')? 1 : 2),
'settingUrl'=>'{ampforwp-wcp-subsection}',
),
array(
'name'=> 'EDD for AMP',
'desc'=> 'EDD compatibility with AMP',
'img_src'=> AMPFORWP_IMAGE_DIR . '/edd-icon.png',
'price'=> '$19',
'url_link'=>'https://ampforwp.com/edd-for-amp/#utm_source=options-panel&utm_medium=extension-tab_edd-for-amp&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'edd-for-amp/edd-for-amp.php',
'item_name'=>'EDD for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('edd-for-amp/edd-for-amp.php')? 1 : 2),
),
array(
'name'=>'Facebook Chat For AMP',
'desc'=>'Facebook Chat for AMP in WordPress. Most easiest and the best way to include Facebook Chat in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/comments.png',
'price'=>'$19',
'url_link'=>'https://ampforwp.com/facebook-chat-for-amp/',
'plugin_active_path'=> 'facebook-chat-for-amp/facebook-chat-for-amp.php',
'item_name'=>'Facebook Chat For AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('facebook-chat-for-amp/facebook-chat-for-amp.php')? 1 : 2),
),
array(
'name'=>'AMP Layouts',
'desc'=>'Design system built for AMP that makes easy to create your own AMP website.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/amplayouts.png',
'price'=>'$89',
'url_link'=>'https://ampforwp.com/amp-layouts/#utm_source=options-panel&utm_medium=extension-tab_amp-layouts&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-layouts/amp-layouts.php',
'item_name'=>'AMP Layouts',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-layouts/amp-layouts.php')? 1 : 2),
'settingUrl'=>'{amp-theme-settings}',
),
array(
'name'=>'Newspaper AMP Theme',
'desc'=>'Advanced News Magazine theme built for AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/click.png',
'price'=>'$49',
'url_link'=>'http://ampforwp.com/themes/newspaper/#utm_source=options-panel&utm_medium=extension-tab_themes/newspaper&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-newspaper-theme/ampforwp-custom-theme.php',
'item_name'=>'Newspaper Theme for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-newspaper-theme/ampforwp-custom-theme.php')? 1 : 2),
'settingUrl'=>'{ampforwp-theme-subsection}',
),
array(
'name'=>'ACF for AMP',
'desc'=>'Easily add ACF support in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/acf.png',
'price'=>'$29',
'url_link'=>'http://ampforwp.com/acf-amp/#utm_source=options-panel&utm_medium=extension-tab_opt-in-forms&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'acf-for-amp-v2/amp-acf.php',
'item_name'=>'ACF for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('acf-for-amp-v2/amp-acf.php')? 1 : 2),
'settingUrl'=>admin_url('edit.php?post_type=amp_acf'),
),
array(
'name'=>'AMP Comments',
'desc'=>'You can now allow the same comment functionality on AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/comments.png',
'price'=>'$29.99',
'url_link'=>'https://ampforwp.com/amp-comments/#utm_source=options-panel&utm_medium=extension-tab_amp-comments&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-comments/amp-comments.php',
'item_name'=>'AMP Comments',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-comments/amp-comments.php')? 1: 2),
'settingUrl'=>'{ampforwp-cmt-subsection}',
),
array(
'name'=>'Star Ratings',
'desc'=>'Star Review Ratings for AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/star.png',
'price'=>'$19',
'url_link'=>'http://ampforwp.com/amp-ratings/#utm_source=options-panel&utm_medium=extension-tab_amp-ratings&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-rating/amp-rating.php',
'item_name'=>'AMP Rating',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-rating/amp-rating.php')? 1 : 2),
'settingUrl'=>'{ampforwp-ratings-subsection}',
),
array(
'name'=>'Custom Post Type',
'desc'=>'Enable Custom Post type support in AMP.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/comments.png',
'price'=>'$19',
'url_link'=>'http://ampforwp.com/custom-post-type/#utm_source=options-panel&utm_medium=extension-tab_custom-post-type&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-custom-post-type/amp-custom-post-type.php',
'item_name'=>'Custom Post Type Support for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-custom-post-type/amp-custom-post-type.php')? 1 : 2),
'settingUrl'=>'{ampforwp-cpt-subsection}',
),
array(
'name'=>'AMP Stories',
'desc'=>'A Revolutionary new way to share your stories',
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-stories.png',
'price'=>'$79',
'url_link'=>'https://ampforwp.com/amp-stories/#utm_source=options-panel&utm_medium=extension-tab_stories&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-stories/ampforwp-stories.php',
'item_name'=>'AMP Stories',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-stories/ampforwp-stories.php')? 1 : 2),
'settingUrl'=>admin_url( 'edit.php?post_type=ampforwp_story' ),
),
array(
'name'=>'Shortcodes Ultimate',
'desc'=>'This is an extension of Shortcodes Ultimate plugin for AMP Compatibility',
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-SU.png',
'price'=>'$19',
'url_link'=>'https://ampforwp.com/shortcodes-ultimate/#utm_source=options-panel&utm_medium=extension-tab_shortcodes_ultimate&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'shortcodes-ultimate-for-amp/shortcodes-ultimate-for-amp.php',
'item_name'=>'Shortcodes Ultimate',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('shortcodes-ultimate-for-amp/shortcodes-ultimate-for-amp.php')? 1 : 2),
),
array(
'name'=>'Structured Data for WP',
'desc'=>'Structured Data for your site and for AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/sd-icon.png',
'price'=>'$29',
'url_link'=>'https://ampforwp.com/structuredata-for-wp/#utm_source=options-panel&utm_medium=extension-tab_structuredata-for-wp&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'structured-data-for-wp/structured-data-for-wp.php',
'item_name'=>'Structured Data for WP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('structured-data-for-wp/structured-data-for-wp.php')? 1: 2),
//'settingUrl'=>'',
),
array(
'name'=>'Polylang For AMP',
'desc'=>'Polylang compatibility with AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/polylang-icon.png',
'price'=>'$19',
'url_link'=>'https://ampforwp.com/polylang-for-amp/#utm_source=options-panel&utm_medium=extension-tab_polylang-for-amp&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'polylang-for-amp/amp_polylang.php',
'item_name'=>'Polylang For AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('polylang-for-amp/amp_polylang.php')? 1: 2),
),
array(
'name'=>'WPML For AMP',
'desc'=>'WPML compatibility with AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/wpml-icon.png',
'price'=>'$19',
'url_link'=>'https://ampforwp.com/wpml-for-amp/#utm_source=options-panel&utm_medium=extension-tab_wpml-for-amp&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'wpml-for-amp/wpml_for_amp.php',
'item_name'=>'WPML For AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('wpml-for-amp/wpml_for_amp.php')? 1: 2),
),
array(
'name'=>'AMP Teaser',
'desc'=>'AMP Teaser automatically clips the content based on your selection',
'img_src'=>AMPFORWP_IMAGE_DIR . '/teaser-icon.png',
'price'=>'$29',
'url_link'=>'https://ampforwp.com/amp-teaser/#utm_source=options-panel&utm_medium=extension-tab_amp-teaser&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'amp-teaser/amp-teaser.php',
'item_name'=>'AMP Teaser',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('amp-teaser/amp-teaser.php')? 1: 2),
'settingUrl'=>'{ampforwp-teaser-subsection}',
)
);
$viewAllExtensions = array(
'name'=>'View All Extensions',
'desc'=>'See all the extensions available for AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/comments.png',
'price'=>'FREE',
'url_link'=>'https://ampforwp.com/extensions/#utm_source=options-panel&utm_medium=extension-tab_amp-more-comingsoon&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> '',
'item_name'=>'',
'store_url'=>'',
'is_activated'=>2,
'settingUrl'=>'',
);
$extension_listing_array = apply_filters( 'ampforwp_extension_lists_filter', $extension_listing_array );
$all_extensions_data = $extension_listing_array;
$ampforwp_extension_list_html = '';
$ampforwp_nameOfUser = "";
$ampforwp_is_productActivated = false;
function ampforwp_sort_extension_array($a, $b){
if ($a['is_activated'] == $b['is_activated']) {
return strcmp(strtolower($a['name']), strtolower($b['name']));
}
return ($a['is_activated'] < $b['is_activated']) ? -1 : 1;
}
usort($extension_listing_array, 'ampforwp_sort_extension_array');
//add view all extensions
array_push($extension_listing_array, $viewAllExtensions);
foreach ($extension_listing_array as $key => $extension) {
$currentStatus = "";
$onclickUrl = '';
$onclickUrlclose = '';
$settingPageUrl = '';
$pluginReview = ''.$extension['desc'].'
'.$pluginReview.'Take your AMP to the next level with these premium extensions which gives you advanced features.
'.$ampforwp_extension_list_html.'
Take your AMP to the next level with more beautiful themes, great extensions and more powerful features.
BUY NOW
Includes a suite of advanced features like Ads, Email Optin, Contact Forms, E-Commerce, CTA, Cache and 15+ premium extensions.
Wide Variety of AMP Theme Designs included with AMP Layouts. We are dedicated to release 2-3 new designs every month.
Get private ticketing help from our full-time staff who helps you with the technical issues.
We take bug reports and feature requests seriously. We’re continiously developing & improve this product for last 2 years with passion and love.
We\'re constantly expanding the plugin and make it more useful. We have wide variety of features which will fit any use-case.
We have 4 Built in themes for AMP which elevates your AMP exeprience.
We have a full time team which helps you with each and every issue regarding AMP.
Advanced Ad slots, Incontent ads & Supports all Ad networks.
Revolutionary cache system for AMP which makes it insanely fast.
Gravity Forms and Contact form 7 Support for the AMP.
WooCommerce & Easy Digital Downloads Support.
Native Email optin forms to capture email with 17+ company integrations.
Get your message, product or offering to your visitors.
Integrates with WPML, Polylang and WeGlot to provide localization.
Advanced Schema integration in AMP and WordPress.
Built-in tools to help you impliment ACF easily in AMP.
Easily add Rating to the posts. Supports 3 popular rating plugins.
AMP Layouts has 6 pre-built designs, We are constantly adding every week.
With a Dedicated person helping you with the extension setup and questions.
We\'re continiously updating our premium features and releasing them.
Be the first one to get the innovative features that we build in the future.
More than 130k Websites, Blogs & E-Commerce website are powered by our AMP making it the #1 Rated AMP plugin in WordPress Community.
Read The ReviewsNo. There are no setup fees on any of our plans
All the plans are year-to-year which are subscribed annually.
All the plans are year-to-year which are subscribed annually.
Yes! Top-notch customer support for our paid customers is key for a quality product, so we’ll do our very best to resolve any issues you encounter via our support page.
Yes. You can cancel your membership by contacting us.
Yes. You can upgrade or downgrade your plan by contacting us.
You are fully protected by our 100% Money Back Guarantee Unconditional. If during the next 14 days you experience an issue that makes the plugin unusable and we are unable to resolve it, we’ll happily offer a full refund.
All the plans are year-to-year which are subscribed annually.
All the plans are year-to-year which are subscribed annually.
Contact a HumanTake your AMP to the next level with these premium extensions which gives you advanced features.

Add Advertisement directly in the content

Capture Leads with Email Subscription.

Higher Visibility & More Conversions

Enable Custom Post type support in AMP.

Easily add ACF support in AMP.

Enable DFP Support for AMP.

Star Review Ratings for AMP.

Advanced WooCommerce in AMP in two clicks.

Remove Category Base Support in AMP

See all the extensions available for AMP
This is the tab content, HTML is allowed.
', 'accelerated-mobile-pages' ) ), array( 'id' => 'redux-help-tab-2', 'title' => esc_html__( 'Theme Information 2', 'accelerated-mobile-pages' ), 'content' => esc_html__( 'This is the tab content, HTML is allowed.
', 'accelerated-mobile-pages' ) ) ); Redux::setHelpTab( $opt_name, $tabs ); // Set the help sidebar $content = esc_html__( 'This is the sidebar content, HTML is allowed.
', 'accelerated-mobile-pages' ); Redux::setHelpSidebar( $opt_name, $content ); /* * <--- END HELP TABS */ /* * * ---> START SECTIONS * */ Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Settings', 'accelerated-mobile-pages' ), 'id' => 'basic', 'fields' => array( array( 'id' => 'opt-blank', 'type' => 'raw', 'title' => '', 'desc' => '', ) ), 'desc' => '' . sprintf( '1. %s: ',esc_html__('Technical Customer Support','accelerated-mobile-pages')) . '' . esc_html__('We have a special community support forum where you can ask us questions and get help about your AMP related questions. Delivering a good user experience means a lot to us and so we try our best to reply each and every question that gets asked.', 'accelerated-mobile-pages' ) . '
' . '' . sprintf( '2. %s: ',esc_html__('Found a bug? Use GitHub','accelerated-mobile-pages' )) . '' . esc_html__( 'If you’ve discovered a bug in our software, the best place to report it is on GitHub. This is where the AMP developers are active. They’ll review your bug report and triage the bug. The more relevant details you add to your report, the faster bugs are usually solved. And please remember to search first, We think that most general tickets have been created already.', 'accelerated-mobile-pages' ) . '
' . '' . sprintf( '3. %s: ',esc_html__('Priority Support','accelerated-mobile-pages' )) . '' . esc_html__( 'We will personally take care that your website’s AMP version is perfectly validated. We will make sure that your AMP version gets approved and indexed by Google Webmaster Tools properly and we will even keep an eye on AMP updates from Google and implement them into your website.', 'accelerated-mobile-pages' ) . '
' . '' . sprintf( '4. %s: ',esc_html__('Hire Us / Customization', 'accelerated-mobile-pages' )) . '' . esc_html__( 'We are your development backbone who specialises Backend and Frontend technologies. We have the capability to handle & solve the complex issues. If you have any customization, feel free to ask.', 'accelerated-mobile-pages' ) . '
' . '' . sprintf( '5. %s: ',esc_html__('What\'s New in this Version?','accelerated-mobile-pages' )) . '' . esc_html__( 'If you want to know whats new in the latest version of the plugin, then please use this link.', 'accelerated-mobile-pages' ) . '
' . '
';
}
add_filter('ampforwp_ads_option_fields', 'ampforwp_add_ads_fields');
function ampforwp_add_ads_fields($fields){
if ( !is_plugin_active('ads-for-wp/ads-for-wp.php') ) {
$fields[] = array(
'id' => 'amp-ads_1',
'type' => 'section',
'title' => esc_html__('Advertisement Positions', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
// Ad 1 Starts
$fields[] = array(
'id' =>'enable-amp-ads-1',
'type' => 'switch',
'title' => esc_html__('AD #1', 'accelerated-mobile-pages'),
'default' => 0,
'desc' => esc_html__('Below the Header (SiteWide)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'class' => 'child_opt child_opt_arrow',
'id' => 'enable-amp-ads-select-1',
'type' => 'select',
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-1', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => esc_html__('300x250','accelerated-mobile-pages'),
'2' => esc_html__('336x280','accelerated-mobile-pages'),
'3' => esc_html__('728x90','accelerated-mobile-pages'),
'4' => esc_html__('300x600','accelerated-mobile-pages'),
'5' => esc_html__('320x100','accelerated-mobile-pages'),
'6' => esc_html__('200x50','accelerated-mobile-pages'),
'7' => esc_html__('320x50','accelerated-mobile-pages'), ),
'default' => '2',
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-text-feild-client-1',
'type' => 'text',
'required' => array('enable-amp-ads-1', '=' , '1'),
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
);
$fields[] = array(
'class' => 'child_opt',
'id' => 'enable-amp-ads-text-feild-slot-1',
'type' => 'text',
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-1', '=' , '1'),
'placeholder'=> '70XXXXXX12'
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-resp-1',
'type' => 'switch',
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array('enable-amp-ads-1', '=' , '1'),
);
// Ad 1 ends
// Ad 2 Starts
$fields[] = array(
'id'=>'enable-amp-ads-2',
'type' => 'switch',
'title' => esc_html__('AD #2', 'accelerated-mobile-pages'),
'default' => 0,
'desc' => esc_html__('Below the Footer (SiteWide)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'class' => 'child_opt child_opt_arrow',
'id' => 'enable-amp-ads-select-2',
'type' => 'select',
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-2', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => '300x250',
'2' => '336x280',
'3' => '728x90',
'4' => '300x600',
'5' => '320x100',
'6' => '200x50',
'7' => '320x50'
),
'default' => '2',
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-text-feild-client-2',
'type' => 'text',
'required' => array('enable-amp-ads-2', '=' , '1'),
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
);
$fields[] = array(
'class' => 'child_opt',
'id' => 'enable-amp-ads-text-feild-slot-2',
'type' => 'text',
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-2', '=' , '1'),
'placeholder'=> '70XXXXXX12'
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-resp-2',
'type' => 'switch',
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array('enable-amp-ads-2', '=' , '1'),
);
// Ad 2 ends
// Ad 3 starts
$fields[] = array(
'id' => 'enable-amp-ads-3',
'type' => 'switch',
'title' => esc_html__('AD #3', 'accelerated-mobile-pages'),
'default' => 0,
'desc' => esc_html__('Above the Post Content', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'class' => 'child_opt child_opt_arrow',
'id' => 'made-amp-ad-3-global',
'type' => 'select',
'title' => esc_html__('Display on', 'accelerated-mobile-pages'),
'options' => array (
'1' => 'Single',
'2' => 'Pages',
'3' => 'Custom Post Types',
'4' => 'Global'
),
'multi' => true,
'default' => '1',
'desc' => esc_html__('Display the Ad on only post or on all posts and pages ', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-3', '=' , '1')
);
$fields[] = array(
'class' => 'child_opt child_opt_arrow',
'id' => 'enable-amp-ads-select-3',
'type' => 'select',
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-3', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => '300x250',
'2' => '336x280',
'3' => '728x90',
'4' => '300x600',
'5' => '320x100',
'6' => '200x50',
'7' => '320x50'
),
'default' => '2',
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-text-feild-client-3',
'type' => 'text',
'required' => array('enable-amp-ads-3', '=' , '1'),
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
);
$fields[] = array(
'class' => 'child_opt',
'id' => 'enable-amp-ads-text-feild-slot-3',
'type' => 'text',
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-3', '=' , '1'),
'placeholder'=> '70XXXXXX12'
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-resp-3',
'type' => 'switch',
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array('enable-amp-ads-3', '=' , '1'),
);
// Ad 3 ends
// Ad 4 Starts
$fields[] = array(
'id' => 'enable-amp-ads-4',
'type' => 'switch',
'title' => esc_html__('AD #4', 'accelerated-mobile-pages'),
'default' => 0,
'desc' => __('Below the Post Content (Single Post)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'class' => 'child_opt child_opt_arrow',
'id' => 'enable-amp-ads-select-4',
'type' => 'select',
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-4', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => esc_html__('300x250','accelerated-mobile-pages'),
'2' => esc_html__('336x280','accelerated-mobile-pages'),
'3' => esc_html__('728x90','accelerated-mobile-pages'),
'4' => esc_html__('300x600','accelerated-mobile-pages'),
'5' => esc_html__('320x100','accelerated-mobile-pages'),
'6' =>esc_html__('200x50','accelerated-mobile-pages'),
'7' => esc_html__('320x50','accelerated-mobile-pages')
),
'default' => '2',
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-text-feild-client-4',
'type' => 'text',
'required' => array('enable-amp-ads-4', '=' , '1'),
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
);
$fields[] = array(
'class' => 'child_opt',
'id' => 'enable-amp-ads-text-feild-slot-4',
'type' => 'text',
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-4', '=' , '1'),
'placeholder'=> '70XXXXXX12'
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-resp-4',
'type' => 'switch',
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array('enable-amp-ads-4', '=' , '1'),
);
// Ad 4 ends
//Ad 5 Starts
$fields[] =array(
'id' => 'enable-amp-ads-5',
'type' => 'switch',
'title' => esc_html__('AD #5', 'accelerated-mobile-pages'),
'default' => 0,
'desc' => esc_html__('Below The Title (Single Post)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'class' => 'child_opt child_opt_arrow',
'id' => 'enable-amp-ads-select-5',
'type' => 'select',
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-5', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => esc_html__('300x250','accelerated-mobile-pages'),
'2' => esc_html__('336x280','accelerated-mobile-pages'),
'3' => esc_html__('728x90','accelerated-mobile-pages'),
'4' => esc_html__('300x600','accelerated-mobile-pages'),
'5' => esc_html__('320x100','accelerated-mobile-pages'),
'6' => esc_html__('200x50','accelerated-mobile-pages'),
'7' => esc_html__('320x50','accelerated-mobile-pages'),
),
'default' => '2',
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-text-feild-client-5',
'type' => 'text',
'required' => array('enable-amp-ads-5', '=' , '1'),
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
);
$fields[] = array(
'class' => 'child_opt',
'id' => 'enable-amp-ads-text-feild-slot-5',
'type' => 'text',
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-5', '=' , '1'),
'placeholder'=> '70XXXXXX12'
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-resp-5',
'type' => 'switch',
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array('enable-amp-ads-5', '=' , '1'),
);
//Ad 6 Starts
$fields[] =array(
'id' => 'enable-amp-ads-6',
'type' => 'switch',
'title' => esc_html__('AD #6', 'accelerated-mobile-pages'),
'default' => 0,
'desc' => esc_html__('Above the Related Posts (Single Post)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'class' => 'child_opt child_opt_arrow',
'id' => 'enable-amp-ads-select-6',
'type' => 'select',
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-6', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => esc_html__('300x250','accelerated-mobile-pages'),
'2' => esc_html__('336x280','accelerated-mobile-pages'),
'3' => esc_html__('728x90','accelerated-mobile-pages'),
'4' => esc_html__('300x600','accelerated-mobile-pages'),
'5' => esc_html__('320x100','accelerated-mobile-pages'),
'6' => esc_html__('200x50','accelerated-mobile-pages'),
'7' => esc_html__('320x50','accelerated-mobile-pages')
),
'default' => '2',
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-text-feild-client-6',
'type' => 'text',
'required' => array('enable-amp-ads-6', '=' , '1'),
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
);
$fields[] = array(
'class' => 'child_opt',
'id' => 'enable-amp-ads-text-feild-slot-6',
'type' => 'text',
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-6', '=' , '1'),
'placeholder'=> '70XXXXXX12'
);
$fields[] = array(
'class' => 'child_opt',
'id' =>'enable-amp-ads-resp-6',
'type' => 'switch',
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array('enable-amp-ads-6', '=' , '1'),
);
}
$fields[] = array(
'id' => 'ampforwp-ads-section',
'class'=> is_plugin_active('ads-for-wp/ads-for-wp.php')? "adsactive": '',
'type' => 'section',
'title' => esc_html__('Introducing Ads for WP', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
$fields[] = array(
'id' => 'ampforwp-ads-module',
'class'=> is_plugin_active('ads-for-wp/ads-for-wp.php')? "adsactive": '',
'type' => 'raw',
'content' => '
',
),
),
) );
// Push Notifications section
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Push Notifications', 'accelerated-mobile-pages' ),
// 'icon' => 'el el-podcast',
'id' => 'ampforwp-push-notifications',
'desc' => " ",
'subsection' => true,
'fields' => array(
array(
'id' => 'ampforwp-pushnot-1',
'type' => 'section',
'title' => esc_html__('Push Notification Support', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
array(
'id' => 'ampforwp-web-push-onesignal',
'type' => 'switch',
'title' => 'OneSignal',
'tooltip-subtitle' => 'View Integration Tutorial (HTTPS is required)',
'true' => 'true',
'false' => 'false',
'default' => 0,
),
array(
'required' => array(
array( 'ampforwp-web-push-onesignal', '=' , 1 ),
),
'id' => 'ampforwp-one-signal-app-id',
'type' => 'text',
'title' => 'APP ID',
'class' => 'child_opt child_opt_arrow',
),
array(
'id' => 'ampforwp-onesignal-positioning',
'type' => 'section',
'title' => esc_html__('Positioning', 'accelerated-mobile-pages'),
'required' => array(
array( 'ampforwp-web-push-onesignal', '=' , 1 ),
array( 'amp-use-pot', '=' , 0 )
),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
array(
'id' => 'ampforwp-web-push-onesignal-below-content',
'type' => 'switch',
'title' => 'Below the Content',
'true' => 'true',
'false' => 'false',
'default' => 1,
'tooltip-subtitle' => 'Show Subscribe Button Below the Content',
'required' => array('ampforwp-web-push-onesignal', '=' , '1'),
),
array(
'id' => 'ampforwp-web-push-onesignal-above-content',
'type' => 'switch',
'title' => 'Above the Content',
'true' => 'true',
'false' => 'false',
'default' => 0,
'tooltip-subtitle' => 'Show Subscribe Button Above the Content',
'required' => array('ampforwp-web-push-onesignal', '=' , '1'),
),
array(
'id' => 'translation',
'type' => 'section',
'title' => esc_html__('Translation', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
array(
'id' => 'ampforwp-onesignal-translator-subscribe',
'type' => 'text',
'title' => esc_html__('Subscribe', 'accelerated-mobile-pages'),
'default' => esc_html__('Subscribe to updates','accelerated-mobile-pages'),
'placeholder'=>esc_html__('Add some text','accelerated-mobile-pages'),
),
array(
'id' => 'ampforwp-onesignal-translator-unsubscribe',
'type' => 'text',
'title' => esc_html__('Unsubsribe', 'accelerated-mobile-pages'),
'default' => esc_html__('Unsubscribe from updates','accelerated-mobile-pages'),
'placeholder'=>esc_html__('Add some text','accelerated-mobile-pages'),
),
array(
'id' => 'ampforwp-onesignal-exper',
'type' => 'section',
'title' => esc_html__('Experimental', 'accelerated-mobile-pages'),
'required' => array(
array( 'ampforwp-web-push-onesignal', '=' , 1 ),
array( 'amp-use-pot', '=' , 0 )
),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
array(
'id' => 'ampforwp-onesignal-http-site',
'type' => 'switch',
'title' => 'HTTP Site',
'tooltip-subtitle' => 'For HTTP Sites Only',
'required' => array('ampforwp-web-push-onesignal', '=' , '1'),
'true' => 'true',
'false' => 'false',
'default' => 0
),
array(
'id' => 'ampforwp-onesignal-subdomain',
'type' => 'text',
'title' => 'Subdomain',
'desc' => esc_html__('Example: ampforwp', 'accelerated-mobile-pages'),
'required' => array(
array('ampforwp-web-push-onesignal', '=' , '1'),
array('ampforwp-onesignal-http-site', '=','1')),
),
)
)
);
// contact form 7
$forms_support[] = array(
'id' => 'ampforwp-cfs_1',
'type' => 'section',
'title' => esc_html__('CF7 Compatibility', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
$forms_support[] = array(
'id' =>'amp-enable-contactform',
'type' => 'switch',
'title' => esc_html__('Contact Form 7 Support', 'accelerated-mobile-pages'),
'default' => '',
'true' => 'Enabled',
'false' => 'Disabled',
);
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if(!is_plugin_active( 'amp-cf7/amp-cf7.php' ) ){
$forms_support[]= array(
'id' => 'info_normal_cf7',
'type' => 'info',
'required' => array('amp-enable-contactform', '=' , '1'),
'desc' => '',
);
}
// Gravity Forms
$forms_support[] = array(
'id' => 'ampforwp-cfs_2',
'type' => 'section',
'title' => esc_html__('Gravity Forms Compatibility', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
$forms_support[] = array(
'id' =>'amp-enable-gravityforms_support',
'type' => 'switch',
'title' => esc_html__('Gravity Forms Support', 'accelerated-mobile-pages'),
'default' => '',
'true' => 'Enabled',
'false' => 'Disabled',
);
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if(!is_plugin_active( 'amp-gravity-forms/amp-gravity-forms.php' ) ){
$forms_support[]= array(
'id' => 'info_normal_2',
'type' => 'info',
'required' => array('amp-enable-gravityforms_support', '=' , '1'),
'desc' => '',
);
}
// Ninja Forms
$forms_support[] = array(
'id' => 'ampforwp-ninja-forms',
'type' => 'section',
'title' => esc_html__('Ninja Forms Compatibility', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
$forms_support[] = array(
'id' =>'amp-enable-ninja-forms-support',
'type' => 'switch',
'title' => esc_html__('Ninja Forms Support', 'accelerated-mobile-pages'),
'default' => '',
'true' => 'Enabled',
'false' => 'Disabled',
);
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if(!is_plugin_active( 'amp-gravity-forms/amp-ninja-forms.php' ) ){
$forms_support[]= array(
'id' => 'info_normal_2',
'type' => 'info',
'required' => array('amp-enable-ninja-forms-support', '=' , '1'),
'desc' => '',
);
}
// Contact Form SECTION
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Contact Form', 'accelerated-mobile-pages' ),
// 'desc' => 'Contact forms will automatically be converted into AMP compatible.',
'id' => 'amp-contact',
'subsection' => true,
'fields' => $forms_support
) );
// comments
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Comments', 'accelerated-mobile-pages' ),
'desc' => $comment_desc,
'id' => 'disqus-comments',
'subsection' => true,
'fields' => array(
array(
'id' => 'ampforwp-display-comments',
'type' => 'section',
'title' => esc_html__('Display', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
array(
'id' => 'ampforwp-display-on-pages',
'type' => 'switch',
'title' => esc_html__('Display on Pages', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable/Disable comments on pages using this switch.', 'accelerated-mobile-pages'),
'default' => 1
),
array(
'id' => 'ampforwp-display-on-posts',
'type' => 'switch',
'title' => esc_html__('Display on Posts', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable/Disable comments on posts using this switch.', 'accelerated-mobile-pages'),
'default' => 1
),
array(
'id' => 'ampforwp-comments',
'type' => 'section',
'title' => esc_html__('Discussion', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
array(
'title' =>esc_html__('WordPress Comments','accelerated-mobile-pages'),
'id' => 'wordpress-comments-support',
'tooltip-subtitle' => esc_html__('Enable/Disable WordPress comments using this switch.', 'accelerated-mobile-pages'),
'type' => 'switch',
'default' => 1,
),
array(
'class' => 'child_opt child_opt_arrow',
'id' => 'ampforwp-number-of-comments',
'type' => 'text',
'tooltip-subtitle' => esc_html__('This refers to the normal comments','accelerated-mobile-pages'),
'title' => esc_html__('No of Comments', 'accelerated-mobile-pages'),
'default' => 10,
'required' => array('wordpress-comments-support' , '=' , 1
),
),
array(
'class' => 'child_opt child_opt_arrow',
'id' => 'ampforwp-display-avatar',
'type' => 'switch',
'title' => esc_html__('Display on User Avatar', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable/Disable user Avatar.', 'accelerated-mobile-pages'),
'default' => 1,
'required' => array('wordpress-comments-support' , '=' , 1
),
),
array(
'id' => 'ampforwp-disqus-comments-support',
'type' => 'switch',
'title' => esc_html__('Disqus', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable/Disable Disqus comments using this switch.', 'accelerated-mobile-pages'),
'default' => 0
),
array(
'class' => 'child_opt child_opt_arrow',
'id' => 'ampforwp-disqus-comments-name',
'type' => 'text',
'title' => esc_html__('Disqus Name', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Eg: https://xyz.disqus.com', 'accelerated-mobile-pages'),
'required' => array('ampforwp-disqus-comments-support', '=' , '1'),
'default' => ''
),
array(
'class' => 'child_opt',
'id' => 'ampforwp-disqus-host-position',
'type' => 'switch',
'title' => esc_html__('Host on AMPforWP API', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Use AMPforWP secure servers to serve Comments file. Recommended if your site is non HTTPS', 'accelerated-mobile-pages'),
'default' => 1,
'required' => array('ampforwp-disqus-comments-support', '=' , '1'),
),
array(
'class' => 'child_opt',
'id' => 'ampforwp-disqus-host-file',
'type' => 'text',
'title' => esc_html__('Disqus Host File', 'accelerated-mobile-pages'),
'desc' => ' Click here to know, How to Setup Disqus Host file on your servers ',
'tooltip-subtitle' => esc_html__('Enter the URL of host file', 'accelerated-mobile-pages'),
'placeholder' => 'https://comments.example.com/disqus.php',
'required' => array('ampforwp-disqus-host-position', '=' , '0'),
),
array(
'id' => 'ampforwp-disqus-layout',
'title' => esc_html__('Disqus Layout', 'accelerated-mobile-pages'),
'type' => 'select',
'options' => array(
'fixed' => 'Fixed',
'responsive' => 'Responsive'
),
'default' => 'responsive',
'required'=>array('ampforwp-disqus-comments-support','=','1'),
),
array(
'id' => 'ampforwp-disqus-height',
'type' => 'text',
'title' => esc_html__('Disqus Iframe Height', 'accelerated-mobile-pages'),
'placeholder' => 'Enter the height',
'default' => '420',
'required' => array('ampforwp-disqus-layout', '=' , 'fixed'),
),
array(
'id' => 'ampforwp-facebook-comments-support',
'type' => 'switch',
'title' => esc_html__('Facebook Comments', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable/Disable Facebook comments using this switch.', 'accelerated-mobile-pages'),
'default' => 0,
),
array(
'class' => 'child_opt child_opt_arrow',
'id' => 'ampforwp-number-of-fb-no-of-comments',
'type' => 'text',
'tooltip-subtitle' => esc_html__('Enter the number of comments','accelerated-mobile-pages'),
'title' => esc_html__('No of Comments', 'accelerated-mobile-pages'),
'default' => 10,
'required' => array(
array('ampforwp-facebook-comments-support', '=' , 1),
),
),
array(
'class' => 'child_opt child_opt_arrow',
'id' => 'ampforwp-fb-comments-lang',
'type' => 'text',
'tooltip-subtitle' => esc_html__('Enter the Language code','accelerated-mobile-pages'),
'title' => esc_html__('Language', 'accelerated-mobile-pages'),
'desc' => 'Locales and Languages Supported by Facebook ',
'default' => get_locale(),
'required' => array(
array('ampforwp-facebook-comments-support', '=' , 1)
),
),
//Vuukle options
array(
'id' => 'ampforwp-vuukle-comments-support',
'type' => 'switch',
'title' => esc_html__('Vuukle Comments', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable/Disable Vuukle comments using this switch.', 'accelerated-mobile-pages'),
'default' => 0,
),
array(
'class' => 'child_opt child_opt_arrow',
'id' => 'ampforwp-vuukle-comments-apiKey',
'type' => 'text',
'tooltip-subtitle' => esc_html__('Enter the API key of Vuukle','accelerated-mobile-pages'),
'title' => esc_html__('API Key', 'accelerated-mobile-pages'),
'default' => '',
'desc' => "For Example xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
'required' => array(
array('ampforwp-vuukle-comments-support', '=' , 1),
),
),
//SpotIM Options
array(
'id' => 'ampforwp-spotim-comments-support',
'type' => 'switch',
'title' => esc_html__('Spot.IM Conversation', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable/Disable Spot.IM Conversation using this switch.', 'accelerated-mobile-pages'),
'default' => 0,
),
array(
'class' => 'child_opt child_opt_arrow',
'id' => 'ampforwp-spotim-comments-apiKey',
'type' => 'text',
'tooltip-subtitle' => esc_html__('Enter the SPOT_ID of Spot.IM','accelerated-mobile-pages'),
'title' => esc_html__('SPOT ID', 'accelerated-mobile-pages'),
'default' => '',
'desc' => "For Example xxxxxxxx-xxxx-xxxx-xxxx",
'required' => array(
array('ampforwp-spotim-comments-support', '=' , 1),
),
),
)
) );
function ampforwp_fb_instant_article() {
$feedname = '';
$fb_instant_article_feed = '';
$input = '';
$feedname = 'instant_articles';
$fb_instant_article_feed = trailingslashit( site_url() ).$feedname ;
$input = '' . esc_url( $fb_instant_article_feed ). '' ;
return strip_tags($input, '');
}
// Facebook Instant Articles
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Instant Articles', 'accelerated-mobile-pages' ),
'id' => 'fb-instant-article',
'subsection' => true,
'fields' => array(
array(
'id' => 'ampforwp-fbia_1',
'type' => 'section',
'title' => esc_html__('Facebook Instant Articles Setup', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
array(
'id' =>'fb-instant-article-switch',
'type' => 'switch',
'title' => esc_html__('Instant Articles', 'accelerated-mobile-pages'),
'default' => 0,
'true' => 'true',
'false' => 'false',
'desc' => esc_html__('Re-Save permalink when you enable this option, please have a look', 'accelerated-mobile-pages').' '.esc_html__('here', 'accelerated-mobile-pages').' '.esc_html__('on how to do it', 'accelerated-mobile-pages'),
),
array(
'id' => 'fb-instant-article-feed-url',
'type' => 'info',
'style' => 'critical',
'desc' => ampforwp_fb_instant_article(),
'title' => esc_html__('Facebook Instant Articles Feed URL', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fb-instant-page-id',
'type' => 'text',
'title' => esc_html__('Facebook Page ID', 'accelerated-mobile-pages'),
'desc' => esc_html__('Follow ','accelerated-mobile-pages').''.esc_html__('these instructions.','accelerated-mobile-pages').''.esc_html__(' to sign up to Instant Articles and get your Facebook Page ID.', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'amp-fbia_2',
'type' => 'section',
'title' => esc_html__('Facebook Instant Articles Settings', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
'required' => array('fb-instant-article-switch', '=', 1),
),
array(
'id' => 'ampforwp-fb-instant-article-posts',
'type' => 'text',
'title' => esc_html__('Number of Posts', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enter the number of posts to generate for Instant Articles.', 'accelerated-mobile-pages'),
'desc' => esc_html__('Leave this empty to generate All Posts.', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1),
'default' => '50'
),
array(
'id' => 'ampforwp-instant-article-author-meta',
'type' => 'switch',
'title' => esc_html__('Author Meta', 'accelerated-mobile-pages'),
'default' => 1,
'true' => 'true',
'false' => 'false',
'tooltip-subtitle' => esc_html__('Enable/Disable Author Meta', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'ampforwp-instant-article-author-bio',
'type' => 'switch',
'title' => esc_html__('Author Bio', 'accelerated-mobile-pages'),
'default' => 0,
'true' => 'true',
'false' => 'false',
'tooltip-subtitle' => esc_html__('Enable/Disable Author Bio', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'ampforwp-ia-related-articles',
'type' => 'switch',
'title' => esc_html__('Related Articles', 'accelerated-mobile-pages'),
'default' => 0,
'true' => 'true',
'false' => 'false',
'tooltip-subtitle' => esc_html__('Show/Hide Related Articles', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fb-instant-article-ads',
'type' => 'switch',
'title' => esc_html__('Advertisement', 'accelerated-mobile-pages'),
'default' => 0,
'true' => 'true',
'false' => 'false',
'desc' => esc_html__('Switch this on to enable advertising on Instant Article pages.', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fb-instant-article-ad-type',
'type' => 'select',
'title' => esc_html__('Select Advertisement Format', 'accelerated-mobile-pages'),
'default' => '1',
'desc' => esc_html__('Select the type of advertising on Instant Article pages you want to display.', 'accelerated-mobile-pages'),
'options' => array(
'1' => 'Facebook Audience Network',
'2' => 'Custom iframe URL',
'3' => 'Custom Embed Code'
),
'required' => array('fb-instant-article-ads', '=', 1)
),
array(
'id' => 'fb-instant-article-ad-id',
'type' => 'text',
'title' => esc_html__('Enter your Audience Network Placement ID', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('You can find out more about this here. ', 'accelerated-mobile-pages'),
'desc' => esc_html__('Click here on how to get Audience Network Placement Id.', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-ad-type', '=', '1')
),
array(
'id' => 'fb-instant-article-custom-iframe-ad',
'type' => 'text',
'placeholder'=> 'https://www.adserver.com/ss',
'title' => esc_html__('Enter your Custom iframe ad source URL'),
'required' => array('fb-instant-article-ad-type', '=', '2')
),
array(
'id' => 'fb-instant-article-custom-embed-ad',
'type' => 'textarea',
'placeholder'=> '',
'title' => esc_html__('Enter your Custom Embed ad code'),
'required' => array('fb-instant-article-ad-type', '=', '3')
),
array(
'id' => 'fb-instant-article-ad-density-setup',
'type' => 'select',
'title' => esc_html__('How often should ads show in Instant Article pages', 'accelerated-mobile-pages'),
'options' => array(
'default' => esc_html__('Every 250 words', 'accelerated-mobile-pages' ),
'medium' => esc_html__('Every 350 words', 'accelerated-mobile-pages' ),
'low' => esc_html__('Every 500 words', 'accelerated-mobile-pages' ),
),
'required' => array('fb-instant-article-ads', '=', 1),
'default' => 'default',
),
array(
'id' => 'fb-instant-article-analytics',
'type' => 'switch',
'title' => esc_html__('Analytics', 'accelerated-mobile-pages'),
'default' => 0,
'true' => 'true',
'false' => 'false',
'desc' => esc_html__('Switch this on to enable analytics on Instant Article pages.', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fb-instant-article-analytics-code',
'type' => 'textarea',
'title' => esc_html__('Enter your Analytics script code', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Do not enter iframe tag. Find out more about support here ', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-analytics', '=', 1)
),
array(
'id' => 'fb-instant-crawler-ingestion',
'type' => 'switch',
'title' => esc_html__('Crawler Ingestion', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Add ia:markup meta tag. Find out more abouthere ', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fb-instant-feedback',
'type' => 'switch',
'title' => esc_html__('Feedback for Media', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Allow like and comment for media', 'accelerated-mobile-pages'),
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fbia-header-text-area',
'type' => 'textarea',
'title' => esc_html__('Custom HTML in Head Tag', 'accelerated-mobile-pages'),
'desc' => esc_html__('Add custom HTML in Head Tag in Instant Articles Markup. Click','accelerated-mobile-pages').' '.esc_html__('here', 'accelerated-mobile-pages').''. esc_html__(' for more info on Instant Articles Markup', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fbia-body-text-area',
'type' => 'textarea',
'title' => esc_html__('Custom HTML in Body Tag', 'accelerated-mobile-pages'),
'desc' => esc_html__('Add custom HTML in Body Tag in Instant Articles Markup. Click','accelerated-mobile-pages').' '.esc_html__('here', 'accelerated-mobile-pages').''. esc_html__(' for more info on Instant Articles Markup', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('fb-instant-article-switch', '=', 1)
),
array(
'id' => 'fbia-footer-text-area',
'type' => 'textarea',
'title' => esc_html__('Custom HTML in Footer Tag', 'accelerated-mobile-pages'),
'desc' => esc_html__('Add custom HTML in Footer Tag in Instant Articles Markup. Click','accelerated-mobile-pages').' '.esc_html__('here', 'accelerated-mobile-pages').''. esc_html__(' for more info on Instant Articles Markup', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('fb-instant-article-switch', '=', 1)
),
),
)
);
// Hide AMP Bulk Tools
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Hide AMP Bulk Tools', 'accelerated-mobile-pages' ),
'id' => 'hide-amp-section',
'subsection' => true,
'desc' => 'Here are some Advanced options to help you exclude AMP from your prefered pages',
'fields' => array(
array(
'id' => 'amp-pages-meta-default',
'type' => 'select',
'title' => esc_html__( 'Individual AMP Page (Bulk Edit)', 'accelerated-mobile-pages' ),
'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' ),
'desc' => esc_html__( 'NOTE: Changes will overwrite the previous settings.', 'accelerated-mobile-pages' ),
'options' => array(
'show' => esc_html__('Show by Default', 'accelerated-mobile-pages' ),
'hide' => esc_html__('Hide by default', 'accelerated-mobile-pages' ),
),
'default' => 'show',
'required'=>array('amp-on-off-for-all-pages','=','1'),
),
array(
'id' =>'hide-amp-categories',
'type' => 'checkbox_hierarchy',
'title' => esc_html__('Select Categories to Hide AMP'),
'tooltip-subtitle' => esc_html__( 'Hide AMP from all the posts of a selected category.', 'accelerated-mobile-pages' ),
'default' => 0,
'data' => 'category_list_hierarchy',
'class' => 'hide'
),
array(
'id' =>'hide-amp-categories2',
'type' => 'select',
'title' => __('Select Categories to Hide AMP'),
'tooltip-subtitle' => __( 'Hide AMP from all the posts of a selected category.', 'accelerated-mobile-pages' ),
'multi' => true,
'ajax' => true,
'data-action' => 'ampforwp_categories',
'data' => 'categories',
),
array(
'id' =>'hide-amp-tags-bulk-option',
'type' => 'checkbox',
'title' => esc_html__('Select Tags to Hide AMP'),
'tooltip-subtitle' => esc_html__( 'Hide AMP from all the posts of a selected tags.', 'accelerated-mobile-pages' ),
'default' => 0,
'data' => 'tags',
'class' => 'hide'
),
array(
'id' =>'hide-amp-tags-bulk-option2',
'type' => 'select',
'title' => __('Select Tags to Hide AMP'),
'tooltip-subtitle' => __( 'Hide AMP from all the posts of a selected tags.', 'accelerated-mobile-pages' ),
'multi' => true,
'ajax' => true,
'data-action' => 'ampforwp_tags',
'data' => 'tags',
),
)
)
);
// Advance Settings SECTION
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Advance Settings', 'accelerated-mobile-pages' ),
'desc' => esc_html__( 'This section has some advanced settings, please use it with care','accelerated-mobile-pages'),
'id' => 'amp-advance',
'subsection' => true,
'fields' => array(
array(
'id' => 'amp-mobile-redirection',
'type' => 'switch',
'title' => esc_html__('Mobile Redirection', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('
Enable AMP for your mobile users. Give your visitors a Faster mobile User Experience.','accelerated-mobile-pages'),
'default' => 0,
),
array(
'id' => 'amp-tablet-redirection',
'class' => 'child_opt child_opt_arrow',
'type' => 'switch',
'title' => __('Tablets', 'accelerated-mobile-pages'),
'tooltip-subtitle' => __('Enable/Disable Mobile redirection for Tablets.','accelerated-mobile-pages'),
'default' => 1,
'required' => array( 'amp-mobile-redirection', '=' , 1 )
),
array(
'id' => 'ampforwp-infinite-scroll',
'type' => 'switch',
'title' => esc_html__('Infinite Scroll (Experimental)', 'accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s %s', esc_html__('Read more about it here:', 'accelerated-mobile-pages'), esc_url('https://www.ampproject.org/docs/reference/components/amp-next-page'), esc_html__('amp-next-page','accelerated-mobile-pages')),
'default' => false,
),
array(
'id' => 'ampforwp-infinite-scroll-home',
'type' => 'switch',
'class' => 'child_opt child_opt_arrow',
'title' => esc_html__('Home & Archives', 'accelerated-mobile-pages'),
'default' => true,
'required' => array( 'ampforwp-infinite-scroll', '=' , 1 )
),
array(
'id' => 'ampforwp-infinite-scroll-single',
'type' => 'switch',
'class' => 'child_opt child_opt_arrow',
'title' => esc_html__('Single', 'accelerated-mobile-pages'),
'default' => true,
'required' => array( 'ampforwp-infinite-scroll', '=' , 1 )
),
array(
'id' => 'convert-internal-nonamplinks-to-amp',
'type' => 'switch',
'title' => esc_html__('Change Internal Links to AMP', 'accelerated-mobile-pages'),
'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'),
'default' => 0,
),
array(
'id' => 'ampforwp-smooth-scrolling-for-links',
'type' => 'switch',
'title' => esc_html__('Smooth Scrolling For Links', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable this option if you want smooth scrolling for jumping links','accelerated-mobile-pages'),
'default' => 0,
),
// End-point option
array(
'id' => 'amp-core-end-point',
'type' => 'switch',
'title' => ('Change End Point to ?amp'),
'default' => 0,
'tooltip-subtitle' => 'Enable this option when /amp/ is giving 404 after resaving the permalink settings.',
'desc' => esc_html__( 'Making endpoints to ?amp will help you get the amp in tricky setups with taxonomies & post typs. Question mark in the url will not make any difference in the SEO.' ),
),
array(
'id' => 'amp-header-text-area-for-html',
'type' => 'textarea',
'title' => esc_html__('Enter HTML in Head', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
'desc' => esc_html__('check your markup here (enter markup between HEAD tag) : https://validator.ampproject.org/', 'accelerated-mobile-pages'),
'default' => ''
),
array(
'id' => 'amp-body-text-area',
'type' => 'textarea',
'title' => esc_html__('Enter HTML in Body (beginning of body tag) ', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
'desc' => esc_html__('check your markup here (enter markup in the beginning of body tag) : https://validator.ampproject.org/', 'accelerated-mobile-pages'),
'default' => ''
),
array(
'id' => 'amp-footer-text-area-for-html',
'type' => 'textarea',
'title' => esc_html__('Enter HTML in Footer', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
'desc' => esc_html__('check your markup here (enter markup between BODY tag) : https://validator.ampproject.org/',
'accelerated-mobile-pages'),
'default' => ''
),
array(
'id' => 'ampforwp-auto-amp-menu-link',
'type' => 'switch',
'title' => esc_html__('Auto Add AMP in Menu URL', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Automatically add AMP at the end of menu url', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0,
//'required' => array('ampforwp-amp-menu', '=' , '1')
),
//Category Base Removal in AMP
array(
'id' => 'ampforwp-category-base-removel-link',
'type' => 'switch',
'title' => esc_html__('Category base remove in AMP', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Category base removal in AMP from url', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0,
),
//Tag base Removal in AMP
array(
'id' => 'ampforwp-tag-base-removal-link',
'type' => 'switch',
'title' => esc_html__('Tag base remove in AMP', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Tag base remove in AMP from url', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0,
),
// Featured Image from Custom Fields
array(
'id' => 'ampforwp-custom-fields-featured-image-switch',
'type' => 'switch',
'title' => esc_html__('Featured Image from Custom Fields', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('This will allow you to add Featured Image from Custom Fields', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0,
),
array(
'id' => 'ampforwp-custom-fields-featured-image',
'type' => 'text',
'title' => esc_html__('Custom Field For Featured Image', 'accelerated-mobile-pages'),
'default' => esc_html__ ('','accelerated-mobile-pages'),
'placeholder'=>esc_html__('Write the Custom Field of Featured Image','accelerated-mobile-pages'),
'required' => array( 'ampforwp-custom-fields-featured-image-switch', '=' , 1 )
),
// Grab the First Image for Featured Image if there is none
array(
'id' => 'ampforwp-featured-image-from-content',
'type' => 'switch',
'title' => esc_html__('Featured Image from The Content', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Show the first image of the content as Featured Image if there is no featured image', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0,
),
// Duplicate Featured Image
array(
'id' => 'ampforwp-duplicate-featured-image',
'type' => 'switch',
'title' => esc_html__('Duplicate Featured Image', 'accelerated-mobile-pages'),
'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'),
'true' => 'true',
'false' => 'false',
'default' => 0,
),
// Retina Images
array(
'id' => 'ampforwp-retina-images',
'type' => 'switch',
'title' => esc_html__('Retina Images', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable if your current images looking blured on Apple Devices.', 'accelerated-mobile-pages'),
'default' => 0,
),
array(
'id' => 'ampforwp-retina-images-res',
'type' => 'select',
'options' => array(
'2' => '2x',
'3' => '3x',
'4' => '4x',
),
'title' => esc_html__('Retina Images Resolution', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Select the Resolution', 'accelerated-mobile-pages'),
'default' => '2',
'required' => array('ampforwp-retina-images', '=', 1)
),
array(
'id' => 'amp-meta-permissions',
'type' => 'select',
'title' => esc_html__('Show Metabox in Post Editor to', 'accelerated-mobile-pages'),
'options' => array(
'all' => 'All users who can post',
'admin' => 'Only to Admin'
),
'default' => 'all',
),
array(
'id' => 'ampforwp-development-mode',
'type' => 'switch',
'title' => esc_html__('Dev Mode in AMP'),
'tooltip-subtitle' => esc_html__('This will enable the Development mode in AMP', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0,
),
array(
'id' => 'ampforwp-development-mode-notice',
'type' => 'info',
'style' => 'info',
'desc' => esc_html__('Add /amp at the end of url to view the AMP version of the site. Search Engines will not be able to Crawl the AMP site when in Dev Mode.', 'accelerated-mobile-pages'),
'title' => esc_html__('Dev Mode', 'accelerated-mobile-pages'),
'required' => array('ampforwp-development-mode', '=', 1)
),
array(
'id' => 'ampforwp-update-notification-bar',
'type' => 'switch',
'title' => esc_html__('Plugin Update Notification Bar'),
'tooltip-subtitle' => esc_html__('Enable/Disable the Plugin Update Notification Bar', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 1,
),
array(
'id' => 'ampforwp-wptexturize',
'type' => 'switch',
'title' => esc_html__('Disable wptexturize'),
'tooltip-subtitle' => esc_html__('Enable this option to Disable wptexturize Globally', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0,
),
array(
'id' => 'ampforwp-content-builder',
'type' => 'switch',
'title' => esc_html__('Legacy Page Builder (widgets)', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Build AMP Landing pages in minutes.', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0
),
// Delete Data on Deletion
array(
'id' => 'ampforwp-delete-on-uninstall',
'type' => 'switch',
'title' => esc_html__('Delete Data on Uninstall?', 'accelerated-mobile-pages'),
'default' => 0,
'tooltip-subtitle' => esc_html__('Enable this if you would like AMPforWP to completely remove all of its data when uninstalling via Plugins > Delete.'),
),
),
) );
// WooCommerce Compatibility
$e_commerce_support[] = array(
'id' => 'ampforwp-woocommerce',
'type' => 'section',
'title' => esc_html__('WooCommerce Compatibility', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
$e_commerce_support[] = array(
'id' =>'amp-enable-woocommerce',
'type' => 'switch',
'title' => esc_html__('WooCommerce Support', 'accelerated-mobile-pages'),
'default' => '',
'true' => 'Enabled',
'false' => 'Disabled',
);
if(!is_plugin_active( 'amp-woocommerce/amp-woocommerce.php' ) && !is_plugin_active( 'amp-woocommerce-pro/amp-woocommerce.php' ) ){
$e_commerce_support[]= array(
'id' => 'info_normal_woocommerce',
'type' => 'info',
'required' => array('amp-enable-woocommerce', '=' , '1'),
'desc' => '
';
}
// Misc SECTION
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Misc', 'accelerated-mobile-pages' ),
'desc' => $post_builder,
'id' => 'amp-design',
'subsection' => true,
'fields' => array(
array(
'id' => 'misc-tab-1',
'type' => 'section',
'title' => esc_html__('General', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
),
// RTL
array(
'id' =>'amp-rtl-select-option',
'type' => 'switch',
'title' => esc_html__('RTL Support', 'accelerated-mobile-pages'),
'default' => 0,
'tooltip-subtitle' => esc_html__('Enable Right to Left language support', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
),
array(
'id' => 'ampforwp-sub-categories-support',
'type' => 'switch',
'title' => esc_html__('Sub-Categories under Category', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Display sub-categories on category pages', 'accelerated-mobile-pages'),
'default' => '0'
),
)
) );
// Extension Section
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Extensions', 'accelerated-mobile-pages' ),
'id' => 'opt-go-premium',
'subsection' => false,
'desc' => $extension_listing,
'icon' => 'el el-puzzle',
) );
if(!ampforwp_check_extensions()){
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Free vs Pro', 'accelerated-mobile-pages' ),
'id' => 'opt-choose',
'subsection' => false,
'desc' => $freepro_listing,
'icon' => 'el el-download',
) );
}
// Priority Support
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Fix AMP Errors', 'accelerated-mobile-pages' ),
'id' => 'opt-go-premium-support',
'subsection' => false,
'desc' => '
',
'icon' => 'el el-hand-right',
) );
// Plugin Manager
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Plugins Manager', 'accelerated-mobile-pages' ),
'id' => 'opt-plugins-manager',
'subsection' => false,
'desc' => 'You can Disable Plugins only in AMP which are causing AMP validation errors. More Information.',
'icon' => 'el el-magic',
'fields' => array(
array(
'id' => 'ampforwp-plugin-manager-core',
'type' => 'switch',
'title' => esc_html__('Enable Plugin Manager', 'accelerated-mobile-pages'),
'default' => 0
),
array(
'id' => 'info_normal',
'type' => 'info',
'required' => array('ampforwp-plugin-manager-core', '=' , '1'),
'desc' => '',
),
)
) );
Redux::setExtensions( $opt_name, AMPFORWP_PLUGIN_DIR.'includes/options/extensions/demolink_image_select' );
/*
* <--- END SECTIONS
*/