";
// ___________________________________________________________________________________________ \\
// === OUTPUT: SIDE BAR / NAVIGATION (DESKTOP) ======================================================= \\
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ \\
echo "";
// ___________________________________________________________________________________________ \\
// === OUTPUT: CONTENT AREA ================================================================== \\
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ \\
echo "
";
if ($ai4seo_debug_output_mode !== 'notice') {
// hide all other notices
echo "
";
echo "
" . esc_html(AI4SEO_PLUGIN_NAME) . "
";
echo "";
} else {
echo "
" . esc_html(AI4SEO_PLUGIN_NAME) . "
";
}
// === CHECK FOR NEW TOS ===================================================================== \\
// set parameter to false, so we definitely don't output anything, if tos was not accepted
if (ai4seo_does_user_need_to_accept_tos_toc_and_pp()) {
// show message to accept tos and offer a reload button
echo "
";
echo "";
echo "
" . esc_html__("Please accept our Terms of Service to proceed with using this plugin.", "ai-for-seo") . "
";
ai4seo_echo_wp_kses(ai4seo_get_a_tag_icon_button_tag(ai4seo_get_subpage_url(), "", "", "", esc_html__("Show terms of service", "ai-for-seo"), "ai4seo-primary-button"));
echo "
";
echo "";
return;
}
// === DEBUG OPERATIONS ================================================================================= \\
// GENERATE
if (isset($_GET["ai4seo_debug_generate_cronjob"]) && $_GET["ai4seo_debug_generate_cronjob"]) {
$ai4seo_cron_job_status = ai4seo_get_cron_job_status(AI4SEO_BULK_GENERATION_CRON_JOB_NAME);
$ai4seo_cron_job_status_update_time = ai4seo_get_cron_job_status_update_time(AI4SEO_BULK_GENERATION_CRON_JOB_NAME);
ai4seo_debug_message(478684129, ai4seo_stringify($ai4seo_cron_job_status));
ai4seo_debug_message(819232188, ai4seo_stringify(ai4seo_format_unix_timestamp($ai4seo_cron_job_status_update_time)));
ai4seo_automated_generation_cron_job(true);
}
// ANALYZE
if (isset($_GET["ai4seo_debug_analyze_cronjob"]) && $_GET["ai4seo_debug_analyze_cronjob"]) {
ai4seo_analyze_plugin_performance(true);
}
// TIDY UP
if (isset($_GET["ai4seo_force_tidyup"]) && $_GET["ai4seo_force_tidyup"]) {
ai4seo_tidy_up();
$ai4seo_dashboard_url = ai4seo_get_subpage_url("dashboard");
// reload page
echo "";
return;
}
// DEBUG POST CONTENT
if (isset($_GET["ai4seo_debug_post_content"]) && $_GET["ai4seo_debug_post_content"] && is_numeric($_GET["ai4seo_debug_post_content"])) {
$ai4seo_debug_post_id = absint($_GET["ai4seo_debug_post_content"]);
$ai4seo_condensed_post_content_from_database = ai4seo_get_condensed_post_content_from_database($ai4seo_debug_post_id, true);
ai4seo_add_post_context($ai4seo_debug_post_id, $ai4seo_condensed_post_content_from_database);
ai4seo_debug_message(658418123, "FINAL WITH CONTEXT >" . ai4seo_stringify(htmlspecialchars($ai4seo_condensed_post_content_from_database)));
unset($ai4seo_condensed_post_content_from_database, $ai4seo_debug_post_id);
}
// DEBUG ai4seo_debug_posts_table_analysis
if (isset($_GET["ai4seo_debug_posts_table_analysis"]) && $_GET["ai4seo_debug_posts_table_analysis"]) {
ai4seo_try_start_posts_table_analysis(true, true);
}
// === CONTENT PAGES =========================================================================== \\
switch($ai4seo_active_plugin_page) {
case "":
case "dashboard":
require_once(ai4seo_get_includes_pages_path("dashboard.php"));
break;
case "settings":
require_once(ai4seo_get_includes_pages_path("settings.php"));
break;
case "post":
require_once(ai4seo_get_includes_pages_content_types_path("post.php"));
break;
case "media":
require_once(ai4seo_get_includes_pages_content_types_path("attachment.php"));
break;
case "help":
require_once(ai4seo_get_includes_pages_path("help.php"));
break;
case "account":
require_once(ai4seo_get_includes_pages_path("account.php"));
break;
default:
echo "Unknown SOOZ - AI for SEO page. Please contact the plugin developer. #2406232005";
}
// gap
echo "