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/countup/countup.js')) %}
  72.         {% do pimcore_head_script().appendFile(asset('static/lib/autocompletejs/js/autoComplete.min.js')) %}
  73.         {% do pimcore_head_script().appendFile(asset('static/js/search-autocomplete.js')) %}
  74.         {% do pimcore_head_script().appendFile(asset('static/js/main.js')) %}
  75.         {% do pimcore_head_script().appendFile(asset('static/js/navWorkspace.js')) %}
  76.         {% do pimcore_head_script().appendFile(asset('static/js/anime.min.js', null, {type: 'module'})) %}
  77.         {% do pimcore_head_script().appendFile(asset('static/js/animations.js')) %}
  78.             {% if not editmode %}
  79.         {% do pimcore_head_script().appendFile(asset('static/js/frontend.js')) %}
  80.         {% endif %}
  81.             {% if not document is defined or not document %}
  82.         {% set document = pimcore_document(1) %}
  83.         {% endif %}
  84.             {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
  85.             {# @var document \Pimcore\Model\Document\Link #}
  86.         {% set document = document.getObject() %}
  87.         {% endif %}
  88.             {% if document.getTitle() is not empty %}
  89.         {% do pimcore_head_title().set(document.getTitle()) %}
  90.         {% endif %}
  91.             {% if document.getDescription() is not empty %}
  92.         {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  93.         {% endif %}
  94.         {# {% do pimcore_head_title().append('Pimcore Demo') %}
  95.                                                                                                                                                                                                                                                                                     {% do pimcore_head_title().setSeparator(' : ') %} #}
  96.         {% set isPortal = ((isPortal is defined) and isPortal) %}
  97.         {% endapply %}
  98.         {# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
  99.             {% block layout_head_meta deferred %}
  100.             {{ pimcore_head_title() }}
  101.             {{ pimcore_head_meta() }}
  102.                 {% if pimcore_placeholder('canonical').count() %}
  103.             <link rel="canonical" href="{{ pimcore_placeholder('canonical') }}"/> {% endif %}
  104.             <link rel="canonical" href="https://www.osgo.co.uk/"/>
  105.                 <link rel="preconnect" href="https://fonts.googleapis.com">
  106.                 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  107.                 <link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap" rel="stylesheet">
  108.             <meta property="og:locale" content="en_GB"/>
  109.             <meta property="og:type" content="website"/>
  110.             <meta property="og:title" content="Home - OSGO - The podiatry membership organisation"/>
  111.             <meta property="og:url" content="https://www.osgo.co.uk/"/>
  112.             <meta property="og:site_name" content="OSGO  - The podiatry membership organisation"/>
  113.             <meta name="twitter:card" content="summary"/>
  114.             <meta name="twitter:title" content="Home - OSGO - The podiatry membership organisation"/>
  115.             <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>
  116.         {% endblock %}
  117.         {% block head_stylesheets deferred %}
  118.             {{ pimcore_head_link() }}
  119.         {% endblock %}
  120.         <link rel="shortcut icon" href="/favicon.png"/>
  121.     </head>
  122.     <body>
  123.         {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  124.         {% if not document is defined or not document %}
  125.             {% set document = pimcore_document(1) %}
  126.         {% endif %}
  127.         <header class='sticky-top bg-white' id='main-header'>
  128.             <div class='container-lg p-0'>
  129.                 <nav class="navbar navbar-expand-md navbar-light justify-content-md-between" id='site-header'>
  130.                     {# <a class="navbar-brand" href="#">Navbar w/ text</a> #}
  131.                     {#Logo Image#}
  132.                         {% if (is_granted('IS_AUTHENTICATED_REMEMBERED')) %}
  133.                             <a
  134.                             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"> #}
  135.                             <img class='with-text  d-md-none' src="{{ asset('/static/images/osgo-logo.svg') }}" alt="Osgo - taking the pain out of private practice">
  136.                             <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">
  137.                         </a>
  138.                         <ul class='navbar-nav d-none d-lg-flex oscare-color-green-04'>
  139.                             <li class="desktop-nav-link">
  140.                                 <button>What we do
  141.                                     <i class="fa fa-caret-down"></i>
  142.                                 </button>
  143.                                 {% include "includes/megamenu-whatwedo.html.twig" %}
  144.                             </li>
  145.                             <li class="desktop-nav-link">
  146.                                 <button>Our Story
  147.                                     <i class="fa fa-caret-down"></i>
  148.                                 </button>
  149.                                 {% include "includes/megamenu-our-history.html.twig" %}
  150.                             </li>
  151.                             <li class="desktop-nav-link">
  152.                                 <button>Academy
  153.                                     <i class="fa fa-caret-down"></i>
  154.                                 </button>
  155.                                 {% include "includes/megamenu-academy.html.twig" %}
  156.                             </li>
  157.                         </ul>
  158.                     {% else %}
  159.                         <a
  160.                             class="navbar-brand main-icon-osgo" href="/">
  161.                             {# <img class='circle d-md-none' src="{{ asset('/static/images/osgo-logo-circle.svg') }}" alt="Osgo - taking the pain out of private practice"> #}
  162.                             <img class='with-text  d-md-none' src="{{ asset('/static/images/osgo-logo.svg') }}" alt="Osgo - taking the pain out of private practice">
  163.                             <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">
  164.                         </a>
  165.                         <ul class='navbar-nav d-none d-lg-flex oscare-color-green-04'>
  166.                             <li class="desktop-nav-link">
  167.                                 <button>What we do
  168.                                     <i class="fa fa-caret-down"></i>
  169.                                 </button>
  170.                                 {% include "includes/megamenu-whatwedo.html.twig" %}
  171.                             </li>
  172.                             <li class="desktop-nav-link">
  173.                                 <button>Our Story
  174.                                     <i class="fa fa-caret-down"></i>
  175.                                 </button>
  176.                                 {% include "includes/megamenu-our-history.html.twig" %}
  177.                             </li>
  178.                             <li class="desktop-nav-link">
  179.                                 <button>Academy
  180.                                     <i class="fa fa-caret-down"></i>
  181.                                 </button>
  182.                                 {% include "includes/megamenu-academy.html.twig" %}
  183.                             </li>
  184.                         </ul>
  185.                     {% endif %}
  186.                     <div class='d-flex d-md-none'>
  187.                         {% if (is_granted('IS_AUTHENTICATED_REMEMBERED')) %}
  188.                             <button class="cart-btn-mobile border-0 oscare-color-black-off" aria-label='open cart' id='cart-open-btn'>
  189.                                 <span></span>
  190.                             </button>
  191.                         {% else %}
  192.                             <a href="{{path('account-login')}}" aria-label="login" class="oscare-inverted-btn non-link user-btn-mobile line-height-fit">
  193.                                 <i class="fas fa-user"></i>
  194.                             </a>
  195.                         {% endif %}
  196.                         <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">
  197.                             <span></span>
  198.                         </button>
  199.                     </div>
  200.                     {% if (is_granted('IS_AUTHENTICATED_REMEMBERED')) %}
  201.                         <div class="collapse navbar-collapse px-4" id="navbarText">
  202.                             {% set newAlert = app.user.newAlert %}
  203.                             {{ include('includes/navigation-icons.html.twig') }}
  204.                             <ul class="navbar-nav mr-auto d-md-none" id='main-nav-mobile-wrapper'>
  205.                                 <div class='d-flex justify-content-between'>
  206.                                     <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'>
  207.                                         My account
  208.                                         {% if newAlert == true %}
  209.                                             <div class='alert-nav-sign-dropdown'></div>
  210.                                         {% endif %}
  211.                                     </a>
  212.                                     <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>
  213.                                 </div>
  214.                                 <div class="dropdown-divider"></div>
  215.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  216.                                     <a class="nav-link fs-20" href="/workplace/store" data-path='/workplace/store'>
  217.                                         <span class='mr-4'>
  218.                                             <i class="far fa-shoe-prints fa-fw hex-main-nav_workplace"></i>
  219.                                         </span>Store</a>
  220.                                 </li>
  221.                                 {% set compliance = false %}
  222.                                 {% if app.user.subscription.subscriptionType == 'sub' %}
  223.                                     {% for superuser in app.user.parentUser %}
  224.                                         {% if superuser.subscription.subscriptionType == 'compliance' %}
  225.                                             {% set compliance = true %}
  226.                                         {% endif %}
  227.                                     {% endfor %}
  228.                                 {% endif %}
  229.                                 {% if app.user.subscription.subscriptionType == 'compliance' %}
  230.                                     {% set compliance = true %}
  231.                                 {% endif %}
  232.                                 {% if compliance %}
  233.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  234.                                         <a class="nav-link fs-20" href="/workplace/team-hq" data-path='/workplace/team-hq'>
  235.                                             <span class='mr-4'>
  236.                                                 <i class="fas fa-folder-open fa-fw hex-main-nav_workplace"></i>
  237.                                             </span>Team HQ</a>
  238.                                     </li>
  239.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  240.                                         <a class="nav-link fs-20" href="/workplace/practice-tools" data-path='/workplace/practice-tools'>
  241.                                             <span class='mr-4'>
  242.                                                 <i class="fas fa-wrench fa-fw hex-main-nav_workplace"></i>
  243.                                             </span>Practice Tools</a>
  244.                                     </li>
  245.                                 {% else %}
  246.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  247.                                         <a class="nav-link fs-20 osgo-disabled position-relative" href="/workplace/membership-upgrade" data-path='/workplace/membership-upgrade'>
  248.                                             <span class='mr-4'>
  249.                                                 <i class="fas fa-folder-open fa-fw hex-main-nav_workplace"></i>
  250.                                             </span>
  251.                                             <span>Team HQ</span>
  252.                                         </a>
  253.                                     </li>
  254.                                     <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  255.                                         <a class="nav-link fs-20 osgo-disabled position-relative" href="/workplace/membership-upgrade" data-path='/workplace/membership-upgrade'>
  256.                                             <span class='mr-4'>
  257.                                                 <i class="fas fa-wrench fa-fw hex-main-nav_workplace"></i>
  258.                                             </span>
  259.                                             <span>Practice Tools</span>
  260.                                         </a>
  261.                                     </li>
  262.                                 {% endif %}
  263.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  264.                                     <a class="nav-link fs-20" href="/workplace/template-hub" data-path='/workplace/template-hub'>
  265.                                         <span class='mr-4'>
  266.                                             <i class="fas fa-graduation-cap fa-fw hex-main-nav_workplace"></i>
  267.                                         </span>Templates</a>
  268.                                 </li>
  269.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  270.                                     <a class="nav-link fs-20" href="/workplace/marketing-hub" data-path='/workplace/marketing-hub'>
  271.                                         <span class='mr-4'>
  272.                                             <i class="fas fa-bullhorn fa-fw hex-main-nav_workplace"></i>
  273.                                         </span>Marketing Hub</a>
  274.                                 </li>
  275.                                 <li class="nav-item" data-toggle="collapse" data-target=".navbar-collapse.show">
  276.                                     <a class="nav-link fs-20" href="/workplace/deals" data-path='/workplace/deals'>
  277.                                         <span class='mr-4'>
  278.                                             <i class="fas fa-cubes fa-fw hex-main-nav_workplace"></i>
  279.                                         </span>Deals</a>
  280.                                 </li>
  281.                             </ul>
  282.                         </div>
  283.                     {% else %}
  284.                         <div class="collapse navbar-collapse fit-content" id="navbarText">
  285.                             <ul class='navbar-nav ml-auto d-none d-md-flex align-items-center'>
  286.                                 <li class='nav-item'>
  287.                                     <a href="/join-us" class="oscare-primary-btn fs-20 non-link mr-3 line-height-fit pt-2 text-white">Join Us</a>
  288.                                 </li>
  289.                                 <li class='nav-item'>
  290.                                     <a href="{{path('account-login')}}" class="oscare-inverted-btn fs-20 non-link line-height-fit pt-2">Login</a>
  291.                                 </li>
  292.                             </ul>
  293.                             <ul class="navbar-nav mr-auto d-md-none megamenu-mobile" id='main-nav-mobile-wrapper'>
  294.                                 <a class="heading" href="/join-us" role="button">Join us</a>
  295.                                 {% include "includes/megamenu-mobile.html.twig" %}
  296.                             </ul>
  297.                         </div>
  298.                         {# <div class='d-none d-md-flex'>
  299.                                                                                                                                                                                                                                                     <a href="/join-us" class="oscare-primary-btn fs-20 non-link mr-3">Join Us</a>
  300.                                                                                                                                                                                                                                                     <a href="{{ path('account-login') }}" class="oscare-inverted-btn fs-20 non-link">Login</a>
  301.                                                                                                                                                                                                                                                     
  302.                                                                                                                                                                                                                                                 </div> #}
  303.                     {% endif %}
  304.                 </nav>
  305.             </div>
  306.         </header>
  307.         <main class='d-flex flex-column' style="position: relative; flex: 1;">
  308.             {% if (app.request.pathinfo) starts with '/workplace' %}
  309.                 {{ block('content') }}
  310.             {% else %}
  311.                 {% for label, messages in app.flashes %}
  312.                     {% for message in messages %}
  313.                         <div class="alert alert-{{ label }} alert-dismissable">
  314.                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  315.                             {{ message }}
  316.                         </div>
  317.                     {% endfor %}
  318.                 {% endfor %}
  319.                 {% if isPortal %}
  320.                     {{ block('content') }}
  321.                 {% else %}
  322.                     {{ block('content') }}
  323.                 {% endif %}
  324.             {% endif %}
  325.         </main>
  326.         {# include a document-snippet - in this case the footer document #}
  327.         {{ pimcore_inc(document.getProperty('footer')) }}
  328.         {# output scripts added before #}
  329.         {% block headscripts deferred %}
  330.             {{ pimcore_head_script() }}
  331.         {% endblock %}
  332.         {% block inlinescripts deferred %}
  333.             {{ pimcore_inline_script() }}
  334.         {% endblock %}
  335.     </body>
  336. </html>