src/Bidcoz/Bundle/CoreBundle/Resources/views/Layout/marketing.html.twig line 1

Open in your IDE?
  1. {% extends '@BidcozCore/Layout/layout.html.twig' %}
  2. {% block head %}
  3.     {{ parent() }}
  4.     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  5.     <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  6.     <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  7.     <link rel="manifest" href="/site.webmanifest">
  8.     <!-- IE -->
  9.     <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  10.     <!--[if IE]><script src="/js/selectivizr-min.js"></script><![endif]-->
  11.     <!-- OTHER -->
  12. {% endblock %}
  13. {% block theme '' %}
  14. {% block bodyClass '' %}
  15. {% block body %}
  16.     <div class="bounds d-flex flex-column align-items-center">
  17.         {% include '@BidcozCore/Layout/Blocks/marketing/header.html.twig' %}
  18.         <div id="main-content" class="container flex-grow-1" role="main">
  19.             {% block alerts %}
  20.                 {% include '@BidcozCore/Layout/Blocks/alerts.html.twig' %}
  21.             {% endblock %}
  22.             {% block content '' %}
  23.         </div>
  24.         {% include '@BidcozManage/Layout/footer.html.twig' %}
  25.         {% if not is_logged_in() %}
  26.             {% set loginPath = campaign is defined ? path('campaign_login_user', { orgSlug: organization.slug, campaignSlug: campaign.slug }) : '/login' %}
  27.             <div id="login-modal" class="modal" data-url="{{ loginPath }}">
  28.                 <div class="modal-dialog">
  29.                     <div class="modal-content mx-auto">
  30.                         <div class="modal-close float-right">
  31.                             {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'close' } %}
  32.                         </div>
  33.                         <div class="modal-html">
  34.                             <!-- Load login content here via http request -->
  35.                         </div>
  36.                     </div>
  37.                 </div>
  38.             </div>
  39.             {% set currentRoute = app.request.attributes.get('_route') %}
  40.             {% set registerPath = campaign is defined ? path('campaign_register_user', { orgSlug: organization.slug, campaignSlug: campaign.slug }) : path('fos_user_registration_register') %}
  41.             {% if currentRoute != 'campaign_register_user' %}
  42.                 <div id="register-modal" class="modal py-0 py-md-5" data-url="{{ registerPath }}">
  43.                     <div class="modal-dialog">
  44.                         <div class="modal-content mx-auto p-0 position-relative">
  45.                             <div class="modal-close position-absolute" style="right: 1rem; top: 1rem; z-index: 1;">
  46.                                 {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'close' } %}
  47.                             </div>
  48.                             <div class="modal-html mx-n3">
  49.                                 <!-- Load registration content here via http request -->
  50.                             </div>
  51.                         </div>
  52.                     </div>
  53.                 </div>
  54.             {% endif %}
  55.         {% endif %}
  56.     </div>
  57. {% endblock %}
  58. {% block stylesheets %}
  59.     <link rel="stylesheet" href="/components/intl-tel-input/build/css/intlTelInput.min.css">
  60.     <link rel="stylesheet" href="/css/interface.css?v={{ asset_version('') }}" />
  61.     <style type="text/css">
  62.         .password-container {
  63.             position: relative;
  64.         }
  65.         .password-icon {
  66.             color: #999;
  67.             cursor: pointer;
  68.             position: absolute;
  69.             right: 2rem;
  70.             bottom: 1.375rem;
  71.         }
  72.     </style>
  73.     <style>
  74.         .iti{ width: 100%;}
  75.         .iti__flag { z-index: 4; }
  76.         .intl-tel-input {
  77.             display: table-cell;
  78.         }
  79.         .intl-tel-input .selected-flag {
  80.             z-index: 4;
  81.         }
  82.         .intl-tel-input .country-list {
  83.             z-index: 5;
  84.         }
  85.         .input-group .intl-tel-input .form-control {
  86.             border-radius: 4px 0 0 4px;
  87.         }
  88.         .iti .intl-phone { padding-left: 55px!important; }
  89.     </style>
  90. {% endblock %}
  91. {% block javascripts %}
  92.     <script src="/components/jquery/dist/jquery.js" type="text/javascript"></script>
  93.     <script src="/components/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
  94.     <script src="/components/font-awesome/js/all.js"></script>
  95.     <script src="/components/intl-tel-input/build/js/intlTelInput.min.js"></script>
  96.     <script src="/js/plugins/jquery.browser.mobile.js" type="text/javascript"></script>
  97.     <script src="/js/carousel.js"></script>
  98.     <script src="/js/scripts.js?v={{ asset_version('') }}"></script>
  99.     <script type="text/javascript">
  100.         $(document).ready(function() {
  101.             $(document).on('click', '.show-password', function(e) {
  102.                 e.preventDefault();
  103.                 $(this)
  104.                     .hide()
  105.                     .siblings('.hide-password')
  106.                         .show()
  107.                     .siblings('.form-group')
  108.                         .find('input[type="password"]')
  109.                             .attr('type', 'text');
  110.             });
  111.             $(document).on('click', '.hide-password', function(e) {
  112.                 e.preventDefault();
  113.                 $(this)
  114.                     .hide()
  115.                     .siblings('.show-password')
  116.                         .show()
  117.                     .siblings('.form-group')
  118.                         .find('input[type="text"]')
  119.                             .attr('type', 'password');
  120.             });
  121.         });
  122.     </script>
  123. {% endblock %}