<?php

/**
 * @file
 * Default theme implementation to display a single Drupal page.
 *
 * @see template_preprocess()
 * @see template_preprocess_page()
 * @see template_process()
 * @see html.tpl.php
 */
?>
<header id="header" class="header" role="header">
  <div class="container">
    <nav class="navbar navbar-default" role="navigation">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
          <span class="sr-only"><?php print t('Toggle navigation'); ?></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <?php if ($site_name || $logo): ?>
          <a href="<?php print $front_page; ?>" class="navbar-brand" rel="home" title="<?php print t('Home'); ?>">
            <img src="/sites/all/themes/bigw_radix/assets/images/logo-big.png" alt="<?php print t('Home'); ?>" id="logo" />
            <?php if ($site_name): ?>
              <span class="site-name visually-hidden"><?php print $site_name; ?></span>
            <?php endif; ?>
          </a>
        <?php endif; ?>
      </div> <!-- /.navbar-header -->

      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="navbar-collapse">
        <?php if ($main_menu): ?>
          <?php
          $block = module_invoke('bigw_blocks', 'block_view', 'user_menu');
          print render($block['content']);
          ?>
          <ul id="main-menu" class="menu nav navbar-nav">
            <?php print render($main_menu); ?>
          </ul>
        <?php endif; ?>
      </div><!-- /.navbar-collapse -->
    </nav><!-- /.navbar -->
  </div> <!-- /.container -->
</header>
<div id="main-wrapper">
  <div id="main" class="main">
    <div class="container">
      <?php if ($messages): ?>
        <div id="messages">
          <?php print $messages; ?>
        </div>
      <?php endif; ?>
      <div id="page-header">
        <?php if ($title): ?>
          <div class="page-header">
            <h1 class="title"><?php print $title; ?></h1>
          </div>
        <?php endif; ?>
        <?php if ($tabs): ?>
          <div class="tabs">
            <?php print render($tabs); ?>
          </div>
        <?php endif; ?>
        <?php if ($action_links): ?>
          <ul class="action-links">
            <?php print render($action_links); ?>
          </ul>
        <?php endif; ?>
      </div>
    </div>
  <?php
    $front = '';
  if(!drupal_is_front_page()) {
    $front = 'container';
  }
  ?>
    <div id="content" class='<?= $front; ?>'>
      <?php print render($page['content']); ?>
    </div>
  </div> <!-- /#main -->
</div> <!-- /#main-wrapper -->

<footer id="footer" class="footer" role="footer">
  <div class="block-slider">
    <?= views_embed_view('partners', 'slider'); ?>
  </div>
  <div class="front project-sponsors container no-padding">
    <div class="col-xs-12 sponsors-logos no-padding">
      <img src="/sites/all/themes/bigw_radix/assets/images/ue-logos.png">
    </div>
  </div>
  <div class="col-xs-12 project-desc">
    <?= t('Projekt „BIG WEBOWSKI – lojalnościowy program szkoleniowy z systemem beneficjów” jest realizowany w ramach projektu
    „Skrzydła dla innowacji przyszłością dojrzałej edukacji” [numer umowy: POWR.04.01.00-00-I030/15]
    realizowanego w ramach Programu Operacyjnego Wiedza Edukacja Rozwój Oś Priorytetowa IV
    Innowacje społeczne i współpraca ponadnarodowa.'); ?>
  </div>
  <div class="col-xs-12 about-cookies">
    <a href="/about-cookies">Polityka prywatności</a>
  </div>
  <div class="container copyright">
    <div class="col-xs-12">
      Copyright © 2017 <a href="/">BigWebowski.pl</a>
    </div>
    <div class="col-xs-12">
      Wykonanie: <a href="https://git365.pl/" target="_blank">GIT365</a>
      Design: <a href="http://marcinbauer.com" target="_blank">marcinbauer.com</a>
    </div>
  </div>
</footer>
