<?php
require_once __DIR__ . '/includes/ect-bootstrap.php';
$pageTitle = $pageTitle ?? 'Murdock DevWorks';
$pageDescription = $pageDescription ?? 'Murdock DevWorks software products and support.';
$mdwShowSidebar = $mdwShowSidebar ?? true;
include __DIR__ . '/includes/mdw-header.php';
?>
<section class="mdw-inner-title"><div class="container"><h1><?php echo htmlspecialchars($pageTitle, ENT_QUOTES, 'UTF-8'); ?></h1><p><?php echo htmlspecialchars($pageDescription, ENT_QUOTES, 'UTF-8'); ?></p></div></section>
<div class="midWrapper mdw-main"><div class="container"><div class="row clearfix">
  <div class="<?php echo $mdwShowSidebar ? 'col-9' : 'col-12'; ?>">
    <main class="mdw-content-shell">
      <?php if (isset($mdwMainInclude) && $mdwMainInclude) { include $mdwMainInclude; } ?>
      <?php if (isset($mdwAfterMainInclude) && $mdwAfterMainInclude) { include $mdwAfterMainInclude; } ?>
    </main>
  </div>
  <?php if ($mdwShowSidebar): ?>
  <aside class="col-3">
    <div class="mdw-sidebar">
      <div class="mdw-sidebar-box"><h2>Store Menu</h2><?php $menustyle='verticalmenu2'; include "vsadmin/inc/incmenu.php"; ?></div>
      <div class="mdw-sidebar-box"><h2>Your Account</h2><?php $minicssaction="minilogin"; include "vsadmin/inc/incminicss.php"; ?></div>
      <div class="mdw-sidebar-box"><h2>Cart</h2><?php $minicssaction="minicart"; include "vsadmin/inc/incminicss.php"; ?></div>
    </div>
  </aside>
  <?php endif; ?>
</div></div></div>
<?php include __DIR__ . '/includes/mdw-footer.php'; ?>
