You are here

page--node--landing-page.html.twig in Open Social 10.2.x

Socialbase's theme implementation to display a landing page.

The doctype, html, head and body tags are not in this template. Instead they can be found in the html.html.twig template normally located in the core/modules/system directory.

Available variables:

General utility variables:

  • base_path: The base URL path of the Drupal installation. Will usually be "/" unless you have installed Drupal in a sub-directory.
  • is_front: A flag indicating if the current page is the front page.
  • logged_in: A flag indicating if the user is registered and signed in.
  • is_admin: A flag indicating if the user has permission to access administration pages.

Site identity:

  • front_page: The URL of the front page. Use this instead of base_path when linking to the front page. This includes the language domain or prefix.

See also

template_preprocess_page()

/html/profiles/contrib/social/themes/socialbase/templates/layout/page.html.twig

File

modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Socialbase's theme implementation to display a landing page.
  5. *
  6. * The doctype, html, head and body tags are not in this template. Instead they
  7. * can be found in the html.html.twig template normally located in the
  8. * core/modules/system directory.
  9. *
  10. * Available variables:
  11. *
  12. * General utility variables:
  13. * - base_path: The base URL path of the Drupal installation. Will usually be
  14. * "/" unless you have installed Drupal in a sub-directory.
  15. * - is_front: A flag indicating if the current page is the front page.
  16. * - logged_in: A flag indicating if the user is registered and signed in.
  17. * - is_admin: A flag indicating if the user has permission to access
  18. * administration pages.
  19. *
  20. * Site identity:
  21. * - front_page: The URL of the front page. Use this instead of base_path when
  22. * linking to the front page. This includes the language domain or prefix.
  23. *
  24. *
  25. * @see template_preprocess_page()
  26. * @see /html/profiles/contrib/social/themes/socialbase/templates/layout/page.html.twig
  27. */
  28. #}
  29. {%
  30. set classes = [
  31. 'row',
  32. ]
  33. %}
  34. {% if page.header %}
  35. {{ page.header }}
  36. {% endif %}
  37. <main id="content" class="main-container" role="main">
  38. {# No breadcrumbs for landing pages #}
  39. {# Hero region will be in section #}
  40. {# No secondary navigation #}
  41. {% if page.content_top %}
  42. {{ page.content_top }}
  43. {% endif %}
  44. {# Clear section class #}
  45. <section{{ attributes.addClass(classes) }}>
  46. {# Page title printed in a section #}
  47. {# No side blocks #}
  48. {% if container_wrapper %}<div class="row container layout--with-complementary">{% endif %}
  49. {% if page.secondary_navigation %}
  50. {{ page.secondary_navigation }}
  51. {% endif %}
  52. {% block content %}
  53. <a id="main-content" tabindex="-1"></a>
  54. {{ page.content }}
  55. {% endblock %}
  56. {% if container_wrapper %}<aside class="region--complementary" role="complementary"></aside></div>{% endif %}
  57. </section>
  58. </main>
  59. {% if page.footer %}
  60. {{ page.footer }}
  61. {% endif %}