<?php

/* base.tpl */
class __TwigTemplate_d5609dabd26edd052d919ac0ae765b97e141b40a840c5873a88c85b7be89bd15 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
            'page_title' => array($this, 'block_page_title'),
            'opengraph' => array($this, 'block_opengraph'),
            'container' => array($this, 'block_container'),
            'content' => array($this, 'block_content'),
            'footer' => array($this, 'block_footer'),
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<!DOCTYPE html>
<html lang=\"ru\">
<head>
  <meta charset=\"utf-8\"/>

  <title>";
        // line 6
        $this->displayBlock('page_title', $context, $blocks);
        echo "</title>
  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
  <meta http-equiv=\"Content-Language\" content=\"ru\" />

  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>

  <link rel=\"icon\" href=\"/static/favicon.ico\" type=\"image/x-icon\">
  <link rel=\"shortcut icon\" href=\"/static/favicon.ico\" type=\"image/x-icon\">

  <link rel=\"stylesheet\" type=\"text/css\" href=\"";
        // line 15
        echo twig_escape_filter($this->env, (isset($context["css_link"]) ? $context["css_link"] : null), "html", null, true);
        echo "\" media=\"screen\" />
  <link href=\"https://fonts.googleapis.com/css?family=PT+Sans\" rel=\"stylesheet\"/>
  <script type=\"text/javascript\" src=\"";
        // line 17
        echo twig_escape_filter($this->env, (isset($context["js_link"]) ? $context["js_link"] : null), "html", null, true);
        echo "\" language=\"javascript\"></script>

  <link rel=\"canonical\" href=\"";
        // line 19
        echo twig_escape_filter($this->env, (isset($context["base_link"]) ? $context["base_link"] : null), "html", null, true);
        echo twig_escape_filter($this->env, (isset($context["path"]) ? $context["path"] : null), "html", null, true);
        echo "\"/>

  <meta name=\"twitter:card\" content=\"summary_large_image\"/>
  <meta name=\"twitter:site\" content=\"@umonkey\"/>
  <meta name=\"twitter:creator\" content=\"@umonkey\"/>
  ";
        // line 24
        $this->displayBlock('opengraph', $context, $blocks);
        // line 25
        echo "</head>

<body class=\"bootstrap";
        // line 27
        if ((isset($context["body_class"]) ? $context["body_class"] : null)) {
            echo " ";
            echo twig_escape_filter($this->env, (isset($context["body_class"]) ? $context["body_class"] : null), "html", null, true);
        }
        echo "\">

  <nav class=\"navbar navbar-default\">
    <div class=\"container\">
      <div class=\"navbar-header\">
        <a href=\"/\" class=\"navbar-brand\" title=\"Открыть сайт\">";
        // line 32
        echo twig_escape_filter($this->env, (isset($context["site_name"]) ? $context["site_name"] : null), "html", null, true);
        echo "</a>
      </div>

      <div class=\"collapse navbar-collapse\">
        <ul class=\"nav navbar-nav\">
          <li";
        // line 37
        if (((isset($context["tab"]) ? $context["tab"] : null) == "photo")) {
            echo " class=\"active\"";
        }
        echo "><a href=\"/photo\">Фото</a></li>
          <li";
        // line 38
        if (((isset($context["tab"]) ? $context["tab"] : null) == "music")) {
            echo " class=\"active\"";
        }
        echo "><a href=\"/music\">Музыка</a></li>
          <li";
        // line 39
        if (((isset($context["tab"]) ? $context["tab"] : null) == "video")) {
            echo " class=\"active\"";
        }
        echo "><a href=\"/video\">Видео</a></li>
          <li";
        // line 40
        if (((isset($context["tab"]) ? $context["tab"] : null) == "search")) {
            echo " class=\"active\"";
        }
        echo "><a href=\"/search\">Поиск</a></li>
          <li";
        // line 41
        if (((isset($context["tab"]) ? $context["tab"] : null) == "upload")) {
            echo " class=\"active\"";
        }
        echo "><a href=\"/upload\">Загрузить</a></li>
        </ul>
      </div>
    </div>
  </nav>

  ";
        // line 47
        $this->displayBlock('container', $context, $blocks);
        // line 52
        echo "
  ";
        // line 53
        $this->displayBlock('footer', $context, $blocks);
        // line 68
        echo "
  <div id=\"wait_block\"></div>
