amp-8.x-3.5/templates/amp-sidebar.html.twig

templates/amp-sidebar.html.twig
{#
/**
 * @file
 * Default theme implementation of amp-sidebar used to wrap child elements.
 *
 * Used as a theme wrapper to surround it with a <amp-sidebar> and attributes.
 * See \Drupal\Core\Render\Element\RenderElement for more
 * information on the #theme_wrappers render array property, and
 * \Drupal\Core\Render\Element\container for usage of the container render
 * element.
 *
 * Available variables:
 * - id: The id of the sidebar.
 * - tabindex: The tabindex number of the close button.
 * - attributes: Attributes for the containing element.
 * - content_attributes: Attributes for the close button.
 * - children: The rendered child elements of the sidebar.
 *
 * @see template_preprocess_amp_sidebar()
 *
 * @ingroup themeable
 */
#}
{{ attach_library('amp/amp.sidebar') }}
<amp-sidebar id="{{ id }}"{{ attributes }}>
<div{{ content_attributes }} title="close {{ id }}" on="tap:{{ id }}.close" tabindex="{{ tabindex }}" role="button"></div>
{{ children }}
</amp-sidebar>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc