' ',
"page" => ' ',
"post" => ' ',
"category" => ' ',
"product" => ' ',
"product-category" => ' ',
"portfolio" => ' ',
"attachment" => ' ',
"rss" => '',
"rss-feed" => '',
"rss_feed" => '',
);
// === CHECK ROBHUB API COMMUNICATOR ========================================================== \\
if (!ai4seo_robhub_api() instanceof Ai4Seo_RobHubApiCommunicator) {
echo "
";
ai4seo_echo_error_notice(esc_html__("Could not initialize API communicator. Please contact the plugin developer.", "ai-for-seo") . "#101012523", false);
echo "
";
return;
}
// ___________________________________________________________________________________________ \\
// === OUTPUT ================================================================================ \\
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ \\
echo "";
// Main headline
echo "
";
echo " ";
echo esc_html(AI4SEO_PLUGIN_NAME);
echo " v" . esc_html(AI4SEO_PLUGIN_VERSION_NUMBER) . " ";
if (ai4seo_robhub_api()->are_we_using_local_api()) {
echo "[LOCAL MODE] ";
}
echo " ";
flush();
// === 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 " ";
return;
}
echo "";
// Dashboard tab
echo "";
echo ' ';
echo esc_html__("Dashboard", "ai-for-seo");
echo " ";
// Tabs for supported post-types
foreach ($ai4seo_supported_post_types AS $ai4seo_post_type) {
$ai4seo_this_tab_label = ai4seo_get_post_type_translation($ai4seo_post_type, true);
$ai4seo_this_tab_label = ai4seo_get_nice_label($ai4seo_this_tab_label);
$ai4seo_this_tab_icon = $ai4seo_tab_icons_by_post_type[$ai4seo_post_type] ?? $ai4seo_tab_icons_by_post_type['default'];
$ai4seo_is_current_tab = ($ai4seo_current_post_type == $ai4seo_post_type);
$ai4seo_this_tab_url = ai4seo_get_post_type_url($ai4seo_post_type);
echo "";
echo ai4seo_wp_kses($ai4seo_this_tab_icon);
echo esc_html($ai4seo_this_tab_label);
echo " ";
}
// Media tab
echo "";
echo ai4seo_wp_kses($ai4seo_tab_icons_by_post_type["attachment"]);
echo esc_html(_n("Media", "Media", 2, "ai-for-seo"));
echo " ";
// Settings tab
echo "";
echo ' ';
echo esc_html__("Settings", "ai-for-seo");
echo " ";
// Help tab
echo "";
echo ' ';
echo esc_html__("Help", "ai-for-seo");
echo " ";
echo " ";
echo "";
switch($ai4seo_current_content_tab) {
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;
default:
return "An error occurred. Please contact the plugin developer. #2406232005";
}
echo "
";
echo "";