Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default theme implementation for main view template. Chris@0: * Chris@0: * Available variables: Chris@0: * - attributes: Remaining HTML attributes for the element. Chris@0: * - css_name: A css-safe version of the view name. Chris@0: * - css_class: The user-specified classes names, if any. Chris@0: * - header: The optional header. Chris@0: * - footer: The optional footer. Chris@0: * - rows: The results of the view query, if any. Chris@0: * - empty: The content to display if there are no rows. Chris@0: * - pager: The optional pager next/prev links to display. Chris@0: * - exposed: Exposed widget form/info to display. Chris@0: * - feed_icons: Optional feed icons to display. Chris@0: * - more: An optional link to the next page of results. Chris@0: * - title: Title of the view, only used when displaying in the admin preview. Chris@0: * - title_prefix: Additional output populated by modules, intended to be Chris@0: * displayed in front of the view title. Chris@0: * - title_suffix: Additional output populated by modules, intended to be Chris@0: * displayed after the view title. Chris@0: * - attachment_before: An optional attachment view to be displayed before the Chris@0: * view content. Chris@0: * - attachment_after: An optional attachment view to be displayed after the Chris@0: * view content. Chris@0: * - dom_id: Unique id for every view being printed to give unique class for Chris@0: * Javascript. Chris@0: * Chris@0: * @see template_preprocess_views_view() Chris@0: * Chris@0: * @ingroup themeable Chris@0: */ Chris@0: #} Chris@0: {% Chris@0: set classes = [ Chris@0: dom_id ? 'js-view-dom-id-' ~ dom_id, Chris@0: ] Chris@0: %} Chris@0: Chris@0: {{ title_prefix }} Chris@0: {{ title }} Chris@0: {{ title_suffix }} Chris@0: Chris@0: {% if header %} Chris@0:
Chris@0: {{ header }} Chris@0:
Chris@0: {% endif %} Chris@0: Chris@0: {{ exposed }} Chris@0: {{ attachment_before }} Chris@0: Chris@18: {% if rows -%} Chris@18: {{ rows }} Chris@18: {% elseif empty -%} Chris@18: {{ empty }} Chris@18: {% endif %} Chris@0: {{ pager }} Chris@0: Chris@0: {{ attachment_after }} Chris@0: {{ more }} Chris@0: Chris@0: {% if footer %} Chris@0: Chris@0: {% endif %} Chris@0: Chris@0: {{ feed_icons }} Chris@0: