<?php
  /**
   * Footer
   *
   * @package Wojo Framework
   * @author wojoscripts.com
   * @copyright 2017
   * @version $Id: footer.tpl.php, v1.00 2017-05-05 10:12:05 gewa Exp $
   */
  if (!defined("_WOJO"))
      die('Direct access to this location is not allowed.');
?>
</main>
</div>
<!-- Home page -->
<?php ($this->segments[0] == "index") ? include_once("_home_page.tpl.php") : null;?>
<!-- Footer -->
<footer>
  <div class="wojo-grid">
    <div class="row gutters">
      <div class="columns screen-33 tablet-33 mobile-50 phone-100 phone-content-center">
        <a href="<?php echo SITEURL;?>/" class="logo"><?php echo ($this->core->logo) ? '<img src="' . SITEURL . '/uploads/' . $this->core->logo . '" alt="' . $this->core->company . '">' : $this->core->company;?></a>
        <div class="half-vertical-margin"><?php echo $this->core->inv_info;?>
        </div>
        <p>
          <a class="wojo icon circular tiny white button" href="//<?php echo $this->core->social->facebook;?>"><i class="icon facebook"></i></a>
          <a class="wojo icon circular tiny white button" href="//<?php echo $this->core->social->twitter;?>"><i class="icon twitter"></i></a>
        </p>
      </div>
      <div class="columns screen-33 tablet-33 mobile-50 phone-100">
        <h4 class="wojo white text"><?php echo Lang::$word->ABOUT;?></h4>
        <?php if($this->menus):?>
        <ul class="wojo list">
          <?php foreach ($this->menus as $menu):?>
          <li><a class="white" <?php ($menu->content_type == 'web') ? 'target="' . $menu->target . '"': null;?> href="<?php echo ($menu->content_type == 'web') ? Url::out_url($menu->link) : ($menu->page_type == "home" ? SITEURL : Url::url('/content', $menu->slug));?>"><?php echo $menu->name;?></a>
          </li>
          <?php endforeach;?>
        </ul>
        <?php endif;?>
      </div>
      <div class="columns screen-33 tablet-33 mobile-50 phone-100 ">
        <?php include_once(PLUGINBASE . "/_small_contact.tpl.php");?>
      </div>
    </div>
    <div class="wojo inverted divider"></div>
    <p class="wojo small text content-center">Copyright &copy;<?php echo date('Y') . ' '. $this->core->company;?> | Powered by DDP v.<?php echo $this->core->wojov;?></p>
  </div>
</footer>
<?php Debug::displayInfo();?>
<script type="text/javascript" src="<?php echo THEMEURL;?>/js/master.js"></script>
<?php if(Utility::in_array_any(["memberships", "cart"], $this->segments)):?>
<script type="text/javascript" src="https://js.stripe.com/v3/"></script>
<?php endif;?>
<script type="text/javascript"> 
// <![CDATA[  
<?php if($this->core->ploader):?>
$(window).on("load", function (e) {
	$("#preloader").velocity("transition.fadeOut");
})
<?php endif;?>
$(document).ready(function() {
    $.Master({
        weekstart: <?php echo($this->core->weekstart);?>,
		ampm: "<?php echo ($this->core->time_format) == "hh:mm" ? false : true;?>",
		url: "<?php echo FRONTVIEW;?>",
		surl: "<?php echo SITEURL;?>",
		theme: "<?php echo THEMEURL;?>",
        lang: {
            button_text: "<?php echo Lang::$word->BROWSE;?>",
            empty_text: "<?php echo Lang::$word->NOFILE;?>",
            delBtn: "<?php echo Lang::$word->DELETE_REC;?>",
			trsBtn: "<?php echo Lang::$word->MTOTRASH;?>",
			restBtn: "<?php echo Lang::$word->RFCOMPLETE;?>",
			canBtn: "<?php echo Lang::$word->CANCEL;?>",
			popular: "<?php echo Lang::$word->FAQ_POPULAR;?>",
        }
    });
	<?php if($this->core->eucookie):?>
    $("body").acceptCookies({
        position: 'top',
        notice: '<?php echo Lang::$word->EU_NOTICE;?>',
        accept: '<?php echo Lang::$word->EU_ACCEPT;?>',
        decline: '<?php echo Lang::$word->EU_DECLINE;?>',
        decline_t: '<?php echo Lang::$word->EU_DECLINE_T;?>',
        whatc: '<?php echo Lang::$word->EU_W_COOKIES;?>'
    });
	<?php endif;?>
});
// ]]>
</script>
<?php if($this->core->analytics):?>
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo $this->core->analytics;?>"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', '<?php echo $this->core->analytics;?>');
</script>
<?php endif;?>
</body></html>