2 changed files with 65 additions and 65 deletions
@ -1,95 +1,95 @@ |
|||||||
{# |
{# |
||||||
/** |
/** |
||||||
* @file |
* @file |
||||||
* Theme override for a main view template. |
* Theme override for a main view template. |
||||||
* |
* |
||||||
* Available variables: |
* Available variables: |
||||||
* - attributes: Remaining HTML attributes for the element. |
* - attributes: Remaining HTML attributes for the element. |
||||||
* - css_name: A CSS-safe version of the view name. |
* - css_name: A CSS-safe version of the view name. |
||||||
* - css_class: The user-specified classes names, if any. |
* - css_class: The user-specified classes names, if any. |
||||||
* - header: The optional header. |
* - header: The optional header. |
||||||
* - footer: The optional footer. |
* - footer: The optional footer. |
||||||
* - rows: The results of the view query, if any. |
* - rows: The results of the view query, if any. |
||||||
* - empty: The content to display if there are no rows. |
* - empty: The content to display if there are no rows. |
||||||
* - pager: The optional pager next/prev links to display. |
* - pager: The optional pager next/prev links to display. |
||||||
* - exposed: Exposed widget form/info to display. |
* - exposed: Exposed widget form/info to display. |
||||||
* - feed_icons: Optional feed icons to display. |
* - feed_icons: Optional feed icons to display. |
||||||
* - more: An optional link to the next page of results. |
* - more: An optional link to the next page of results. |
||||||
* - title: Title of the view, only used when displaying in the admin preview. |
* - title: Title of the view, only used when displaying in the admin preview. |
||||||
* - title_prefix: Additional output populated by modules, intended to be |
* - title_prefix: Additional output populated by modules, intended to be |
||||||
* displayed in front of the view title. |
* displayed in front of the view title. |
||||||
* - title_suffix: Additional output populated by modules, intended to be |
* - title_suffix: Additional output populated by modules, intended to be |
||||||
* displayed after the view title. |
* displayed after the view title. |
||||||
* - attachment_before: An optional attachment view to be displayed before the |
* - attachment_before: An optional attachment view to be displayed before the |
||||||
* view content. |
* view content. |
||||||
* - attachment_after: An optional attachment view to be displayed after the |
* - attachment_after: An optional attachment view to be displayed after the |
||||||
* view content. |
* view content. |
||||||
* - dom_id: Unique id for every view being printed to give unique class for |
* - dom_id: Unique id for every view being printed to give unique class for |
||||||
* Javascript. |
* Javascript. |
||||||
* |
* |
||||||
* @see template_preprocess_views_view() |
* @see template_preprocess_views_view() |
||||||
*/ |
*/ |
||||||
#} |
#} |
||||||
{% |
{% |
||||||
set classes = [ |
set classes = [ |
||||||
'view', |
'view', |
||||||
'view-' ~ id|clean_class, |
'view-' ~ id|clean_class, |
||||||
'view-id-' ~ id, |
'view-id-' ~ id, |
||||||
'view-display-id-' ~ display_id, |
'view-display-id-' ~ display_id, |
||||||
dom_id ? 'js-view-dom-id-' ~ dom_id, |
dom_id ? 'js-view-dom-id-' ~ dom_id, |
||||||
] |
] |
||||||
%} |
%} |
||||||
<div{{ attributes.addClass(classes) }}> |
<div{{ attributes.addClass(classes) }}> |
||||||
{{ title_prefix }} |
{{ title_prefix }} |
||||||
{% if title %} |
{% if title %} |
||||||
{{ title }} |
{{ title }} |
||||||
{% endif %} |
{% endif %} |
||||||
{{ title_suffix }} |
{{ title_suffix }} |
||||||
{% if header %} |
{% if header %} |
||||||
<div class="view-header"> |
<div class="view-header people_bio"> |
||||||
{{ header }} |
{{ header }} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
{% if exposed %} |
{% if exposed %} |
||||||
<div class="view-filters"> |
<div class="view-filters"> |
||||||
{{ exposed }} |
{{ exposed }} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
{% if attachment_before %} |
{% if attachment_before %} |
||||||
<div class="attachment attachment-before"> |
<div class="attachment attachment-before"> |
||||||
{{ attachment_before }} |
{{ attachment_before }} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
{% if rows %} |
{% if rows %} |
||||||
<div class="view-content"> |
<div class="view-content related_books"> |
||||||
{{ rows }} |
{{ rows }} |
||||||
</div> |
</div> |
||||||
{% elseif empty %} |
{% elseif empty %} |
||||||
<div class="view-empty"> |
<div class="view-empty"> |
||||||
{{ empty }} |
{{ empty }} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
{% if pager %} |
{% if pager %} |
||||||
{{ pager }} |
{{ pager }} |
||||||
{% endif %} |
{% endif %} |
||||||
{% if attachment_after %} |
{% if attachment_after %} |
||||||
<div class="attachment attachment-after"> |
<div class="attachment attachment-after"> |
||||||
{{ attachment_after }} |
{{ attachment_after }} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
{% if more %} |
{% if more %} |
||||||
{{ more }} |
{{ more }} |
||||||
{% endif %} |
{% endif %} |
||||||
{% if footer %} |
{% if footer %} |
||||||
<div class="view-footer"> |
<div class="view-footer"> |
||||||
{{ footer }} |
{{ footer }} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
{% if feed_icons %} |
{% if feed_icons %} |
||||||
<div class="feed-icons"> |
<div class="feed-icons"> |
||||||
{{ feed_icons }} |
{{ feed_icons }} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
</div> |
</div> |
||||||
|
|||||||
Loading…
Reference in new issue