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' =>'
' ); return $fields; } else { $cwvpsb_install = ''; if(function_exists('cwvpb_on_install')){ $cwvpsb_install = ''; }else{ $cwvpsb_install = ''; } 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 = ''; } $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' => '