rivet-1.0.x-dev/templates/block/block--region-header-search.html.twig

templates/block/block--region-header-search.html.twig
{#
/**
 * @file
 * Theme override for the search form block.
 *
 * Available variables:
 * - plugin_id: The ID of the block implementation.
 * - label: The configured label of the block if visible.
 * - configuration: A list of the block's configuration values, including:
 *   - label: The configured label for the block.
 *   - label_display: The display settings for the label.
 *   - provider: The module or other provider that provided this block plugin.
 *   - Block plugin specific settings will also be stored here.
 * - in_preview: Whether the plugin is being rendered in preview mode.
 * - content: The content of this block.
 * - attributes: A list HTML attributes populated by modules, intended to
 *   be added to the main container tag of this template. Includes:
 *   - id: A valid HTML ID and guaranteed unique.
 * - title_attributes: Same as attributes, except applied to the main title
 *   tag that appears in the template.
 * - title_prefix: Additional output populated by modules, intended to be
 *   displayed in front of the main title tag that appears in the template.
 * - title_suffix: Additional output populated by modules, intended to be
 *   displayed after the main title tag that appears in the template.
 *
 * @see template_preprocess_block()
 * @see search_preprocess_block()
 */
#}
{%
  set classes = [
    'rvt-header-global__search',
  ]
%}
<!-- Header search -->
<div data-rvt-disclosure="search" data-rvt-close-click-outside>
  <!-- Button that shows/hides the search field -->
  <button class="rvt-global-toggle" data-rvt-disclosure-toggle="search" aria-expanded="false">
    <span class="rvt-sr-only">{{ label }}</span>
    <svg class="rvt-global-toggle__search" fill="currentColor" width="16" height="16" viewBox="0 0 16 16">
      <path d="M7 2a5 5 0 1 0 0 10A5 5 0 0 0 7 2ZM0 7a7 7 0 1 1 12.606 4.192l3.101 3.1-1.414 1.415-3.1-3.1A7 7 0 0 1 0 7Z"></path>
    </svg>
  </button>
  <!-- Search field -->
  <div{{attributes.addClass(classes)|without('id')}} data-rvt-disclosure-target="search" hidden>
  {% block content %}
    {{ content }}
  {% endblock %}
  </div>
</div>

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

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