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
67729615
Commit
67729615
authored
Jan 13, 2021
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recent news
parent
cf697ac3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
37 deletions
+40
-37
views-view-unformatted--recent_news--block.html.twig
themes/custom/envigo/templates/views/views-view-unformatted--recent_news--block.html.twig
+40
-37
No files found.
themes/custom/envigo/templates/
block/block--views-block--recent-news-block-1
.html.twig
→
themes/custom/envigo/templates/
views/views-view-unformatted--recent_news--block
.html.twig
View file @
67729615
{#
/**
* @file
*
Theme override to display a block
.
*
Default theme implementation to display a view of unformatted rows
.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: array of HTML attributes populated by modules, intended to
* be added to the main container tag of this template.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
* - title: The title of this group of rows. May be empty.
* - rows: A list of the view's row items.
* - attributes: The row's HTML attributes.
* - content: The row's content.
* - view: The view object.
* - default_row_class: A flag indicating whether default classes should be
* used on rows.
*
* @see template_preprocess_block()
* @see template_preprocess_views_view_unformatted()
*
* @ingroup themeable
*/
#}
<div
class=
"nw_blog_c_b"
>
<div
class=
"nw_p_i_c"
>
{{
title_prefix
}}
{%
if
label
%}
<h5
{{
title_attributes
}}
>
{{
label
}}
</h5>
{%
endif
%}
{{
title_suffix
}}
<div
class=
"cs_s_cb"
>
<div
class=
"nw_r_p_ci"
>
<a
href=
""
class=
"nw_imgcon_box"
style=
"background: url(
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_news_image }}'
]
}}
);"
>
</a>
<div
class=
"nw_p_box"
>
<h6>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_news_image }}'
]
}}
);">
</h6>
<a
href=
""
class=
"nw_btn_con"
>
Read More
<i
class=
"fa fa-angle-right"
aria-hidden=
"true"
></i></a>
</div>
<!-- section code start -->
<div
class=
"nw_blog_c_b"
>
<div
class=
"nw_p_i_c"
>
{{
title_prefix
}}
{%
if
label
%}
<h5>
{{
label
}}
</h5>
{%
endif
%}
{{
title_suffix
}}
{%
for
row
in
rows
%}
<div
class=
"cs_s_cb"
>
<div
class=
"nw_r_p_ci"
>
<a
href=
""
class=
"nw_imgcon_box"
style=
"background: url(
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_news_image }}'
]
}}
);"
>
</a>
<div
class=
"nw_p_box"
>
<h6>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_news_image }}'
]
}}
);">
</h6>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ view_node }}'
]
}}
</div>
</div>
</div>
</div>
</div>
{%
endfor
%}
</div>
</div>
<!-- section code end -->
\ No newline at end of file
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