<?php

declare(strict_types=1);

require_once dirname(__DIR__, 4) . '/system/bootstrap.php';

$currentUser = myronRequireAdministrationAccess();
$sdk = new MyronExtensionSDK('myron_sample');

myronRenderAdminShellStart($currentUser, [
    'title' => 'Myron Sample',
    'titleContext' => 'Extensions',
    'activeItem' => 'sample-hello',
]);
?>
<div class="mc-workspace__header">
  <?php myronRenderAdminBreadcrumbs([
      ['label' => 'Extensions', 'href' => myronBuildAdminUrl('extensions.installed')],
      ['label' => 'Myron Sample'],
  ]); ?>
  <div class="mc-workspace__title-row">
    <h1 class="mc-workspace__title">Myron Sample</h1>
  </div>
  <p class="mc-workspace__subtitle">A local reference extension route.</p>
</div>

<div class="mc-page-canvas mc-page-canvas--site">
  <div class="sg-main">
    <section class="sg-section">
      <h2 class="sg-section__title">Runtime</h2>
      <dl class="sg-define-list">
        <dt>Vendor</dt><dd><code><?= myronEscape($sdk->getVendor()) ?></code></dd>
        <dt>Site type</dt><dd><code><?= myronEscape($sdk->getSiteType()) ?></code></dd>
      </dl>
    </section>
  </div>
</div>
<?php myronRenderAdminShellEnd(); ?>
