Loading inspector_theme.info.yml +1 −1 Changes for inspector_theme.info.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -14,4 +14,4 @@ regions: sidebar_second: Sidebar Second libraries: - inspector/debug - inspector_theme/debug templates/block/block.html.twig 0 → 100644 +47 −0 Changes for templates/block/block.html.twig: 47 added lines, 0 removed lines. Original line number Diff line number Diff line {# /** * @file * Theme override to display a block. * * Available variables: * - plugin_id: The ID of the block implementation. * - label: The configured label of the block if visible. * - configuration: A list of the block's configuration values. * - label: The configured label for the block. * - label_display: The display settings for the label. * - provider: The module or other provider that provided this block plugin. * - Block plugin specific settings will also be stored here. * - content: The content of this block. * - attributes: array of HTML attributes populated by modules, intended to * be added to the main container tag of this template. * - id: A valid HTML ID and guaranteed unique. * - title_attributes: Same as attributes, except applied to the main title * tag that appears in the template. * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. * - title_suffix: Additional output populated by modules, intended to be * displayed after the main title tag that appears in the template. * * @see template_preprocess_block() */ #} {% embed "@inspector_theme/utils/debug-entity.twig" %} {% block label %} <div class="name">Block : ({{ configuration.provider }})</div> <div class="type">Plugin ID : ({{ plugin_id }})</div> {% endblock %} {% block content %} {% set classes = [ 'block', 'block-' ~ configuration.provider|clean_class, 'block-' ~ plugin_id|clean_class, ] %} <div{{ attributes.addClass(classes) }}> {{ content }} </div> {% endblock %} {% block vars %}{% endblock %} {% endembed %} templates/content/media.html.twig 0 → 100644 +33 −0 Changes for templates/content/media.html.twig: 33 added lines, 0 removed lines. Original line number Diff line number Diff line {# /** * @file * Theme override to display a media item. * * Available variables: * - name: Name of the media. * - content: Media content. * * @see template_preprocess_media() * * @ingroup themeable */ #} {% embed "@inspector_theme/utils/debug-entity.twig" %} {% block label %} <div class="name">Media : ({{ name }})</div> <div class="type">View Mode : ({{ view_mode }})</div> {% endblock %} {% block content %} {% set classes = [ 'media', 'media--type-' ~ media.bundle()|clean_class, not media.isPublished() ? 'media--unpublished', view_mode ? 'media--view-mode-' ~ view_mode|clean_class, ] %} <article{{ attributes.addClass(classes) }}> {{ content }} </article> {% endblock %} {% block vars %}{% endblock %} {% endembed %} templates/node.html.twig→templates/content/node.html.twig +0 −0 File moved. View file templates/content/taxonomy-term.html.twig 0 → 100644 +36 −0 Changes for templates/content/taxonomy-term.html.twig: 36 added lines, 0 removed lines. Original line number Diff line number Diff line {# /** * @file * Theme override to display a taxonomy term. * * Available variables: * - url: URL of the current term. * - name: (optional) Name of the current term. * - content: Items for the content of the term (fields and description). * Use 'content' to print them all, or print a subset such as * 'content.description'. Use the following code to exclude the * printing of a given child element: * @code * {{ content|without('description') }} * @endcode * - attributes: HTML attributes for the wrapper. * - page: Flag for the full page state. * - term: The taxonomy term entity, including: * - id: The ID of the taxonomy term. * - bundle: Machine name of the current vocabulary. * - view_mode: View mode, e.g. 'full', 'teaser', etc. * * @see template_preprocess_taxonomy_term() */ #} {% embed "@inspector_theme/utils/debug-entity.twig" %} {% block label %} <div class="name">Taxonomy Term : ({{ term.bundle }})</div> <div class="type">View Mode : ({{ view_mode }})</div> {% endblock %} {% block content %} {{ content }} {% endblock %} {% block vars %}{% endblock %} {% endembed %} Loading
inspector_theme.info.yml +1 −1 Changes for inspector_theme.info.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -14,4 +14,4 @@ regions: sidebar_second: Sidebar Second libraries: - inspector/debug - inspector_theme/debug
templates/block/block.html.twig 0 → 100644 +47 −0 Changes for templates/block/block.html.twig: 47 added lines, 0 removed lines. Original line number Diff line number Diff line {# /** * @file * Theme override to display a block. * * Available variables: * - plugin_id: The ID of the block implementation. * - label: The configured label of the block if visible. * - configuration: A list of the block's configuration values. * - label: The configured label for the block. * - label_display: The display settings for the label. * - provider: The module or other provider that provided this block plugin. * - Block plugin specific settings will also be stored here. * - content: The content of this block. * - attributes: array of HTML attributes populated by modules, intended to * be added to the main container tag of this template. * - id: A valid HTML ID and guaranteed unique. * - title_attributes: Same as attributes, except applied to the main title * tag that appears in the template. * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. * - title_suffix: Additional output populated by modules, intended to be * displayed after the main title tag that appears in the template. * * @see template_preprocess_block() */ #} {% embed "@inspector_theme/utils/debug-entity.twig" %} {% block label %} <div class="name">Block : ({{ configuration.provider }})</div> <div class="type">Plugin ID : ({{ plugin_id }})</div> {% endblock %} {% block content %} {% set classes = [ 'block', 'block-' ~ configuration.provider|clean_class, 'block-' ~ plugin_id|clean_class, ] %} <div{{ attributes.addClass(classes) }}> {{ content }} </div> {% endblock %} {% block vars %}{% endblock %} {% endembed %}
templates/content/media.html.twig 0 → 100644 +33 −0 Changes for templates/content/media.html.twig: 33 added lines, 0 removed lines. Original line number Diff line number Diff line {# /** * @file * Theme override to display a media item. * * Available variables: * - name: Name of the media. * - content: Media content. * * @see template_preprocess_media() * * @ingroup themeable */ #} {% embed "@inspector_theme/utils/debug-entity.twig" %} {% block label %} <div class="name">Media : ({{ name }})</div> <div class="type">View Mode : ({{ view_mode }})</div> {% endblock %} {% block content %} {% set classes = [ 'media', 'media--type-' ~ media.bundle()|clean_class, not media.isPublished() ? 'media--unpublished', view_mode ? 'media--view-mode-' ~ view_mode|clean_class, ] %} <article{{ attributes.addClass(classes) }}> {{ content }} </article> {% endblock %} {% block vars %}{% endblock %} {% endembed %}
templates/content/taxonomy-term.html.twig 0 → 100644 +36 −0 Changes for templates/content/taxonomy-term.html.twig: 36 added lines, 0 removed lines. Original line number Diff line number Diff line {# /** * @file * Theme override to display a taxonomy term. * * Available variables: * - url: URL of the current term. * - name: (optional) Name of the current term. * - content: Items for the content of the term (fields and description). * Use 'content' to print them all, or print a subset such as * 'content.description'. Use the following code to exclude the * printing of a given child element: * @code * {{ content|without('description') }} * @endcode * - attributes: HTML attributes for the wrapper. * - page: Flag for the full page state. * - term: The taxonomy term entity, including: * - id: The ID of the taxonomy term. * - bundle: Machine name of the current vocabulary. * - view_mode: View mode, e.g. 'full', 'teaser', etc. * * @see template_preprocess_taxonomy_term() */ #} {% embed "@inspector_theme/utils/debug-entity.twig" %} {% block label %} <div class="name">Taxonomy Term : ({{ term.bundle }})</div> <div class="type">View Mode : ({{ view_mode }})</div> {% endblock %} {% block content %} {{ content }} {% endblock %} {% block vars %}{% endblock %} {% endembed %}