Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% if ga_event_category %}data-ga-event-category="{{ ga_event_category }}"{% endif %}>
{% if value.image %}
{% image value.image max-256x256 format-webp preserve-svg as img %}
<img src="{{img.url}}" class="w-100" alt="{{img.image.title}}">
<img src="{{img.url}}" class="w-100" alt="{{img.image.alt}}">
{% elif value.display_text %}
{{value.display_text|safe}}
{% elif value.page %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/blocks/card_block.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="card mb-3 {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %}>
{% if self.image %}
{% image self.image fill-800x450 format-webp preserve-svg as card_img %}
<img class="card-img-top w-100" src="{{card_img.url}}" alt="{{card_img.title}}">
<img class="card-img-top w-100" src="{{card_img.url}}" alt="{{card_img.alt}}">
{% endif %}
<div class="card-body">
{% if self.title %}<h5 class="card-title">{{self.title}}</h5>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/blocks/card_blurb.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="card mb-3 border-0 bg-transparent text-center {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %}>
{% if self.image %}
{% image self.image fill-256x256 format-webp preserve-svg as card_img %}
<img class="rounded-circle w-25 mx-auto" src="{{card_img.url}}" alt="{{card_img.title}}">
<img class="rounded-circle w-25 mx-auto" src="{{card_img.url}}" alt="{{card_img.alt}}">
{% endif %}
<div class="card-body">
{% if self.title %}<h5 class="card-title">{{self.title}}</h5>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/blocks/card_foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="card mb-3 {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %}>
{% if self.image %}
{% image self.image fill-800x450 format-webp preserve-svg as card_img %}
<img class="card-img-top w-100" src="{{card_img.url}}" alt="{{card_img.title}}">
<img class="card-img-top w-100" src="{{card_img.url}}" alt="{{card_img.alt}}">
{% endif %}
<div class="card-body">
{% if self.title %}<h5 class="card-title">{{self.title}}</h5>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/blocks/card_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if self.title %}<h5 class="card-header">{{self.title}}</h5>{% endif %}
{% if self.image %}
{% image self.image fill-800x450 format-webp preserve-svg as card_img %}
<img class="w-100" src="{{card_img.url}}" alt="{{card_img.title}}">
<img class="w-100" src="{{card_img.url}}" alt="{{card_img.alt}}">
{% endif %}
<div class="card-body">
{% if self.subtitle %}<h6 class="card-subtitle mb-2 text-muted">{{self.subtitle}}</h6>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/blocks/card_head_foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if self.title %}<h5 class="card-header">{{self.title}}</h5>{% endif %}
{% if self.image %}
{% image self.image fill-800x450 format-webp preserve-svg as card_img %}
<img class="w-100" src="{{card_img.url}}" alt="{{card_img.title}}">
<img class="w-100" src="{{card_img.url}}" alt="{{card_img.alt}}">
{% endif %}
<div class="card-body">
{% if self.subtitle %}<h6 class="card-subtitle mb-2 text-muted">{{self.subtitle}}</h6>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/blocks/carousel_block.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% block carousel_slide_image %}
{% if item.image %}
{% image item.image fill-1600x900 format-webp preserve-svg as carouselimage %}
<img class="d-block w-100" src="{{carouselimage.url}}" alt="{{carouselimage.image.title}}">
<img class="d-block w-100" src="{{carouselimage.url}}" alt="{{carouselimage.image.alt}}">
{% endif %}
{% endblock %}
<div class="carousel-caption d-none d-md-block">
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/blocks/image_block.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% load wagtailimages_tags %}
{% image self.image max-1600x1600 format-webp preserve-svg as self_image %}
<img src="{{self_image.url}}" class="img-fluid {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %} alt="{{self_image.image.title}}">
<img src="{{self_image.url}}" class="img-fluid {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %} alt="{{self_image.image.alt}}">
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="col-sm-6 col-md-4 col-lg-3 my-3">
<a href="#" class="lightbox-preview" data-bs-toggle="modal" data-bs-target="#modal-{{modal_id}}">
<img class="img-thumbnail w-100" src="{{picture_image.url}}" data-original-src="{{original_image.url}}"
alt="{{picture_image.image.title}}" title="{{picture_image.image.title}}">
alt="{{picture_image.image.alt}}" title="{{picture_image.image.title}}">
</a>
</div>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if page.cover_image %}
{% image page.cover_image fill-800x450 format-webp preserve-svg as card_img %}
<a href="{% pageurl page %}" title="{{ page.title }}">
<img class="card-img-top w-100" src="{{ card_img.url }}" alt="{{ card_img.title }}">
<img class="card-img-top w-100" src="{{ card_img.url }}" alt="{{ card_img.alt }}">
</a>
{% endif %}
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% image page.cover_image fill-800x450 format-webp preserve-svg as cover_image %}
<div class="col-4 col-md-3 col-lg-2">
<a href="{{page.url}}" title="{{page.title}}">
<img src="{{cover_image.url}}" class="w-100" alt="{{page.title}}">
<img src="{{cover_image.url}}" class="w-100" alt="{{page.alt}}">
</a>
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/pages/event_page.mini.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if page.cover_image %}
{% image page.cover_image fill-800x450 format-webp preserve-svg as card_img %}
<a href="{% pageurl page %}" title="{{ page.title }}">
<img class="card-img-top w-100" src="{{ card_img.url }}" alt="{{ card_img.title }}">
<img class="card-img-top w-100" src="{{ card_img.url }}" alt="{{ card_img.alt }}">
</a>
{% endif %}
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% image page.cover_image fill-800x450 format-webp preserve-svg as cover_image %}
<div class="col-4 col-md-3 col-lg-2">
<a href="{{ page.url }}" title="{{ page.title }}">
<img src="{{ cover_image.url }}" class="w-100" alt="{{ page.title }}">
<img src="{{ cover_image.url }}" class="w-100" alt="{{ page.alt }}">
</a>
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion coderedcms/templates/coderedcms/pages/page.mini.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if page.cover_image %}
{% image page.cover_image fill-800x450 format-webp preserve-svg as card_img %}
<a href="{% pageurl page %}" title="{{ page.title }}">
<img class="card-img-top w-100" src="{{ card_img.url }}" alt="{{ card_img.title }}">
<img class="card-img-top w-100" src="{{ card_img.url }}" alt="{{ card_img.alt }}">
</a>
{% endif %}
<div class="card-body">
Expand Down
Loading