Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-1756: Added id to custom tags #238

Merged
merged 2 commits into from
Aug 1, 2023
Merged
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,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