Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dic-global-dev
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Manzar Hussain
dic-global-dev
Commits
615a419f
Commit
615a419f
authored
Dec 25, 2020
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iframe add
parent
77a44ad0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
views-view-field--videos--block_1--field_video_link.html.twig
themes/custom/envigo/templates/views/views-view-field--videos--block_1--field_video_link.html.twig
+22
-0
views-view-unformatted--videos--block.html.twig
themes/custom/envigo/templates/views/views-view-unformatted--videos--block.html.twig
+1
-1
No files found.
themes/custom/envigo/templates/views/views-view-field--videos--block_1--field_video_link.html.twig
0 → 100644
View file @
615a419f
{#
/**
* @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>
themes/custom/envigo/templates/views/views-view-unformatted--videos--block.html.twig
View file @
615a419f
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment