: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'name'=>'Purge AMP CDN Cache',
'label' => 'Purge AMP CDN Cache',
'desc'=>'Purge AMP CDN Cache on one click. Editors can update/purge the google cdn cache of amp post and pages in one click.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/cache-icon.png',
'url_link'=>'https://ampforwp.com/addons/purge-amp-cdn-cache/#utm_source=options-panel&utm_medium=extension-tab_purge-amp-cdn-cache&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'purge-amp-cdn-cache/purge-amp-cdn-cache.php',
'item_name'=>'Purge AMP CDN Cache',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('purge-amp-cdn-cache/purge-amp-cdn-cache.php')? 1 : 2),
'name'=>'Polylang For AMP',
'desc'=>'Polylang compatibility with AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/polylang-icon.png',
'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),
'desc'=>'WPML compatibility with AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/wpml-icon.png',
'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),
'desc'=>'AMP Teaser automatically clips the content based on your selection',
'img_src'=>AMPFORWP_IMAGE_DIR . '/teaser-icon.png',
'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}',
'name'=>'The Event Calendar for AMP',
'desc'=>'This is an extension of The Events Calendar For Amp',
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-SU.png',
'url_link'=>'https://ampforwp.com/addons/the-event-calender-for-amp/#utm_source=options-panel&utm_medium=extension-tab_shortcodes_ultimate&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'the-events-calendar-for-amp/the-events-calendar-for-amp.php',
'item_name'=>'The Event Calender for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('the-events-calendar-for-amp/the-events-calendar-for-amp.php')? 1 : 2),
'name'=>'Table Of Content Plus For AMP',
'desc'=>'This is an extension of Table Of Content For AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-SU.png',
'url_link'=>'https://ampforwp.com/table-of-contents-plus/#utm_source=options-panel&utm_medium=extension-tab_tableofcontent&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'table-of-content-plus-for-amp/table-of-content-plus-for-amp.php',
'item_name'=>'Table Of Content Plus For AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('table-of-content-plus-for-amp/table-of-content-plus-for-amp.php')? 1 : 2),
'name'=>'Easy Table of Contents for AMP',
'desc'=>'Easy Table of Contents Plugin Compatibility in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/easytoc-icon.png',
'url_link'=>'https://ampforwp.com/addons/easy-table-of-contents-for-amp/',
'plugin_active_path'=> 'easy-table-of-contents-for-amp/easy-table-of-contents-for-amp.php',
'item_name'=>'Easy Table of Contents for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('easy-table-of-contents-for-amp/easy-table-of-contents-for-amp.php')? 1 : 2),
'name'=>'Floating Button for AMP',
'desc'=>'You can add floating button in AMP with the help of this extension',
'img_src'=>AMPFORWP_IMAGE_DIR . '/floating-icon.png',
'url_link'=>'https://ampforwp.com/addons/floating-button-for-amp/',
'plugin_active_path'=> 'floating-button-for-amp/floating-button-for-amp.php',
'item_name'=>'Floating Button for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('floating-button-for-amp/floating-button-for-amp.php')? 1 : 2),
'name'=>'JW Player Compatibility for AMP',
'desc'=>'JW Player for WordPress (By ilGhera) Compatibility in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/jwplayerforwp.png',
'url_link'=>'https://ampforwp.com/addons/jw-player-compatibility-for-amp/',
'plugin_active_path'=> 'jw-player-compatibility-for-amp/jwplayercompatibilityforamp.php',
'item_name'=>'JW Player Compatibility for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('jw-player-compatibility-for-amp/jwplayercompatibilityforamp.php')? 1 : 2),
'desc'=>'This extension allows you to comply with the privacy rules of CCPA',
'img_src'=>AMPFORWP_IMAGE_DIR . '/ccpa_for_amp.png',
'url_link'=>'https://ampforwp.com/addons/ccpa-for-amp/',
'plugin_active_path'=> 'ccpa-for-amp/ccpaforamp.php',
'item_name'=>'CCPA for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('ccpa-for-amp/ccpaforamp.php')? 1 : 2),
'name'=>'Subdomain Endpoints for AMP',
'desc'=>'This extension allows you to add your own custom amp Endpoints as subdomian.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/subdomain-image.jpg',
'url_link'=>'https://ampforwp.com/addons/subdomain-endpoints-for-amp/#utm_source=options-panel&utm_medium=extension-tab_subdomain_endpoints_for_amp&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> 'subdomain-endpoints-for-amp/subdomain-endpoints-for-amp.php',
'item_name'=>'Subdomain Endpoints for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('subdomain-endpoints-for-amp/subdomain-endpoints-for-amp.php')? 1 : 2),
'settingUrl'=>'{amp-subdomain-subsection}',
'name'=>'LuckyWP Table of Contents for AMP',
'desc'=>'This extension automatically adds LuckyWP Table of Contents functionality in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/LuckyWpTOCforAMP.png',
'url_link'=>'https://ampforwp.com/addons/luckywp-table-of-contents-for-amp/',
'plugin_active_path'=> 'luckywp-table-of-contents-for-amp/luckywp-table-of-contents-for-amp.php',
'item_name'=>'LuckyWP Table of Contents for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('luckywp-table-of-contents-for-amp/luckywp-table-of-contents-for-amp.php')? 1 : 2),
'name'=>'iZooto for AMP',
'desc'=>'iZooto integration for amp',
'img_src'=>AMPFORWP_IMAGE_DIR . '/izooto-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/izooto-for-amp/',
'plugin_active_path'=> 'izooto-for-amp/izooto-for-amp.php',
'item_name'=>'iZooto for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('izooto-for-amp/izooto-for-amp.php')? 1 : 2)
'desc'=>'Display Amazon Affiliate links , nice product boxes, bestseller list ,comparison tables and much more! in AMP Pages.',
'img_src'=>AMPFORWP_IMAGE_DIR . '/aawp-for-amp-logo.png',
'url_link'=>'https://ampforwp.com/addons/aawp-for-amp/',
'plugin_active_path'=> 'aawp-for-amp/aawp-for-amp.php',
'item_name'=>'AAWP for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('aawp-for-amp/aawp-for-amp.php')? 1 : 2),
'name'=>'Formidable forms for AMP',
'desc'=>'Add Formidable forms Support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/Formidable-Forms-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/formidable-forms-for-amp/',
'plugin_active_path'=> 'formidable-forms-for-amp/formidable-forms-for-amp.php',
'item_name'=>'Formidable forms for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('formidable-forms-for-amp/formidable-forms-for-amp.php')? 1 : 2),
'name'=>'Reading Progress Bar for AMP',
'desc'=>'Allows you to Add Reading Progress Bar support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/reading-progress-bar-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/reading-progress-bar-for-amp/',
'plugin_active_path'=> 'reading-progress-bar-for-amp/reading-progress-bar-for-amp.php',
'item_name'=>'Reading Progress Bar for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('reading-progress-bar-for-amp/reading-progress-bar-for-amp.php')? 1 : 2),
'name'=>'Ultimate Membership Pro Compatibility for AMP',
'desc'=>'Add Ultimate Membership Pro Support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/ultimate-membership-pro-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/ultimate-membership-pro-compatibility-for-amp/',
'plugin_active_path'=> 'ultimate-membership-pro-compatibility-for-amp/ultimate-membership-pro-compatibility-for-amp.php',
'item_name'=>'Ultimate Membership Pro Compatibility for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('ultimate-membership-pro-compatibility-for-amp/ultimate-membership-pro-compatibility-for-amp.php')? 1 : 2),
'name'=>'Forminator for AMP',
'desc'=>'Add Forminator forms Support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/forminator-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/forminator-for-amp/',
'plugin_active_path'=> 'forminator-for-amp/forminator-for-amp.php',
'item_name'=>'Forminator for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('forminator-for-amp/forminator-for-amp.php')? 1 : 2),
'name'=>'Smart Sticky Header for AMP',
'desc'=>'Adds Smart Sticky Header in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/Sticky_Header.png',
'url_link'=>'https://ampforwp.com/addons/smart-sticky-header-for-amp/',
'plugin_active_path'=> 'smart-sticky-header-for-amp/smart-sticky-header-for-amp.php',
'item_name'=>'Smart Sticky Header for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('smart-sticky-header-for-amp/smart-sticky-header-for-amp.php')? 1 : 2),
'name'=>'Happyforms for AMP',
'desc'=>'Add Happy forms Support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/happyforms-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/happyforms-for-amp/',
'plugin_active_path'=> 'happyforms-for-amp/happyforms-for-amp.php',
'item_name'=>'Happyforms for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('happyforms-for-amp/happyforms-for-amp.php')? 1 : 2),
'name'=>'Paid Memberships PRO for AMP',
'desc'=>'Add Paid Memberships PRO Support in AMP',
'img_src'=> AMPFORWP_IMAGE_DIR . '/paid-memberships-pro-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/paid-memberships-pro-for-amp/',
'plugin_active_path'=> 'paid-memberships-pro-for-amp/paid-memberships-pro-for-amp.php',
'item_name'=>'Paid Memberships PRO for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('paid-memberships-pro-for-amp/paid-memberships-pro-for-amp.php')? 1 : 2),
'name'=>'Recipe Compatibility for AMP',
'desc'=>'Add Recipes Support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/recipe-compatibility-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/recipe-compatibility-for-amp/',
'plugin_active_path'=> 'recipe-compatibility-for-amp/recipe-compatibility-for-amp.php',
'item_name'=>'Recipe Compatibility for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('recipe-compatibility-for-amp/recipe-compatibility-for-amp.php')? 1 : 2),
'desc'=>'Add Polls Support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/polls-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/polls-for-amp/',
'plugin_active_path'=> 'polls-for-amp/polls-for-amp.php',
'item_name'=>'Polls for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('polls-for-amp/polls-for-amp.php')? 1 : 2),
'name'=>'Post Views for AMP',
'desc'=>'Add Post Views Support in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/postviews-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/postviews-for-amp/',
'plugin_active_path'=> 'postviews-for-amp/postviews-for-amp.php',
'item_name'=>'Post Views for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('postviews-for-amp/postviews-for-amp.php')? 1 : 2),
'name'=>'Transposh for AMP',
'desc'=>'This extension automatically adds Transposh WordPress Translation functionality in AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/transposh-for-amp.png',
'url_link'=>'https://ampforwp.com/addons/transposh-for-amp/',
'plugin_active_path'=> 'transposh-for-amp/transposh-for-amp.php',
'item_name'=>'Transposh for AMP',
'store_url'=>'https://accounts.ampforwp.com',
'is_activated'=>(is_plugin_active('transposh-for-amp/transposh-for-amp.php')? 1 : 2),
$viewAllExtensions = array(
'name'=>'View All Extensions',
'desc'=>'See all the extensions available for AMP',
'img_src'=>AMPFORWP_IMAGE_DIR . '/comments.png',
'url_link'=>'https://ampforwp.com/extensions/#utm_source=options-panel&utm_medium=extension-tab_amp-more-comingsoon&utm_campaign=AMP%20Plugin',
'plugin_active_path'=> '',
$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'] && isset($a['label']) && isset($b['label'])) {
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) {
$onclickUrl = '<a href="'.$extension['url_link'].'" target="_blank">';
$onclickUrlclose = '</a>';
$settingPageUrl = $pluginReview = '';
if(isset($extension['is_activated']) && $extension['is_activated']!=1){
$pluginReview = '<div class="extension_btn">From: '.esc_html($extension['price']).'</div>';
if($extension['plugin_active_path'] != "" && is_plugin_active($extension['plugin_active_path']) ){
$ampforwp_is_productActivated = true;
$currentStatus = "not-active invalid";
$pathExploded = explode("/", $extension['plugin_active_path']);
$pathExploded = $pathExploded[0];
if(isset($extension['settingUrl']) && $extension['settingUrl']!=""){
$settingPageUrl = '<div class="extension-menu-call"><a href="'.$extension['settingUrl'].'" class="amp_extension_settings"><i class="dashicons-before dashicons-admin-generic"></i> Settings</a></div>';
$onclickUrl = $amp_license_response = $allResponseData = $onclickUrlclose= '';
$allResponseData = array('success'=>'',
$selectedOption = (array) get_option('redux_builder_amp',true);
if(isset($selectedOption['amp-license'][$pathExploded])){
while ( strlen($selectedOption['amp-license'][$pathExploded]['license']) > 32 ) {
$selectedOption['amp-license'][$pathExploded]['license'] = base64_decode($selectedOption['amp-license'][$pathExploded]['license']);
$amplicense = $selectedOption['amp-license'][$pathExploded]['license'];
$verify = '<button type="button" id="'.$pathExploded.'" class="redux-ampforwp-ext-activate">Activate</button>';
if(isset($selectedOption['amp-license'][$pathExploded]['status']) && $selectedOption['amp-license'][$pathExploded]['status']==='valid'){
$license_status = $selectedOption['amp-license'][$pathExploded]['status'];
$currentStatus = 'active valid';
$verify = '<button type="button" id="'.$pathExploded.'" class="redux-ampforwp-ext-deactivate">'.esc_html__('Deactivate', 'accelerated-mobile-pages').'</button> <span class="ampforwp-ext-refresh" style="cursor:pointer" id="'.esc_attr($pathExploded).'"><i class="dashicons dashicons-before dashicons-update"></i>'.esc_html__('Refresh', 'accelerated-mobile-pages').'</span>';
if($ampforwp_nameOfUser=="" && isset($selectedOption['amp-license'][$pathExploded]['all_data']['customer_name'])){
$ampforwp_nameOfUser = $selectedOption['amp-license'][$pathExploded]['all_data']['customer_name'];
if(isset($selectedOption['amp-license'][$pathExploded]['all_data']) && $selectedOption['amp-license'][$pathExploded]['all_data']!=""){
$allResponseData = $selectedOption['amp-license'][$pathExploded]['all_data'];
$remainingExpiresDays = floor( ( strtotime($allResponseData['expires'] )- time() )/( 60*60*24 ) );
$lifetime_lic = isset($allResponseData['expires']) ? $allResponseData['expires'] : '' ;
if($lifetime_lic == 'lifetime' ){
$remainingExpiresDays = 'Lifetime';
$amp_license_response = "<span class='license-tenure'>".esc_html__('Your License is valid for', 'accelerated-mobile-pages')." ".esc_html($remainingExpiresDays)."</span>. <a href='https://accounts.ampforwp.com/order/?edd_license_key=".esc_attr($amplicense)."&download_id=".esc_attr($allResponseData['item_name'])."' style='display:inline-block;' class='license-renew-a'>".esc_html__('Renew License', 'accelerated-mobile-pages')."</a>";
else if($remainingExpiresDays>0){
$amp_license_response = "<span class='license-tenure'>".esc_html($remainingExpiresDays)." ".esc_html__('Days Remaining', 'accelerated-mobile-pages')."</span>. <a href='https://accounts.ampforwp.com/order/?edd_license_key=".esc_attr($amplicense)."&download_id=".esc_attr($allResponseData['item_name'])."' class='license-renew-a'>".esc_html__('Renew License', 'accelerated-mobile-pages')."</a>";
}else{ $amp_license_response = "<span class='license-tenure expire'>".esc_html__('Expired', 'accelerated-mobile-pages')."!</span> <a href='https://accounts.ampforwp.com/order/?edd_license_key=".esc_attr($amplicense)."&download_id=".esc_attr($allResponseData['item_name'])."' class='license-renew-a'>".esc_html__('Renew your license', 'accelerated-mobile-pages')."</a>"; }
if ( '' == $allResponseData['success'] && '' == $allResponseData['success'] ) {
$pluginReview = '<input id="redux_builder_amp_amp-license_'.$pathExploded.'_license" type="text" value="" onclick="return false;">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][item_name]" type="hidden" value="'.$extension['item_name'].'">';
if (isset($extension['store_url'])){
$pluginReview .= '<input name="redux_builder_amp[amp-license]['.$pathExploded.'][store_url]" type="hidden" value="'.$extension['store_url'].'">';
$pluginReview .= '<input name="redux_builder_amp[amp-license]['.$pathExploded.'][plugin_active_path]" type="hidden" value="'.$extension['plugin_active_path'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][name]" type="hidden" value="'.$extension['name'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][status]" type="hidden" value="'.$license_status.'">';
$pluginReview .= '<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][success]" type="hidden" value="'.$allResponseData['success'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][license]" type="hidden" value="'.$allResponseData['license'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][item_name]" type="hidden" value="'.$allResponseData['item_name'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][expires]" type="hidden" value="'.$allResponseData['expires'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][customer_name]" type="hidden" value="'.$allResponseData['customer_name'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][customer_email]" type="hidden" value="'.$allResponseData['customer_email'].'">
<input class="amp-ls-solve" name="redux_builder_amp[amp-license]['.$pathExploded.'][license]" type="hidden" value="'. base64_encode($amplicense).'">
$pluginReview .= $verify. "<br/>".$amp_license_response;
if(isset($selectedOption['amp-license'][$pathExploded]['message']) && $selectedOption['amp-license'][$pathExploded]['message']!=""){
$pluginReview .= "<div class='afw-license-response-message'>".$selectedOption['amp-license'][$pathExploded]['message']."</div>";
$secondPageClickClass = '';
if($extension['is_activated']==1 && strpos($ampforwp_extension_list_html, "Your Installed Extensions")===false){
$ampforwp_extension_list_html .= "<h3 style='display:block;'>Your Installed Extensions</h3><ul>";
}elseif($extension['is_activated']==2 && strpos($ampforwp_extension_list_html, "All Extensions")===false){
$ampforwp_extension_list_html .= "</ul><h3 style='display:block;'>All Extensions</h3><ul>";
$secondPageClickClass = 'goToSecondPage';
if ( isset($extension['class']) && $extension['class'] && !$currentStatus ) {
$secondPageClickClass = $secondPageClickClass. ' ' . $extension['class'];
$ampforwp_extension_list_html .= '<li class="first '.esc_attr($currentStatus).' '.esc_attr($secondPageClickClass).'" data-ext-details=\''.wp_json_encode($extension).'\' data-ext-secure="'.wp_create_nonce('verify_extension').'">
<div class="align_left"><img src="'.esc_url($extension['img_src']).'" /></div>
<div class="extension_desc">
<h2>'.esc_html($extension['name']).'</h2>
<p>'.esc_html($extension['desc']).'</p>
'.$onclickUrlclose.' '.$settingPageUrl.'</li>';
<div class="extension_listing">
<p style="font-size:13px">Take your AMP to the next level with these premium extensions which gives you advanced features.</p>
'.$ampforwp_extension_list_html.'
function ampforwp_check_extensions(){
global $all_extensions_data;
if($all_extensions_data){
foreach ($all_extensions_data as $extension ) {
$is_extension_active = $extension['is_activated'];
if( 1 === $is_extension_active && 'PWA For WordPress' != $extension['item_name']){
if(class_exists('AMPExtensionManager')){
<img src="'.AMPFORWP_IMAGE_DIR . '/Bitmap.png" />
<p>Take your AMP to the next level with more beautiful themes, great extensions and more powerful features.</p>
<a class="buy" href="#upgrade">BUY NOW</a>
<img src="'.AMPFORWP_IMAGE_DIR . '/ex-1.png" />
<p>Includes a suite of advanced features like Ads, Email Optin, Contact Forms, E-Commerce, CTA, Cache and 15+ premium extensions.</p>
<img src="'.AMPFORWP_IMAGE_DIR . '/ex-2.png" />
<p>Wide Variety of AMP Theme Designs included with AMP Layouts. We are dedicated to release 2-3 new designs every month.</p>
<img src="'.AMPFORWP_IMAGE_DIR . '/ex-3.png" />
<h4>Dedicated Support</h4>
<p>Get private ticketing help from our full-time staff who helps you with the technical issues.</p>
<h2>Compare Pro vs. Free Version</h2>
<span>See what you\'ll get with the professional version</span>
<h4>Continious Development</h4>
<p>We take bug reports and feature requests seriously. We’re continiously developing & improve this product for last 2 years with passion and love.</p>
<p>We\'re constantly expanding the plugin and make it more useful. We have wide variety of features which will fit any use-case.</p>