</body>
</html>
";
    }

    // line 6
    public function block_page_title($context, array $blocks = array())
    {
        if ((isset($context["page_title"]) ? $context["page_title"] : null)) {
            echo twig_escape_filter($this->env, (isset($context["page_title"]) ? $context["page_title"] : null), "html", null, true);
        } else {
            echo twig_escape_filter($this->env, (isset($context["site_name"]) ? $context["site_name"] : null), "html", null, true);
        }
    }

    // line 24
    public function block_opengraph($context, array $blocks = array())
    {
    }

    // line 47
    public function block_container($context, array $blocks = array())
    {
        // line 48
        echo "    <div class=\"container\">
      ";
        // line 49
        $this->displayBlock('content', $context, $blocks);
        // line 50
        echo "    </div>
  ";
    }

    // line 49
    public function block_content($context, array $blocks = array())
    {
    }

    // line 53
    public function block_footer($context, array $blocks = array())
    {
        // line 54
        echo "    <footer class=\"footer\">
      <div class=\"container\">
        <div class=\"row\">
          <div class=\"col-sm-6\">
            <p>Personal file hosting</p>
            <p><a href=\"https://bitbucket.org/umonkey/filestorage\" target=\"_blank\">Source code</a></p>
          </div>
          <div class=\"col-sm-6\">
            <p><a href=\"/upload\">Upload files</a> &middot; <a href=\"";
        // line 62
        echo twig_escape_filter($this->env, (isset($context["path"]) ? $context["path"] : null), "html", null, true);
        echo "?debug=tpl\" target=\"_blank\">Debug</a></p>
          </div>
        </div>
      </div>
    </footer>
  ";
    }

    public function getTemplateName()
    {
        return "base.tpl";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  183 => 62,  173 => 54,  170 => 53,  165 => 49,  160 => 50,  158 => 49,  155 => 48,  152 => 47,  147 => 24,  137 => 6,  129 => 68,  127 => 53,  124 => 52,  122 => 47,  111 => 41,  105 => 40,  99 => 39,  93 => 38,  87 => 37,  79 => 32,  68 => 27,  64 => 25,  62 => 24,  53 => 19,  48 => 17,  43 => 15,  31 => 6,  24 => 1,);
    }
}
/* <!DOCTYPE html>*/
/* <html lang="ru">*/
/* <head>*/
/*   <meta charset="utf-8"/>*/
/* */
/*   <title>{% block page_title %}{% if page_title %}{{ page_title }}{% else %}{{ site_name }}{% endif %}{% endblock %}</title>*/
/*   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />*/
/*   <meta http-equiv="Content-Language" content="ru" />*/
/* */
/*   <meta name="viewport" content="width=device-width, initial-scale=1"/>*/
/* */
/*   <link rel="icon" href="/static/favicon.ico" type="image/x-icon">*/
/*   <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">*/
/* */
/*   <link rel="stylesheet" type="text/css" href="{{ css_link }}" media="screen" />*/
/*   <link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet"/>*/
/*   <script type="text/javascript" src="{{ js_link }}" language="javascript"></script>*/
/* */
/*   <link rel="canonical" href="{{ base_link }}{{ path }}"/>*/
/* */
/*   <meta name="twitter:card" content="summary_large_image"/>*/
/*   <meta name="twitter:site" content="@umonkey"/>*/
/*   <meta name="twitter:creator" content="@umonkey"/>*/
/*   {% block opengraph %}{% endblock %}*/
/* </head>*/
/* */
/* <body class="bootstrap{% if body_class %} {{ body_class }}{% endif %}">*/
/* */
/*   <nav class="navbar navbar-default">*/
/*     <div class="container">*/
/*       <div class="navbar-header">*/
/*         <a href="/" class="navbar-brand" title="Открыть сайт">{{ site_name }}</a>*/
/*       </div>*/
/* */
/*       <div class="collapse navbar-collapse">*/
/*         <ul class="nav navbar-nav">*/
/*           <li{% if tab == "photo" %} class="active"{% endif %}><a href="/photo">Фото</a></li>*/
/*           <li{% if tab == "music" %} class="active"{% endif %}><a href="/music">Музыка</a></li>*/
/*           <li{% if tab == "video" %} class="active"{% endif %}><a href="/video">Видео</a></li>*/
/*           <li{% if tab == "search" %} class="active"{% endif %}><a href="/search">Поиск</a></li>*/
/*           <li{% if tab == "upload" %} class="active"{% endif %}><a href="/upload">Загрузить</a></li>*/
/*         </ul>*/
/*       </div>*/
/*     </div>*/
/*   </nav>*/
/* */
/*   {% block container %}*/
/*     <div class="container">*/
/*       {% block content %}{% endblock %}*/
/*     </div>*/
/*   {% endblock %}*/
/* */
/*   {% block footer %}*/
/*     <footer class="footer">*/
/*       <div class="container">*/
/*         <div class="row">*/
/*           <div class="col-sm-6">*/
/*             <p>Personal file hosting</p>*/
/*             <p><a href="https://bitbucket.org/umonkey/filestorage" target="_blank">Source code</a></p>*/
/*           </div>*/
/*           <div class="col-sm-6">*/
/*             <p><a href="/upload">Upload files</a> &middot; <a href="{{ path }}?debug=tpl" target="_blank">Debug</a></p>*/
/*           </div>*/
/*         </div>*/
/*       </div>*/
/*     </footer>*/
/*   {% endblock %}*/
/* */
/*   <div id="wait_block"></div>*/
/* </body>*/
/* </html>*/
/* */
