templates/webmaster-area.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="de">
  3.     <head>
  4.         <title>{% block title %}Frivol.com - Webmaster{% block title_suffix %}{% endblock %}{% endblock %}</title>
  5.         <meta charset="utf-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0, user-scalable=0">
  7.         <meta http-equiv="x-ua-compatible" content="ie=edge" />
  8.         <meta name="copyright" content="Copyright &copy; {{ 'now'|date('Y') }} Frivol.com" />
  9.         <meta name="content-language" content="de" />
  10.         <meta name="robots" content="noindex, nofollow" />
  11.         <meta name="google-site-verification" content="9Ip7seZrghiufzfLkF-Rb13SnrxSmqKAZbBbRwg9gCo" />
  12.         <meta name="abstract" content="Frivol.com" />
  13.         <meta name="title" content="Frivol.com" />
  14.         <meta name="description" content="Frivol.com" />
  15.         <meta name="audience" content="all" />
  16.         <meta name="revisit-after" content="10 days" />
  17.         {% block stylesheets %}
  18.             <link rel="canonical" href="" />
  19.             <link rel="apple-touch-icon" sizes="120x120" href="{{ asset('apple-touch-icon.png') }}">
  20.             <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
  21.             <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
  22.             <link rel="mask-icon" href="{{ asset('safari-pinned-tab.svg') }}" color="#5bbad5">
  23.             <meta name="msapplication-TileColor" content="#da532c">
  24.             <meta name="theme-color" content="#ffffff">
  25.             <link rel="manifest" href="{{ asset('favicon.webmanifest') }}">
  26.             <link rel="manifest" href="{{ asset('build/manifest.json') }}">
  27.             <link rel="stylesheet" href="{{ asset('build/app.css') }}" type="text/css" />
  28.         {% endblock %}
  29.         {% include '_widgets/google-tag-manager.html.twig' %}
  30.     </head>
  31.     <body class="bg-secondary">
  32.         <app>
  33.             <header class="container-fluid mb-1 flex-column p-0 fixed-top">
  34.                 <nav class="navbar bg-primary text-white border-0">
  35.                     <a class="navbar-brand logo-webmaster text-hide ml-0 mr-auto" href="{{ path('app_webmaster_dashboard_index') }}">
  36.                         Frivol.com Webmaster
  37.                     </a>
  38.                     {% if is_granted('ROLE_WEBMASTER') %}
  39.                         <a href="{{ path('app_webmaster_stats_advertisedusers') }}" class="text-white mr-1">
  40.                             <span class="badge badge-success">
  41.                                 {{ totalActiveAdvertisedUserCount(app.user.webmasterId) }}
  42.                             </span>
  43.                             <span class="{{ app.request.attributes.get('_route') == 'app_webmaster_stats_advertisedusers' ? 'text-underline' : '' }}">
  44.                                 geworbene, aktive Mitglieder
  45.                             </span>
  46.                         </a>
  47.                         <span data-toggle="dropdown" style="cursor: pointer;" class="text-white">
  48.                             <span class="badge badge-light">{{ app.user.webmasterId }}</span>
  49.                             <i class="fas fa-cog"></i>
  50.                         </span>
  51.                         <ul class="dropdown-menu">
  52.                             <li class="dropdown-header">Konto-Aktionen</li>
  53.                             <li>
  54.                                 <a class="dropdown-item {{ 'app_webmaster_account_mydata' in app.request.attributes.get('_route') ? 'active' : '' }}" href="{{ path('app_webmaster_account_mydata') }}">
  55.                                     Meine Daten
  56.                                 </a>
  57.                             </li>
  58.                             <li>
  59.                                 <a class="dropdown-item {{ 'app_webmaster_account_settings' in app.request.attributes.get('_route') ? 'active' : '' }}" href="{{ path('app_webmaster_account_settings') }}">
  60.                                     Einstellungen
  61.                                 </a>
  62.                             </li>
  63.                             <li>
  64.                                 <a class="dropdown-item" href="{{ path('app_security_logout') }}">Logout</a>
  65.                             </li>
  66.                         </ul>
  67.                     {% else %}
  68.                         {{ render(controller('App\\Controller\\Webmaster\\SecurityController::widget')) }}
  69.                     {% endif %}
  70.                 </nav>
  71.                 <nav class="navbar row bg-grey-10 p-0 m-0 flex-nowrap col-12" id="navbarMain">
  72.                     {% include '_structure/menu-navbar-webmaster.html.twig' %}
  73.                 </nav>
  74.             </header>
  75.             <content class="bg-white d-block">
  76.                 <section class="container-fluid">
  77.                     <div class="row align-items-top py-3">
  78.                         <div class="{{ mainColumnClass|default('col-12 col-md-9') }}">
  79.                             {% include '_structure/flash-messages.html.twig' %}
  80.                             {% block body %}
  81.                             {% endblock %}
  82.                         </div>
  83.                         {% block right %}
  84.                             <aside class="col-12 col-md-3 p-md-1 pt-3">
  85.                                 {% if is_granted('ROLE_WEBMASTER') %}
  86.                                     {{ webmasterStatsWidget(app.user.webmasterId)|raw }}
  87.                                 {% endif %}
  88.                                 <hr />
  89.                             </aside>
  90.                         {% endblock %}
  91.                     </div>
  92.                 </section>
  93.             </content>
  94.             {% block footer %}
  95.                 <footer class="container-fluid bg-secondary pt-3 text-center">
  96.                     <div class="row">
  97.                         <div class="{{ mainColumnClass|default('col-12') }}">
  98.                             <p>Copyright Frivol.com</p>
  99.                         </div>
  100.                     </div>
  101.                     <div class="row no-gutters">
  102.                         <div class="col-12" id="js-footer-webmaster-reference">
  103.                         </div>
  104.                     </div>
  105.                 </footer>
  106.             {% endblock %}
  107.         </app>
  108.         {% block javascripts %}
  109.             <script type="text/javascript" src="https://kit.fontawesome.com/91023f1297.js" crossorigin="anonymous"></script>
  110.             <script type="text/javascript">
  111.                 {% if app.user %}
  112.                     let frivolWebsocketUrl =  "{{ websocketUrl() }}";
  113.                 {% endif %}
  114.             </script>
  115.             {{ encore_entry_script_tags('webmaster-area') }}
  116.         {% endblock %}
  117.     </body>
  118. </html>