templates/template.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html class="no-js" lang="en">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta http-equiv="x-ua-compatible" content="ie=edge">
  6.     <title>{{ title is defined ? (title ~ " &bullet; ")|raw : "" }}Imperial News Grid</title>
  7.     <meta name="description" content="The Galactic Empire - A Star Wars Combine faction">
  8.     <meta name="viewport" content="width=device-width, initial-scale=1">
  9.     <!-- <link rel="apple-touch-icon" href="apple-touch-icon.png"> -->
  10.     <!-- Place favicon.ico in the root directory -->
  11.     <link href="{{ asset('screen.css', 'css') }}" media="screen" rel="stylesheet" type="text/css" />
  12.     <link rel="stylesheet" href="{{ asset('gejs.css', 'css') }}">
  13.     <link rel="stylesheet" href="{{ asset('lib/jquery-ui.css', 'css') }}">
  14.     <link rel="stylesheet" href="{{ asset('lib/jquery-ui.structure.css', 'css') }}">
  15.     <link rel="stylesheet" href="{{ asset('lib/jquery-ui.theme.css', 'css') }}">
  16.     {% block cssAssets '' %}
  17. </head>
  18. <body>
  19. <script type="text/javascript" src="{{ asset('lib/jquery-2.1.4.min.js', 'js') }}"></script>
  20. <script type="text/javascript" src="{{ asset('lib/jquery-ui.min.js', 'js') }}"></script>
  21. <script type="text/javascript" src="{{ asset('lib/fontawesome-all.min.js', 'js') }}"></script>
  22. <script type="text/javascript" src="{{ asset('lib/axios.min.js', 'js') }}"></script>
  23. <script type="text/javascript" src="{{ asset('public.js', 'js') }}"></script>
  24. {% if gejs is defined %}
  25.     {% for script in gejs %}
  26.         <script type="text/javascript" src="{{ asset(script, 'gejs') }}.js"></script>
  27.     {% endfor %}
  28. {% endif %}
  29. <script type="text/javascript" src="{{ asset('clock.js', 'js') }}"></script>
  30. {% block jsAssets '' %}
  31. {# <script type="text/javascript" src="<?php echo $GLOBALS['gJSPath'?>/<?php echo $js['path'?>?v<?php echo $js['version'?>"></script> #}
  32. <script type="text/javascript">
  33.     gejsAjaxPath = "/gejs.php";
  34. </script>
  35. <section id="header">
  36.     <div class="clock" id="clockDiv" style="float: none;">Combine Galactic Time</div>
  37.     {% if app.user is not null %}
  38.         <div class="user">
  39.             Logged in as: {{ app.user.getName() }} <a href="{{ app.get('base_url') }}logout"><span class="fa fa-sign-out-alt"></span></a>
  40.         </div>
  41.     {% endif %}
  42. </section>
  43. <section id="body">
  44.     <nav id="main">
  45.         <div class="menu-title"><span>{% block menuTitle 'Main Menu' %}</span></div>
  46.         <div class="menu-body">
  47.             <div class="menu-icons">
  48.                 <a href="/" title="Home"><span class="fa fa-home"></span></a>
  49.                 <a href="/irms" title="IRMS"><span class="fa fa-id-card"></span></a>
  50.                 {% if app.user is not null %}
  51.                 <a href="/irms/notifications" title="Notifications">
  52.                   <div style="display:inline-block;position:relative;">
  53.                     <span class="fa fa-bell"></span>
  54.                     {% set notifCount = app.user.getNotificationCount() %}
  55.                     {% if notifCount > 0 %}
  56.                     <span class="badge">{{ notifCount }}</span>
  57.                     {% endif %}
  58.                   </div>
  59.                 </a>
  60.                 {% endif %}
  61.                 <a href="https://commcent.swc-empire.com" title="COMMCENT"><span class="fa fa-comments"></span></a>
  62.                 <a href="http://swcombine.com" title="Star Wars Combine" style="padding-top: 2px;">
  63.                     <svg width="18px" height="18px" viewBox="0 0 180 180">
  64.                         <use xlink:href="#icon-combine"></use>
  65.                     </svg>
  66.                 </a>
  67.             </div>
  68.             {{ sideMenu() }}
  69.         </div>
  70.     </nav>
  71.     <div class="content">
  72.         <h1 class="content-title">{% block pageTitle 'The Galactic Empire' %}</h1>
  73.         <div id="flash">
  74.             {% for type, messages in app.flashes %}
  75.                 {% for message in messages %}
  76.                     <div class="message {{ type }}">
  77.                         <i class="{{ app.flashIcons[type] }} fa-lg fa-pull-left"></i>
  78.                         {{ message|raw }}
  79.                     </div>
  80.                 {% endfor %}
  81.             {% endfor %}
  82.         </div>
  83.         <div id="content">
  84.             {% block content '' %}
  85.         </div>
  86.         <div class="footer">
  87.             <div class="copy">
  88.                 <div>
  89.                     Copyright <span class="far fa-copyright"></span> 2012 - {{ "now"|date('Y') }} &mdash; The Galactic Empire &mdash; v{{ core_get('version') }}
  90.                 </div>
  91.             </div>
  92.         </div>
  93.     </div>
  94. </section>
  95. <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <symbol id="icon-credits" viewBox="0 0 19 32"> <title>credits</title> <path fill="#ccc" style="fill:var(--color1,#ccc)" d="M3.083 0.951v5.807h-1.662v6.645h1.68v5.789h1.233v-5.789h2.502v5.823h1.233v-5.823h2.909l-7.384 17.445 4.586 0.002 9.479-24.092h-9.59v-5.807h-1.233v5.807h-2.484v-5.807h-1.269z"></path> </symbol> <symbol id="icon-combine" viewBox="0 0 32 32"> <title>Combine</title> <path fill="#ddd" stroke="#ddd" stroke-width="1.7778" stroke-miterlimit="4" stroke-linecap="butt" stroke-linejoin="miter" style="stroke:var(--color2,#ddd)" style="fill: var(--color2, #ddd)" d="M0 15.822c0-7.004 5.618-13.689 13.156-13.689 6.009 0 10.844 4.124 10.844 10.311 0 3.698-2.88 7.822-7.289 7.822-3.911 0-6.044-2.489-6.044-5.511-0.64 0-1.067 1.067-1.067 2.133 0 2.951 3.52 6.044 7.644 6.044 5.404 0 11.022-4.942 11.022-12.267 0-4.551-2.204-8.356-4.089-10.667 2.311 1.956 5.689 5.831 5.689 11.911 0 7.004-5.618 13.689-13.156 13.689-6.009 0-10.844-4.124-10.844-10.311 0-3.698 2.88-7.822 7.289-7.822 3.911 0 6.044 2.489 6.044 5.511 0.64 0 1.067-1.067 1.067-2.133 0-2.951-3.52-6.044-7.644-6.044-5.404 0-11.022 4.942-11.022 12.267 0 4.551 2.204 8.356 4.089 10.667-2.311-1.956-5.689-5.831-5.689-11.911z"></path> </symbol> </defs> </svg>
  96. </body>
  97. </html>