<?php
/*
  osConcert Seat Booking Sofware
  Copyright (c) 2007-2026 https://www.osconcert.com
  Released under the GNU General Public License
*/

// Check to ensure this file is included in osConcert!
defined('_FEXEC') or die();

// Hide footer in maintenance mode
if (DOWN_FOR_MAINTENANCE_FOOTER_OFF != 'false') {
  return;
}

// Optional sponsors/banner
if (HEADER_BANNER == 'yes') {
  require(DIR_FS_CATALOG . DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/sponsors.php');
}
?>
<footer id="footer" class="footer">
<div class="footer-legal">
  <div class="container">

<?php if (HIDE_FOOTER_INFO == 'no'): ?>
  <div class="d-flex justify-content-center justify-content-lg-end mb-2 small">
    <div class="d-flex flex-wrap justify-content-center justify-content-lg-end gap-3">

      <?php
        require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/def_footer_information.php');

        if (BOX_INFORMATION_CONTACT_LINK != '') {
          echo '<a href="' . BOX_INFORMATION_CONTACT_LINK . '">' . BOX_INFORMATION_CONTACT . '</a>';
        }

        echo '&nbsp;: :&nbsp;&nbsp;<a href="'.tep_href_link(FILENAME_ACCOUNT).'">'.HEADER_ACCOUNT.'</a>';
      ?>

    </div>
  </div>
<?php else: ?>
  <div class="d-flex justify-content-center justify-content-lg-end mb-2 small">
    <a href="<?php echo tep_href_link(FILENAME_ACCOUNT); ?>">
      <?php echo HEADER_ACCOUNT; ?>
    </a>
  </div>
<?php endif; ?>


    <!-- BOTTOM ROW -->
    <div class="d-flex flex-column flex-lg-row justify-content-between align-items-center gap-3">

      <!-- LEFT: COPYRIGHT -->
      <div class="copyright text-center text-lg-start small">
        <?php echo "Copyright &copy; 2007-" . date('Y'); ?>
        <a href="/"><?php echo STORE_NAME; ?></a>.
        <?php echo FOOTER_MESSAGE; ?><br>

        <a href="https://www.osconcert.com" target="_blank" rel="noopener">
          <img
            src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME; ?>/images/osc1.png"
            alt="<?php echo STORE_NAME; ?>"
            width="24"
            height="24"
            loading="lazy">
        </a>

        Powered by
        <a href="https://www.osconcert.com" target="_blank" rel="noopener">osConcert</a>. Template by <a href="https://www.cybergord.com">CyberGord Web Engine</a>.
      </div>

      <!-- RIGHT: SOCIAL -->
      <div class="social-links d-flex justify-content-center gap-2">

        <?php if (TWITTER_ID != '') { ?>
          <a target="_blank" href="https://twitter.com/<?php echo TWITTER_ID; ?>"><i class="bi bi-twitter"></i></a>
        <?php } ?>

        <?php if (FACEBOOK_ID != '') { ?>
          <a target="_blank" href="https://facebook.com/<?php echo FACEBOOK_ID; ?>"><i class="bi bi-facebook"></i></a>
        <?php } ?>

        <?php if (INSTAGRAM_ID != '') { ?>
          <a target="_blank" href="https://www.instagram.com/<?php echo INSTAGRAM_ID; ?>"><i class="bi bi-instagram"></i></a>
        <?php } ?>

        <?php if (LINKEDIN_ID != '') { ?>
          <a target="_blank" href="https://www.linkedin.com/in/<?php echo LINKEDIN_ID; ?>"><i class="bi bi-linkedin"></i></a>
        <?php } ?>

      </div>

    </div>

  </div>
</div>
</div>