<footer id="footer" class="container">
  <div class="row">
    <?php
    $current_lang = $_SESSION['lang']['shortcode'];
      
    $links = array();
    $other_pages['about_payments'] = $websitepage->fetchAll($website->id, '', '', 1, 0, array('title' => 'About payments', 'status' => '1', 'lang' => $website->lang));
    $other_pages['contact'] = $websitepage->fetchAll($website->id, '', '', 0, 1, array('title' => 'Contact', 'status' => '1', 'lang' => $website->lang));
    $other_pages['terms'] = $websitepage->fetchAll($website->id, '', '', 0, 1, array('title' => 'Terms and conditions', 'status' => '1', 'lang' => $website->lang));
    $other_pages['terms_module_providers'] = $websitepage->fetchAll($website->id, '', '', 0, 1, array('title' => 'Terms and conditions of use - Module providers', 'status' => '1', 'lang' => $website->lang));
    $other_pages['about_us'] = $websitepage->fetchAll($website->id, '', '', 0, 1, array('title' => 'About us', 'status' => '1', 'lang' => $website->lang));
    foreach ($other_pages as $key => $pages) {
      $obj = $pages[key($pages)];
      $links[$key]['title'] = $obj->title;
      $links[$key]['url'] = $obj->pageurl;
      if ($website->lang != $current_lang) {
        $trans_page = $websitepage->fetchAll($website->id, '', '', 0, 1, array('fk_page' => $obj->id, 'status' => '1', 'lang' => $current_lang));
        $trans_page = $trans_page[key($trans_page)];
        $links[$key]['title'] = $trans_page->title;
        $links[$key]['url'] = $trans_page->pageurl;
      }
      
    }
    ?>
    <section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer" contenteditable="true">
      <h4>Information</h4>
      <ul class="toggle-footer">
        <li class="item">
          <a href="<?php print $links['about_us']['url'] ?>.php" title="Legal Notice - About us"> <?php print $links['about_us']['title'] ?> </a>
        </li>
        <li class="item">
          <a href="<?php print $links['terms']['url'] ?>.php" title="Terms and conditions of use"> <?php print $links['terms']['title'] ?> </a>
        </li>
        <li class="item">
          <a href="<?php print $links['terms_module_providers']['url'] ?>.php" title="Terms and conditions of use - Module providers"> <?php print $links['terms_module_providers']['title'] ?> </a>
        </li>
        <li class="item">
          <a href="<?php print $links['contact']['url'] ?>.php" title="Contact"> <?php print $links['contact']['title'] ?> </a>
        </li>
        <li class="item">
          <a href="<?php print $links['about_payments']['url'] ?>.php" title="About payments"> <?php print $links['about_payments']['title'] ?> </a>
        </li>
      </ul>
    </section>
    <section class="footer-block col-xs-12 col-sm-4" contenteditable="true">
      <h4>
        <a href="https://www.dolistore.com/en/my-account" title="Manage my customer account" rel="nofollow">My account</a>
      </h4>
      <div class="block_content toggle-footer">
        <ul class="bullet">
          <li>
            <a href="order-history.php" title="My orders" rel="nofollow">My orders</a>
          </li>
          <li>
            <a href="account-information.php" title="Manage my personal information" rel="nofollow">My personal info</a>
          </li>

        </ul>
      </div>
    </section>
  </div>
</footer>