<?php
/*
  $Id$

  CE Phoenix, E-Commerce made Easy
  https://phoenixcart.org

  Copyright (c) 2021 Phoenix Cart

  Released under the GNU General Public License
*/

  $oscTemplate->buildBlocks();

  $OSCOM_Hooks->call('siteWide', 'injectRedirects');

  $tpl_template = $oscTemplate->get_template();
  if (!$oscTemplate->hasBlocks('boxes_column_left')) {
    $tpl_template->setGridContentWidth($tpl_template->getGridContentWidth() + $tpl_template->getGridColumnWidth());
  }

  if (!$oscTemplate->hasBlocks('boxes_column_right')) {
    $tpl_template->setGridContentWidth($tpl_template->getGridContentWidth() + $tpl_template->getGridColumnWidth());
  }
?>
<!DOCTYPE html>
<html<?php echo HTML_PARAMS; ?>>
<head>
<meta charset="<?php echo CHARSET; ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php echo htmlspecialchars($oscTemplate->getTitle()); ?></title>
<base href="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>">

<?php
echo $OSCOM_Hooks->call('siteWide', 'injectSiteStart');

echo $oscTemplate->getBlocks('header_tags');
?>
</head>
<body>

  <?php
  echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart');

  echo $oscTemplate->getContent('navigation');
  ?>

  <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?> pt-2">

    <?php
    echo $OSCOM_Hooks->call('siteWide', 'injectBodyWrapperStart');

    echo $OSCOM_Hooks->call('siteWide', 'injectBeforeHeader');

    require $oscTemplate->map_to_template('header.php', 'component');

    echo $OSCOM_Hooks->call('siteWide', 'injectAfterHeader');
    ?>

    <div class="row">
      <div id="bodyContent" class="col order-1 order-md-6">

        <?php
        echo $OSCOM_Hooks->call('siteWide', 'injectBodyContentStart');
        ?>
