page--node--landing-page.html.twig in Open Social 8
Same filename and directory in other branches
- 8.9 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 8.2 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 8.3 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 8.4 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 8.5 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 8.6 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 8.7 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 8.8 modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 10.3.x modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 10.0.x modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 10.1.x modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
- 10.2.x modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
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
/html/profiles/contrib/social/themes/socialbase/templates/layout/page.html.twig
File
modules/social_features/social_landing_page/templates/page--node--landing-page.html.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_page()
- * @see /html/profiles/contrib/social/themes/socialbase/templates/layout/page.html.twig
- */
- #}
-
- {% if page.header %}
- {{ page.header }}
- {% endif %}
-
- <main id="content" class="main-container" role="main">
-
- {# No breadcrumbs for landing pages #}
- {# Hero region will be in section #}
- {# No secondary navigation #}
- {% if page.secondary_navigation %}
- {{ page.secondary_navigation }}
- {% endif %}
- {% if page.content_top %}
- {{ page.content_top }}
- {% endif %}
- {# Clear section class #}
- <section{{ content_attributes.removeClass('with-title-region', 'layout--with-complementary') }}>
- {# Page title printed in a section #}
- {# No side blocks #}
- {% block content %}
- <a id="main-content" tabindex="-1"></a>
- {{ page.content }}
- {% endblock %}
-
- </section>
-
- </main>
-
- {% if page.footer %}
- {{ page.footer }}
- {% endif %}