<?php echo $header; ?>
<header id="js-header" class="u-header u-header--static u-header--show-hide u-header--change-appearance" data-header-fix-moment="500" data-header-fix-effect="slide">
      <div class="u-header__section u-header__section--light g-bg-white g-transition-0_3 g-py-0">
        <nav class="navbar navbar-expand-lg">
          <div class="container">
            <!-- Navigation -->
            <div class="collapse navbar-collapse align-items-center flex-sm-row g-pt-0 g-pt-5--lg" id="navBar">
              <ul class="navbar-nav align-items-lg-center mx-auto text-uppercase g-font-weight-600 u-nav-hover-v1" data-splitted-breakpoint="992">
                <!-- Logo -->
                <li class="nav-logo-item g-mx-40--lg">
                    <img src="view/image/logo.png" alt="Image Description">
				  </li>
                <!-- End Logo -->
              </ul>
            </div>
            <!-- End Navigation -->
          </div>
        </nav>
      </div>
</header>
<div class="container">
     <div class="row justify-content-center">
        <div class="col-sm-8 col-lg-8">
          <div class="g-brd-around g-brd-gray-light-v4 g-bg-white g-py-20 g-px-30 g-mt-150">
  <?php if ($success) { ?>
  <div class="alert alert-success"><?php echo $success; ?></div>
  <?php } ?>
  <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
    <button type="button" class="close" data-dismiss="alert">&times;</button>
  </div>
  <div class="visit">
    <div class="row">
      <div class="col-sm-6 col-sm-offset-1 text-center">
        <a href="../" class="btn btn-md u-btn-blue btn-block" target="_blank"><?php echo $text_catalog; ?></a></div>
      <div class="col-sm-6 text-center">
        <a href="../admin/" class="btn btn-md u-btn-deeporange btn-block"><?php echo $text_admin; ?></a></div>
    </div>
  </div>
          </div>
        </div>
      </div>
</div>
<?php echo $footer; ?>
<script type="text/javascript"><!--
$(document).ready(function() {
	$.ajax({
		url: '<?php echo $extension; ?>',
		type: 'post',
		dataType: 'json',
		success: function(json) {
			if (json['extensions']) {
				html  = '';

				for (i = 0; i < json['extensions'].length; i++) {
					extension = json['extensions'][i];

					html += '<div class="col-sm-6 module">';
					html += '  <a class="thumbnail pull-left" href="' + extension['href'] + '"><img src="' + extension['image'] + '" alt="' + extension['name'] + '" /></a>';
					html += '  <h5>' + extension['name'] + '</h5>';
					html += '  <p>' + extension['price'] + ' <a target="_BLANK" href="' + extension['href'] + '"><?php echo $text_view; ?></a></p>';
					html += '  <div class="clearfix"></div>';
					html += '</div>';

					i++;
				}

				$('#extension').html(html);
			} else {
				$('#extension').fadeOut();
			}
		}
	});
});
//--></script>
