$registration_status, 'checked_on' => $amp_supremacy_current_time)); } else { // If the stored-checked status was checked before/after 20th Dec 2016 if($amp_supremacy_lite_stored['checked_on'] <= 1483228800){ $registration_status = AMP_Init::get_registration_status(); update_option($amp_supremacy_lite_check_key, array('status' => $registration_status, 'checked_on' => $amp_supremacy_current_time)); $amp_supremacy_lite_stored = get_option($amp_supremacy_lite_check_key, 0); } $registration_status = $amp_supremacy_lite_stored['status']; $amp_supremacy_lite_datediff = $amp_supremacy_current_time - $amp_supremacy_lite_stored['checked_on']; /* Update the stored registration status after every 3 Days*/ $amp_supremacy_lite_datediffDays = floor($amp_supremacy_lite_datediff / (60 * 60 * 24)); if($amp_supremacy_lite_datediffDays >= 3){ $registration_status = AMP_Init::get_registration_status(); update_option($amp_supremacy_lite_check_key, array('status' => $registration_status, 'checked_on' => $amp_supremacy_current_time)); } } $amp_sitemap_xml_exists = file_exists(ABSPATH.'amp-sitemap.xml'); $amp_sitemap_exists = file_exists(ABSPATH.'wp-content/plugins/amp-supremacy-sitemap'); $amp_menu_list = get_terms('nav_menu'); ?>
FREE AMP Supremacy Lite
Sign up to download AMP Supremacy Lite, which will enable Google friendly AMP Sitemap and AMP Google Analytics