Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. {% extends "templates::layouts/default" %}
  2.  
  3. {% block html_content %}
  4.  
  5. <div class="grid page-contact">
  6. <div class="row">
  7. <div class="col col--1">
  8. <div class="headline">
  9. <h2>{{ page.entry.theme_text_1 }}</h2>
  10. </div>
  11. </div>
  12. {% include "templates::layouts/partial-breadcrumbs" %}
  13. </div>
  14.  
  15. <div class="world-contacts-wrapper row">
  16.  
  17. {% set regions = {} %}
  18. {% for region in page.entry.theme_contact_regions %}
  19. {% set regions = regions|merge([{
  20. 'name': region.regions.__toString,
  21. 'code': region.field_editor.__toString
  22. }]) %}
  23. {% endfor %}
  24.  
  25. {% set translations = {
  26. 'main': trans('theme::general.regions.main'),
  27. 'region1': trans('theme::general.regions.region1'),
  28. 'region2': trans('theme::general.regions.region2'),
  29. 'region3': trans('theme::general.regions.region3'),
  30. 'region4': trans('theme::general.regions.region4'),
  31. 'region5': trans('theme::general.regions.region5'),
  32. 'region6': trans('theme::general.regions.region6'),
  33. 'region7': trans('theme::general.regions.region7'),
  34. 'region8': trans('theme::general.regions.region8')
  35. }
  36. %}
  37.  
  38. {%
  39. set config = {
  40. mapConfig: {
  41. center: {
  42. lat: 51.23715,
  43. lng: 15.00944
  44. },
  45. fullScreenControl: true,
  46. mapTypeControl: false,
  47. rotateControl: false,
  48. scaleControl: false,
  49. streetViewControl: false,
  50. zoom: 2,
  51. zoomControl: true
  52. }
  53. }
  54. %}
  55.  
  56. {%
  57. set countries = [
  58. {
  59. name: 'Polska',
  60. continent: 'Europa',
  61. shortContent: '<p>short</p><p>content...</p>',
  62. fullContent: '<h1>full content!</h1><p>This is full content..</p>',
  63. location: {
  64. lat: 52.13,
  65. lng: 21.00
  66. }
  67. },
  68. {
  69. name: 'Francja',
  70. continent: 'Europa',
  71. shortContent: '<p>short</p><p>content...</p>',
  72. fullContent: '<h1>full content!</h1><p>This is full content..</p>',
  73. location: {
  74. lat: 48.50,
  75. lng: 02.20
  76. }
  77. },
  78. ]
  79. %}
  80.  
  81. {%
  82. set welcomeContent = "<h1>Example welcome content</h1><p>Lorem ipsum...</p>"
  83. %}
  84.  
  85.  
  86. <world-contacts :config="{{ config|json_encode }}" :countries="{{ countries|json_encode }}" welcome-content="{{ welcomeContent }}"></world-contacts>
  87.  
  88. </div>
  89. </div><!-- END .grid -->
  90.  
  91.  
  92. {% endblock html_content %}
  93.  
  94. {% block styles %}
  95. {{ parent() }}
  96. <link href="{{ mix('css/page-world-contacts.css', 'aluprof-theme') }}" rel="stylesheet">
  97. {% endblock styles %}
  98.  
  99. {% block js %}
  100. {{ parent() }}
  101. <script src="{{ mix('js/world-contacts.js', 'aluprof-theme') }}"></script>
  102. {% endblock js %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement