esc_html__( 'Core Web Vitals', 'accelerated-mobile-pages' ), 'id' => 'opt-page-booster', 'class'=>'ampforwp_new_features ', 'subsection' => true, 'fields' => apply_filters('ampforwp_page_booster_custom_fields', $fields = array() ), ) ); } add_filter('ampforwp_page_booster_custom_fields', 'ampforwp_add_page_booster_fields'); function ampforwp_add_page_booster_fields($fields){ if( function_exists('cwvpb_on_install') ) { $fields[] = array( 'id' => 'ampforwp-psb_modules_section', 'type' => 'section', 'title' => esc_html__('Core Web Vitals Page Speed Booster!', 'accelerated-mobile-pages'), 'indent' => true, 'layout_type' => 'accordion', 'accordion-open'=> 1 ); $fields[] = array( 'id' => 'ampforwp_psb_module', 'type' => 'raw', 'title' => esc_html__('Core Web Vitals Page Speed Booster', 'accelerated-mobile-pages'), 'content' =>'

Page Speed Booster Settings

Learn more
' ); return $fields; } else { $cwvpsb_install = ''; if(function_exists('cwvpb_on_install')){ $cwvpsb_install = '

'.esc_html__('Go to Page Speed Booster settings','accelerated-mobile-pages').'

'; }else{ $cwvpsb_install = '

'.esc_html__('Install & Setup for Free','accelerated-mobile-pages').'

'; } if(file_exists(AMPFORWP_MAIN_PLUGIN_DIR."core-web-vitals-pagespeed-booster/core-web-vitals-pagespeed-booster.php") && !function_exists('cwvpb_on_install')){ $activation_url = wp_nonce_url( 'plugins.php?action=activate&plugin=core-web-vitals-pagespeed-booster/core-web-vitals-pagespeed-booster.php&plugin_status=all&paged=1&s', 'activate-plugin_core-web-vitals-pagespeed-booster/core-web-vitals-pagespeed-booster.php' ); $cwvpsb_install = '
'.esc_html__('Activate Plugin','accelerated-mobile-pages').'
'; } $fields[] = array( 'id' => 'ampforwp-psb_modules_section', 'type' => 'section', 'title' => esc_html__('Presenting You Core Web Vitals!', 'accelerated-mobile-pages'), 'indent' => true, 'layout_type' => 'accordion', 'accordion-open'=> 1, ); $fields[] = array( 'id' => 'ampforwp-psb-module', 'type' => 'raw', 'content' => '
'.(!is_plugin_active('core-web-vitals-pagespeed-booster/core-web-vitals-pagespeed-booster.php')? 'Improve Performance of the Page:': 'Thank you for upgrading the Structured data').'
'.(!is_plugin_active('core-web-vitals-pagespeed-booster/core-web-vitals-pagespeed-booster.php')? '
  • Webp images
  • Lazy Load
  • Minification
  • Remove Unused CSS
  • Google Fonts Optimizations
  • Delay JavaScript Execution
  • Static Cache & More..!
' : '') .'
'. $cwvpsb_install /* $cwvpsb_install XSS escaped */.'  Learn more
' ); return $fields; } }