Skip to content
Snippets Groups Projects
Commit f3e2e681 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2489664 by sumitmadan, davidhernandez, Manjit.Singh, Cottser: Remove...

Issue #2489664 by sumitmadan, davidhernandez, Manjit.Singh, Cottser: Remove unnecessary markup from core templates, a.k.a. divitis
parent eed1c99c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Showing
with 83 additions and 132 deletions
......@@ -18,8 +18,6 @@
* @ingroup themeable
*/
#}
<div>
{{ title_prefix }}
{% if not full %}
<h2{{ title_attributes }}>{{ title }}</h2>
......@@ -27,5 +25,3 @@
{{ title_suffix }}
{{ content }}
</div>
......@@ -23,11 +23,8 @@
{% endif %}
{% if tips|length %}
{% if multiple %}
<div>
{% endif %}
{% for name, tip in tips %}
{% if multiple %}
<div{{ attributes }}>
<h3>{{ tip.name }}</h3>
......@@ -44,9 +41,6 @@
{% if multiple %}
</div>
{% endif %}
{% endfor %}
{% if multiple %}
</div>
{% endif %}
{% endfor %}
{% endif %}
......@@ -17,9 +17,7 @@
*/
#}
{% if forums_defined %}
<div>
{{ forums }}
{{ topics }}
{{ topics_pager }}
</div>
{% endif %}
......@@ -13,13 +13,7 @@
*/
#}
<div{{ attributes }}>
{% if data.preview %}
<div>
{{ data.preview }}
</div>
{% endif %}
<div>
{# Render widget data without the image preview that was output already. #}
{{ data|without('preview') }}
</div>
</div>
......@@ -15,10 +15,6 @@
*/
#}
{% spaceless %}
<div>
{% if title %}
<div>{{ title }}</div>
{% endif %}
<div>{{ link }}</div>
</div>
{{ title }}
{{ link }}
{% endspaceless %}
......@@ -17,6 +17,4 @@
* @ingroup themeable
*/
#}
<div>
{{ form }}
</div>
......@@ -63,11 +63,9 @@
<a href="{{ url }}">{{ title }}</a>
</h3>
{{ title_suffix }}
<div>
{% if snippet %}
<p{{ content_attributes }}>{{ snippet }}</p>
{% endif %}
{% if info %}
<p>{{ info }}</p>
{% endif %}
</div>
......@@ -22,11 +22,7 @@
</a>
{% endif %}
{% if site_name %}
<div>
<a href="{{ url('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
</div>
{% endif %}
{% if site_slogan %}
<div>{{ site_slogan }}</div>
{% endif %}
{{ site_slogan }}
{% endblock %}
......@@ -24,6 +24,4 @@
<h4{{ title_attributes.addClass(title_classes) }}>{{ title }}</h4>
{% endif %}
{{ content }}
{% if description %}
<div>{{ description }}</div>
{% endif %}
{{ description }}
......@@ -19,15 +19,8 @@
{%- if title -%}
<summary{{ summary_attributes }}>{{ title }}</summary>
{%- endif -%}
<div>
{%- if description -%}
<div>{{ description }}</div>
{%- endif -%}
{%- if children -%}
{{ description }}
{{ children }}
{%- endif -%}
{%- if value -%}
{{ value }}
{%- endif -%}
</div>
</details>
......@@ -19,10 +19,10 @@
*/
#}
{%- if items or empty -%}
<div>
{%- if title is not empty -%}
<h3>{{ title }}</h3>
{%- endif -%}
{%- if items -%}
<{{ list_type }}{{ attributes }}>
{%- for item in items -%}
......@@ -32,5 +32,4 @@
{%- else -%}
{{- empty -}}
{%- endif -%}
</div>
{%- endif %}
......@@ -11,8 +11,6 @@
* @ingroup themeable
*/
#}
<div>
<header role="banner">
{% if logo %}
<a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">
......@@ -21,7 +19,6 @@
{% endif %}
{% if site_name or site_slogan %}
<div>
{% if site_name %}
<h1>
<a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
......@@ -31,9 +28,7 @@
{% if site_slogan %}
<div>{{ site_slogan }}</div>
{% endif %}
</div>
{% endif %}
</header>
<main role="main">
......@@ -63,5 +58,3 @@
{{ page.footer }}
</footer>
{% endif %}
</div>
......@@ -15,8 +15,8 @@
#}
{% if logged_in %}
{% if status is constant('MARK_NEW') %}
<span>{{ 'new'|t }}</span>
{{ 'new'|t }}
{% elseif status is constant('MARK_UPDATED') %}
<span>{{ 'updated'|t }}</span>
{{ 'updated'|t }}
{% endif %}
{% endif %}
......@@ -31,7 +31,5 @@
<h2><a href="{{ url }}">{{ name }}</a></h2>
{% endif %}
{{ title_suffix }}
<div>
{{ content }}
</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment