templates/layouts/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3.     <head>
  4.         <!-- Required meta tags -->
  5.         <meta charset="utf-8">
  6.         <meta
  7.         name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8.         <!-- Google tag (gtag.js) -->
  9.         <script async src="https://www.googletagmanager.com/gtag/js?id=G-T1M9DMCXDH"></script>
  10.         <script>
  11.             window.dataLayer = window.dataLayer || [];
  12. function gtag() {
  13. dataLayer.push(arguments);
  14. }
  15. gtag('js', new Date());
  16. gtag('config', 'G-T1M9DMCXDH');
  17.         </script>
  18.         <!-- Meta Pixel Code -->
  19.         <script>
  20.             !function (f, b, e, v, n, t, s) {
  21. if (f.fbq) 
  22. return;
  23. n = f.fbq = function () {
  24. n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
  25. };
  26. if (! f._fbq) 
  27. f._fbq = n;
  28. n.push = n;
  29. n.loaded = !0;
  30. n.version = '2.0';
  31. n.queue = [];
  32. t = b.createElement(e);
  33. t.async = !0;
  34. t.src = v;
  35. s = b.getElementsByTagName(e)[0];
  36. s.parentNode.insertBefore(t, s)
  37. }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
  38. fbq('init', '338874745245900');
  39. fbq('track', 'PageView');
  40.         </script>
  41.         <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=338874745245900&ev=PageView&noscript=1"/></noscript>
  42.         <!-- End Meta Pixel Code -->
  43.         {% apply spaceless %}
  44.         {# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
  45.         {# we use the view helper to have cache buster functionality #}
  46.         {% do pimcore_head_link().appendStylesheet("https://fonts.googleapis.com/css2?family=Hind+Guntur:wght@300;400;500;600;700&family=Oswald:wght@200;500;600;700&display=block") %}
  47.         {#             {% do pimcore_head_link().appendStylesheet('https://fonts.googleapis.com/css?family=Hind+Guntur:300,400,500,600,700&display=swap') %}
  48.                                                                                                                                                                                                                                                                          #}
  49.         {% do pimcore_head_link().appendStylesheet('https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css',null,null,{integrity:"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2",crossorigin:"anonymous"}) %}
  50.         {#             {% do pimcore_head_link().appendStylesheet('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css',null,null,{integrity:"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T",crossorigin:"anonymous"}) %}
  51.                                                                                                                                                                                                                                                                          #}
  52.         {% do pimcore_head_link().appendStylesheet('/static/lib/fontawesome/css/all.css') %}
  53.         {% do pimcore_head_link().appendStylesheet(asset('static/lib/magnific/magnific.css'), 'screen') %}
  54.         {% do pimcore_head_link().appendStylesheet(asset('static/lib/autocompletejs/css/autoComplete.css'), 'screen') %}
  55.         {# {% do pimcore_head_link().appendStylesheet('https://use.fontawesome.com/releases/v5.15.4/css/all.css',null,null,{integrity:'sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm',crossorigin:'anonymous'}) %} #}
  56.         {% do pimcore_head_link().appendStylesheet(asset('static/css/global.css')) %}
  57.         {% do pimcore_head_link().appendStylesheet(asset('static/css/home.css')) %}
  58.         {% do pimcore_head_link().appendStylesheet(asset('static/css/components.css')) %}
  59.         {% do pimcore_head_link().appendStylesheet(asset('static/css/reactImported.css')) %}
  60.             {% if editmode %}
  61.         {% do pimcore_head_link().appendStylesheet(asset('static/css/editmode.css')) %}
  62.         {% endif %}
  63.         {% do pimcore_head_script().appendFile('https://code.jquery.com/jquery-3.5.1.slim.min.js',null,null,{ integrity:"sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj",crossorigin:"anonymous"}) %}
  64.         {% do pimcore_head_script().appendFile('https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js',null,null,{ integrity:"sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN",crossorigin:"anonymous"}) %}
  65.         {% do pimcore_head_script().appendFile('https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js',null,null,{ integrity:"sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s",crossorigin:"anonymous"}) %}
  66.         {#             {% do pimcore_head_script().appendFile('https://code.jquery.com/jquery-3.3.1.slim.min.js',null,null,{ integrity:"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo",crossorigin:"anonymous"}) %}
  67.                                                                                                                                                                                                                                                                                     {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js',null,null,{ integrity:"sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1",crossorigin:"anonymous"}) %}
  68.                                                                                                                                                                                                                                                                                     {% do pimcore_head_script().appendFile('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js',null,null,{ integrity:"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM",crossorigin:"anonymous"}) %}
  69.                                                                                                                                                                                                                                                                          #}
  70.         {% do pimcore_head_script().appendFile(asset('static/lib/magnific/magnific.js')) %}
  71.         {% do pimcore_head_script().appendFile(asset('static/lib/autocompletejs/js/autoComplete.min.js')) %}
  72.         {% do pimcore_head_script().appendFile(asset('static/js/search-autocomplete.js')) %}
  73.         {% do pimcore_head_script().appendFile(asset('static/js/main.js')) %}
  74.         {% do pimcore_head_script().appendFile(asset('static/js/navWorkspace.js')) %}
  75.         {% do pimcore_head_script().appendFile(asset('static/js/anime.min.js', null, {type: 'module'})) %}
  76.         {% do pimcore_head_script().appendFile(asset('static/js/animations.js')) %}
  77.             {% if not editmode %}
  78.         {% do pimcore_head_script().appendFile(asset('static/js/frontend.js')) %}
  79.         {% endif %}
  80.             {% if not document is defined or not document %}
  81.         {% set document = pimcore_document(1) %}
  82.         {% endif %}
  83.             {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
  84.             {# @var document \Pimcore\Model\Document\Link #}
  85.         {% set document = document.getObject() %}
  86.         {% endif %}
  87.             {% if document.getTitle() is not empty %}
  88.         {% do pimcore_head_title().set(document.getTitle()) %}
  89.         {% endif %}
  90.             {% if document.getDescription() is not empty %}
  91.         {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  92.         {% endif %}
  93.         {# {% do pimcore_head_title().append('Pimcore Demo') %}
  94.                                                                                                                                                                                                                                                                                     {% do pimcore_head_title().setSeparator(' : ') %} #}
  95.         {% set isPortal = ((isPortal is defined) and isPortal) %}
  96.         {% endapply %}
  97.         {# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
  98.             {% block layout_head_meta deferred %}
  99.             {{ pimcore_head_title() }}
  100.             {{ pimcore_head_meta() }}
  101.                 {% if pimcore_placeholder('canonical').count() %}
  102.             <link rel="canonical" href="{{ pimcore_placeholder('canonical') }}"/> {% endif %}
  103.             <link rel="canonical" href="https://www.osgo.co.uk/"/>
  104.             <meta property="og:locale" content="en_GB"/>
  105.             <meta property="og:type" content="website"/>
  106.             <meta property="og:title" content="Home - OSGO - The podiatry membership organisation"/>
  107.             <meta property="og:url" content="https://www.osgo.co.uk/"/>
  108.             <meta property="og:site_name" content="OSGO  - The podiatry membership organisation"/>
  109.             <meta name="twitter:card" content="summary"/>
  110.             <meta name="twitter:title" content="Home - OSGO - The podiatry membership organisation"/>
  111.             <script type='application/ld+json'>{"@context":"https:\/\/schema.org","@type":"WebSite","@id":"#website","url":"https:\/\/www.osgo.co.uk\/","name":"OSGO  - The podiatry membership organisation","potentialAction":{"@type":"SearchAction","target":"https:\/\/www.osgo.co.uk\/?s={search_term_string}","query-input":"required name=search_term_string"}}</script>
  112.         {% endblock %}
  113.         {% block head_stylesheets deferred %}
  114.             {{ pimcore_head_link() }}
  115.         {% endblock %}
  116.         <link rel="shortcut icon" href="/favicon.png"/>
  117.     </head>
  118.     <body>
  119.         {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  120.         {% if not document is defined or not document %}
  121.             {% set document = pimcore_document(1) %}
  122.         {% endif %}
  123.         <header class='sticky-top bg-white' id='main-header'>
  124.             <div class='container-lg p-0'>
  125.                 <nav class="navbar navbar-expand-md navbar-light justify-content-md-between" id='site-header'>
  126.                     {# <a class="navbar-brand" href="#">Navbar w/ text</a> #}
  127.                     {#Logo Image#}
  128.                         {% if (is_granted('IS_AUTHENTICATED_REMEMBERED')) %}
  129.                             <a
  130.                             class="navbar-brand main-icon-osgo" href="/" id="osgo-logo-main-nav"> {# <img class='circle  d-md-none' src="{{ asset('/static/images/osgo-logo-circle.svg') }}" alt="Osgo - taking the pain out of private practice"> #}
  131.                             <img class='with-text  d-md-none' src="{{ asset('/static/images/osgo-logo.svg') }}" alt="Osgo - taking the pain out of private practice">
  132.                             <img class='with-text d-none d-md-block' src="{{ asset('/static/images/osgo-logo.svg') }}" alt="Osgo - taking the pain out of private practice">
  133.                         </a>
  134.                         <ul class='navbar-nav d-none d-lg-flex oscare-color-green-04'>
  135.                             <li class="desktop-nav-link">
  136.                                 <button>What we do
  137.                                     <i class="fa fa-caret-down"></i>
  138.                                 </button>
  139.                                 {% include "includes/megamenu-whatwedo.html.twig" %}
  140.                             </li>
  141.                             <li class="desktop-nav-link">
  142.                                 <button>Our Story
  143.                                     <i class="fa fa-caret-down"></i>
  144.                                 </button>
  145.                                 {% include "includes/megamenu-our-history.html.twig" %}
  146.                             </li>
  147.                             <li class="desktop-nav-link">
  148.                                 <button>Academy
  149.                                     <i class="fa fa-caret-down"></i>
  150.                                 </button>
  151.                                 {% include "includes/megamenu-academy.html.twig" %}
  152.                             </li>
  153.                         </ul>
  154.                     {% else %}
  155.                         <a
  156.                             class="navbar-brand main-icon-osgo" href="/">
  157.                             {# <img class='circle d-md-none' src="{{ asset('/static/images/osgo-logo-circle.svg') }}" alt="Osgo - taking the pain out of private practice"> #}
  158.                             <img class='with-text  d-md-none' src="{{ asset('/static/images/osgo-logo.svg') }}" alt="Osgo - taking the pain out of private practice">
  159.                             <img class='with-text d-none d-md-block' src="{{ asset('/static/images/osgo-logo.svg') }}" alt="Osgo - taking the pain out of private practice">
  160.                         </a>
  161.                         <ul class='navbar-nav d-none d-lg-flex oscare-color-green-04'>
  162.                             <li class="desktop-nav-link">
  163.                                 <button>What we do
  164.                                     <i class="fa fa-caret-down"></i>
  165.                                 </button>
  166.                                 {% include "includes/megamenu-whatwedo.html.twig" %}
  167.                             </li>
  168.                             <li class="desktop-nav-link">
  169.                                 <button>Our Story
  170.                                     <i class="fa fa-caret-down"></i>
  171.                                 </button>
  172.                                 {% include "includes/megamenu-our-history.html.twig" %}
  173.                             </li>
  174.                             <li class="desktop-nav-link">
  175.                                 <button>Academy
  176.                                     <i class="fa fa-caret-down"></i>
  177.                                 </button>
  178.                                 {% include "includes/megamenu-academy.html.twig" %}
  179.                             </li>
  180.                         </ul>
  181.                     {% endif %}
  182.                     <div class='d-flex d-md-none'>
  183.                         {% if (is_granted('IS_AUTHENTICATED_REMEMBERED')) %}
  184.                             <button class="cart-btn-mobile border-0 oscare-color-black-off" aria-label='open cart' id='cart-open-btn'>
  185.                                 <span></span>
  186.                             </button>
  187.                         {% else %}
  188.                             <a href="{{path('account-login')}}" aria-label="login" class="oscare-inverted-btn non-link user-btn-mobile line-height-fit">
  189.                                 <i class="fas fa-user"></i>
  190.                             </a>
  191.                         {% endif %}
  192.                         <button class="navbar-toggler burger-btn-mobile  border-0" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
  193.                             <span></span>
  194.                         </button>
  195.                     </div>
  196.                     {% if (is_granted('IS_AUTHENTICATED_REMEMBERED')) %}
  197.                         <div class="collapse navbar-collapse px-4" id="navbarText">
  198.                             {% set newAlert = app.user.newAlert %}
  199.                             {{ include('includes/navigation-icons.html.twig') }}
  200.                             <ul class="navbar-nav mr-auto d-md-none" id='main-nav-mobile-wrapper'>
  201.                                 <div class='d-flex justify-content-between'>
  202.                                     <a href="/workplace/dashboard" data-path='/workplace/dashboard' data-toggle="collapse" data-target=".navbar-collapse.show" class="position-relative d-inline-block py-1 font-weight-bold fs-20 oscare-color-black-light" id='dashboard-dropdown-link'>
  203.                                         My account
  204.                                         {% if newAlert == true %}
  205.                                             <div class='alert-nav-sign-dropdown'></div>
  206.                                         {% endif %}
  207.                                     </a>
  208.                                     <a href="{{ path('account-logout') }}" id='logout-link' class="d-inline-block py-1 font-weight-bold fs-20 oscare-color-black-light">{{ 'general.logout' | trans }}</a>
  209.                                 </div>
  210.                                 <div class="dropdown-divider"></div>
  211.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  212.                                     <a class="nav-link fs-20" href="/workplace/store" data-path='/workplace/store'>
  213.                                         <span class='mr-4'>
  214.                                             <i class="far fa-shoe-prints fa-fw hex-main-nav_workplace"></i>
  215.                                         </span>Store</a>
  216.                                 </li>
  217.                                 {% set compliance = false %}
  218.                                 {% if app.user.subscription.subscriptionType == 'sub' %}
  219.                                     {% for superuser in app.user.parentUser %}
  220.                                         {% if superuser.subscription.subscriptionType == 'compliance' %}
  221.                                             {% set compliance = true %}
  222.                                         {% endif %}
  223.                                     {% endfor %}
  224.                                 {% endif %}
  225.                                 {% if app.user.subscription.subscriptionType == 'compliance' %}
  226.                                     {% set compliance = true %}
  227.                                 {% endif %}
  228.                                 {% if compliance %}
  229.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  230.                                         <a class="nav-link fs-20" href="/workplace/team-hq" data-path='/workplace/team-hq'>
  231.                                             <span class='mr-4'>
  232.                                                 <i class="fas fa-folder-open fa-fw hex-main-nav_workplace"></i>
  233.                                             </span>Team HQ</a>
  234.                                     </li>
  235.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  236.                                         <a class="nav-link fs-20" href="/workplace/practice-tools" data-path='/workplace/practice-tools'>
  237.                                             <span class='mr-4'>
  238.                                                 <i class="fas fa-wrench fa-fw hex-main-nav_workplace"></i>
  239.                                             </span>Practice Tools</a>
  240.                                     </li>
  241.                                 {% else %}
  242.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  243.                                         <a class="nav-link fs-20 osgo-disabled position-relative" href="/workplace/membership-upgrade" data-path='/workplace/membership-upgrade'>
  244.                                             <span class='mr-4'>
  245.                                                 <i class="fas fa-folder-open fa-fw hex-main-nav_workplace"></i>
  246.                                             </span>
  247.                                             <span>Team HQ</span>
  248.                                         </a>
  249.                                     </li>
  250.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  251.                                         <a class="nav-link fs-20 osgo-disabled position-relative" href="/workplace/membership-upgrade" data-path='/workplace/membership-upgrade'>
  252.                                             <span class='mr-4'>
  253.                                                 <i class="fas fa-wrench fa-fw hex-main-nav_workplace"></i>
  254.                                             </span>
  255.                                             <span>Practice Tools</span>
  256.                                         </a>
  257.                                     </li>
  258.                                 {% endif %}
  259.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  260.                                     <a class="nav-link fs-20" href="/workplace/template-hub" data-path='/workplace/template-hub'>
  261.                                         <span class='mr-4'>
  262.                                             <i class="fas fa-graduation-cap fa-fw hex-main-nav_workplace"></i>
  263.                                         </span>Templates</a>
  264.                                 </li>
  265.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  266.                                     <a class="nav-link fs-20" href="/workplace/marketing-hub" data-path='/workplace/marketing-hub'>
  267.                                         <span class='mr-4'>
  268.                                             <i class="fas fa-bullhorn fa-fw hex-main-nav_workplace"></i>
  269.                                         </span>Marketing Hub</a>
  270.                                 </li>
  271.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  272.                                     <a class="nav-link fs-20" href="/workplace/deals" data-path='/workplace/deals'>
  273.                                         <span class='mr-4'>
  274.                                             <i class="fas fa-cubes fa-fw hex-main-nav_workplace"></i>
  275.                                         </span>Deals</a>
  276.                                 </li>
  277.                             </ul>
  278.                         </div>
  279.                     {% else %}
  280.                         <div class="collapse navbar-collapse fit-content" id="navbarText">
  281.                             <ul class='navbar-nav ml-auto d-none d-md-flex align-items-center'>
  282.                                 <li class='nav-item'>
  283.                                     <a href="/join-us" class="oscare-primary-btn fs-20 non-link mr-3 line-height-fit pt-2 text-white">Join Us</a>
  284.                                 </li>
  285.                                 <li class='nav-item'>
  286.                                     <a href="{{path('account-login')}}" class="oscare-inverted-btn fs-20 non-link line-height-fit pt-2">Login</a>
  287.                                 </li>
  288.                             </ul>
  289.                             <ul class="navbar-nav mr-auto d-md-none megamenu-mobile" id='main-nav-mobile-wrapper'>
  290.                                 <a class="heading" href="/join-us" role="button">Join us</a>
  291.                                 {% include "includes/megamenu-mobile.html.twig" %}
  292.                             </ul>
  293.                         </div>
  294.                         {# <div class='d-none d-md-flex'>
  295.                                                                                                                                                                                                                                                     <a href="/join-us" class="oscare-primary-btn fs-20 non-link mr-3">Join Us</a>
  296.                                                                                                                                                                                                                                                     <a href="{{ path('account-login') }}" class="oscare-inverted-btn fs-20 non-link">Login</a>
  297.                                                                                                                                                                                                                                                     
  298.                                                                                                                                                                                                                                                 </div> #}
  299.                     {% endif %}
  300.                 </nav>
  301.             </div>
  302.         </header>
  303.         <main class='d-flex flex-column' style="position: relative; flex: 1;">
  304.             {% if (app.request.pathinfo) starts with '/workplace' %}
  305.                 {{ block('content') }}
  306.             {% else %}
  307.                 {% for label, messages in app.flashes %}
  308.                     {% for message in messages %}
  309.                         <div class="alert alert-{{ label }} alert-dismissable">
  310.                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  311.                             {{ message }}
  312.                         </div>
  313.                     {% endfor %}
  314.                 {% endfor %}
  315.                 {% if isPortal %}
  316.                     {{ block('content') }}
  317.                 {% else %}
  318.                     {{ block('content') }}
  319.                 {% endif %}
  320.             {% endif %}
  321.         </main>
  322.         {# include a document-snippet - in this case the footer document #}
  323.         {{ pimcore_inc(document.getProperty('footer')) }}
  324.         {# output scripts added before #}
  325.         {% block headscripts deferred %}
  326.             {{ pimcore_head_script() }}
  327.         {% endblock %}
  328.         {% block inlinescripts deferred %}
  329.             {{ pimcore_inline_script() }}
  330.         {% endblock %}
  331.     </body>
  332. </html>