";
// ___________________________________________________________________________________________ \\
// === OUTPUT: SIDE BAR / NAVIGATION (DESKTOP) ======================================================= \\
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ \\
echo "';
// ___________________________________________________________________________________________ \\
// === OUTPUT: CONTENT AREA ================================================================== \\
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ \\
echo "
";
// Keep one accessible page-specific heading as WordPress' notice-placement anchor.
echo "
" . esc_html( $ai4seo_page_heading ) . '
';
// === 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;
}
// === 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 '