Skip to content

Commit

Permalink
IBX-1756: Added id attribute to custom tags (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gengar-i authored Aug 1, 2023
1 parent f60c0b7 commit 6bff30d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
class="fb-post"
style="display: flex;{% if justify_content is defined %} justify-content: {{ justify_content }};{% endif %}"
data-href="{{ params.post_url }}"
data-width="{{ params.width is defined ? params.width : '' }}">
</div>
data-width="{{ params.width is defined ? params.width : '' }}"
{% if id is defined %}id="{{ id }}"{% endif %}
></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<div class="tweet-container" data-url="{{ params.tweet_url }}"></div>
<div
class="tweet-container"
data-url="{{ params.tweet_url }}"
{% if id is defined %}id="{{ id }}"{% endif %}
></div>
<script>
(function (global, doc) {
global.twttr = global.twttr || (function (d, s, id) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div class="embed-container" {% if align is defined %} style="text-align: {{ align }};"{% endif %}>
<iframe
type="text/html"
{% if id is defined %}id="{{ id }}"{% endif %}
{% if params.width is defined %}width="{{params.width}}"{% endif %}
{% if params.height is defined %}height="{{params.height}}"{% endif %}
src="//www.youtube.com/embed/{{ ez_richtext_youtube_extract_id(params.video_url) }}?autoplay={{ params.autoplay == 'true' ? 1 : 0 }}"
Expand Down

0 comments on commit 6bff30d

Please sign in to comment.