Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from forumone/add-raw-remove-if-has
added |raw where needed and removed if has_? calls
- Loading branch information
Showing
48 changed files
with
89 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...er-kit/_patterns/01-base/02-html-elements/02-text/02-inline-elements/inline-elements.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<img {% if custom_classes %}class="{{ custom_classes }}" {% endif %}src="{{ img.hero.src }}" alt="{{ img.hero.alt }}"{% if img.hero.height %} height="{{ img.hero.height }}"{% endif %}{% if img.hero.width %} width="{{ img.hero.width }}"{% endif %}> | ||
<img {% if custom_classes %}class="{{ custom_classes }}" {% endif %}src="{{ img.hero.src }}" alt="{{ img.hero.alt|raw }}"{% if img.hero.height %} height="{{ img.hero.height }}"{% endif %}{% if img.hero.width %} width="{{ img.hero.width }}"{% endif %}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<img {% if custom_classes %}class="{{ custom_classes }}" {% endif %}src="{{ img.thumbnail.src }}" alt="{{ img.thumbnail.alt }}"{% if img.thumbnail.height %} height="{{ img.thumbnail.height }}"{% endif %}{% if img.thumbnail.width %} width="{{ img.thumbnail.width }}"{% endif %}> | ||
<img {% if custom_classes %}class="{{ custom_classes }}" {% endif %}src="{{ img.thumbnail.src }}" alt="{{ img.thumbnail.alt|raw }}"{% if img.thumbnail.height %} height="{{ img.thumbnail.height }}"{% endif %}{% if img.thumbnail.width %} width="{{ img.thumbnail.width }}"{% endif %}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="author"> | ||
<a href="{{ url }}">{{ author }}</a> | ||
<a href="{{ url|raw }}">{{ author|raw }}</a> | ||
</div> |
6 changes: 3 additions & 3 deletions
6
_starter-kit/_patterns/03-components/breadcrumb/breadcrumb.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% if is_button_tag %} | ||
<button class="button {{ modifier_classes }}"{% if is_disabled %} disabled{% endif %}>{{ text }}</button> | ||
<button class="button {{ modifier_classes }}"{% if is_disabled %} disabled{% endif %}>{{ text|raw }}</button> | ||
{% else %} | ||
<a href="{{ url }}" class="button {{ modifier_classes }}">{{ text }}</a> | ||
<a href="{{ url|raw }}" class="button {{ modifier_classes }}">{{ text|raw }}</a> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="copyright"> | ||
© {{ year.long }} Copyright {{ site_name }}. | ||
© {{ year.long }} Copyright {{ site_name|raw }}. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="file"> | ||
<img class="file__icon" alt="{{ file.mime }}" src="{{ file.icon }}"> | ||
<a href="#" class="file__link">{{ file.name }}</a> | ||
<span class="file__size">({{ file.size}})</span> | ||
<img class="file__icon" alt="{{ file.mime|raw }}" src="{{ file.icon }}"> | ||
<a href="#" class="file__link">{{ file.name|raw }}</a> | ||
<span class="file__size">({{ file.size }})</span> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
_starter-kit/_patterns/03-components/form-item/form-item--checkbox/form-item--checkbox.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="form-item form-item--checkbox"> | ||
<input class="form-item__checkbox" id="{{ checkbox_id }}" type="checkbox" {% if checkbox_disabled %}disabled{% endif %} {% if checkbox_checked %}checked{% endif %}> | ||
<label class="form-item__label is-after" for="{{ checkbox_id }}">{{ checkbox_label}}</label> | ||
<label class="form-item__label is-after" for="{{ checkbox_id }}">{{ checkbox_label|raw }}</label> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
_starter-kit/_patterns/03-components/form-item/form-item--radio/form-item--radio.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="form-item form-item--radio"> | ||
<input class="form-item__radio" id="{{ radio_option_id }}" name="radios" aria-describedby="edit-radios-description" type="radio"{% if radio_option_disabled %} disabled{% endif %}> | ||
<label class="form-item__label is-after" for="{{ radio_option_id }}">{{ radio_option_label }}</label> | ||
<label class="form-item__label is-after" for="{{ radio_option_id }}">{{ radio_option_label|raw }}</label> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ul class="list {{ modifier_classes }}"> | ||
{% for item in list %} | ||
<li>{{ item.text }}</li> | ||
<li>{{ item.text|raw }}</li> | ||
{% endfor %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
_starter-kit/_patterns/03-components/page-title/page-title.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<h1 class="page-title">{{ page_title }}</h1> | ||
<h1 class="page-title">{{ page_title|raw }}</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<div class="progress" data-drupal-progress> | ||
{% if label %} | ||
<div class="progress__label">{{ label }}</div> | ||
<div class="progress__label">{{ label|raw }}</div> | ||
{% endif %} | ||
<div class="progress__track"> | ||
<div class="progress__bar" style="width: {{ percent }}"></div> | ||
<div class="progress__bar" style="width: {{ percent|raw }}"></div> | ||
</div> | ||
<div class="progress__percentage">{{ percent }}</div> | ||
<div class="progress__description">{{ message }}</div> | ||
<div class="progress__percentage">{{ percent|raw }}</div> | ||
<div class="progress__description">{{ message|raw }}</div> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
_starter-kit/_patterns/03-components/site-logo/site-logo.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<a class="site-logo" href="{{ url }}" title="{{ 'Home'|t }}" rel="home"> | ||
<img class="site-logo__image" src="{{ site_logo }}" alt="{{ 'Home'|t }}" /> | ||
<a class="site-logo" href="{{ url|raw }}" title="{{ 'Home'|t }}" rel="home"> | ||
<img class="site-logo__image" src="{{ site_logo|raw }}" alt="{{ 'Home'|t }}" /> | ||
</a> |
Oops, something went wrong.