Commit 5b2afa0e authored by alexpott's avatar alexpott

Issue #1961868 by 2ndmile, foopang, Cottser: Convert region.tpl.php to Twig.

parent 684aaa5b
{#
/**
* @file
* Default theme implementation to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region div, including:
* - class: Classes that can be used to style contextually through CSS,
* including:
* - region: The current template type (also know as "theming hook").
* - region-[name]: The name of the region with underscores replaced with
* dashes. For example, page_top region would have a region-page-top
* class.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess()
* @see template_preprocess_region()
*
* @ingroup themeable
*/
#}
{% if content %}
<div{{ attributes }}>
{{ content }}
</div>
{% endif %}
<?php
/**
* @file
* Default theme implementation to display a region.
*
* Available variables:
* - $content: The content for this region, typically blocks.
* - $attributes: An instance of Attributes class that can be manipulated as an
* array and printed as a string.
* It includes the 'class' information, which includes:
* - region: The current template type, i.e., "theming hook".
* - region-[name]: The name of the region with underscores replaced with
* dashes. For example, the page_top region would have a region-page-top class.
* - $region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* Helper variables:
* - $is_admin: Flags true when the current user is an administrator.
* - $is_front: Flags true when presented in the front page.
* - $logged_in: Flags true when the current user is a logged-in member.
*
* @see template_preprocess()
* @see template_preprocess_region()
* @see template_process()
*
* @ingroup themeable
*/
?>
<?php if ($content): ?>
<div <?php print $attributes; ?>>
<?php print $content; ?>
</div>
<?php endif; ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment