<?php
global $SEOAIC;
?>
<div id="seoaic-admin-container" class="wrap">
    <h1 id="seoaic-admin-title">
        <?php
        echo wp_kses(seoai_get_logo('logo.svg'), [
            'img' => [
                'title' => [],
                'src'	=> [],
                'alt'	=> [],
            ],
        ]);
        ?>
        <div class="seoaic-admin-title-subtitle">
            <span><?php echo esc_html(get_admin_page_title());?></span>
            <?php
            if (
                !empty($_GET['page'])
                && "seoaic-settings" == $_GET['page']
            ) {
                ?>
                <span class="seoaic-admin-title-version">Version <?php echo esc_html(get_plugin_data(SEOAIC_FILE)['Version']); ?></span>
                <?php
            }
            ?>
        </div>
    </h1>
    <?php
    echo wp_kses($SEOAIC->get_background_process_loader(true), [
        'div' => [
            'id'    => [],
            'class' => [],
            'style' => [],
            'title' => [],
        ],
        'p' => [
            'class' => [],
        ],
        'b' => [],
        'button' => [
            'type'              => [],
            'class'             => [],
            'data-modal'        => [],
            'data-action'       => [],
            'data-form-callback' => [],
            'data-content'      => [],
        ],
    ]);
    ?>
    <div id="seoaic-admin-body" class="seoaic-with-loader %SEOAIC_PAGE_CLASS_NAME%" %SEOAIC_PAGE_ATTRS_STR%>
        <div class="inner">
            %SEOAIC_PAGE_CONTENT%
        </div>
        <div class="lds-dual-ring"></div>
    </div>
</div>