ACC SHELL

Path : /srv/www/vhosts/svj-u-leskavy/app/templates/
File Upload :
Current File : /srv/www/vhosts/svj-u-leskavy/app/templates/@layout.latte

{**
 * @param string   $basePath web base path
 * @param array    $flashes  flash messages
 *}

<!doctype html>
<html class="no-js" lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="keywords" content="">
    <meta name="description" content="">

    <title>SVJ domu U Leskavy 20-H, Brno</title>

    {* <link rel="shortcut icon" href="{$basePath}/favicon.ico"> *}

    {* top-bar breakpoint set to large; created using SASS *}
    {*
      http://truthyfalsey.com/foundation-5-top-bar-breakpoint/
      http://foundation.zurb.com/docs/sass.html
    *}
    {* <link rel="stylesheet" type="text/css" href="{$basePath}/css/foundation-custom.css" /> *}

    {* top-bar breakpoint default by Foundation *}
    <link rel="stylesheet" type="text/css" href="{$basePath}/bower_components/foundation/css/foundation.css" />

    {* foundation icons *}
    <link rel="stylesheet" type="text/css" href="{$basePath}/bower_components/foundation-icon-fonts/foundation-icons.css">

    {* responsive tables *}
    <link rel="stylesheet" type="text/css" href="{$basePath}/bower_components/responsive-tables/responsive-tables.css">

    <link rel="stylesheet" type="text/css" href="{$basePath}/css/screen.css" />
    <link rel="stylesheet" type="text/css" href="{$basePath}/css/tablet.css" />
    <link rel="stylesheet" type="text/css" href="{$basePath}/css/desktop.css" />

    {* adjust different languages if needed *}
    {*
    {if $lang == 'en'}
        <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/screen-english.css">
    {/if}
    *}

    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="{$basePath}/css/ie.css" />
    <![endif]-->
    <!--[if (lte IE 8)]>
    <link rel="stylesheet" type="text/css" href="{$basePath}/css/ie8-.css">
    <![endif]-->

    {* <link rel="stylesheet" type="text/css" href="{$basePath}/css/ie.css" /> *}
    {* <link rel="stylesheet" type="text/css" href="{$basePath}/css/ie8-.css"> *}

    {block head}{/block}
  </head>

  <body>
    <script> document.documentElement.className+=' js' </script>
    <script type="text/javascript" src="{$basePath}/bower_components/jquery/dist/jquery.min.js"></script>

    <!--[if (lte IE 8)]>
    <div class="fallback">
      <p>Používáte příliš starou verzi prohlížeče Internet Explorer.<br><br>Prosím, aktualizujte svůj prohlížeč na verzi 9 a vyšší; nebo použijte některý z jiných moderních prohlížečů, jako např. Google Chrome, Mozilla Firefox nebo Safari.</p>
    </div>
    <![endif]-->

    <div class="wrapper">

      {* <div class="row">
        <div class="large-12 columns">
          <h1>Welcome to Foundation ({_"translated"})</h1>
        </div>
      </div> *}

      <div class="row menu">
        <nav class="top-bar" data-topbar role="navigation" data-options="custom_back_text:true; back_text:<--">
          <ul class="title-area">
            <li class="name">
              <h1><a n:href="Homepage:default">SVJ</a></h1>
            </li>
             <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
            <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
          </ul>

          <section class="top-bar-section">
            <!-- Left Nav Section -->
            <ul class="left">
              <li{ifCurrent Homepage:* } class="active"{/ifCurrent}><a n:href="Homepage:">Domů</a></li>
              <li{ifCurrent Events:* } class="active"{/ifCurrent}><a n:href="Events:">Události</a></li>
              <li class="{if $user->isAllowed(\Authorizator::FILES_RESOURCE, 'manage')}has-dropdown{/if}{ifCurrent Files:* } active{/ifCurrent}">
                <a n:href="Files:">Soubory</a>
                <ul class="dropdown">
                  <li{ifCurrent Files:manage } class="active"{/ifCurrent}><a n:href="Files:manage">Spravovat soubory</a></li>
                  <li{ifCurrent Files:upload } class="active"{/ifCurrent}><a n:href="Files:upload">Nahrát soubor</a></li>
                  <li{ifCurrent Files:labels } class="active"{/ifCurrent}><a n:href="Files:labels">Spravovat štítky</a></li>
                </ul>
              </li>
          <li{ifCurrent Forum:* } class="active"{/ifCurrent}><a n:href="Forum:">Diskuze</a></li>
          <li class="{if $user->isAllowed(\Authorizator::ECONOMY_RESOURCE, 'manage')}has-dropdown{/if}{ifCurrent Economy:* } active{/ifCurrent}">
            <a n:href="Economy:">Hospodaření</a>
            <ul class="dropdown">
              <li{ifCurrent Economy:manage } class="active"{/ifCurrent}><a n:href="Economy:manage">Spravovat soubory</a></li>
              <li{ifCurrent Economy:upload } class="active"{/ifCurrent}><a n:href="Economy:upload">Nahrát soubor</a></li>
              {*<li{ifCurrent Economy:labels } class="active"{/ifCurrent}><a n:href="Economy:labels">Spravovat štítky</a></li>*}
            </ul>
          </li>
              {* <li{ifCurrent Langs:* } class="active"{/ifCurrent}><a n:href="Langs:">Jazyky</a></li> *}
            </ul>

            <!-- Right Nav Section -->
            <ul class="right">
              {if $user->isLoggedIn()}
                {if $user->isAllowed(\Authorizator::USERS_RESOURCE, 'manage')}
                  <li class="has-dropdown{ifCurrent Users:* } active{/ifCurrent}">
                    <a n:href="Users:">Uživatelé</a>
                    <ul class="dropdown">
                      <li{ifCurrent Users:bulkEmail } class="active"{/ifCurrent}><a n:href="Users:bulkEmail">Hromadný email</a></li>
                    </ul>
                  </li>
                {else}
                  <li{ifCurrent Users:* } class="active"{/ifCurrent}><a n:href="Users:edit $user->id">Nastavení</a></li>
                {/if}
                <li><a n:href="Sign:out $presenter">Odhlásit se</a></li>
              {else}
                <li{ifCurrent Sign:* } class="active"{/ifCurrent}><a n:href="Sign:in">Přihlášení</a></li>
              {/if}
              {*
              <li class="has-dropdown">
                <a href="{link this 'lang' => 'cs'}">&nbsp;</a>
                <ul class="dropdown">
                  {if $lang != 'cs'}<li><a href="{link this 'lang' => 'cs'}">česky</a></li>{/if}
                  {if $lang != 'en'}<li><a href="{link this 'lang' => 'en'}">English</a></li>{/if}
                </ul>
              </li>
              *}
            </ul>
          </section>
        </nav>
      </div>

      <div n:if="$flashes" class="row panel">
        <div n:foreach="$flashes as $flash" class="flash {$flash->type}">{!$flash->message}</div>
      </div>

      {include content}

      <div class="push"></div>

    </div>

    <div class="row">
      <footer>&copy; 2015 <a href="http://www.flipcom.cz" title="Flipcom - IT Advisory"><img src="{$basePath}/images/flipcom-minilogo.png" alt="Flipcom - IT Advisory" style="margin-top: -2px"> Flipcom - IT Advisory</a></footer>
    </div>

    {block scripts}
      <script type="text/javascript" src="{$basePath}/bower_components/modernizr/modernizr.js"></script>
      <script type="text/javascript" src="{$basePath}/bower_components/foundation/js/foundation.min.js"></script>
      <script type="text/javascript" src="{$basePath}/bower_components/responsive-tables/responsive-tables.js"></script>
      <script type="text/javascript" src="{$basePath}/bower_components/tinymce/tinymce.min.js"></script>

      <script type="text/javascript" src="{$basePath}/js/netteForms.js"></script>
      <script type="text/javascript" src="{$basePath}/js/main.js"></script>

      <script type="text/javascript">

        // tinyMCE init
        var plugins = ["textcolor", "paste", "hr", "link"],
            toolbar = "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | styleselect | forecolor | hr | link";
        var tinymceInit = function() {
          tinymce.init({
              selector: "div.editable",
              inline: true,
              menubar: false,
              toolbar: toolbar,
              // valid_elements: 'h1,h2,hr,p,strong,span',
              plugins: plugins,
              paste_auto_cleanup_on_paste: true
              // , entity_encoding: 'raw'
          });
          tinymce.init({
              selector: "textarea.editable",
              inline: false,
              menubar: false,
              toolbar: toolbar,
              // valid_elements: 'h1,h2,hr,p,strong,span',
              plugins: plugins,
              paste_auto_cleanup_on_paste: true,
              // , entity_encoding: 'raw'
              link_list: {!$filesList},
              relative_urls: false
          });
        };
        tinymceInit();

        // filter files by labels
        if ($('.labels a').length) {
            $('.labels a').click(function(e) {
                var label = $(this);
                $('.labels a').removeClass('active');
                label.addClass('active');
                $('.files li').hide();
                $('.files li a[data-label-id=' + label.data('label-id') + ']').map(function() {
                    $(this).parents('li').show();
                });
                e.preventDefault();
                e.stopPropagation();
            });
        } else {
            $('.labels-outer a').hide();
        }

        // on editProjectForm submit
        $('#editPageForm').submit(function(event) {
            $(this).find('input[name="contents"]').val($('.editable').html());
        });

        // on addPostForm submit
        $('#addPostForm').submit(function(event) {
            $(this).find('input[name="text"]').val(tinymce.activeEditor.getContent());
        });

        // on editPostForm submit
        var editPostFormSubmit = function() {
          var prefix = 'post-';
          var that = this;
          $('#editPostForm').submit(function(event) {
              $(this).find('input[name="id"]').val($(that).parents('table').attr('id').substr(prefix.length));
              $(this).find('input[name="text"]').val(tinymce.activeEditor.getContent());
          });
          $('#editPostForm input[type=submit]').click();
        }

        // on addCommentForm submit
        var addCommentFormSubmit = function() {
          var prefix = 'post-'; // post prefix here, not comment --> adding comment to post
          var that = this;
          $('#addCommentForm').submit(function(event) {
              $(this).find('input[name="parent"]').val($(that).parents('table').attr('id').substr(prefix.length));
              $(this).find('input[name="text"]').val($(that).parents('tr').find('input').first().val());
          });
          $('#addCommentForm input[type=submit]').click();
        }

        // on editCommentForm submit
        var editCommentFormSubmit = function() {
          var prefix = 'comment-';
          var that = this;
          $('#editCommentForm').submit(function(event) {
              $(this).find('input[name="id"]').val($(that).parents('tr').attr('id').substr(prefix.length));
              $(this).find('input[name="text"]').val($(that).parents('tr').find('input').first().val());
          });
          $('#editCommentForm input[type=submit]').click();
        }

        // on addLabelForm submit
        var addLabelFormSubmit = function() {
            var that = this;
            $('#addLabelForm').submit(function(event) {
                $(this).find('input[name="label"]').val($(that).parents('tr').find('input[type=text]').val());
                $(this).find('input[name="color"]').val($(that).parents('tr').find('input[type=color]').val());
            });
            $('#addLabelForm input[type=submit]').click();
        };

        // on updateLabelForm submit
        var updateLabelFormSubmit = function() {
            var that = this;
            $('#updateLabelForm').submit(function(event) {
                $(this).find('input[name="id"]').val($(that).parents('tr').data('id'));
                $(this).find('input[name="label"]').val($(that).parents('tr').find('input[type=text]').val());
                $(this).find('input[name="color"]').val($(that).parents('tr').find('input[type=color]').val());
            });
            $('#updateLabelForm input[type=submit]').click();
        };
      </script>
    {/block}
  </body>
</html>

ACC SHELL 2018