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
ae22d675
Commit
ae22d675
authored
Dec 20, 2020
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
a2efbb4d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
350 additions
and
10 deletions
+350
-10
envigo.info.yml
themes/custom/envigo/envigo.info.yml
+2
-0
node--page.html.twig
themes/custom/envigo/templates/content/node--page.html.twig
+110
-0
page.html.twig
themes/custom/envigo/templates/layout/page.html.twig
+47
-10
views-view-fields--news--block.html.twig__dd
themes/custom/envigo/templates/views/views-view-fields--news--block.html.twig__dd
+64
-0
views-view-fields--page_banner--block.html.twig
themes/custom/envigo/templates/views/views-view-fields--page_banner--block.html.twig
+50
-0
views-view-unformatted--news--block.html.twig
themes/custom/envigo/templates/views/views-view-unformatted--news--block.html.twig
+77
-0
No files found.
themes/custom/envigo/envigo.info.yml
View file @
ae22d675
...
...
@@ -17,7 +17,9 @@ regions:
page_top
:
'
Page
top'
page_bottom
:
'
Page
bottom'
breadcrumb
:
Breadcrumb
content_top
:
Content Top
content
:
Content
footer_top
:
Footer Top
footer
:
Footer
footer_first
:
'
Footer
first'
footer_second
:
'
Footer
second'
...
...
themes/custom/envigo/templates/content/node--page.html.twig
0 → 100644
View file @
ae22d675
{#
/**
* @file
* Theme override to display a node.
*
* Available variables:
* - node: The node entity with limited access to object properties and methods.
* Only method names starting with "get", "has", or "is" and a few common
* methods such as "id", "label", and "bundle" are available. For example:
* - node.getCreatedTime() will return the node creation timestamp.
* - node.hasField('field_example') returns TRUE if the node bundle includes
* field_example. (This does not indicate the presence of a value in this
* field.)
* - node.isPublished() will return whether the node is published or not.
* Calling other methods, such as node.delete(), will result in an exception.
* See \Drupal\node\Entity\Node for a full list of public properties and
* methods for the node object.
* - label: (optional) The title of the node.
* - content: All node items. Use
{{
content }} to print them all,
* or print a subset such as
{{
content.field_example }}. Use
*
{{
content|without('field_example') }} to temporarily suppress the printing
* of a given child element.
* - author_picture: The node author user entity, rendered using the "compact"
* view mode.
* - metadata: Metadata for this node.
* - date: (optional) Themed creation date field.
* - author_name: (optional) Themed author name field.
* - url: Direct URL of the current node.
* - display_submitted: Whether submission information should be displayed.
* - attributes: HTML attributes for the containing element.
* The attributes.class element may contain one or more of the following
* classes:
* - node: The current template type (also known as a "theming hook").
* - node--type-[type]: The current node type. For example, if the node is an
* "Article" it would result in "node--type-article". Note that the machine
* name will often be in a short form of the human readable label.
* - node--view-mode-[view_mode]: The View Mode of the node; for example, a
* teaser would result in: "node--view-mode-teaser", and
* full: "node--view-mode-full".
* The following are controlled through the node publishing options.
* - node--promoted: Appears on nodes promoted to the front page.
* - node--sticky: Appears on nodes ordered above other non-sticky nodes in
* teaser listings.
* - node--unpublished: Appears on unpublished nodes visible only to site
* admins.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - content_attributes: Same as attributes, except applied to the main
* content tag that appears in the template.
* - author_attributes: Same as attributes, except applied to the author of
* the node 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.
* - view_mode: View mode; for example, "teaser" or "full".
* - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'.
* - page: Flag for the full page state. Will be true if view_mode is 'full'.
* - readmore: Flag for more state. Will be true if the teaser content of the
* node cannot hold the main body content.
* - logged_in: Flag for authenticated user status. Will be true when the
* current user is a logged-in member.
* - is_admin: Flag for admin user status. Will be true when the current user
* is an administrator.
*
* @see template_preprocess_node()
*
* @todo Remove the id attribute (or make it a class), because if that gets
* rendered twice on a page this is invalid CSS for example: two lists
* in different view modes.
*/
#}
{%
set
classes
=
[
'node'
,
'node--type-'
~
node.bundle
|
clean_class
,
node.isPromoted
()
?
'node--promoted'
,
node.isSticky
()
?
'node--sticky'
,
not
node.isPublished
()
?
'node--unpublished'
,
view_mode
?
'node--view-mode-'
~
view_mode
|
clean_class
,
]
%}
{{
attach_library
(
'classy/node'
)
}}
<article
{{
attributes.addClass
(
classes
)
}}
>
<div
class=
"banner-image-wrapper"
>
{{
content.field_banner_image
}}
</div>
{%
if
node.field_banner_text.0.value
|
trim
%}
<div
class=
"banner-overlay"
>
{{
content.field_banner_text
}}
</div>
{%
endif
%}
</article>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
{{
page.breadcrumb
}}
</div>
</div>
</div>
</div>
</div>
{%
if
content.body
%}
{{
content.body
}}
{%
endif
%}
{%
if
content.field_accordion
%}
{{
content.field_accordion
}}
{%
endif
%}
themes/custom/envigo/templates/layout/page.html.twig
View file @
ae22d675
...
...
@@ -53,24 +53,61 @@
</div>
</div>
</div>
{%
if
page.banner
%}
<div
class=
"b_o_c_b"
>
<div
class=
"b_main_slider static_banner"
>
{{
page.banner
}}
</div>
</div>
{%
endif
%}
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
{{
page.breadcrumb
}}
<!-- breadcurmb start -->
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
<nav
class=
"border-bottom"
>
{{
page.breadcrumb
}}
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- breadcurmd end -->
{%
if
page.content_top
%}
<div
class=
"contentTop-section"
>
{{
page.content_top
}}
</div>
<div
class=
"layout-container"
>
{%
endif
%}
<div
class=
"container-fluid spacerTB"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row"
>
{{
page.content
}}
</div>
</div>
</div>
</div>
<!-- <div class="layout-container">
<div class="layout-content">
{{
page.content
}
}
{#
{{
page.content }} #
}
</div>{# /.layout-content #}
</div> -->
{%
if
page.footer_top
%}
<div
class=
"container-fluid spacerTB"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row mb-5"
>
{{
page.footer_top
}}
</div>
</div>
</div>
</div>
{%
endif
%}
{%
if
page.footer
%}
<div
class=
"container-fluid f_l_c_b"
>
<div
class=
"row"
>
...
...
themes/custom/envigo/templates/views/views-view-fields--news--block.html.twig__dd
0 → 100644
View file @
ae22d675
{#
/**
* @file
* Theme override to display all the fields in a row.
*
* Available variables:
* - view: The view in use.
* - fields: A list of fields, each one contains:
* - content: The output of the field.
* - raw: The raw data for the field, if it exists. This is NOT output safe.
* - class: The safe class ID to use.
* - handler: The Views field handler controlling this field.
* - inline: Whether or not the field should be inline.
* - wrapper_element: An HTML element for a wrapper.
* - wrapper_attributes: List of attributes for wrapper element.
* - separator: An optional separator that may appear before a field.
* - label: The field's label text.
* - label_element: An HTML element for a label wrapper.
* - label_attributes: List of attributes for label wrapper.
* - label_suffix: Colon after the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
* - has_label_colon: A boolean indicating whether to display a colon after
* the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
* - row: The raw result from the query, with all data it fetched.
*
* @see template_preprocess_views_view_fields()
*/
#}
<div class="cs_inner_item">
<div class="cs_containe_i_w">
<a href="#" class="cs_img_bc" tabindex="0">
<span class="cs_c1_m">Management & IR</span>
{{ fields.field_news_image .content }}
</a>
<div class="cs_text_cib">
<div class="cs_wc_b">
<div class="cs_iwcb">
<i class="fa fa-clock-o" aria-hidden="true"></i> {{ fields.field_date.content}}
</div>
<span>TSE Filings</span>
</div>
<h6 class="cs_hcwbm">
<a href="" tabindex="0">{{ fields.title.content }}</a>
</h6>
<!-- <p>
DIC Corporation announced on August 29, 2019, that
it had resolved to acquire the shares and assets.
</p> -->
</div>
</div>
</div>
themes/custom/envigo/templates/views/views-view-fields--page_banner--block.html.twig
0 → 100644
View file @
ae22d675
{#
/**
* @file
* Theme override to display all the fields in a row.
*
* Available variables:
* - view: The view in use.
* - fields: A list of fields, each one contains:
* - content: The output of the field.
* - raw: The raw data for the field, if it exists. This is NOT output safe.
* - class: The safe class ID to use.
* - handler: The Views field handler controlling this field.
* - inline: Whether or not the field should be inline.
* - wrapper_element: An HTML element for a wrapper.
* - wrapper_attributes: List of attributes for wrapper element.
* - separator: An optional separator that may appear before a field.
* - label: The field's label text.
* - label_element: An HTML element for a label wrapper.
* - label_attributes: List of attributes for label wrapper.
* - label_suffix: Colon after the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
* - has_label_colon: A boolean indicating whether to display a colon after
* the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
* - row: The raw result from the query, with all data it fetched.
*
* @see template_preprocess_views_view_fields()
*/
#}
<div
class=
"b_slide_item"
>
{{
fields.field_banner_image.content
}}
<div
class=
"s_b_o_c"
>
<div
class=
"container"
>
<div
class=
"s_c_iw"
>
<div
class=
"sb_ibcd"
>
<h1
class=
"s_p_h_c"
>
{{
fields.field_banner_title.content
}}
</h1>
{{
fields.field_banner_text.content
}}
</div>
</div>
</div>
</div>
</div>
themes/custom/envigo/templates/views/views-view-unformatted--news--block.html.twig
0 → 100644
View file @
ae22d675
{#
/**
* @file
* Default theme implementation to display a view of unformatted rows.
*
* Available variables:
* - 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_views_view_unformatted()
*
* @ingroup themeable
*/
#}
<div
class=
"container-fluid bg_l_gray spacerTB cs_bnmv cs_box_shadow"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
<div
class=
"cs_w_b"
>
<h1
class=
"c_heading_b text-center"
>
DIC News
</h1>
<div
class=
"cs_slider_wp"
>
<div
class=
"cs_s_cb row cs_slider_dic_news_inner"
>
{%
for
row
in
rows
%}
<div
class=
"cs_item_b col-10 col-md-4 col-xl-3"
>
<div
class=
"cs_inner_item"
>
<div
class=
"cs_containe_i_w"
>
<a
href=
"#"
class=
"cs_img_bc"
>
<span
class=
"cs_c1_m"
>
Management
&
IR
</span>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_news_image }}'
]
}}
</a>
<div
class=
"cs_text_cib"
>
<div
class=
"cs_wc_b"
>
<div
class=
"cs_iwcb"
>
<i
class=
"fa fa-clock-o"
aria-hidden=
"true"
></i>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ field_date }}'
]
}}
</div>
<span>
TSE Filings
</span>
</div>
<h6
class=
"cs_hcwbm"
>
<a
href=
""
>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ title }}'
]
}}
</a>
</h6>
<!-- <p>
DIC Corporation announced on August 29, 2019, that
it had resolved to acquire the shares and assets.
</p> -->
</div>
</div>
</div>
</div>
{%
endfor
%}
</div>
</div>
<div
class=
"cs_btn_c_b"
>
<a
href=
""
>
View All
<i
class=
"fa fa-angle-right"
aria-hidden=
"true"
></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ 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