templates/partials/defaultBlock.html.twig line 1

Open in your IDE?
  1. {% block default_block %}
  2. {% if content.imageSelection[0] is defined %}
  3. <section id="about" class="about">
  4. <div class="container">
  5. <style>
  6. .section-title {
  7. text-align: left;
  8. margin-top: 5%;
  9. }
  10. </style>
  11. {% if content.isCallToActionCheck2 is defined and content.urlCallToAction2[0].url is defined %}
  12. <div class="col-lg-6 pt-4 pt-lg-0">
  13. <!-- Added class "btn-upper" for specific styling -->
  14. <a href="{{ content.urlCallToAction2[0].url }}" class="btn-learn-more btn-upper"
  15. style="margin-left: 10px; right: 1vw;">{{ content.nameCallToAction2 }}</a>
  16. </div>
  17. {% endif %}
  18. <div class="section-title" style="width: 80%">
  19. <h1 class="content-headlineBlock">{{ content.headlineBlock|raw }}</h1>
  20. <span style="font-size: 25px; line-height: 1.2; ">{{ content.textBlock|raw }}</span>
  21. </div>
  22. <div class="row content" style="padding-bottom: 5px;">
  23. {% if content.isCallToActionCheck and content.urlCallToAction[0].url is defined %}
  24. <div class="col-lg-6 pt-4 pt-lg-0">
  25. <a href="{{ content.urlCallToAction[0].url }}" class="btn-learn-more"
  26. >{{ content.nameCallToAction }}</a>
  27. </div>
  28. {% endif %}
  29. </div>
  30. <ul></ul>
  31. <div class="row content">
  32. {% for image in content.imageSelection %}
  33. <div class="col-lg-6">
  34. <img src="{{ image.getUrl }}" class="img-fluid" alt="">
  35. </div>
  36. {% endfor %}
  37. </div>
  38. </div>
  39. </section><!-- End My & Family Section -->
  40. {% else %}
  41. <section id="about" class="about">
  42. <div class="container">
  43. <style>
  44. section {
  45. padding: 0;
  46. }
  47. .section-title {
  48. text-align: left;
  49. margin-top: 0;
  50. }
  51. /* Styling for the upper button */
  52. </style>
  53. {% if content.isCallToActionCheck2 is defined and content.urlCallToAction2[0].url is defined %}
  54. <div class="col-lg-6 pt-4 pt-lg-0">
  55. <!-- Added class "btn-upper" for specific styling -->
  56. <a href="{{ content.urlCallToAction2[0].url }}" class="btn-learn-more btn-upper"
  57. style="margin-left: 10px;">{{ content.nameCallToAction2 }}</a>
  58. </div>
  59. {% endif %}
  60. <div class="section-title" style="width: 80%">
  61. <h1 class="content-headlineBlock">{{ content.headlineBlock|raw }}</h1>
  62. <span style="font-size: 25px; line-height: 1.2;">{{ content.textBlock|raw }}</span>
  63. </div>
  64. <div class="row content" style="padding-bottom: 5px;">
  65. {% if content.isCallToActionCheck and content.urlCallToAction[0].url is defined %}
  66. <div class="col-lg-6 pt-4 pt-lg-0">
  67. <a href="{{ content.urlCallToAction[0].url }}" class="btn-learn-more"
  68. >{{ content.nameCallToAction }}</a>
  69. </div>
  70. {% endif %}
  71. </div>
  72. <ul></ul>
  73. <div class="row content">
  74. {% for image in content.imageSelection %}
  75. <div class="col-lg-6">
  76. <img src="{{ image.getUrl }}" class="img-fluid" alt="">
  77. </div>
  78. {% endfor %}
  79. </div>
  80. </div>
  81. </section><!-- End My & Family Section -->
  82. {% endif %}
  83. {% endblock %}