7 | // - [$justify] : left | center | right
8 | // - [$math] : fluid | static
9 | @mixin container-output(
10 | $width,
11 | $justify: auto auto,
12 | $property: max-width
13 | ) {
14 | $output: (
15 | #{$property}: $width or 100%,
16 | margin-left: nth($justify, 1),
17 | margin-right: nth($justify, 2),
18 | );
19 |
20 | @include output($output);
21 | }
22 |
--------------------------------------------------------------------------------
/templates/form/checkboxes.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a 'checkboxes' #type form element.
5 | *
6 | * Available variables
7 | * - attributes: A list of HTML attributes for the wrapper element.
8 | * - children: The rendered checkboxes.
9 | *
10 | * @see template_preprocess_checkboxes()
11 | */
12 | @todo: remove this file once https://www.drupal.org/node/1819284 is resolved.
13 | This is identical to core/modules/system/templates/container.html.twig
14 | #}
15 | {{ children }}
16 |
--------------------------------------------------------------------------------
/templates/field/link-formatter-link-separate.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override of a link with separate title and URL elements.
5 | *
6 | * Available variables:
7 | * - link: The link that has already been formatted by l().
8 | * - title: (optional) A descriptive or alternate title for the link, which may
9 | * be different than the actual link text.
10 | *
11 | * @see template_preprocess()
12 | * @see template_preprocess_link_formatter_link_separate()
13 | */
14 | #}
15 | {% spaceless %}
16 | {{ title }}
17 | {{ link }}
18 | {% endspaceless %}
19 |
--------------------------------------------------------------------------------
/templates/admin/views-ui-view-preview-section.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a views UI preview section.
5 | *
6 | * Available variables:
7 | * - title: The human readable section title.
8 | * - links: A list of contextual links.
9 | * - content: The content for this section preview.
10 | *
11 | * @see template_preprocess_views_ui_view_preview_section()
12 | */
13 | #}
14 | {{ title }}
15 | {% if links %}
16 | {{ links }}
17 | {% endif %}
18 | {{ content }}
19 |
--------------------------------------------------------------------------------
/templates/content/book-node-export-html.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a single node in a printer-friendly outline.
5 | *
6 | * Available variables:
7 | * - node: Fully loaded node.
8 | * - depth: Depth of the current node inside the outline.
9 | * - title: Node title.
10 | * - content: Node content.
11 | * - children: All the child nodes recursively rendered through this file.
12 | *
13 | * @see template_preprocess_book_node_export_html()
14 | */
15 | #}
16 |
17 | {{ title }}
18 | {{ content }}
19 | {{ children }}
20 |
21 |
--------------------------------------------------------------------------------
/templates/dataset/forums.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a forum.
5 | *
6 | * May contain forum containers as well as forum topics.
7 | *
8 | * Available variables:
9 | * - forums: The forums to display (as processed by forum-list.html.twig).
10 | * - topics: The topics to display.
11 | * - topics_pager: The topics pager.
12 | * - forums_defined: A flag to indicate that the forums are configured.
13 | *
14 | * @see template_preprocess_forums()
15 | */
16 | #}
17 | {% if forums_defined %}
18 | {{ forums }}
19 | {{ topics }}
20 | {{ topics_pager }}
21 | {% endif %}
22 |
--------------------------------------------------------------------------------
/sass/susy/language/_susy.scss:
--------------------------------------------------------------------------------
1 | // Susy Next Syntax
2 | // ================
3 |
4 | $susy-version: 2.1;
5 |
6 | @import "../su";
7 | @import "../output/float";
8 |
9 | @import "susy/settings";
10 | @import "susy/validation";
11 | @import "susy/grids";
12 | @import "susy/box-sizing";
13 | @import "susy/context";
14 | @import "susy/background";
15 | @import "susy/container";
16 | @import "susy/span";
17 | @import "susy/gutters";
18 | @import "susy/isolate";
19 | @import "susy/gallery";
20 | @import "susy/rows";
21 | @import "susy/margins";
22 | @import "susy/padding";
23 | @import "susy/bleed";
24 | @import "susy/breakpoint-plugin";
25 |
--------------------------------------------------------------------------------
/templates/admin/authorize-report.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for authorize.php operation report templates.
5 | *
6 | * This report displays the results of an operation run via authorize.php.
7 | *
8 | * Available variables:
9 | * - messages: A list of result messages.
10 | * - attributes: HTML attributes for the element.
11 | *
12 | * @see template_preprocess_authorize_report()
13 | */
14 | #}
15 | {% if messages %}
16 |
17 | {% for message_group in messages %}
18 | {{ message_group }}
19 | {% endfor %}
20 |
21 | {% endif %}
22 |
--------------------------------------------------------------------------------
/templates/admin/update-last-check.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the last time update data was checked.
5 | *
6 | * Available variables:
7 | * - last: The timestamp that the site was last checked for updates.
8 | * - time: The formatted time since the site last checked for updates.
9 | * - link: A link to check for updates manually.
10 | *
11 | * @see template_preprocess_update_last_check()
12 | */
13 | #}
14 |
15 | {% if last %}
16 | {{ 'Last checked: @time ago'|t({'@time': time}) }}
17 | {% else %}
18 | {{ 'Last checked: never'|t }}
19 | {% endif %}
20 | ({{ link }})
21 |
22 |
--------------------------------------------------------------------------------
/templates/views/views-view-opml.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for feed displays that use the OPML style.
5 | *
6 | * Available variables:
7 | * - title: The title of the feed (as set in the view).
8 | * - updated: The modified date of the feed.
9 | * - items: The feed items themselves.
10 | *
11 | * @see template_preprocess_views_view_opml()
12 | */
13 | #}
14 |
15 |
16 |
17 | {{ title }}
18 | {{ updated }}
19 |
20 |
21 | {{ items }}
22 |
23 |
24 |
--------------------------------------------------------------------------------
/templates/form/textarea.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a 'textarea' #type form element.
5 | *
6 | * Available variables
7 | * - wrapper_attributes: A list of HTML attributes for the wrapper element.
8 | * - attributes: A list of HTML attributes for the textarea element.
9 | * - resizable: An indicator for whether the textarea is resizable.
10 | * - required: An indicator for whether the textarea is required.
11 | * - value: The textarea content.
12 | *
13 | * @see template_preprocess_textarea()
14 | */
15 | #}
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/templates/field/image-style.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for an image using a specific image style.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes for the image, including the following:
8 | * - src: Full URL or relative path to the image file.
9 | * - class: One or more classes to be applied to the image.
10 | * - width: The width of the image (if known).
11 | * - height: The height of the image (if known).
12 | * - title: The title of the image.
13 | * - alt: The alternative text for the image.
14 | *
15 | * @see template_preprocess_image_style()
16 | */
17 | #}
18 | {{ image }}
19 |
--------------------------------------------------------------------------------
/templates/content-edit/filter-caption.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a filter caption.
5 | *
6 | * Returns HTML for a captioned image, audio, video or other tag.
7 | *
8 | * Available variables
9 | * - string node: The complete HTML tag whose contents are being captioned.
10 | * - string tag: The name of the HTML tag whose contents are being captioned.
11 | * - string caption: The caption text.
12 | * - string classes: The classes of the captioned HTML tag.
13 | */
14 | #}
15 |
16 | {{ node }}
17 | {{ caption }}
18 |
19 |
--------------------------------------------------------------------------------
/templates/admin/tablesort-indicator.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for displaying a tablesort indicator.
5 | *
6 | * Available variables:
7 | * - style: Either 'asc' or 'desc', indicating the sorting direction.
8 | *
9 | * @see template_preprocess_tablesort_indicator()
10 | */
11 | #}
12 | {%
13 | set classes = [
14 | 'tablesort',
15 | 'tablesort--' ~ style,
16 | ]
17 | %}
18 |
19 |
20 | {% if style == 'asc' -%}
21 | {{ 'Sort ascending'|t }}
22 | {% else -%}
23 | {{ 'Sort descending'|t }}
24 | {% endif %}
25 |
26 |
27 |
--------------------------------------------------------------------------------
/templates/layout/page.html.twig:
--------------------------------------------------------------------------------
1 | {% include directory ~ '/partials/header.html.twig' %}
2 |
3 |
4 |
5 | {# link is in html.html.twig #}
6 |
7 |
8 |
9 | {{ page.content }}
10 |
11 |
{# /.layout-content #}
12 |
13 | {% if page.sidebar %}
14 |
17 | {% endif %}
18 |
19 |
20 |
{# /.layout-container #}
21 |
22 | {% include directory ~ '/partials/footer.html.twig' %}
--------------------------------------------------------------------------------
/templates/navigation/breadcrumb.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a breadcrumb trail.
5 | *
6 | * Available variables:
7 | * - breadcrumb: Breadcrumb trail items.
8 | */
9 | #}
10 | {% if breadcrumb %}
11 |
25 | {% endif %}
26 |
--------------------------------------------------------------------------------
/templates/admin/block-list.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Two column template for the block add/edit form.
5 | *
6 | * This template will be used when a block edit form specifies 'block_edit_form'
7 | * as its #theme callback. Otherwise, by default, block add/edit forms will be
8 | * themed by form.html.twig.
9 | *
10 | * Available variables:
11 | * - form: The block add/edit form.
12 | */
13 | #}
14 |
15 |
16 | {{ form|without('place_blocks') }}
17 |
18 |
19 | {{ form.place_blocks }}
20 |
21 |
22 |
--------------------------------------------------------------------------------
/templates/user/forum-submitted.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a forum post submission string.
5 | *
6 | * The submission string indicates when and by whom a topic was submitted.
7 | *
8 | * Available variables:
9 | * - author: The author of the post.
10 | * - time: How long ago the post was created.
11 | * - topic: An object with the raw data of the post. Potentially unsafe. Be
12 | * sure to clean this data before printing.
13 | *
14 | * @see template_preprocess_forum_submitted()
15 | */
16 | #}
17 | {% if time %}
18 | {% trans %}By {{ author }} {{ time }} ago{% endtrans %}
19 | {% else %}
20 | {{ 'n/a'|t }}
21 | {% endif %}
22 |
--------------------------------------------------------------------------------
/templates/admin/block-content-add-list.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to present a list of custom block types.
5 | *
6 | * Available variables:
7 | * - types: A collection of all the available custom block types.
8 | * Each block type contains the following:
9 | * - link: A link to add a block of this type.
10 | * - description: A description of this custom block type.
11 | *
12 | * @see template_preprocess_block_content_add_list()
13 | */
14 | #}
15 | {% spaceless %}
16 |
17 | {% for type in types %}
18 | - {{ type.link }}
19 | - {{ type.description }}
20 | {% endfor %}
21 |
22 | {% endspaceless %}
23 |
--------------------------------------------------------------------------------
/templates/admin/update-report.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the project status report.
5 | *
6 | * Available variables:
7 | * - last_checked: Themed last time update data was checked.
8 | * - no_updates_message: Message when there are no project updates.
9 | * - project_types: A list of project types.
10 | * - label: The project type label.
11 | * - table: The project status table.
12 | *
13 | * @see template_preprocess_update_report()
14 | */
15 | #}
16 | {{ last_checked }}
17 |
18 | {% for project_type in project_types %}
19 | {{ project_type.label }}
20 | {{ project_type.table }}
21 | {% else %}
22 | {{ no_updates_message }}
23 | {% endfor %}
24 |
--------------------------------------------------------------------------------
/node--movies.html.twig:
--------------------------------------------------------------------------------
1 | {% for actor in content.field_actors['#items'].getValue() %}
2 | {{actor.value}}
3 | {% endfor %}
4 |
5 | {% if content.field_show_poster_['#items'].getValue()|first.value == "1" %}
6 |
7 | {{content.field_movie_poster}}
8 |
9 | {% else %}
10 | I don't want you to see Movie Poster
11 | {% endif %}
12 |
13 |
14 | {{content.field_director}}
15 |
16 |
17 |
18 |
19 | {{content.field_actors}}
20 |
21 |
22 |
23 |
24 | {{content.field_premeires}}
25 |
26 |
27 | {{content.body}}
28 |
--------------------------------------------------------------------------------
/page--front.html.twig:
--------------------------------------------------------------------------------
1 | {% include directory ~ '/partials/header.html.twig' %}
2 |
3 |
4 |
5 | {# link is in html.html.twig #}
6 |
7 |
8 |
9 | {{ page.content }}
10 |
11 |
{# /.layout-content #}
12 |
13 | {% if page.sidebar %}
14 |
18 | {% endif %}
19 |
20 |
21 |
22 |
{# /.layout-container #}
23 |
24 | {% include directory ~ '/partials/footer.html.twig' %}
25 |
26 |
27 |
--------------------------------------------------------------------------------
/templates/admin/simpletest-result-summary.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for simpletest result summaries.
5 | *
6 | * Available variables:
7 | * - label: An optional label to be rendered before the results.
8 | * - items: Pluralized summaries for each result type (number of passes, fails,
9 | * exceptions, and debug messages).
10 | * - pass: The number of passes.
11 | * - fail: The number of fails.
12 | * - exception: The number of exceptions.
13 | * - debug: The number of debug messages.
14 | *
15 | * @see template_preprocess_simpletest_result_summary()
16 | */
17 | #}
18 |
19 | {{ label }} {{ items|join(', ') }}
20 |
21 |
--------------------------------------------------------------------------------
/templates/content-edit/text-format-wrapper.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a text format-enabled form element.
5 | *
6 | * Available variables:
7 | * - children: Text format element children.
8 | * - description: Text format element description.
9 | * - attributes: HTML attributes for the containing element.
10 | * - aria_description: Flag for whether or not an ARIA description has been
11 | * added to the description container.
12 | *
13 | * @see template_preprocess_text_format_wrapper()
14 | */
15 | #}
16 |
17 | {{ children }}
18 | {% if description %}
19 |
{{ description }}
20 | {% endif %}
21 |
22 |
--------------------------------------------------------------------------------
/templates/misc/rdf-metadata.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for empty spans with RDF attributes.
5 | *
6 | * The XHTML+RDFa doctype allows either or syntax to
7 | * be used, but for maximum browser compatibility, W3C recommends the
8 | * former when serving pages using the text/html media type, see
9 | * http://www.w3.org/TR/xhtml1/#C_3.
10 | *
11 | * Available variables:
12 | * - metadata: Each item within corresponds to its own set of attributes,
13 | * and therefore, needs its own 'attributes' element.
14 | *
15 | * @see template_preprocess_rdf_metadata()
16 | */
17 | #}
18 | {% for attributes in metadata %}
19 |
20 | {% endfor %}
21 |
--------------------------------------------------------------------------------
/templates/admin/admin-page.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for an administrative page.
5 | *
6 | * Available variables:
7 | * - system_compact_link: Themed link to toggle compact view.
8 | * - containers: An list of administrative blocks keyed by position: left or
9 | * right. Contains:
10 | * - blocks: A list of blocks within a container.
11 | *
12 | * @see template_preprocess_admin_page()
13 | */
14 | #}
15 |
16 |
17 | {{ system_compact_link }}
18 | {% for container in containers %}
19 |
20 | {% for block in container.blocks %}
21 | {{ block }}
22 | {% endfor %}
23 |
24 | {% endfor %}
25 |
26 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "olympos-gulp",
3 | "version": "1.0.0",
4 | "description": "Gulp dependencies for Olympos WordPress theme",
5 | "main": "gulpfile.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "repository": {
10 | "type": "git",
11 | "url": "https://github.com/ivandoric/olympos.git"
12 | },
13 | "author": "Ivan Dorić",
14 | "license": "ISC",
15 | "devDependencies": {
16 | "gulp": "^3.9.0",
17 | "gulp-autoprefixer": "^3.0.2",
18 | "gulp-imagemin": "^2.3.0",
19 | "gulp-livereload": "^3.8.0",
20 | "gulp-sass": "^2.0.4",
21 | "gulp-sourcemaps": "^1.5.2",
22 | "gulp-uglifyjs": "^0.6.2",
23 | "imagemin-pngquant": "^4.2.0"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sass/susy/output/shared/_background.scss:
--------------------------------------------------------------------------------
1 | // Grid Background API
2 | // ===================
3 | // - Sub-pixel rounding can lead to several pixels variation between browsers.
4 |
5 | // Grid Background Output
6 | // ----------------------
7 | // - $image: background-image
8 | // - $size: background-size
9 | // - $clip: background-clip
10 | // - [$flow]: ltr | rtl
11 | @mixin background-grid-output (
12 | $image,
13 | $size: null,
14 | $clip: null,
15 | $flow: map-get($susy-defaults, flow)
16 | ) {
17 | $output: (
18 | background-image: $image,
19 | background-size: $size,
20 | background-origin: $clip,
21 | background-clip: $clip,
22 | background-position: from($flow) top,
23 | );
24 |
25 | @include output($output);
26 | }
27 |
--------------------------------------------------------------------------------
/templates/navigation/book-all-books-block.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for rendering book outlines within a block.
5 | *
6 | * This template is used only when the block is configured to "show block on all
7 | * pages", which presents multiple independent books on all pages.
8 | *
9 | * Available variables:
10 | * - book_menus: Book outlines.
11 | * - id: The parent book ID.
12 | * - title: The parent book title.
13 | * - menu: The top-level book links.
14 | *
15 | * @see template_preprocess_book_all_books_block()
16 | */
17 | #}
18 | {% for book in book_menus %}
19 |
22 | {% endfor %}
23 |
--------------------------------------------------------------------------------
/templates/admin/views-ui-view-info.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for basic administrative info about a View.
5 | *
6 | * Available variables:
7 | * - displays: List of displays.
8 | */
9 | #}
10 | {{ view.label }}
11 |
12 | {% if displays %}
13 | {% trans %}
14 | Display
15 | {% plural displays %}
16 | Displays
17 | {% endtrans %}:
18 | {{ displays|safe_join(', ') }}
19 | {% else %}
20 | {{ 'None'|t }}
21 | {% endif %}
22 |
23 |
24 | {{ 'Machine name:'|t }}
25 | {{ view.id }}
26 |
27 |
--------------------------------------------------------------------------------
/templates/content/aggregator-item.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to present a feed item in an aggregator page.
5 | *
6 | * Available variables:
7 | * - url: URL to the originating feed item.
8 | * - title: Title of the feed item.
9 | * - content: All field items. Use {{ content }} to print them all,
10 | * or print a subset such as {{ content.field_example }}. Use
11 | * {{ content|without('field_example') }} to temporarily suppress the printing
12 | * of a given element.
13 | *
14 | * @see template_preprocess_aggregator_item()
15 | */
16 | #}
17 |
18 | {{ title_prefix }}
19 |
22 | {{ title_suffix }}
23 | {{ content }}
24 |
25 |
--------------------------------------------------------------------------------
/templates/navigation/menu-local-tasks.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display primary and secondary local tasks.
5 | *
6 | * Available variables:
7 | * - primary: HTML list items representing primary tasks.
8 | * - secondary: HTML list items representing primary tasks.
9 | *
10 | * Each item in these variables (primary and secondary) can be individually
11 | * themed in menu-local-task.html.twig.
12 | *
13 | * @see template_preprocess_menu_local_tasks()
14 | */
15 | #}
16 | {% if primary %}
17 | {{ 'Primary tabs'|t }}
18 |
19 | {% endif %}
20 | {% if secondary %}
21 | {{ 'Secondary tabs'|t }}
22 |
23 | {% endif %}
24 |
--------------------------------------------------------------------------------
/templates/content/page-title.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for page titles.
5 | *
6 | * Available variables:
7 | * - title_attributes: HTML attributes for the page title element.
8 | * - title_prefix: Additional output populated by modules, intended to be
9 | * displayed in front of the main title tag that appears in the template.
10 | * - title: The page title, for use in the actual content.
11 | * - title_suffix: Additional output populated by modules, intended to be
12 | * displayed after the main title tag that appears in the template.
13 | *
14 | * @see template_preprocess_page_title()
15 | */
16 | #}
17 | {{ title_prefix }}
18 | {% if title %}
19 | {{ title }}
20 | {% endif %}
21 | {{ title_suffix }}
22 |
--------------------------------------------------------------------------------
/templates/admin/locale-translation-last-check.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the last time we checked for update data.
5 | *
6 | * Available variables:
7 | * - last_checked: Whether or not locale updates have been checked before.
8 | * - time: The formatted time ago when the site last checked for available
9 | * updates.
10 | * - link: A link to manually check available updates.
11 | *
12 | * @see template_preprocess_locale_translation_last_check()
13 | */
14 | #}
15 |
16 |
17 | {% if last_checked %}
18 | {% trans %} Last checked: {{ time }} ago {% endtrans %}
19 | {% else %}
20 | {{ 'Last checked: never'|t }}
21 | {% endif %}
22 | ({{ link }})
23 |
24 |
--------------------------------------------------------------------------------
/templates/misc/progress-bar.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a progress bar.
5 | *
6 | * Note that the core Batch API uses this only for non-JavaScript batch jobs.
7 | *
8 | * Available variables:
9 | * - label: The label of the working task.
10 | * - percent: The percentage of the progress.
11 | * - message: A string containing information to be displayed.
12 | */
13 | #}
14 |
15 | {% if label %}
16 |
{{ label }}
17 | {% endif %}
18 |
19 |
{{ percent }}%
20 |
{{ message }}
21 |
22 |
--------------------------------------------------------------------------------
/templates/user/user.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to present all user data.
5 | *
6 | * This template is used when viewing a registered user's page,
7 | * e.g., example.com/user/123. 123 being the user's ID.
8 | *
9 | * Available variables:
10 | * - content: A list of content items. Use 'content' to print all content, or
11 | * print a subset such as 'content.field_example'. Fields attached to a user
12 | * such as 'user_picture' are available as 'content.user_picture'.
13 | * - attributes: HTML attributes for the container element.
14 | * - user: A Drupal User entity.
15 | *
16 | * @see template_preprocess_user()
17 | */
18 | #}
19 |
20 | {% if content %}
21 | {{- content -}}
22 | {% endif %}
23 |
24 |
--------------------------------------------------------------------------------
/templates/views/views-view-field.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a single field in a view.
5 | *
6 | * Available variables:
7 | * - view: The view that the field belongs to.
8 | * - field: The field handler that can process the input.
9 | * - row: The raw result of the database query that generated this field.
10 | * - output: The processed output that will normally be used.
11 | *
12 | * When fetching output from the row this construct should be used:
13 | * data = row[field.field_alias]
14 | *
15 | * The above will guarantee that you'll always get the correct data, regardless
16 | * of any changes in the aliasing that might happen if the view is modified.
17 | *
18 | * @see template_preprocess_views_view_field()
19 | */
20 | #}
21 | {{ output -}}
22 |
--------------------------------------------------------------------------------
/templates/admin/config_translation_manage_form_element.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a form element in config_translation.
5 | *
6 | * Available variables:
7 | * - element: Array that represents the element shown in the form.
8 | * - source: The source of the translation.
9 | * - translation: The translation for the target language.
10 | *
11 | * @see template_preprocess()
12 | * @see template_preprocess_config_translation_manage_form_element()
13 | */
14 | #}
15 |
16 |
17 | {{ element.source }}
18 |
19 |
20 | {{ element.translation }}
21 |
22 |
23 |
--------------------------------------------------------------------------------
/sass/_reset.scss:
--------------------------------------------------------------------------------
1 | /* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
2 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
--------------------------------------------------------------------------------
/templates/form/form-element-label.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a form element label.
5 | *
6 | * Available variables:
7 | * - title: The label's text.
8 | * - title_display: Elements title_display setting.
9 | * - required: An indicator for whether the associated form element is required.
10 | * - attributes: A list of HTML attributes for the label.
11 | *
12 | * @see template_preprocess_form_element_label()
13 | */
14 | #}
15 | {%
16 | set classes = [
17 | title_display == 'after' ? 'option',
18 | title_display == 'invisible' ? 'visually-hidden',
19 | required ? 'js-form-required',
20 | required ? 'form-required',
21 | ]
22 | %}
23 | {% if title is not empty or required -%}
24 |
25 | {%- endif %}
26 |
--------------------------------------------------------------------------------
/templates/admin/system-admin-index.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the admin index page.
5 | *
6 | * Available variables:
7 | * - system_compact_link: Themed link to toggle compact view.
8 | * - containers: A list of administrative containers keyed by position: left or
9 | * right. Each container in the list contains:
10 | * - blocks: A list of administrative blocks, rendered
11 | * through admin-block.html.twig.
12 | *
13 | * @see template_preprocess_system_admin_index()
14 | */
15 | #}
16 |
17 | {{ system_compact_link }}
18 | {% for position, blocks in containers %}
19 |
20 | {% for block in blocks %}
21 | {{ block }}
22 | {% endfor %}
23 |
24 | {% endfor %}
25 |
26 |
--------------------------------------------------------------------------------
/templates/dataset/aggregator-feed.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to present an aggregator feed.
5 | *
6 | * The contents are rendered above feed listings when browsing source feeds.
7 | * For example, "example.com/aggregator/sources/1".
8 | *
9 | * Available variables:
10 | * - title: Title of the feed item.
11 | * - content: All field items. Use {{ content }} to print them all,
12 | * or print a subset such as {{ content.field_example }}. Use
13 | * {{ content|without('field_example') }} to temporarily suppress the printing
14 | * of a given element.
15 | *
16 | * @see template_preprocess_aggregator_feed()
17 | */
18 | #}
19 | {{ title_prefix }}
20 | {% if not full %}
21 | {{ title }}
22 | {% endif %}
23 | {{ title_suffix }}
24 |
25 | {{ content }}
26 |
--------------------------------------------------------------------------------
/templates/views/views-view-row-rss.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display an item in a views RSS feed.
5 | *
6 | * Available variables:
7 | * - title: RSS item title.
8 | * - link: RSS item link.
9 | * - description: RSS body text.
10 | * - item_elements: RSS item elements to be rendered as XML (pubDate, creator,
11 | * guid).
12 | *
13 | * @see template_preprocess_views_view_row_rss()
14 | */
15 | #}
16 | -
17 | {{ title }}
18 | {{ link }}
19 | {{ description }}
20 | {% for item in item_elements -%}
21 | <{{ item.key }}{{ item.attributes -}}
22 | {% if item.value -%}
23 | >{{ item.value }}{{ item.key }}>
24 | {% else -%}
25 | {{ ' />' }}
26 | {% endif %}
27 | {%- endfor %}
28 |
29 |
--------------------------------------------------------------------------------
/templates/admin/maintenance-task-list.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a list of maintenance tasks to perform.
5 | *
6 | * Available variables:
7 | * - tasks: A list of maintenance tasks to perform. Each item in the list has
8 | * the following variables:
9 | * - item: The maintenance task.
10 | * - attributes: HTML attributes for the maintenance task.
11 | * - status: (optional) Text describing the status of the maintenance task,
12 | * 'active' or 'done'.
13 | */
14 | #}
15 | {{ 'Installation tasks'|t }}
16 |
17 | {% for task in tasks %}
18 | -
19 | {{ task.item }}
20 | {% if task.status %} ({{ task.status }}){% endif %}
21 |
22 | {% endfor %}
23 |
24 |
--------------------------------------------------------------------------------
/templates/content-edit/filter-guidelines.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for guidelines for a text format.
5 | *
6 | * Available variables:
7 | * - format: Contains information about the current text format, including the
8 | * following:
9 | * - name: The name of the text format, potentially unsafe and needs to be
10 | * escaped.
11 | * - format: The machine name of the text format, e.g. 'basic_html'.
12 | * - attributes: HTML attributes for the containing element.
13 | * - tips: Descriptions and a CSS ID in the form of 'module-name/filter-id'
14 | * (only used when 'long' is TRUE) for each filter in one or more text
15 | * formats.
16 | *
17 | * @see template_preprocess_filter_tips()
18 | */
19 | #}
20 |
21 |
{{ format.label }}
22 | {{ tips }}
23 |
24 |
--------------------------------------------------------------------------------
/templates/admin/views-ui-rearrange-filter-form.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for Views UI rearrange filter form.
5 | *
6 | * Available variables:
7 | * - form: A render element representing the form.
8 | * - grouping: A flag whether or not there is more than one group.
9 | * - ungroupable_table: The ungroupable filter table.
10 | * - table: The groupable filter table.
11 | *
12 | * @see template_preprocess_views_ui_rearrange_filter_form()
13 | */
14 | #}
15 | {{ form.override }}
16 |
17 | {% if grouping %}
18 | {{ form.filter_groups.operator }}
19 | {% else %}
20 | {{ form.filter_groups.groups.0 }}
21 | {% endif %}
22 | {{ ungroupable_table }}
23 | {{ table }}
24 |
25 | {{ form|without('override', 'filter_groups', 'remove_groups', 'filters') }}
26 |
--------------------------------------------------------------------------------
/sass/susy/output/float/_end.scss:
--------------------------------------------------------------------------------
1 | // Float Ends API
2 | // ==============
3 |
4 | // Susy End Defaults
5 | // -----------------
6 | // - PRIVATE
7 | @include susy-defaults((
8 | last-flow: to,
9 | ));
10 |
11 | // Float Last
12 | // ----------
13 | // - [$flow] : ltr | rtl
14 | @mixin float-last(
15 | $flow: map-get($susy-defaults, flow),
16 | $last-flow: map-get($susy-defaults, last-flow),
17 | $margin: 0
18 | ) {
19 | $to: to($flow);
20 |
21 | $output: (
22 | float: if($last-flow == to, $to, null),
23 | margin-#{$to}: $margin,
24 | );
25 |
26 | @include output($output);
27 | }
28 |
29 | // Float First
30 | // -----------
31 | // - [$flow] : ltr | rtl
32 | @mixin float-first(
33 | $flow: map-get($susy-defaults, flow)
34 | ) {
35 | $output: (
36 | margin-#{from($flow)}: 0,
37 | );
38 |
39 | @include output($output);
40 | }
41 |
--------------------------------------------------------------------------------
/templates/admin/color-scheme-form.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a theme's color form.
5 | *
6 | * Available variables:
7 | * - form: Form elements for the color scheme form, including:
8 | * - scheme: A color scheme form element. For example: a select element with
9 | * color theme presets, or a color picker widget.
10 | * - palette: Color fields that can be changed by entering in a new hex value.
11 | * - html_preview: A HTML preview of the theme's current color scheme.
12 | *
13 | * @see template_preprocess_color_scheme_form()
14 | */
15 | #}
16 |
25 |
--------------------------------------------------------------------------------
/templates/admin/admin-block.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for an administrative block.
5 | *
6 | * Available variables:
7 | * - block: An array of information about the block, including:
8 | * - show: A flag indicating if the block should be displayed.
9 | * - title: The block title.
10 | * - content: (optional) The content of the block.
11 | * - description: (optional) A description of the block.
12 | * (Description should only be output if content is not available).
13 | */
14 | #}
15 |
16 | {% if block.title %}
17 |
{{ block.title }}
18 | {% endif %}
19 | {% if block.content %}
20 |
{{ block.content }}
21 | {% elseif block.description %}
22 |
{{ block.description }}
23 | {% endif %}
24 |
25 |
--------------------------------------------------------------------------------
/templates/views/views-view-unformatted.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a view of unformatted rows.
5 | *
6 | * Available variables:
7 | * - title: The title of this group of rows. May be empty.
8 | * - rows: A list of the view's row items.
9 | * - attributes: The row's HTML attributes.
10 | * - content: The row's content.
11 | * - view: The view object.
12 | * - default_row_class: A flag indicating whether default classes should be
13 | * used on rows.
14 | *
15 | * @see template_preprocess_views_view_unformatted()
16 | */
17 | #}
18 | {% if title %}
19 | {{ title }}
20 | {% endif %}
21 | {% for row in rows %}
22 | {%
23 | set row_classes = [
24 | default_row_class ? 'views-row',
25 | ]
26 | %}
27 |
28 | {{ row.content }}
29 |
30 | {% endfor %}
31 |
--------------------------------------------------------------------------------
/templates/admin/image-resize-summary.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a summary of an image resize effect.
5 | *
6 | * Available variables:
7 | * - data: The current configuration for this resize effect, including:
8 | * - width: The width of the resized image.
9 | * - height: The height of the resized image.
10 | * - effect: The effect information, including:
11 | * - id: The effect identifier.
12 | * - label: The effect name.
13 | * - description: The effect description.
14 | */
15 | #}
16 | {% if data.width and data.height -%}
17 | {{ data.width|e }}×{{ data.height|e }}
18 | {%- else -%}
19 | {% if data.width %}
20 | {% trans %}
21 | width {{ data.width|e }}
22 | {% endtrans %}
23 | {% elseif data.height %}
24 | {% trans %}
25 | height {{ data.height|e }}
26 | {% endtrans %}
27 | {% endif %}
28 | {%- endif %}
29 |
--------------------------------------------------------------------------------
/templates/user/username.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for displaying a username.
5 | *
6 | * Available variables:
7 | * - account: The full account information for the user.
8 | * - name: The user's name, sanitized.
9 | * - extra: Additional text to append to the user's name, sanitized.
10 | * - link_path: The path or URL of the user's profile page, home page,
11 | * or other desired page to link to for more information about the user.
12 | * - link_options: Options to pass to the url() function's $options parameter if
13 | * linking the user's name to the user's page.
14 | * - attributes: HTML attributes for the containing element.
15 | *
16 | * @see template_preprocess_username()
17 | */
18 | #}
19 | {% if link_path -%}
20 | {{ name }}{{ extra }}
21 | {%- else -%}
22 | {{ name }}{{ extra }}
23 | {%- endif -%}
24 |
--------------------------------------------------------------------------------
/templates/field/field--node--uid.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the node user field.
5 | *
6 | * This is an override of field.html.twig for the node user field. See that
7 | * template for documentation about its details and overrides.
8 | *
9 | * Available variables:
10 | * - attributes: HTML attributes for the containing span element.
11 | * - items: List of all the field items. Each item contains:
12 | * - attributes: List of HTML attributes for each item.
13 | * - content: The field item content.
14 | * - entity_type: The entity type to which the field belongs.
15 | * - field_name: The name of the field.
16 | * - field_type: The type of the field.
17 | * - label_display: The display settings for the label.
18 | *
19 | * @see field.html.twig
20 | */
21 | #}
22 |
23 | {%- for item in items -%}
24 | {{ item.content }}
25 | {%- endfor -%}
26 |
27 |
--------------------------------------------------------------------------------
/templates/form/datetime-wrapper.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override of a datetime form wrapper.
5 | *
6 | * Available variables:
7 | * - content: The form element to be output, usually a datelist, or datetime.
8 | * - title: The title of the form element.
9 | * - title_attributes: HTML attributes for the title wrapper.
10 | * - description: Description text for the form element.
11 | * - required: An indicator for whether the associated form element is required.
12 | *
13 | * @see template_preprocess_datetime_wrapper()
14 | */
15 | #}
16 | {%
17 | set title_classes = [
18 | required ? 'js-form-required',
19 | required ? 'form-required',
20 | ]
21 | %}
22 | {% if title %}
23 | {{ title }}
24 | {% endif %}
25 | {{ content }}
26 | {% if errors %}
27 |
28 | {{ errors }}
29 |
30 | {% endif %}
31 | {{ description }}
32 |
--------------------------------------------------------------------------------
/templates/field/field--node--title.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the node title field.
5 | *
6 | * This is an override of field.html.twig for the node title field. See that
7 | * template for documentation about its details and overrides.
8 | *
9 | * Available variables:
10 | * - attributes: HTML attributes for the containing span element.
11 | * - items: List of all the field items. Each item contains:
12 | * - attributes: List of HTML attributes for each item.
13 | * - content: The field item content.
14 | * - entity_type: The entity type to which the field belongs.
15 | * - field_name: The name of the field.
16 | * - field_type: The type of the field.
17 | * - label_display: The display settings for the label.
18 | *
19 | * @see field.html.twig
20 | */
21 | #}
22 |
23 | {%- for item in items -%}
24 | {{ item.content }}
25 | {%- endfor -%}
26 |
27 |
--------------------------------------------------------------------------------
/templates/admin/image-rotate-summary.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a summary of an image rotate effect.
5 | *
6 | * Available variables:
7 | * - data: The current configuration for this resize effect, including:
8 | * - degrees: Degrees to rotate the image, positive values will rotate the
9 | * image clockwise, negative values counter-clockwise.
10 | * - bgcolor: The hex background color of the new areas created as consequence
11 | * of rotation.
12 | * - random: If the rotation angle is randomized.
13 | * - effect: The effect information, including:
14 | * - id: The effect identifier.
15 | * - label: The effect name.
16 | * - description: The effect description.
17 | */
18 | #}
19 | {% if data.random %}
20 | {% trans %}
21 | random between -{{ data.degrees|abs }}° and {{ data.degrees|abs }}°
22 | {% endtrans %}
23 | {% else %}
24 | {{ data.degrees }}°
25 | {% endif %}
26 |
--------------------------------------------------------------------------------
/templates/field/field--node--created.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the node created field.
5 | *
6 | * This is an override of field.html.twig for the node created field. See that
7 | * template for documentation about its details and overrides.
8 | *
9 | * Available variables:
10 | * - attributes: HTML attributes for the containing span element.
11 | * - items: List of all the field items. Each item contains:
12 | * - attributes: List of HTML attributes for each item.
13 | * - content: The field item content.
14 | * - entity_type: The entity type to which the field belongs.
15 | * - field_name: The name of the field.
16 | * - field_type: The type of the field.
17 | * - label_display: The display settings for the label.
18 | *
19 | * @see field.html.twig
20 | */
21 | #}
22 |
23 | {%- for item in items -%}
24 | {{ item.content }}
25 | {%- endfor -%}
26 |
27 |
--------------------------------------------------------------------------------
/templates/form/container.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override of a container used to wrap child elements.
5 | *
6 | * Used for grouped form items. Can also be used as a theme wrapper for any
7 | * renderable element, to surround it with a and HTML attributes.
8 | * See the @link forms_api_reference.html Form API reference @endlink for more
9 | * information on the #theme_wrappers render array property.
10 | *
11 | * Available variables:
12 | * - attributes: HTML attributes for the containing element.
13 | * - children: The rendered child elements of the container.
14 | * - has_parent: A flag to indicate that the container has one or more parent
15 | containers.
16 | *
17 | * @see template_preprocess_container()
18 | */
19 | #}
20 | {%
21 | set classes = [
22 | has_parent ? 'js-form-wrapper',
23 | has_parent ? 'form-wrapper',
24 | ]
25 | %}
26 |
{{ children }}
27 |
--------------------------------------------------------------------------------
/templates/form/details.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a details element.
5 | *
6 | * Available variables
7 | * - attributes: A list of HTML attributes for the details element.
8 | * - errors: (optional) Any errors for this details element, may not be set.
9 | * - title: (optional) The title of the element, may not be set.
10 | * - description: (optional) The description of the element, may not be set.
11 | * - children: (optional) The children of the element, may not be set.
12 | * - value: (optional) The value of the element, may not be set.
13 | *
14 | * @see template_preprocess_details()
15 | */
16 | #}
17 |
18 | {%- if title -%}
19 | {{ title }}
20 | {%- endif -%}
21 |
22 | {% if errors %}
23 |
24 | {{ errors }}
25 |
26 | {% endif %}
27 |
28 | {{ description }}
29 | {{ children }}
30 | {{ value }}
31 |
32 |
--------------------------------------------------------------------------------
/templates/dataset/forum-icon.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a status icon for a forum post.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes to be applied to the wrapper element.
8 | * - class: HTML classes that determine which icon to display. May be one of
9 | * 'hot', 'hot-new', 'new', 'default', 'closed', or 'sticky'.
10 | * - title: Text alternative for the forum icon.
11 | * - icon_title: Text alternative for the forum icon, same as above.
12 | * - new_posts: '1' when this topic contains new posts, otherwise '0'.
13 | * - first_new: '1' when this is the first topic with new posts, otherwise '0'.
14 | * - icon_status: Indicates which status icon should be used.
15 | *
16 | * @see template_preprocess_forum_icon()
17 | */
18 | #}
19 |
20 | {% if first_new -%}
21 |
22 | {%- endif %}
23 |
{{ icon_title }}
24 |
25 |
--------------------------------------------------------------------------------
/templates/form/select.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a select element.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes for the select tag.
8 | * - options: The option element children.
9 | *
10 | * @see template_preprocess_select()
11 | */
12 | #}
13 | {% spaceless %}
14 |
27 | {% endspaceless %}
28 |
--------------------------------------------------------------------------------
/templates/views/views-view-rss.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for feed displays that use the RSS style.
5 | *
6 | * Available variables:
7 | * - link: The link to the feed (the view path).
8 | * - namespaces: The XML namespaces (added automatically).
9 | * - title: The title of the feed (as set in the view).
10 | * - description: The feed description (from feed settings).
11 | * - langcode: The language encoding.
12 | * - channel_elements: The formatted channel elements.
13 | * - items: The feed items themselves.
14 | *
15 | * @see template_preprocess_views_view_rss()
16 | */
17 | #}
18 |
19 |
20 |
21 | {{ title }}
22 | {{ link }}
23 | {{ description }}
24 | {{ langcode }}
25 | {{ channel_elements }}
26 | {{ items }}
27 |
28 |
29 |
--------------------------------------------------------------------------------
/templates/block/block--system-branding-block.html.twig:
--------------------------------------------------------------------------------
1 | {% extends "block.html.twig" %}
2 | {#
3 | /**
4 | * @file
5 | * Theme override for a branding block.
6 | *
7 | * Each branding element variable (logo, name, slogan) is only available if
8 | * enabled in the block configuration.
9 | *
10 | * Available variables:
11 | * - site_logo: Logo for site as defined in Appearance or theme settings.
12 | * - site_name: Name for site as defined in Site information settings.
13 | * - site_slogan: Slogan for site as defined in Site information settings.
14 | */
15 | #}
16 | {% block content %}
17 | {% if site_logo %}
18 |
23 | {% endif %}
24 | {% if site_name %}
25 |
{{ site_name }}
26 | {% endif %}
27 | {{ site_slogan }}
28 | {% endblock %}
29 |
--------------------------------------------------------------------------------
/templates/content-edit/node-add-list.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to list node types available for adding content.
5 | *
6 | * This list is displayed on the Add content admin page.
7 | *
8 | * Available variables:
9 | * - types: A list of content types, each with the following properties:
10 | * - add_link: Link to create a piece of content of this type.
11 | * - description: Description of this type of content.
12 | *
13 | * @see template_preprocess_node_add_list()
14 | */
15 | #}
16 | {% if types is not empty %}
17 |
18 | {% for type in types %}
19 | - {{ type.add_link }}
20 | - {{ type.description }}
21 | {% endfor %}
22 |
23 | {% else %}
24 |
25 | {% set create_content = path('node.type_add') %}
26 | {% trans %}
27 | You have not created any content types yet. Go to the content type creation page to add a new content type.
28 | {% endtrans %}
29 |
30 | {% endif %}
31 |
--------------------------------------------------------------------------------
/sass/susy/language/susy/_context.scss:
--------------------------------------------------------------------------------
1 | // Context Syntax
2 | // ==============
3 |
4 | // Nested [function]
5 | // -----------------
6 | // Return a subset grid for nested context.
7 | // - $context :
8 | @function nested(
9 | $context
10 | ) {
11 | $context : parse-span($context);
12 | $span : susy-get(span, $context);
13 | $location : get-location($context);
14 | $columns : susy-get(columns, $context);
15 |
16 | @return susy-slice($span, $location, $columns);
17 | }
18 |
19 | // Nested [mixin]
20 | // --------------
21 | // Use a subset grid for a nested context
22 | // - $context :
23 | // - @content :
24 | @mixin nested(
25 | $context
26 | ) {
27 | $inspect : $context;
28 | $context : parse-span($context);
29 | $old : susy-get(columns);
30 | $susy : map-merge($susy, (columns: nested($context))) !global;
31 |
32 | @include susy-inspect(nested, $inspect);
33 | @content;
34 |
35 | $susy : map-merge($susy, (columns: $old)) !global;
36 | }
37 |
--------------------------------------------------------------------------------
/templates/admin/image-crop-summary.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a summary of an image crop effect.
5 | *
6 | * Available variables:
7 | * - data: The current configuration for this resize effect, including:
8 | * - width: The width of the resized image.
9 | * - height: The height of the resized image.
10 | * - anchor: The part of the image that will be retained after cropping.
11 | * - anchor_label: The translated label of the crop anchor.
12 | * - effect: The effect information, including:
13 | * - id: The effect identifier.
14 | * - label: The effect name.
15 | * - description: The effect description.
16 | */
17 | #}
18 | {% if data.width and data.height -%}
19 | {{ data.width|e }}×{{ data.height|e }}
20 | {%- else -%}
21 | {% if data.width %}
22 | {% trans %}
23 | width {{ data.width|e }}
24 | {% endtrans %}
25 | {% elseif data.height %}
26 | {% trans %}
27 | height {{ data.height|e }}
28 | {% endtrans %}
29 | {% endif %}
30 | {%- endif %}
31 |
--------------------------------------------------------------------------------
/templates/views/views-view-list.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a view template to display a list of rows.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes for the container.
8 | * - rows: A list of rows for this list.
9 | * - attributes: The row's HTML attributes.
10 | * - content: The row's contents.
11 | * - title: The title of this group of rows. May be empty.
12 | * - list: @todo.
13 | * - type: Starting tag will be either a ul or ol.
14 | * - attributes: HTML attributes for the list element.
15 | *
16 | * @see template_preprocess_views_view_list()
17 | */
18 | #}
19 | {% if attributes -%}
20 |
21 | {% endif %}
22 | {% if title %}
23 |
{{ title }}
24 | {% endif %}
25 |
26 | <{{ list.type }}{{ list.attributes }}>
27 |
28 | {% for row in rows %}
29 | {{ row.content }}
30 | {% endfor %}
31 |
32 | {{ list.type }}>
33 |
34 | {% if attributes -%}
35 |
36 | {% endif %}
37 |
--------------------------------------------------------------------------------
/templates/views/views-view-summary.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a list of summary lines.
5 | *
6 | * Available variables:
7 | * - rows: The rows contained in this view.
8 | * Each row contains:
9 | * - url: The summary link URL.
10 | * - link: The summary link text.
11 | * - count: The number of items under this grouping.
12 | * - attributes: HTML attributes to apply to each row.
13 | * - active: A flag indicating whtether the row is active.
14 | * - options: Flags indicating how the summary should be displayed.
15 | * This contains:
16 | * - count: A flag indicating whether the count should be displayed.
17 | *
18 | * @see template_preprocess_views_view_summary()
19 | */
20 | #}
21 |
22 | {% for row in rows %}
23 | - {{ row.link }}
24 | {% if options.count %}
25 | ({{ row.count }})
26 | {% endif %}
27 |
28 | {% endfor %}
29 |
30 |
--------------------------------------------------------------------------------
/templates/field/time.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a date / time element.
5 | *
6 | * Available variables
7 | * - timestamp: (optional) A UNIX timestamp for the datetime attribute. If the
8 | * datetime cannot be represented as a UNIX timestamp, use a valid datetime
9 | * attribute value in attributes.datetime.
10 | * - text: (optional) The content to display within the ' }}
31 | {% endfor %}
32 |
--------------------------------------------------------------------------------
/sass/_header.scss:
--------------------------------------------------------------------------------
1 | .main-header{
2 | height:300px;
3 | background:url(../images/hero.jpg) no-repeat center center;
4 | }
5 |
6 | .logo{
7 | @include span(2);
8 |
9 | img{
10 | max-width:100%;
11 | }
12 | }
13 |
14 | .main-navigation{
15 | margin-top:25px;
16 | @include span(5 last);
17 |
18 | li{
19 | float: left;
20 | position: relative;
21 | }
22 |
23 | ul ul{
24 | position: absolute;
25 | width:200px;
26 | background: #FFF;
27 | display: none;
28 |
29 | li{
30 | float:none;
31 |
32 | a{
33 | color:#2BA6CB;
34 | display: block;
35 | padding:5px;
36 | border-bottom: 1px solid #efefef;
37 |
38 | &:hover{
39 | background: #2BA6CB;
40 | color:#fff;
41 | text-decoration: none;
42 | }
43 | }
44 | }
45 | }
46 |
47 | a{
48 | display: block;
49 | color:#fff;
50 | text-decoration: none;
51 | padding: 0 10px;
52 |
53 | &:hover{
54 | text-decoration: underline;
55 | }
56 | }
57 | }
--------------------------------------------------------------------------------
/templates/content-edit/filter-tips.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a set of filter tips.
5 | *
6 | * Available variables:
7 | * - tips: Descriptions and a CSS ID in the form of 'module-name/filter-id'
8 | * (only used when 'long' is TRUE) for each filter in one or more text
9 | * formats.
10 | * - long: A flag indicating whether the passed-in filter tips contain extended
11 | * explanations, i.e. intended to be output on the path 'filter/tips'
12 | * (TRUE), or are in a short format, i.e. suitable to be displayed below a
13 | * form element. Defaults to FALSE.
14 | * - multiple: A flag indicating there is more than one filter tip.
15 | *
16 | * @see template_preprocess_filter_tips()
17 | */
18 | #}
19 | {% if multiple %}
20 | {{ 'Text Formats'|t }}
21 | {% endif %}
22 |
23 | {% if tips|length %}
24 | {% for name, tip in tips %}
25 |
26 | {% if multiple %}
27 |
28 |
{{ tip.name }}
29 | {% endif %}
30 |
31 | {% if tip.list|length %}
32 |
33 | {% for item in tip.list %}
34 | - {{ item.tip }}
35 | {% endfor %}
36 |
37 | {% endif %}
38 |
39 | {% if multiple %}
40 |
41 | {% endif %}
42 |
43 | {% endfor %}
44 | {% endif %}
45 |
--------------------------------------------------------------------------------
/templates/dataset/item-list.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for an item list.
5 | *
6 | * Available variables:
7 | * - items: A list of items. Each item contains:
8 | * - attributes: HTML attributes to be applied to each list item.
9 | * - value: The content of the list element.
10 | * - title: The title of the list.
11 | * - list_type: The tag for list element ("ul" or "ol").
12 | * - wrapper_attributes: HTML attributes to be applied to the list wrapper.
13 | * - attributes: HTML attributes to be applied to the list.
14 | * - empty: A message to display when there are no items. Allowed value is a
15 | * string or render array.
16 | * - context: A list of contextual data associated with the list. May contain:
17 | * - list_style: The custom list style.
18 | *
19 | * @see template_preprocess_item_list()
20 | */
21 | #}
22 | {% if context.list_style %}
23 | {%- set attributes = attributes.addClass('item-list__' ~ context.list_style) %}
24 | {% endif %}
25 | {% if items or empty %}
26 | {%- if title is not empty -%}
27 | {{ title }}
28 | {%- endif -%}
29 |
30 | {%- if items -%}
31 | <{{ list_type }}{{ attributes }}>
32 | {%- for item in items -%}
33 | {{ item.value }}
34 | {%- endfor -%}
35 | {{ list_type }}>
36 | {%- else -%}
37 | {{- empty -}}
38 | {%- endif -%}
39 | {%- endif %}
40 |
--------------------------------------------------------------------------------
/sass/susy/language/susy/_grids.scss:
--------------------------------------------------------------------------------
1 | // Grid Syntax
2 | // ===========
3 |
4 |
5 | // Layout
6 | // ------
7 | // Set a new layout using a shorthand
8 | // - $layout:
9 | // - $clean: boolean
10 | @mixin layout(
11 | $layout,
12 | $clean: false
13 | ) {
14 | $inspect : $layout;
15 | $susy : _get-layout($layout, $clean) !global;
16 |
17 | @include susy-inspect(layout, $inspect);
18 | }
19 |
20 |
21 | // Use Grid
22 | // --------
23 | // Use an arbitrary layout for a section of code
24 | // - $layout:
25 | // - $clean: boolean
26 | @mixin with-layout(
27 | $layout,
28 | $clean: false
29 | ) {
30 | $inspect : $layout;
31 | $old : $susy;
32 | $susy : _get-layout($layout, $clean) !global;
33 |
34 | @include susy-inspect(with-layout, $inspect);
35 |
36 | @content;
37 |
38 | $susy: $old !global;
39 | }
40 |
41 |
42 | // Layout
43 | // ------
44 | // Return a parsed layout map based on shorthand syntax
45 | // - $layout:
46 | @function layout(
47 | $layout: $susy
48 | ) {
49 | @return parse-grid($layout);
50 | }
51 |
52 |
53 | // Get Layout
54 | // ----------
55 | // Return a new layout based on current and given settings
56 | // - $layout:
57 | // - $clean: boolean
58 | @function _get-layout(
59 | $layout,
60 | $clean: false
61 | ) {
62 | $layout: layout($layout);
63 | @return if($clean, $layout, _susy-deep-merge($susy, $layout));
64 | }
65 |
--------------------------------------------------------------------------------
/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /* =======================================================================
2 | ## ++ Susy
3 | ========================================================================== */
4 | $susy:(
5 | container-position: center,
6 | last-flow: to,
7 | columns: 12,
8 | gutters: 1/4,
9 | gutter-position: inside,
10 | );
11 |
12 | /* =======================================================================
13 | ## ++ Globals
14 | ========================================================================== */
15 | html{
16 | font-size: 100%;
17 | }
18 |
19 | body{
20 | -webkit-font-smoothing: antialiased;
21 | background:#fff;
22 | font-family: sans-serif;
23 | }
24 |
25 | *{
26 | box-sizing:border-box;
27 | }
28 |
29 | .container{
30 | @include container(1100px);
31 | }
32 |
33 |
34 | /* =======================================================================
35 | ## ++ Cleafix
36 | ========================================================================== */
37 |
38 | /* float clearing for IE6 */
39 | * html .clearfix{
40 | height: 1%;
41 | overflow: visible;
42 | }
43 |
44 | /* float clearing for IE7 */
45 | *+html .clearfix{
46 | min-height: 1%;
47 | }
48 |
49 | /* float clearing for everyone else */
50 | .clearfix:after{
51 | clear: both;
52 | content: ".";
53 | display: block;
54 | height: 0;
55 | visibility: hidden;
56 | font-size: 0;
57 | }
58 |
59 | .clr{clear:both;}
60 |
61 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/sass/susy/su/_validation.scss:
--------------------------------------------------------------------------------
1 | // Math Validation
2 | // ===============
3 |
4 |
5 | // Valid Columns
6 | // -------------
7 | // Check that a column setting is valid.
8 | @function valid-columns(
9 | $columns,
10 | $silent: false
11 | ) {
12 | $type: type-of($columns);
13 | $return: null;
14 |
15 | @if $type == number and unitless($columns) {
16 | $return: $columns;
17 | } @else if $type == list {
18 | $fail: null;
19 | @each $col in $columns {
20 | @if type-of($col) == number {
21 | $fail: $fail or if(unitless($col), null, true);
22 | } @else {
23 | $fail: true;
24 | }
25 | }
26 | $return: if($fail, $return, $columns);
27 | }
28 |
29 | @if $return != $columns and not($silent) {
30 | $return: null;
31 | $warn: '$columns must be a unitless number or list of unitless numbers.';
32 | @warn $warn + ' Current value [#{$type}]: #{$columns}';
33 | }
34 |
35 | @return $return;
36 | }
37 |
38 |
39 | // Valid Gutters
40 | // -------------
41 | // Check that a gutter setting is valid.
42 | @function valid-gutters(
43 | $gutters,
44 | $silent: false
45 | ) {
46 | $type: type-of($gutters);
47 | $return: null;
48 |
49 | @if $type == number and unitless($gutters) {
50 | $return: $gutters;
51 | } @else if not($silent) {
52 | $warn: '$gutters must be a unitless number.';
53 | @warn $warn + ' Current value [#{$type}]: #{$gutters}';
54 | }
55 |
56 | @return $return;
57 | }
58 |
--------------------------------------------------------------------------------
/templates/layout/maintenance-page.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a single Drupal page while offline.
5 | *
6 | * All available variables are mirrored in page.html.twig.
7 | * Some may be blank but they are provided for consistency.
8 | *
9 | * @see template_preprocess_maintenance_page()
10 | */
11 | #}
12 |
13 | {% if logo %}
14 |
15 |
16 |
17 | {% endif %}
18 |
19 | {% if site_name or site_slogan %}
20 | {% if site_name %}
21 |
24 | {% endif %}
25 |
26 | {% if site_slogan %}
27 | {{ site_slogan }}
28 | {% endif %}
29 | {% endif %}
30 |
31 |
32 |
33 | {% if title %}
34 | {{ title }}
35 | {% endif %}
36 |
37 | {{ page.highlighted }}
38 |
39 | {{ page.content }}
40 |
41 |
42 | {% if page.sidebar_first %}
43 |
46 | {% endif %}
47 |
48 | {% if page.sidebar_second %}
49 |
52 | {% endif %}
53 |
54 | {% if page.footer %}
55 |
58 | {% endif %}
59 |
--------------------------------------------------------------------------------
/templates/admin/language-negotiation-configure-form.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a language negotiation configuration form.
5 | *
6 | * Available variables:
7 | * - language_types: A list of language negotiation types. Each language type
8 | * contains the following:
9 | * - type: The machine name for the negotiation type.
10 | * - title: The language negotiation type name.
11 | * - description: A description for how the language negotiation type operates.
12 | * - configurable: A radio element to toggle the table.
13 | * - table: A draggable table for the language detection methods of this type.
14 | * - children: Remaining form items for the group.
15 | * - attributes: A list of HTML attributes for the wrapper element.
16 | * - children: Remaining form items for all groups.
17 | *
18 | * @see template_preprocess_language_negotiation_configure_form()
19 | */
20 | #}
21 | {% for language_type in language_types %}
22 | {%
23 | set language_classes = [
24 | 'js-form-item',
25 | 'form-item',
26 | 'table-language-group',
27 | 'table-' ~ language_type.type ~ '-wrapper',
28 | ]
29 | %}
30 |
31 |
{{ language_type.title }}
32 |
{{ language_type.description }}
33 | {{ language_type.configurable }}
34 | {{ language_type.table }}
35 | {{ language_type.children }}
36 |
37 | {% endfor %}
38 | {{ children }}
39 |
--------------------------------------------------------------------------------
/templates/views/views-mini-pager.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a views mini-pager.
5 | *
6 | * Available variables:
7 | * - items: List of pager items.
8 | *
9 | * @see template_preprocess_views_mini_pager()
10 | */
11 | #}
12 | {% if items.previous or items.next %}
13 |
41 | {% endif %}
42 |
--------------------------------------------------------------------------------
/templates/block/block.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a block.
5 | *
6 | * Available variables:
7 | * - plugin_id: The ID of the block implementation.
8 | * - label: The configured label of the block if visible.
9 | * - configuration: A list of the block's configuration values.
10 | * - label: The configured label for the block.
11 | * - label_display: The display settings for the label.
12 | * - provider: The module or other provider that provided this block plugin.
13 | * - Block plugin specific settings will also be stored here.
14 | * - content: The content of this block.
15 | * - attributes: array of HTML attributes populated by modules, intended to
16 | * be added to the main container tag of this template.
17 | * - id: A valid HTML ID and guaranteed unique.
18 | * - title_attributes: Same as attributes, except applied to the main title
19 | * tag that appears in the template.
20 | * - title_prefix: Additional output populated by modules, intended to be
21 | * displayed in front of the main title tag that appears in the template.
22 | * - title_suffix: Additional output populated by modules, intended to be
23 | * displayed after the main title tag that appears in the template.
24 | *
25 | * @see template_preprocess_block()
26 | */
27 | #}
28 |
29 | {{ title_prefix }}
30 | {% if label %}
31 |
{{ label }}
32 | {% endif %}
33 | {{ title_suffix }}
34 | {% block content %}
35 | {{ content }}
36 | {% endblock %}
37 |
38 |
--------------------------------------------------------------------------------
/templates/layout/book-export-html.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for printed version of book outline.
5 | *
6 | * Available variables:
7 | * - title: Top level node title.
8 | * - head: Header tags.
9 | * - language: Language object.
10 | * - language_rtl: A flag indicating whether the current display language is a
11 | * right to left language.
12 | * - base_url: URL to the home page.
13 | * - contents: Nodes within the current outline rendered through
14 | * book-node-export-html.html.twig.
15 | *
16 | * @see template_preprocess_book_export_html()
17 | */
18 | #}
19 |
20 |
21 |
22 | {{ title }}
23 | {{ page.head }}
24 |
25 |
26 |
27 |
28 | {#
29 | The given node is embedded to its absolute depth in a top level section.
30 | For example, a child node with depth 2 in the hierarchy is contained in
31 | (otherwise empty) div elements corresponding to depth 0 and depth 1. This
32 | is intended to support WYSIWYG output - e.g., level 3 sections always look
33 | like level 3 sections, no matter their depth relative to the node selected
34 | to be exported as printer-friendly HTML.
35 | #}
36 |
37 | {% for i in 1..depth-1 if depth > 1 %}
38 |
39 | {% endfor %}
40 | {{ contents }}
41 | {% for i in 1..depth-1 if depth > 1 %}
42 |
43 | {% endfor %}
44 |
45 |
46 |
--------------------------------------------------------------------------------
/templates/admin/status-report.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the status report.
5 | *
6 | * Available variables:
7 | * - requirements: Contains multiple requirement instances.
8 | * Each requirement contains:
9 | * - title: The title of the requirement.
10 | * - value: (optional) The requirement's status.
11 | * - description: (optional) The requirement's description.
12 | * - severity_title: The title of the severity.
13 | * - severity_status: Indicates the severity status.
14 | *
15 | * @see template_preprocess_status_report()
16 | */
17 | #}
18 |
19 |
20 | {% for requirement in requirements %}
21 |
22 | {% if requirement.severity_status in ['warning', 'error'] %}
23 | |
24 | {{ requirement.severity_title }}
25 | {% else %}
26 | |
27 | {% endif %}
28 | {{ requirement.title }}
29 | |
30 |
31 | {{ requirement.value }}
32 | {% if requirement.description %}
33 | {{ requirement.description }}
34 | {% endif %}
35 | |
36 |
37 | {% endfor %}
38 |
39 |
40 |
--------------------------------------------------------------------------------
/templates/admin/update-version.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the version display of a project.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes suitable for a container element.
8 | * - title: The title of the project.
9 | * - version: A list of data about the latest released version, containing:
10 | * - version: The version number.
11 | * - date: The date of the release.
12 | * - download_link: The URL for the downloadable file.
13 | * - release_link: The URL for the release notes.
14 | *
15 | * @see template_preprocess_update_version()
16 | */
17 | #}
18 |
19 |
20 |
{{ title }}
21 |
25 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/templates/layout/install-page.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a Drupal installation page.
5 | *
6 | * All available variables are mirrored in page.html.twig.
7 | * Some may be blank but they are provided for consistency.
8 | *
9 | * @see template_preprocess_install_page()
10 | */
11 | #}
12 |
13 |
14 |
26 |
27 |
28 | {% if title %}
29 | {{ title }}
30 | {% endif %}
31 | {{ page.highlighted }}
32 | {{ page.content }}
33 |
34 |
35 | {% if page.sidebar_first %}
36 | {# /.layout-sidebar-first #}
39 | {% endif %}
40 |
41 | {% if page.sidebar_second %}
42 | {# /.layout-sidebar-second #}
45 | {% endif %}
46 |
47 | {% if page.footer %}
48 |
51 | {% endif %}
52 |
53 |
{# /.layout-container #}
54 |
--------------------------------------------------------------------------------
/templates/navigation/book-tree.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a book tree.
5 | *
6 | * Returns HTML for a wrapper for a book sub-tree.
7 | *
8 | * Available variables:
9 | * - items: A nested list of book items. Each book item contains:
10 | * - attributes: HTML attributes for the book item.
11 | * - below: The book item child items.
12 | * - title: The book link title.
13 | * - url: The book link URL, instance of \Drupal\Core\Url.
14 | * - is_expanded: TRUE if the link has visible children within the current
15 | * book tree.
16 | * - is_collapsed: TRUE if the link has children within the current book tree
17 | * that are not currently visible.
18 | * - in_active_trail: TRUE if the link is in the active trail.
19 | */
20 | #}
21 | {% import _self as book_tree %}
22 |
23 | {#
24 | We call a macro which calls itself to render the full tree.
25 | @see http://twig.sensiolabs.org/doc/tags/macro.html
26 | #}
27 | {{ book_tree.book_links(items, attributes, 0) }}
28 |
29 | {% macro book_links(items, attributes, menu_level) %}
30 | {% import _self as book_tree %}
31 | {% if items %}
32 | {% if menu_level == 0 %}
33 |
34 | {% else %}
35 |
36 | {% endif %}
37 | {% for item in items %}
38 | -
39 | {{ link(item.title, item.url) }}
40 | {% if item.below %}
41 | {{ book_tree.book_links(item.below, attributes, menu_level + 1) }}
42 | {% endif %}
43 |
44 | {% endfor %}
45 |
46 | {% endif %}
47 | {% endmacro %}
48 |
--------------------------------------------------------------------------------
/sass/_mixins.scss:
--------------------------------------------------------------------------------
1 | /* =======================================================================
2 | ## ++ Media Queries
3 | ========================================================================== */
4 |
5 | /*
6 | Used for media queries.
7 | Add these mixins in your normal scss flow.
8 |
9 | Eg.
10 | .container{
11 | width:1024px;
12 |
13 | @include tablets{
14 | width:90%;
15 | }
16 | }
17 | */
18 |
19 | @mixin lowresmonitors{
20 | @media screen and (max-width: 1350px){ @content;}
21 | }
22 |
23 | @mixin tablets{
24 | @media screen and (max-width: 1100px){ @content; }
25 | }
26 |
27 | @mixin phones{
28 | @media screen and (max-width: 720px){ @content; }
29 | }
30 |
31 | /* =======================================================================
32 | ## ++ Unit transform
33 | ========================================================================== */
34 |
35 | /*
36 | Used for making containers have width in percentages.
37 | Usage: define elemnt width in px and the width of parent elemnt in px.
38 | eg. .block{width:cp(512px, 1024px)} this will result in .block{width:50%;}
39 | */
40 |
41 | @function cp($target, $container) {
42 | @return ($target / $container) * 100%;
43 | }
44 |
45 | /*
46 | Used for making px values convert to rem values
47 | Usage: define font-size in px and it will convert to rems
48 | eg. font-size: rem(14px);
49 | */
50 |
51 | @function rem($target, $context: $base-font-size) {
52 | @if $target == 0 { @return 0 }
53 | @return $target / $context + 0rem;
54 | }
55 | $base-font-size:16px;
--------------------------------------------------------------------------------
/sass/susy/su/_settings.scss:
--------------------------------------------------------------------------------
1 | // Settings
2 | // ========
3 |
4 | // Version
5 | // -------
6 | $su-version: 1.1;
7 |
8 |
9 | // Default Settings
10 | // ----------------
11 | // PRIVATE: The basic settings
12 | $susy-defaults: (
13 | columns: 4,
14 | gutters: .25,
15 | );
16 |
17 |
18 | // User Settings
19 | // -------------
20 | // - Define the $susy variable with a map of your own settings.
21 | // - Set EITHER $column-width OR $container
22 | // - Use $column-width for static layouts
23 | $susy: () !default;
24 |
25 |
26 | // Susy Defaults
27 | // -------------
28 | // PRIVATE: Add defaults to Susy
29 | @mixin susy-defaults(
30 | $defaults
31 | ) {
32 | $susy-defaults: map-merge($susy-defaults, $defaults) !global;
33 | }
34 |
35 |
36 | // Susy Set
37 | // --------
38 | // Change one setting
39 | // - $key : setting name
40 | // - $value : setting value
41 | @mixin susy-set(
42 | $key-value...
43 | ) {
44 | $susy: _susy-deep-set($susy, $key-value...) !global;
45 | }
46 |
47 |
48 | // Susy Get
49 | // --------
50 | // Return one setting from a grid
51 | // - $key :
52 | // - $layout :
53 | @function susy-get(
54 | $key,
55 | $layout: map-merge($susy-defaults, $susy)
56 | ) {
57 | $layout: parse-grid($layout);
58 | $_options: $layout $susy $susy-defaults;
59 | $_break: false;
60 | $_return: null;
61 |
62 | @each $opt in $_options {
63 | @if type-of($opt) == map and not($_break) {
64 | $_keyset: _susy-deep-has-key($opt, $key...);
65 | @if $_keyset {
66 | $_return: _susy-deep-get($opt, $key...);
67 | $_break: true;
68 | }
69 | }
70 | }
71 |
72 | @return $_return;
73 | }
74 |
--------------------------------------------------------------------------------
/templates/navigation/menu--account.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a menu.
5 | *
6 | * Available variables:
7 | * - menu_name: The machine name of the menu.
8 | * - items: A nested list of menu items. Each menu item contains:
9 | * - attributes: HTML attributes for the menu item.
10 | * - below: The menu item child items.
11 | * - title: The menu link title.
12 | * - url: The menu link url, instance of \Drupal\Core\Url
13 | * - localized_options: Menu link localized options.
14 | * - is_expanded: TRUE if the link has visible children within the current
15 | * menu tree.
16 | * - is_collapsed: TRUE if the link has children within the current menu tree
17 | * that are not currently visible.
18 | * - in_active_trail: TRUE if the link is in the active trail.
19 | */
20 | #}
21 | {% import _self as menus %}
22 |
23 | {#
24 | We call a macro which calls itself to render the full tree.
25 | @see http://twig.sensiolabs.org/doc/tags/macro.html
26 | #}
27 | {{ menus.menu_links(items, attributes, 0) }}
28 |
29 | {% macro menu_links(items, attributes, menu_level) %}
30 | {% import _self as menus %}
31 | {% if items %}
32 | {% if menu_level == 0 %}
33 |
34 | {% else %}
35 |
36 | {% endif %}
37 | {% for item in items %}
38 | -
39 | {{ link(item.title, item.url, item.attributes.addClass('a-link')) }}
40 | {% if item.below %}
41 | {{ menus.menu_links(item.below, attributes, menu_level + 1) }}
42 | {% endif %}
43 |
44 | {% endfor %}
45 |
46 | {% endif %}
47 | {% endmacro %}
--------------------------------------------------------------------------------
/templates/navigation/menu.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a menu.
5 | *
6 | * Available variables:
7 | * - menu_name: The machine name of the menu.
8 | * - items: A nested list of menu items. Each menu item contains:
9 | * - attributes: HTML attributes for the menu item.
10 | * - below: The menu item child items.
11 | * - title: The menu link title.
12 | * - url: The menu link url, instance of \Drupal\Core\Url
13 | * - localized_options: Menu link localized options.
14 | * - is_expanded: TRUE if the link has visible children within the current
15 | * menu tree.
16 | * - is_collapsed: TRUE if the link has children within the current menu tree
17 | * that are not currently visible.
18 | * - in_active_trail: TRUE if the link is in the active trail.
19 | */
20 | #}
21 | {% import _self as menus %}
22 |
23 | {#
24 | We call a macro which calls itself to render the full tree.
25 | @see http://twig.sensiolabs.org/doc/tags/macro.html
26 | #}
27 | {{ menus.menu_links(items, attributes, 0) }}
28 |
29 | {% macro menu_links(items, attributes, menu_level) %}
30 | {% import _self as menus %}
31 | {% if items %}
32 | {% if menu_level == 0 %}
33 |
34 | {% else %}
35 |
46 | {% endif %}
47 | {% endmacro %}
48 |
--------------------------------------------------------------------------------
/templates/field/field--comment.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for comment fields.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes for the containing element.
8 | * - label_hidden: Whether to show the field label or not.
9 | * - title_attributes: HTML attributes for the title.
10 | * - label: The label for the field.
11 | * - title_prefix: Additional output populated by modules, intended to be
12 | * displayed in front of the main title tag that appears in the template.
13 | * - title_suffix: Additional title output populated by modules, intended to
14 | * be displayed after the main title tag that appears in the template.
15 | * - comments: List of comments rendered through comment.html.twig.
16 | * - content_attributes: HTML attributes for the form title.
17 | * - comment_form: The 'Add new comment' form.
18 | * - comment_display_mode: Is the comments are threaded.
19 | * - comment_type: The comment type bundle ID for the comment field.
20 | * - entity_type: The entity type to which the field belongs.
21 | * - field_name: The name of the field.
22 | * - field_type: The type of the field.
23 | * - label_display: The display settings for the label.
24 | *
25 | * @see template_preprocess_field()
26 | * @see comment_preprocess_field()
27 | */
28 | #}
29 |
30 | {% if comments and not label_hidden %}
31 | {{ title_prefix }}
32 | {{ label }}
33 | {{ title_suffix }}
34 | {% endif %}
35 |
36 | {{ comments }}
37 |
38 | {% if comment_form %}
39 | {{ 'Add new comment'|t }}
40 | {{ comment_form }}
41 | {% endif %}
42 |
43 |
44 |
--------------------------------------------------------------------------------
/templates/layout/html.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the basic structure of a single Drupal page.
5 | *
6 | * Variables:
7 | * - logged_in: A flag indicating if user is logged in.
8 | * - root_path: The root path of the current page (e.g., node, admin, user).
9 | * - node_type: The content type for the current node, if the page is a node.
10 | * - head_title: List of text elements that make up the head_title variable.
11 | * May contain or more of the following:
12 | * - title: The title of the page.
13 | * - name: The name of the site.
14 | * - slogan: The slogan of the site.
15 | * - page_top: Initial rendered markup. This should be printed before 'page'.
16 | * - page: The rendered page markup.
17 | * - page_bottom: Closing rendered markup. This variable should be printed after
18 | * 'page'.
19 | * - db_offline: A flag indicating if the database is offline.
20 | * - placeholder_token: The token for generating head, css, js and js-bottom
21 | * placeholders.
22 | *
23 | * @see template_preprocess_html()
24 | */
25 | #}
26 |
27 |
28 |
29 |
30 | {{ head_title|safe_join(' | ') }}
31 |
32 |
33 |
34 |
35 |
36 | {{ 'Skip to main content'|t }}
37 |
38 | {{ page_top }}
39 | {{ page }}
40 | {{ page_bottom }}
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/templates/misc/status-messages.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for status messages.
5 | *
6 | * Displays status, error, and warning messages, grouped by type.
7 | *
8 | * An invisible heading identifies the messages for assistive technology.
9 | * Sighted users see a colored box. See http://www.w3.org/TR/WCAG-TECHS/H69.html
10 | * for info.
11 | *
12 | * Add an ARIA label to the contentinfo area so that assistive technology
13 | * user agents will better describe this landmark.
14 | *
15 | * Available variables:
16 | * - message_list: List of messages to be displayed, grouped by type.
17 | * - status_headings: List of all status types.
18 | * - display: (optional) May have a value of 'status' or 'error' when only
19 | * displaying messages of that specific type.
20 | * - attributes: HTML attributes for the element, including:
21 | * - class: HTML classes.
22 | *
23 | * @see template_preprocess_status_messages()
24 | */
25 | #}
26 | {% for type, messages in message_list %}
27 |
28 | {% if type == 'error' %}
29 |
30 | {% endif %}
31 | {% if status_headings[type] %}
32 |
{{ status_headings[type] }}
33 | {% endif %}
34 | {% if messages|length > 1 %}
35 |
36 | {% for message in messages %}
37 | - {{ message }}
38 | {% endfor %}
39 |
40 | {% else %}
41 | {{ messages|first }}
42 | {% endif %}
43 | {% if type == 'error' %}
44 |
45 | {% endif %}
46 |
47 | {% endfor %}
48 |
--------------------------------------------------------------------------------
/sass/susy/output/support/_background.scss:
--------------------------------------------------------------------------------
1 | // Background Properties
2 | // =====================
3 |
4 | // Susy Background Image
5 | // ---------------------
6 | // Check for an existing support mixin, or provide a simple fallback.
7 | // - $image:
8 | @mixin susy-background-image(
9 | $image
10 | ) {
11 | @if susy-support(background-image, (mixin: background-image), $warn: false) {
12 | @include background-image($image...);
13 | } @else {
14 | background-image: $image;
15 | }
16 | }
17 |
18 | // Susy Background Size
19 | // ---------------------
20 | // Check for an existing support mixin, or provide a simple fallback.
21 | // - $image:
22 | @mixin susy-background-size(
23 | $size
24 | ) {
25 | @if susy-support(background-options, (mixin: background-size)) {
26 | @include background-size($size);
27 | } @else {
28 | background-size: $size;
29 | }
30 | }
31 |
32 | // Susy Background Origin
33 | // ----------------------
34 | // Check for an existing support mixin, or provide a simple fallback.
35 | // - $image:
36 | @mixin susy-background-origin(
37 | $origin
38 | ) {
39 | @if susy-support(background-options, (mixin: background-origin)) {
40 | @include background-origin($origin);
41 | } @else {
42 | background-origin: $origin;
43 | }
44 | }
45 |
46 | // Susy Background Clip
47 | // --------------------
48 | // Check for an existing support mixin, or provide a simple fallback.
49 | // - $image:
50 | @mixin susy-background-clip(
51 | $clip
52 | ) {
53 | @if susy-support(background-options, (mixin: background-clip)) {
54 | @include background-clip($clip);
55 | } @else {
56 | background-clip: $clip;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | var gulp = require('gulp');
2 | var livereload = require('gulp-livereload')
3 | var uglify = require('gulp-uglifyjs');
4 | var sass = require('gulp-sass');
5 | var autoprefixer = require('gulp-autoprefixer');
6 | var sourcemaps = require('gulp-sourcemaps');
7 | var imagemin = require('gulp-imagemin');
8 | var pngquant = require('imagemin-pngquant');
9 |
10 |
11 |
12 |
13 | gulp.task('imagemin', function () {
14 | return gulp.src('./themes/custom/endymion/images/*')
15 | .pipe(imagemin({
16 | progressive: true,
17 | svgoPlugins: [{removeViewBox: false}],
18 | use: [pngquant()]
19 | }))
20 | .pipe(gulp.dest('./themes/custom/endymion/images'));
21 | });
22 |
23 |
24 | gulp.task('sass', function () {
25 | gulp.src('./themes/custom/endymion/sass/**/*.scss')
26 | .pipe(sourcemaps.init())
27 | .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
28 | .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 7', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'))
29 | .pipe(sourcemaps.write('./'))
30 | .pipe(gulp.dest('./themes/custom/endymion/css'));
31 | });
32 |
33 |
34 | gulp.task('uglify', function() {
35 | gulp.src('./themes/custom/endymion/lib/*.js')
36 | .pipe(uglify('main.js'))
37 | .pipe(gulp.dest('./themes/custom/endymion/js'))
38 | });
39 |
40 | gulp.task('watch', function(){
41 | livereload.listen();
42 |
43 | gulp.watch('./themes/custom/endymion/sass/**/*.scss', ['sass']);
44 | gulp.watch('./themes/custom/endymion/lib/*.js', ['uglify']);
45 | gulp.watch(['./themes/custom/endymion/css/style.css', './themes/custom/endymion/**/*.twig', './themes/custom/endymion/js/*.js'], function (files){
46 | livereload.changed(files)
47 | });
48 | });
--------------------------------------------------------------------------------
/templates/navigation/toolbar.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for the administrative toolbar.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes for the wrapper.
8 | * - toolbar_attributes: HTML attributes to apply to the toolbar.
9 | * - toolbar_heading: The heading or label for the toolbar.
10 | * - tabs: List of tabs for the toolbar.
11 | * - attributes: HTML attributes for the tab container.
12 | * - link: Link or button for the menu tab.
13 | * - trays: Toolbar tray list, each associated with a tab. Each tray in trays
14 | * contains:
15 | * - attributes: HTML attributes to apply to the tray.
16 | * - label: The tray's label.
17 | * - links: The tray menu links.
18 | * - remainder: Any non-tray, non-tab elements left to be rendered.
19 | *
20 | * @see template_preprocess_toolbar()
21 | */
22 | #}
23 |
24 |
45 | {{ remainder }}
46 |
47 |
--------------------------------------------------------------------------------
/templates/admin/views-ui-build-group-filter-form.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for Views UI build group filter form.
5 | *
6 | * Available variables:
7 | * - form: A render element representing the form. Contains the following:
8 | * - form_description: The exposed filter's description.
9 | * - expose_button: The button to toggle the expose filter form.
10 | * - group_button: Toggle options between single and grouped filters.
11 | * - label: A filter label input field.
12 | * - description: A filter description field.
13 | * - value: The filters available values.
14 | * - optional: A checkbox to require this filter or not.
15 | * - remember: A checkbox to remember selected filter value(s) (per user).
16 | * - widget: Radio Buttons to select the filter widget.
17 | * - add_group: A button to add another row to the table.
18 | * - more: A details element for additional field exposed filter fields.
19 | * - table: A rendered table element of the group filter form.
20 | *
21 | * @see template_preprocess_views_ui_build_group_filter_form()
22 | */
23 | #}
24 | {{ form.form_description }}
25 | {{ form.expose_button }}
26 | {{ form.group_button }}
27 |
28 | {{ form.optional }}
29 | {{ form.remember }}
30 |
31 |
32 | {{ form.widget }}
33 | {{ form.label }}
34 | {{ form.description }}
35 |
36 | {#
37 | Render the rest of the form elements excluding elements that are rendered
38 | elsewhere.
39 | #}
40 | {{ form|without(
41 | 'form_description',
42 | 'expose_button',
43 | 'group_button',
44 | 'optional',
45 | 'remember',
46 | 'widget',
47 | 'label',
48 | 'description',
49 | 'add_group',
50 | 'more'
51 | )
52 | }}
53 | {{ table }}
54 | {{ form.add_group }}
55 | {{ form.more }}
56 |
--------------------------------------------------------------------------------
/templates/admin/views-ui-expose-filter-form.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for exposed filter form.
5 | *
6 | * Available variables:
7 | * - form_description: The exposed filter's description.
8 | * - expose_button: The button to toggle the expose filter form.
9 | * - group_button: Toggle options between single and grouped filters.
10 | * - required: A checkbox to require this filter or not.
11 | * - label: A filter label input field.
12 | * - description: A filter description field.
13 | * - operator: The operators for how the filters value should be treated.
14 | * - #type: The operator type.
15 | * - value: The filters available values.
16 | * - use_operator: Checkbox to allow the user to expose the operator.
17 | * - more: A details element for additional field exposed filter fields.
18 | */
19 | #}
20 | {{ form.form_description }}
21 | {{ form.expose_button }}
22 | {{ form.group_button }}
23 | {{ form.required }}
24 | {{ form.label }}
25 | {{ form.description }}
26 |
27 | {{ form.operator }}
28 | {{ form.value }}
29 |
30 | {% if form.use_operator %}
31 |
32 | {{ form.use_operator }}
33 |
34 | {% endif %}
35 |
36 | {#
37 | Collect a list of elements printed to exclude when printing the
38 | remaining elements.
39 | #}
40 | {% set remaining_form = form|without(
41 | 'form_description',
42 | 'expose_button',
43 | 'group_button',
44 | 'required',
45 | 'label',
46 | 'description',
47 | 'operator',
48 | 'value',
49 | 'use_operator',
50 | 'more'
51 | )
52 | %}
53 |
54 | {#
55 | Only output the right column markup if there's a left column to begin with.
56 | #}
57 | {% if form.operator['#type'] %}
58 |
59 | {{ remaining_form }}
60 |
61 | {% else %}
62 | {{ remaining_form }}
63 | {% endif %}
64 |
65 | {{ form.more }}
66 |
--------------------------------------------------------------------------------
/sass/susy/language/susy/_isolate.scss:
--------------------------------------------------------------------------------
1 | // Isolation Syntax
2 | // ================
3 |
4 |
5 | // Isolate [Mixin]
6 | // ---------------
7 | // Set isolation as an override.
8 | // - $location:
9 | @mixin isolate(
10 | $isolate: 1
11 | ) {
12 | $inspect: $isolate;
13 |
14 | $output: (
15 | push: isolate($isolate),
16 | flow: susy-get(flow, $isolate),
17 | );
18 |
19 | @include susy-inspect(isolate, $inspect);
20 | @include isolate-output($output...);
21 | }
22 |
23 |
24 | // Isolate [function]
25 | // ------------------
26 | // Return an isolation offset width.
27 | // - $location:
28 | @function isolate(
29 | $isolate: 1
30 | ) {
31 | $isolate: parse-span($isolate);
32 | $isolation: susy-get(span, $isolate);
33 |
34 | @if $isolation and not(get-location($isolate)) {
35 | $new: (
36 | span: null,
37 | location: $isolation,
38 | );
39 | $isolate: map-merge($isolate, $new);
40 | }
41 |
42 | @return get-isolation($isolate);
43 | }
44 |
45 |
46 | // Get Isolation
47 | // -------------
48 | // Return the isolation offset width
49 | // - $input: