-
-
-
-
+ {#
#} + {#
#} + {#
#} + {#
#} + +
+
+
+
+ + {# main #}
{# EOF:main #}
+ + + +{#sidebars#} {% if page.sidebar_first %} {% endif %} +{#end of sidebars#} + +
diff --git a/templates/field--entity-reference.html.twig b/templates/field--entity-reference.html.twig new file mode 100644 index 0000000..b227589 --- /dev/null +++ b/templates/field--entity-reference.html.twig @@ -0,0 +1,65 @@ +{# +/** + * @file + * Magazine+'s theme override for taxonomy term fields. + * + * Available variables: + * - attributes: HTML attributes for the containing element. + * - label_hidden: Whether to show the field label or not. + * - title_attributes: HTML attributes for the label. + * - label: The label for the field. + * - content_attributes: HTML attributes for the content. + * - items: List of all the field items. Each item contains: + * - attributes: List of HTML attributes for each item. + * - content: The field item's content. + * - entity_type: The entity type to which the field belongs. + * - field_name: The name of the field. + * - field_type: The type of the field. + * - label_display: The display settings for the label. + * + * @see template_preprocess_field() + * @see bartik_preprocess_field() + */ +#} +{% + set classes = [ + 'field', + 'field--name-' ~ field_name|clean_class, + 'field--type-' ~ field_type|clean_class, + 'field--label-' ~ label_display, + 'field--entity-reference-target-type-' ~ entity_reference_target_type|clean_class, + 'clearfix', + ] +%} +{% + set title_classes = [ + 'field__label', + label_display == 'inline' ? 'inline', + ] +%} +{% if label_hidden %} + {% if multiple %} + + {% for item in items %} + {{ item.content }}
+ {% endfor %} +
+ {% else %} + {% for item in items %} + {{ item.content }}
+ {% endfor %} + {% endif %} +{% else %} + + {{ label }}
+ {% if multiple %} +
+ {% endif %} + {% for item in items %} + {{ item.content }}
+ {% endfor %} + {% if multiple %} +
+ {% endif %} +
+{% endif %} diff --git a/templates/media--image--hero.html.twig b/templates/media--image--hero.html.twig new file mode 100644 index 0000000..0e45077 --- /dev/null +++ b/templates/media--image--hero.html.twig @@ -0,0 +1,29 @@ +{# +/** + * @file + * Theme override to display a media item. + * + * Available variables: + * - name: Name of the media. + * - content: Media content. + * + * @see template_preprocess_media() + * + + * @ingroup themeable + */ +#} +{% + set classes = [ + 'media', + 'media--type-' ~ media.bundle()|clean_class, + not media.isPublished() ? 'media--unpublished', + view_mode ? 'media--view-mode-' ~ view_mode|clean_class, + ] +%} + + {{ title_suffix.contextual_links }} + {% if content %} + {{ content }} + {% endif %} + diff --git a/templates/menu--author_tasks.html.twig b/templates/menu--author_tasks.html.twig index c745499..2cb096c 100644 --- a/templates/menu--author_tasks.html.twig +++ b/templates/menu--author_tasks.html.twig @@ -18,7 +18,6 @@ * - in_active_trail: TRUE if the link is in the active trail. */ #} -{{ dump() }} {% import _self as menus %} {#