<?php

ob_start();
include 'config/koneksi.php';
include 'pages/layout/header.php';
include 'pages/layout/navbar.php';
include 'pages/layout/footer.php';

if (isset($_GET['pjax']) && $_GET['pjax'] === '1') {
  ob_start();
  require 'config/titles.php';
  $pjaxTitle = trim(ob_get_clean());

  if ($pjaxTitle !== '') {
    header('X-PJAX-Title: ' . $pjaxTitle);
  }

  require 'config/routes.php';
  exit;
}
?>

<?php echo head(); ?>

<body class="course-details-page">
  <?php echo navbar(); ?>
  <main class="main">

    <?php
    require 'config/routes.php'; ?>
  </main>


  <?php echo footer(); ?>
</body>

</html>
