templates/blocks/nav-mobile.html.twig line 1

  1. {% set mobileNav = [
  2.     {
  3.         'path': 'app_domain_name',
  4.         'icon': 'search',
  5.         'title': 'Domain Name'
  6.     },
  7.     {
  8.         'path': 'app_linux',
  9.         'icon': 'cloud',
  10.         'title': 'Web Hosting'
  11.     },
  12.     {
  13.         'path': 'app_wordpress_hosting',
  14.         'icon': 'wordpress',
  15.         'title': 'WordPress Hosting'
  16.     },
  17.     {
  18.         'path': 'app_vps_servers',
  19.         'icon': 'server',
  20.         'title': 'VPS Servers'
  21.     },
  22.     {
  23.         'path': 'app_dedicated_servers',
  24.         'icon': 'server',
  25.         'title': 'Dedicated Servers'
  26.     },
  27.     {
  28.         'path': 'app_services_seo',
  29.         'icon': 'search',
  30.         'title': 'SEO'
  31.     },
  32.     {
  33.         'path': 'app_services_smm',
  34.         'icon': 'share-alt',
  35.         'title': 'Social Media'
  36.     },
  37.     {
  38.         'path': 'app_littlepack',
  39.         'icon': 'package',
  40.         'title': 'Little Pack'
  41.     },
  42. ] %}
  43. <div id="navMobile">
  44.     <ul>
  45.         {% for row in mobileNav %}
  46.             <li>
  47.                 <a href="{{ path(row.path) }}" class="nav-mobile__link">
  48.                     <div class="nav-mobile__icon">
  49.                         <box-icon
  50.                             size="md"
  51.                             {% if row.icon == 'wordpress' %} type="logo"{% endif %}
  52.                             {% if row.path == 'app_dedicated_servers' %} type="solid"{% endif %}
  53.                             name="{{ row.icon }}"
  54.                         ></box-icon>
  55.                     </div>
  56.                     <div class="nav-mobile__title">
  57.                         {{ row.title }}
  58.                     </div>
  59.                 </a>
  60.             </li>
  61.         {% endfor %}
  62.     </ul>
  63.     <ul class="submenu">
  64.         <li>
  65.             <a href="{{ path('app_stats') }}" class="submenu__stats">
  66.                 <box-icon size="md" name="stats"></box-icon>
  67.             </a>
  68.         </li>
  69.         <li>
  70.             <a href="{{ path('app_green') }}" class="submenu__leaf">
  71.                 <box-icon size="md" type="solid" name="leaf"></box-icon>
  72.             </a>
  73.         </li>
  74.         <li>
  75.             <a href="{{ path('app_support') }}" class="submenu__support">
  76.                 <box-icon size="md" name="support"></box-icon>
  77.             </a>
  78.         </li>
  79.         <li>
  80.             <a href="" class="submenu__chat">
  81.                 <box-icon size="md" type="solid" name="conversation"></box-icon>
  82.             </a>
  83.         </li>
  84.         <li>
  85.             <a href="{{ path('app_account_login') }}" class="submenu__user">
  86.                 <box-icon size="md" name="user-circle"></box-icon>
  87.             </a>
  88.         </li>
  89.     </ul>
  90. </div>