Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -19,3 +19,5 @@ libraries-extend:
|
|||
- classy/dialog
|
||||
file/drupal.file:
|
||||
- classy/file
|
||||
core/drupal.progress:
|
||||
- classy/progress
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
* to l() as its $options parameter.
|
||||
* - attributes: (optional) HTML attributes for the anchor, or for the <span>
|
||||
* tag if no 'href' is supplied.
|
||||
* - link_key: The link CSS class.
|
||||
* - heading: (optional) A heading to precede the links.
|
||||
* - text: The heading text.
|
||||
* - level: The heading level (e.g. 'h2', 'h3').
|
||||
|
|
48
core/themes/classy/templates/misc/help-section.html.twig
Normal file
48
core/themes/classy/templates/misc/help-section.html.twig
Normal file
|
@ -0,0 +1,48 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for a section of the help page.
|
||||
*
|
||||
* This implementation divides the links into 4 columns.
|
||||
*
|
||||
* Available variables:
|
||||
* - title: The section title.
|
||||
* - description: The description text for the section.
|
||||
* - links: Links to display in the section.
|
||||
* - empty: Text to display if there are no links.
|
||||
*/
|
||||
#}
|
||||
<div class="clearfix">
|
||||
<h2>{{ title }}</h2>
|
||||
<p>{{ description }}</p>
|
||||
{% if links %}
|
||||
{# Calculate the column length, to divide links into 4 columns. #}
|
||||
{% set size = links|length // 4 %}
|
||||
{% if size * 4 < links|length %}
|
||||
{% set size = size + 1 %}
|
||||
{% endif %}
|
||||
|
||||
{# Output the links in 4 columns. #}
|
||||
{% set count = 0 %}
|
||||
{% for link in links %}
|
||||
{% if count == 0 %}
|
||||
{# Start a new column. #}
|
||||
<div class="layout-column layout-column--quarter"><ul>
|
||||
{% endif %}
|
||||
<li>{{ link }}</li>
|
||||
{% set count = count + 1 %}
|
||||
{% if count >= size %}
|
||||
{# End the current column. #}
|
||||
{% set count = 0 %}
|
||||
</ul></div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{# End the last column, if one is open. #}
|
||||
{% if count > 0 %}
|
||||
</ul></div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>{{ empty }}</p>
|
||||
{% endif %}
|
||||
</div>
|
|
@ -13,7 +13,6 @@
|
|||
* to l() as its $options parameter.
|
||||
* - attributes: (optional) HTML attributes for the anchor, or for the <span>
|
||||
* tag if no 'href' is supplied.
|
||||
* - link_key: The link CSS class.
|
||||
* - heading: (optional) A heading to precede the links.
|
||||
* - text: The heading text.
|
||||
* - level: The heading level (e.g. 'h2', 'h3').
|
||||
|
@ -41,8 +40,8 @@
|
|||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
<ul{{ attributes }}>
|
||||
{%- for key, item in links -%}
|
||||
<li{{ item.attributes.addClass(key|clean_class) }}>
|
||||
{%- for item in links -%}
|
||||
<li{{ item.attributes }}>
|
||||
{%- if item.link -%}
|
||||
{{ item.link }}
|
||||
{%- elseif item.text_attributes -%}
|
||||
|
|
Reference in a new issue