Commit 615a419f by Manzar Hussain

iframe add

parent 77a44ad0
{#
/**
* @file
* Theme override for a single field in a view.
*
* Available variables:
* - view: The view that the field belongs to.
* - field: The field handler that can process the input.
* - row: The raw result of the database query that generated this field.
* - output: The processed output that will normally be used.
*
* When fetching output from the row this construct should be used:
* data = row[field.field_alias]
*
* The above will guarantee that you'll always get the correct data, regardless
* of any changes in the aliasing that might happen if the view is modified.
*
* @see template_preprocess_views_view_field()
*/
#}
<iframe width="100%" src="{{ output -}}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
......@@ -29,7 +29,7 @@
<div class="slider rbc_slider_b">
{% for row in rows %}
<div class="rbc_b_t">
<iframe width="100%" src="https://www.youtube.com/embed/9xwazD5SyVg" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
{{ row.content['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ field_video_link }}'] }}
</div>
{% endfor %}
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment