src/StartPlatz/Bundle/StyleBundle/Resources/views/Bootstrap4/base.homepage.with-sections.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <!-- homepage.with-sections -->
  5.     <!-- Required meta tags -->
  6.     <meta charset="utf-8">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8.     {% block metaData %}
  9.         <meta name="description" content="STARTPLATZ Homepage - Dein Platz zum Gründen und Wachsen">
  10.         <meta name="author" content="">
  11.         {% if app.environment == 'prod' %}
  12.             <meta name="robots" content="index,follow">
  13.             {% if canonicalUrl is defined and canonicalUrl is not empty %}
  14.                 <link rel="canonical" href="{{ canonicalUrl }}" />
  15.             {% endif %}
  16.         {% else %}
  17.             <meta name="robots" content="noindex,nofollow">
  18.         {% endif %}
  19.     {% endblock %}
  20.     <link rel="profile" href="http://gmpg.org/xfn/11">
  21.     <link rel="pingback" href="https://www.startplatz.de/xmlrpc.php">
  22.     
  23.     {% include "@StartPlatzStyleBundle/_icon.html.twig" %}
  24.     <title>{% block title %}STARTPLATZ{% endblock %}</title>
  25.     <!-- Bootstrap CSS -->
  26.     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
  27.     <script src="https://kit.fontawesome.com/30335e3531.js" crossorigin="anonymous"></script>
  28.     <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap" rel="stylesheet">
  29.     {% include "@StartPlatzStyleBundle/_tracking.html.twig" %}
  30.     <style type="text/css">
  31.         body {
  32.             padding-top: 50px;
  33.             font-family: 'Source Sans Pro', sans-serif;
  34.         }
  35.     </style>
  36.     {% block additionalHead %}
  37.     {% endblock %}
  38.     {# calls Google tag (gtag.js); defined in WebsiteBundle/Twig/Extension.php #}
  39.     {{ startplatz_ga()|raw }}
  40. </head>
  41. <body>
  42. <!-- Google Tag Manager (noscript) -->
  43. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5WTVWDT"
  44.                   height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  45. <!-- End Google Tag Manager (noscript) -->
  46. {% set master = false %}
  47. {% if app.user is defined and app.user is not empty %}
  48.     {% if app.user.getMaster %}{% set master = true %}{% endif %}
  49. {% endif %}
  50. {% set admin = false %}
  51. {% if app.user is defined and app.user is not empty %}
  52.     {% if app.user.getAdmin %}{% set admin = true %}{% endif %}
  53. {% endif %}
  54. <!-- start navigation -->
  55. {% block navigation %}{% endblock %}
  56. <!-- end navigation -->
  57. <!-- start content -->
  58. {% block content %}{% endblock %}
  59. <!-- end content -->
  60. <!-- start footer -->
  61. {% block footer %}{% endblock %}
  62. <!-- end footer -->
  63. <div class="modal fade" id="mySmallModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  64.     <div class="modal-dialog modal-sm">
  65.     </div>
  66. </div>
  67. <div class="modal fade" id="myLargeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  68.     <div class="modal-dialog modal-lg">
  69.     </div>
  70. </div>
  71. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  72.     <div class="modal-dialog">
  73.     </div>
  74. </div>
  75. {% block infiniteLoop %}
  76.     {% if maxPages is defined and maxPages > 1 %}
  77.         <div id="pagination">
  78.             <a href="{{ path(currentPath, {page: thisPage} ) }}">{{ thisPage }}</a>
  79.             {% if  thisPage != maxPages %}
  80.                 <a href="{{ path( currentPath, {page: thisPage+1 <= maxPages ? thisPage+1 : thisPage} + templateVars) }}" class="next">»</a>
  81.             {% endif %}
  82.         </div>
  83.     {% else %}
  84.         {% set maxPages = 100 %}
  85.     {% endif %}
  86. {% endblock %}
  87. {% if maxPages is not defined %}
  88.     {% set maxPages = 100 %}
  89. {% endif %}
  90. {% include "@StartPlatzStyleBundle/_cookie.consent.html.twig" %}
  91. <!-- Bootstrap core JavaScript
  92. ================================================== -->
  93. <!-- Placed at the end of the document so the pages load faster -->
  94. <!-- Vollständige jQuery-Version mit Ajax-Unterstützung -->
  95. <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
  96. <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
  97. <!-- javascript for infinite scroll -->
  98. <script src="{{ asset('bundles/startplatzstyle/js/jquery-ias.min.js') }}"></script>
  99. <script type="text/javascript">
  100.     // Fill modal with content from link href
  101.     $("#mySmallModal").on("show.bs.modal", function(e) {
  102.         var link = $(e.relatedTarget);
  103.         $(this).find(".modal-dialog").load(link.attr("href"));
  104.     });
  105.     // Fill modal with content from link href
  106.     $("#myLargeModal").on("show.bs.modal", function(e) {
  107.         var link = $(e.relatedTarget);
  108.         $(this).find(".modal-dialog").load(link.attr("href"));
  109.     });
  110.     // Fill modal with content from link href
  111.     $("#myModal").on("show.bs.modal", function(e) {
  112.         var link = $(e.relatedTarget);
  113.         $(this).find(".modal-dialog").load(link.attr("href"));
  114.     });
  115.     $(function () {
  116.         $('[data-toggle="tooltip"]').tooltip()
  117.     });
  118. </script>
  119. {% if version is not defined %}
  120.     {% set version = 'default' %}
  121. {% endif %}
  122. {% block javascriptInfiniteLoop %}
  123. <script type="text/javascript">
  124.     var ias = $.ias({
  125.         container:  "#posts",
  126.         item:       ".item",
  127.         pagination: "#pagination",
  128.         negativeMargin: "500",
  129.         next:       ".next"
  130.     });
  131.     ias.extension(new IASSpinnerExtension());            // shows a spinner (a.k.a. loader)
  132.     ias.extension(new IASTriggerExtension({offset: {{ maxPages }} })); // shows a trigger after page 3
  133.     ias.extension(new IASNoneLeftExtension({
  134.         text: 'There are no more pages left to load.'      // override text when no pages left
  135.     }));
  136.     ias.on('load', function(event) {
  137.         event.url = event.url + "&ajax=1&version={{ version }}";
  138.         console.log('Loaded ' + event.url  + ' url from server');
  139.         console.log('url  tracking: ' + event.url );
  140.     });
  141. </script>
  142. {% endblock %}
  143. {% block ajax_helpers %}
  144.     <!-- Include Ajax Helpers By Default - Override if not needed -->
  145.     {% include '@StartPlatzStyleBundle/Bootstrap4/_javascript.ajax-helpers.html.twig' %}
  146. {% endblock %}
  147. {% block javascripts %}
  148. {% endblock %}
  149. </body>
  150. </html>