base.html.twig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {# build taxo tags (categories) ids array #}
  2. {% set taxlist = taxonomylist.get() %}
  3. {% if taxlist %}
  4. {% set catlist = {} %}
  5. {% set id = 1 %}
  6. {% for tax,value in taxlist['tag'] %}
  7. {% set catlist = catlist|merge({ (tax|e('url')) : (id) }) %}
  8. {% set id = id + 1 %}
  9. {% endfor %}
  10. {% endif %}
  11. <!doctype html>
  12. <html class="no-js" lang="en">
  13. <head>
  14. <meta charset="utf-8" />
  15. {% block head %}
  16. <meta charset="utf-8">
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18. <meta name="viewport" content="width=device-width, initial-scale=1">
  19. {% if header.description %}
  20. <meta name="description" content="{{ header.description }}">
  21. {% else %}
  22. <meta name="description" content="{{ site.description }}">
  23. {% endif %}
  24. {% if header.robots %}
  25. <meta name="robots" content="{{ header.robots }}">
  26. {% endif %}
  27. <link rel="icon" type="image/png" href="{{ theme_url }}/images/favicon.png">
  28. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  29. {% block stylesheets %}
  30. {# Bootstrap core CSS #}
  31. {# % do assets.add('theme://app/bower_components/foundation/css/foundation.min.css',101) % #}
  32. {# Custom font for this theme #}
  33. {% do assets.add('theme://font/cocogoose/cocogoose.css',100) %}
  34. {# Custom styles for this theme #}
  35. {% do assets.add('theme://css/styles.css',100) %}
  36. {{ assets.css() }}
  37. {% endblock %}
  38. {% endblock head %}
  39. </head>
  40. <body class="{{bodyclass}}">
  41. <div id="container">
  42. {# include the header + navigation #}
  43. {% include 'partials/header.html.twig' %}
  44. <div id="center" class="row fullwidth">
  45. <div class="large-12 columns">
  46. {% block content %}{% endblock %}
  47. </div>
  48. </div>
  49. {% block bottom %}{% endblock %}
  50. {# include the footer#}
  51. {% include 'partials/footer.html.twig' %}
  52. </div>
  53. {% block javascripts %}
  54. {% do assets.add('theme://bower_components/jquery/dist/jquery.min.js', 101) %}
  55. {% do assets.add('theme://bower_components/foundation/js/foundation.min.js') %}
  56. {% do assets.add('theme://bower_components/imagesloaded/imagesloaded.pkgd.min.js') %}
  57. {% do assets.add('theme://bower_components/isotope/dist/isotope.pkgd.min.js') %}
  58. {% do assets.add('theme://js/dist/script.min.js') %}
  59. {{ assets.js() }}
  60. {% endblock %}
  61. </body>
  62. </html>