Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sgmt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quan Nguyen
sgmt
Commits
f72a8917
Commit
f72a8917
authored
May 06, 2021
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update table themes
parent
283d913e
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
591 additions
and
561 deletions
+591
-561
index.css
themes/custom/sgmt/assets/css/index.css
+11
-0
style.css
themes/custom/sgmt/assets/css/style.css
+475
-459
index.js
themes/custom/sgmt/assets/js/index.js
+2
-3
page--front.html.twig
themes/custom/sgmt/templates/layout/page--front.html.twig
+6
-6
page.html.twig
themes/custom/sgmt/templates/layout/page.html.twig
+3
-3
breadcrumb.html.twig
themes/custom/sgmt/templates/navigation/breadcrumb.html.twig
+1
-1
menu--main.html.twig
themes/custom/sgmt/templates/navigation/menu--main.html.twig
+3
-4
views-view-unformatted--advertising--block-ads-1.html.twig
...iews-view-unformatted--advertising--block-ads-1.html.twig
+2
-3
views-view-unformatted--ambassador--block-ambassador.html.twig
...-view-unformatted--ambassador--block-ambassador.html.twig
+20
-19
views-view-unformatted--article--block-environmental-focus.html.twig
...unformatted--article--block-environmental-focus.html.twig
+2
-3
views-view-unformatted--article--block-environmental-violate.html.twig
...formatted--article--block-environmental-violate.html.twig
+61
-54
views-view-unformatted--article--block-news.html.twig
...ews/views-view-unformatted--article--block-news.html.twig
+3
-4
views-view-unformatted--article--block-related.html.twig
.../views-view-unformatted--article--block-related.html.twig
+2
-2
No files found.
themes/custom/sgmt/assets/css/index.css
View file @
f72a8917
...
...
@@ -10,3 +10,14 @@
ul
.inline
li
{
padding
:
0
10px
0
0
!important
;
}
.text-white
a
{
color
:
white
;
}
@media
(
min-width
:
768px
)
{
.ctn-720
{
max-width
:
calc
(
100vw
)
!important
;
width
:
100%
}
}
themes/custom/sgmt/assets/css/style.css
View file @
f72a8917
@font-face
{
font-family
:
"Roboto"
;
src
:
url("../font/roboto/Roboto-Regular.ttf")
format
(
"truetype"
);
font-family
:
"Roboto"
;
src
:
url("../font/roboto/Roboto-Regular.ttf")
format
(
"truetype"
);
}
body
{
font-family
:
"Roboto"
;
font-family
:
"Roboto"
;
}
@media
(
max-width
:
991px
)
{
.container
{
max-width
:
100%
;
padding-left
:
30px
;
padding-right
:
30px
;
}
}
@media
(
max-width
:
767px
)
{
.container
{
max-width
:
100%
;
padding-left
:
20px
;
padding-right
:
20px
;
}
}
.header-top
{
padding
:
10px
0
;
padding
:
10px
0
;
}
.header-top
.header-top__logo
{
color
:
#008c3e
;
text-transform
:
uppercase
;
font-weight
:
700
;
font-size
:
23px
;
color
:
#008c3e
;
text-transform
:
uppercase
;
font-weight
:
700
;
font-size
:
23px
;
}
.header-top
p
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
.header-top
.header-top__description
{
color
:
#8dc63f
;
font-size
:
12px
;
font-style
:
italic
;
color
:
#8dc63f
;
font-size
:
12px
;
font-style
:
italic
;
}
.header-top
.img-fluid
{
height
:
110px
;
width
:
auto
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
height
:
110px
;
width
:
auto
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
}
@media
(
max-width
:
991px
)
{
.header-top
{
padding
:
20px
0
;
}
.header-top
{
padding
:
20px
0
;
}
}
.header-nav
{
background
:
#008c3e
;
font-weight
:
600
;
margin-top
:
10px
;
background
:
#008c3e
;
font-weight
:
600
;
}
@media
(
max-width
:
991px
)
{
.header-nav
{
margin-top
:
0
;
}
}
.header-nav
.menu
{
color
:
white
;
color
:
white
;
}
.header-nav
.menupleft
{
padding-left
:
172px
;
padding-left
:
172px
;
}
.header-nav
.lastmenu
{
color
:
white
;
font-size
:
15px
;
color
:
white
;
font-size
:
15px
;
}
.header-nav
.navbar
{
width
:
100%
;
padding
:
0
;
height
:
45px
;
width
:
100%
;
padding
:
0
;
height
:
45px
;
}
.header-nav
.navbar
.nav-item
{
height
:
45px
;
height
:
45px
;
}
.header-nav
.navbar
.nav-link
{
padding
:
12px
6px
;
padding
:
12px
6px
;
}
.header-nav
.navbar-toggler
{
z-index
:
500
;
position
:
relative
;
z-index
:
500
;
position
:
relative
;
}
.header-nav
.nav-item
:hover
{
background
:
#8dc63f
;
background
:
#8dc63f
;
}
.header-nav
.nav-item
a
{
color
:
white
!important
;
font-size
:
14px
;
color
:
white
!important
;
font-size
:
14px
;
}
.header-nav
.navbar-brand
{
color
:
white
;
color
:
white
;
}
.header-nav
.hidden
{
display
:
none
!important
;
display
:
none
!important
;
}
.header-nav
.search-popup
{
position
:
absolute
;
bottom
:
-45px
;
right
:
-10px
;
z-index
:
50
;
position
:
absolute
;
bottom
:
-45px
;
right
:
-10px
;
z-index
:
50
;
}
.header-nav
.search-popup
input
{
border-radius
:
0
;
width
:
250px
;
outline
:
none
!important
;
box-shadow
:
none
!important
;
border-color
:
#ced4da
!important
;
border-radius
:
0
;
width
:
250px
;
outline
:
none
!important
;
box-shadow
:
none
!important
;
border-color
:
#ced4da
!important
;
}
.header-nav
.search-popup
::after
,
.header-nav
.search-popup
::before
{
content
:
""
;
position
:
absolute
;
width
:
0
;
height
:
0
;
top
:
-18px
;
border-style
:
solid
;
.header-nav
.search-popup
::after
,
.header-nav
.search-popup
::before
{
content
:
""
;
position
:
absolute
;
width
:
0
;
height
:
0
;
top
:
-18px
;
border-style
:
solid
;
}
.header-nav
.search-popup
::after
{
right
:
10px
;
border-color
:
transparent
transparent
white
transparent
;
border-width
:
9px
;
top
:
-17px
;
z-index
:
5
;
right
:
10px
;
border-color
:
transparent
transparent
white
transparent
;
border-width
:
9px
;
top
:
-17px
;
z-index
:
5
;
}
.header-nav
.search-popup
::before
{
right
:
10px
;
border-color
:
transparent
transparent
#ced4da
transparent
;
border-width
:
9px
;
right
:
10px
;
border-color
:
transparent
transparent
#ced4da
transparent
;
border-width
:
9px
;
}
@media
(
max-width
:
991px
)
{
.header-nav
{
top
:
0
;
left
:
0
;
width
:
100%
;
}
.header-nav
.navbar
{
height
:
auto
;
padding
:
10px
0px
;
}
.header-nav
.navbar
h5
{
line-height
:
30px
;
}
.header-nav
{
top
:
0
;
left
:
0
;
width
:
100%
;
}
.header-nav
.navbar
{
height
:
auto
;
padding
:
10px
0px
;
}
.header-nav
.navbar
h5
{
line-height
:
30px
;
}
}
.headline
{
font-size
:
12px
;
padding-top
:
15px
;
padding-bottom
:
13px
;
font-size
:
12px
;
padding-top
:
15px
;
padding-bottom
:
13px
;
}
.headline
h6
{
color
:
#f26522
;
color
:
#f26522
;
}
.headline
i
{
margin
:
3px
3px
0
10px
;
margin
:
3px
3px
0
10px
;
}
.headline
span
{
cursor
:
pointer
;
cursor
:
pointer
;
}
.title
{
margin
:
30px
0
;
margin
:
30px
0
;
}
.title
.title-img
{
color
:
white
;
z-index
:
1
;
color
:
white
;
z-index
:
1
;
}
.title
.title-img
img
{
height
:
34px
;
width
:
auto
;
z-index
:
10
;
height
:
34px
;
width
:
auto
;
z-index
:
10
;
}
.title
.title-text
{
height
:
34px
;
padding-left
:
20px
;
padding-right
:
20px
;
background
:
#008c3e
;
color
:
white
;
font-size
:
14px
;
padding-top
:
7px
;
margin-left
:
-6px
;
margin-bottom
:
-2px
;
height
:
34px
;
padding-left
:
20px
;
padding-right
:
20px
;
background
:
#008c3e
;
color
:
white
;
font-size
:
14px
;
padding-top
:
7px
;
margin-left
:
-6px
;
margin-bottom
:
-2px
;
}
@media
(
max-width
:
991px
)
{
.title
{
margin
:
20px
0
;
}
.title
{
margin
:
20px
0
;
}
}
img
{
max-width
:
100%
;
max-width
:
100%
;
}
.hot-news
{
padding-bottom
:
20px
;
padding-bottom
:
20px
;
}
.hot-news
h5
{
font-size
:
20px
;
color
:
#8dc63f
;
font-weight
:
bold
;
margin-top
:
20px
;
font-size
:
20px
;
color
:
#8dc63f
;
font-weight
:
bold
;
margin-top
:
20px
;
}
.hot-news
p
{
font-size
:
14px
;
font-weight
:
bold
;
margin-bottom
:
5px
;
font-size
:
14px
;
font-weight
:
bold
;
margin-bottom
:
5px
;
}
.hot-news
i
{
margin-right
:
5px
;
color
:
#999999
;
font-size
:
13px
;
margin-right
:
5px
;
color
:
#999999
;
font-size
:
13px
;
}
.hot-news
.hot-news__brand
img
{
height
:
320px
;
width
:
100%
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
height
:
320px
;
width
:
100%
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
}
.hot-news
.hot-news__brand-time
.description
{
padding-bottom
:
7px
;
padding-top
:
15px
;
margin-bottom
:
7px
;
margin-top
:
15px
;
}
.hot-news
.hot-news__brand
.description
{
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
.hot-news
.hot-news__time
.description
{
padding-bottom
:
7px
;
padding-top
:
15px
;
padding-bottom
:
7px
;
padding-top
:
15px
;
}
.hot-news
.hot-news__list-item
{
padding-bottom
:
10px
;
border-bottom
:
1px
#cec7c7
dashed
;
margin-bottom
:
10px
;
padding-bottom
:
10px
;
border-bottom
:
1px
#cec7c7
dashed
;
margin-bottom
:
10px
;
}
.hot-news
.hot-news__list-item
p
{
margin-bottom
:
1px
;
font-weight
:
bold
;
font-size
:
14px
;
margin-bottom
:
1px
;
font-weight
:
bold
;
font-size
:
14px
;
}
.hot-news
.hot-news__list-item
:nth-last-child
(
1
)
{
border-bottom
:
none
;
border-bottom
:
none
;
}
.hot-news
.brand-news
{
padding-bottom
:
30px
;
padding-bottom
:
30px
;
}
.focus-news
.focus-news__img
{
margin-right
:
10px
;
flex
:
0
0
120px
;
margin-right
:
10px
;
flex
:
0
0
120px
;
}
.focus-news
.focus-news__img
img
{
width
:
120px
;
height
:
75px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
width
:
120px
;
height
:
75px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
}
@media
(
max-width
:
991px
)
{
.focus-news
.focus-news__img
{
flex
:
0
0
100px
;
}
.focus-news
.focus-news__img
img
{
width
:
100px
;
height
:
60px
;
}
}
.focus-news
.focus-news__content
{
font-size
:
13px
;
font-size
:
13px
;
}
.focus-news
.focus-news__content
.icon
{
color
:
#999999
;
margin-bottom
:
0
;
color
:
#999999
;
margin-bottom
:
0
;
}
.focus-news
.focus-news__content-title
{
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
}
.focus-news
.focus-news-item
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
.focus-news
.focus-news__typesecond
{
margin-bottom
:
50px
;
margin-bottom
:
50px
;
}
.focus-news
.focus-news__typesecond-item
{
margin-top
:
10px
;
padding
:
20px
0
;
border-bottom
:
1px
#cec7c7
dashed
;
margin-top
:
10px
;
padding
:
20px
0
;
border-bottom
:
1px
#cec7c7
dashed
;
}
.focus-news
.focus-news__typesecond-item
:nth-last-child
(
1
)
{
border-bottom
:
0
;
border-bottom
:
0
;
}
.focus-news
.focus-news__typesecond
img
{
height
:
155px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
width
:
100%
;
height
:
155px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
width
:
100%
;
}
.focus-news
.focus-news__typesecond-title
{
font-size
:
20px
;
color
:
#008c3e
;
font-size
:
20px
;
color
:
#008c3e
;
}
.focus-news
.focus-news__typesecond
.icon
{
margin
:
10px
0
;
margin
:
10px
0
;
}
.focus-news
.focus-news__typesecond
p
{
font-weight
:
600
;
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
font-weight
:
600
;
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
}
.hot-news-focus
.hot-news-focus-title
{
margin-bottom
:
12px
;
margin-bottom
:
12px
;
}
.hot-news-focus
.hot-news-focus-title
.icon
{
height
:
35px
;
width
:
35px
;
background
:
#bbbbbb
;
color
:
white
;
height
:
35px
;
width
:
35px
;
background
:
#bbbbbb
;
color
:
white
;
}
.hot-news-focus
.hot-news-focus-title
.text-center
{
height
:
35px
;
width
:
236px
;
background
:
#909090
;
color
:
white
;
font-size
:
14px
;
padding-top
:
7px
;
height
:
35px
;
width
:
236px
;
background
:
#909090
;
color
:
white
;
font-size
:
14px
;
padding-top
:
7px
;
}
.hot-news-focus
.hot-news-focus-item
{
display
:
flex
;
align-items
:
flex-start
;
border-bottom
:
1px
#cec7c7
dashed
;
padding
:
18px
0
;
display
:
flex
;
align-items
:
flex-start
;
border-bottom
:
1px
#cec7c7
dashed
;
padding
:
18px
0
;
}
.hot-news-focus
.hot-news-focus-item-number
{
padding
:
3px
12px
;
background-color
:
#909090
;
color
:
white
;
padding-top
:
3px
;
font-size
:
20px
;
font-weight
:
bold
;
margin-right
:
20px
;
margin-top
:
5px
;
padding
:
3px
12px
;
background-color
:
#909090
;
color
:
white
;
padding-top
:
3px
;
font-size
:
20px
;
font-weight
:
bold
;
margin-right
:
20px
;
margin-top
:
5px
;
}
.hot-news-focus
.hot-news-focus-item
:nth-last-child
(
1
)
{
border-bottom
:
0
;
border-bottom
:
0
;
}
.hot-news-focus
.hot-news-focus-item
:nth-child
(
1
)
{
padding-top
:
0
;
padding-top
:
0
;
}
.impressive-item
{
padding
:
30px
;
background
:
#f5f5f5
;
margin-bottom
:
25px
;
border
:
1px
#dddddd
solid
;
height
:
225px
;
position
:
relative
;
padding
:
30px
;
background
:
#f5f5f5
;
margin-bottom
:
25px
;
border
:
1px
#dddddd
solid
;
height
:
225px
;
position
:
relative
;
}
.impressive-item__content
{
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
5
;
-webkit-box-orient
:
vertical
;
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
5
;
-webkit-box-orient
:
vertical
;
}
.impressive-item__charater
{
bottom
:
30px
;
right
:
30px
;
position
:
absolute
;
bottom
:
30px
;
right
:
30px
;
position
:
absolute
;
}
.enviroment-images
{
position
:
relative
;
position
:
relative
;
}
.enviroment-images
img
{
width
:
100%
;
height
:
150px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
width
:
100%
;
height
:
150px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
}
@media
(
max-width
:
767px
)
{
.enviroment-images
img
{
height
:
250px
;
margin-bottom
:
20px
;
}
.enviroment-images
img
{
height
:
250px
;
margin-bottom
:
20px
;
}
}
.ambassador
.ambassador__list-item
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
.ambassador
.ambassador__list
.address
{
color
:
#999999
;
color
:
#999999
;
}
.ambassador
.ambassador__list
img
{
height
:
225px
;
width
:
100%
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
height
:
225px
;
width
:
100%
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
}
@media
(
max-width
:
991px
)
{
.ambassador
.ambassador__list
img
{
height
:
180px
;
}
.ambassador
.ambassador__list
img
{
height
:
180px
;
}
}
.ambassador
.btn-control
{
color
:
#e5e5e5
;
font-size
:
30px
;
font-weight
:
bold
;
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
0
,
-50%
);
cursor
:
pointer
;
color
:
#e5e5e5
;
font-size
:
30px
;
font-weight
:
bold
;
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
0
,
-50%
);
cursor
:
pointer
;
}
@media
(
max-width
:
767px
)
{
.ambassador
.btn-control
{
display
:
none
!important
;
}
.ambassador
.btn-control
{
display
:
none
!important
;
}
}
.ambassador
.btn-prev
{
left
:
-30px
;
left
:
-30px
;
}
.ambassador
.btn-next
{
right
:
-30px
;
right
:
-30px
;
}
.ambassador
.slick-slide
{
margin
:
0
8px
;
margin
:
0
8px
;
}
.ambassador
.slick-list
{
margin
:
0
-8px
;
margin
:
0
-8px
;
}
.footer
{
height
:
75px
;
background-color
:
#008c3e
;
height
:
75px
;
background-color
:
#008c3e
;
}
.footer
.footer__brand
{
margin
:
15px
0
;
margin
:
15px
0
;
}
.footer
.footer__brand
h4
{
font-size
:
24px
;
font-weight
:
600
;
font-size
:
24px
;
font-weight
:
600
;
}
.footer
.footer__brand
h4
a
{
color
:
white
;
color
:
white
;
}
.footer
.footer__brand
p
{
font-size
:
12px
;
color
:
#94ca4b
;
font-size
:
12px
;
color
:
#94ca4b
;
}
.footer
.footer__license
{
margin-top
:
20px
;
font-size
:
12px
;
margin-top
:
20px
;
font-size
:
12px
;
}
.footer
.footer__license
div
{
color
:
white
;
color
:
white
;
}
.footer
.footer__license
span
{
color
:
#94ca4b
;
color
:
#94ca4b
;
}
.footer
.footer__location
{
margin-top
:
20px
;
font-size
:
12px
;
color
:
white
;
margin-top
:
20px
;
font-size
:
12px
;
color
:
white
;
}
.footer
.footer__location
i
{
margin-left
:
10px
;
margin-right
:
5px
;
margin-left
:
10px
;
margin-right
:
5px
;
}
.footer
.footer__location
.address
i
{
margin-left
:
0
;
margin-left
:
0
;
}
@media
(
max-width
:
991px
)
{
.footer
{
height
:
auto
;
}
.footer
.footer__brand
,
.footer
.footer__location
,
.footer
.footer__license
{
text-align
:
center
;
}
.footer
.footer__location
{
display
:
block
;
font-size
:
12px
;
margin-bottom
:
15px
;
}
.footer
{
height
:
auto
;
}
.footer
.footer__brand
,
.footer
.footer__location
,
.footer
.footer__license
{
text-align
:
center
;
}
.footer
.footer__location
{
display
:
block
;
font-size
:
12px
;
margin-bottom
:
15px
;
}
}
.sliders-news
.sliders-news-item
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
.sliders-news
.sliders-news-item
a
{
width
:
100%
;
display
:
block
;
width
:
100%
;
display
:
block
;
}
.sliders-news
.sliders-news-item
img
{
width
:
100%
;
height
:
150px
;
max-width
:
270px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
width
:
100%
;
height
:
150px
;
max-width
:
270px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
}
.sliders-news
.sliders-news-item__title
{
font-size
:
14px
;
font-weight
:
bold
;
margin
:
10px
0
5px
;
font-size
:
14px
;
font-weight
:
bold
;
margin
:
10px
0
5px
;
}
@media
(
max-width
:
767px
)
{
.sliders-news
.sliders-news-item
img
{
height
:
245px
;
max-width
:
none
;
}
.sliders-news
.sliders-news-item
img
{
height
:
245px
;
max-width
:
none
;
}
}
.sliders-news
.btn-control
{
top
:
30%
!important
;
top
:
30%
!important
;
}
.new-detail
{
margin-bottom
:
50px
;
margin-bottom
:
50px
;
}
.new-detail
.new-detail__header
{
font-size
:
30px
;
color
:
#008c3e
;
line-height
:
1.2
;
margin-bottom
:
10px
;
font-size
:
30px
;
color
:
#008c3e
;
line-height
:
1.2
;
margin-bottom
:
10px
;
}
.new-detail
.new-detail__content
img
{
width
:
100%
;
height
:
auto
;
max-height
:
400px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
margin
:
25px
0
;
width
:
100%
;
height
:
auto
;
max-height
:
400px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
margin
:
25px
0
;
}
.new-detail
.new-detail__content
p
{
margin
:
0
;
margin
:
0
;
}
.new-detail
.new-detail__content
h1
{
font-size
:
30px
;
font-size
:
30px
;
}
.new-detail
.new-detail__content
h2
{
font-size
:
26px
;
font-size
:
26px
;
}
.new-detail
.new-detail__content
h3
{
font-size
:
22px
;
font-size
:
22px
;
}
.new-detail
.new-detail__content
h4
{
font-size
:
20px
;
font-size
:
20px
;
}
.new-detail
.new-detail__content
h5
{
font-size
:
18px
;
font-size
:
18px
;
}
.new-detail
.new-detail__content
h6
{
font-size
:
16px
;
font-size
:
16px
;
}
.new-detail
.new-detail__tag
{
border-top
:
1px
#cec7c7
dashed
;
padding
:
15px
0
25px
;
margin-top
:
20px
;
border-top
:
1px
#cec7c7
dashed
;
padding
:
15px
0
25px
;
margin-top
:
20px
;
}
.new-detail
.new-detail__tag
a
,
.new-detail
.new-detail__tag
span
{
color
:
#999999
;
color
:
#999999
;
}
.new-detail
.new-detail__social
{
margin-bottom
:
25px
;
margin-bottom
:
25px
;
}
.new-detail
.new-detail__social-item
{
padding
:
8px
12px
;
border-radius
:
5px
;
background
:
#4267b2
;
color
:
white
;
margin-right
:
10px
;
padding
:
8px
12px
;
border-radius
:
5px
;
background
:
#4267b2
;
color
:
white
;
margin-right
:
10px
;
}
.new-detail
.new-detail__social-item
i
{
margin-right
:
5px
;
margin-right
:
5px
;
}
.new-detail
.new-detail__social-item.red
{
background
:
#db4437
;
background
:
#db4437
;
}
.new-detail
.new-detail__comment
{
padding
:
25px
;
background
:
#f5f5f5
;
padding
:
25px
;
background
:
#f5f5f5
;
}
.new-detail
.new-detail__comment
label
,
.new-detail
.new-detail__comment
a
{
color
:
#666666
;
color
:
#666666
;
}
.new-detail
.new-detail__comment
.btn
{
margin-top
:
20px
;
background
:
#008c3e
;
color
:
white
;
margin-top
:
20px
;
background
:
#008c3e
;
color
:
white
;
}
.custom-slick
.btn-control
{
z-index
:
50
;
color
:
#e5e5e5
;
font-size
:
30px
;
font-weight
:
bold
;
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
0
,
-50%
);
cursor
:
pointer
;
z-index
:
50
;
color
:
#e5e5e5
;
font-size
:
30px
;
font-weight
:
bold
;
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
0
,
-50%
);
cursor
:
pointer
;
}
@media
(
max-width
:
767px
)
{
.custom-slick
.btn-control
{
display
:
none
!important
;
}
.custom-slick
.btn-control
{
display
:
none
!important
;
}
}
.custom-slick
.btn-prev
{
left
:
-30px
;
left
:
-30px
;
}
.custom-slick
.btn-next
{
right
:
-30px
;
right
:
-30px
;
}
.custom-slick
.slick-slide
{
margin
:
0
8px
;
margin
:
0
8px
;
}
.custom-slick
.slick-list
{
margin
:
0
-8px
;
margin
:
0
-8px
;
}
#scrollToTop
{
position
:
absolute
;
bottom
:
20px
;
right
:
20px
;
height
:
35px
;
width
:
35px
;
border-radius
:
4px
;
display
:
table
;
text-align
:
center
;
background
:
#bfe2cf
;
cursor
:
pointer
;
position
:
absolute
;
bottom
:
20px
;
right
:
20px
;
height
:
35px
;
width
:
35px
;
border-radius
:
4px
;
display
:
table
;
text-align
:
center
;
background
:
#bfe2cf
;
cursor
:
pointer
;
}
#scrollToTop
:hover
{
background
:
#008c3e
;
background
:
#008c3e
;
}
#scrollToTop
i
{
color
:
white
;
font-size
:
20px
;
vertical-align
:
middle
;
padding-top
:
8px
;
color
:
white
;
font-size
:
20px
;
vertical-align
:
middle
;
padding-top
:
8px
;
}
.line
{
height
:
0
;
width
:
100%
;
border-bottom
:
2px
#008c3e
solid
;
margin-top
:
-2px
;
height
:
0
;
width
:
100%
;
border-bottom
:
2px
#008c3e
solid
;
margin-top
:
-2px
;
}
.flex-1
{
flex
:
1
;
flex
:
1
;
}
.icon
{
line-height
:
1
;
color
:
#999999
;
font-size
:
13px
;
font-weight
:
600
;
line-height
:
1
;
color
:
#999999
;
font-size
:
13px
;
font-weight
:
600
;
}
.icon
i
{
margin-right
:
5px
;
margin-right
:
5px
;
}
a
{
color
:
#000
;
color
:
#000
;
}
a
:hover
{
color
:
#008c3e
;
text-decoration
:
none
;
color
:
#008c3e
;
text-decoration
:
none
;
}
.slider-container
{
max-width
:
100%
;
width
:
100%
;
}
.header-nav
{
margin-top
:
10px
;
max-width
:
100%
;
width
:
100%
;
}
.header-account
{
width
:
100%
;
background
:
#008c3e
;
width
:
100%
;
background
:
#008c3e
;
}
.header-account
.navbar-nav
.btn
{
color
:
#008c3e
;
background
:
white
;
margin
:
5px
0px
5px
10px
;
padding
:
6px
8px
;
line-height
:
1
;
color
:
#008c3e
;
background
:
white
;
margin
:
5px
0px
5px
10px
;
padding
:
6px
8px
;
line-height
:
1
;
}
.header-account
.highlight
{
color
:
#008c3e
;
cursor
:
pointer
;
color
:
#008c3e
;
cursor
:
pointer
;
}
.header-account
.modal
.modal-content
{
padding
:
60px
;
width
:
100%
;
max-width
:
370px
;
margin
:
0
auto
;
padding
:
60px
;
width
:
100%
;
max-width
:
370px
;
margin
:
0
auto
;
}
.header-account
.modal
.modal-body
{
padding
:
0
;
position
:
unset
;
padding
:
0
;
position
:
unset
;
}
.header-account
.modal
h5
{
font-weight
:
600px
;
margin-bottom
:
30px
;
color
:
#008c3e
;
font-size
:
30px
;
text-align
:
center
;
font-weight
:
600px
;
margin-bottom
:
30px
;
color
:
#008c3e
;
font-size
:
30px
;
text-align
:
center
;
}
.header-account
.modal
.form-control
{
border-radius
:
0
;
padding
:
8px
20px
;
outline
:
none
!important
;
box-shadow
:
none
!important
;
line-height
:
1
;
border-radius
:
0
;
padding
:
8px
20px
;
outline
:
none
!important
;
box-shadow
:
none
!important
;
line-height
:
1
;
}
.header-account
.modal
.form-group
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
.header-account
.modal
.btn-close
{
position
:
absolute
;
top
:
10px
;
right
:
10px
;
font-weight
:
bold
;
color
:
#db4437
;
font-size
:
18px
;
position
:
absolute
;
top
:
10px
;
right
:
10px
;
font-weight
:
bold
;
color
:
#db4437
;
font-size
:
18px
;
}
.header-account
.modal
.security
.form-control
{
width
:
100px
;
width
:
100px
;
}
.header-account
.modal
.security
.code
{
border
:
1px
solid
#ced4da
;
padding
:
8px
20px
;
border
:
1px
solid
#ced4da
;
padding
:
8px
20px
;
}
.header-account
.modal
.security
.btn
{
color
:
#008c3e
;
border
:
1px
solid
#ced4da
;
color
:
#008c3e
;
border
:
1px
solid
#ced4da
;
}
.header-account
.modal
.header-account__social
{
margin-top
:
25px
;
margin-bottom
:
35px
;
margin-top
:
25px
;
margin-bottom
:
35px
;
}
.header-account
.modal
.header-account__social-item
{
cursor
:
pointer
;
padding
:
6px
15px
;
color
:
white
;
cursor
:
pointer
;
padding
:
6px
15px
;
color
:
white
;
}
.header-account
.modal
.header-account__social-item
i
{
font-size
:
13px
;
margin-right
:
8px
;
font-size
:
13px
;
margin-right
:
8px
;
}
.header-account
.modal
.header-account__social-item.fb
{
background
:
#4267b2
;
background
:
#4267b2
;
}
.header-account
.modal
.header-account__social-item.gg
{
background
:
#db4437
;
background
:
#db4437
;
}
.header-account
.modal
.notification
{
font-size
:
13px
;
font-size
:
13px
;
}
.header-account
.modal
.btn-submit
{
padding
:
8px
16px
;
background
:
#008c3e
;
color
:
white
;
width
:
100%
;
padding
:
8px
16px
;
background
:
#008c3e
;
color
:
white
;
width
:
100%
;
}
.header-account
.modal
.btn
{
border-radius
:
0
;
line-height
:
1
;
border-radius
:
0
;
line-height
:
1
;
}
.media-comment
{
display
:
flex
;
align-items
:
flex-start
;
margin-bottom
:
30px
;
display
:
flex
;
align-items
:
flex-start
;
margin-bottom
:
30px
;
}
.media-comment
img
{
border-radius
:
50%
;
height
:
60px
;
width
:
60px
;
flex
:
0
0
60px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
margin-right
:
15px
;
border-radius
:
50%
;
height
:
60px
;
width
:
60px
;
flex
:
0
0
60px
;
-o-object-fit
:
cover
;
object-fit
:
cover
;
margin-right
:
15px
;
}
.media-comment
.media-comment-body
{
position
:
relative
;
display
:
inline-block
;
padding
:
16px
;
background-color
:
#f9fafb
;
border-radius
:
10px
;
padding-right
:
30px
;
font-size
:
14px
;
position
:
relative
;
display
:
inline-block
;
padding
:
16px
;
background-color
:
#f9fafb
;
border-radius
:
10px
;
padding-right
:
30px
;
font-size
:
14px
;
}
.media-comment
.media-comment-name
{
font-size
:
16px
;
font-size
:
16px
;
}
.media-comment
.media-comment-name
a
{
color
:
#008c3e
;
color
:
#008c3e
;
}
.media-comment
.media-comment-data-person
{
margin-bottom
:
6px
;
display
:
flex
;
align-items
:
center
;
margin-bottom
:
6px
;
display
:
flex
;
align-items
:
center
;
}
.media-comment
.media-content
{
flex
:
1
;
flex
:
1
;
}
.media-comment
.media-content
.media-comment-body
{
width
:
100%
;
}
.social-center
{
margin
:
auto
;
width
:
50%
;
width
:
100%
;
}
.user-register-form
.form-actions
.btn-submit
,
.user-login-form
.login-form__submit
.btn-submit
{
padding
:
8px
16px
;
background
:
#008c3e
;
color
:
white
;
width
:
100%
;
border-radius
:
0
;
line-height
:
1
;
}
.text-white
a
{
color
:
white
;
}
\ No newline at end of file
themes/custom/sgmt/assets/js/index.js
View file @
f72a8917
(
function
(
$
,
Drupal
)
{
if
(
$
(
window
).
width
()
>
991
)
{
if
(
$
(
window
).
width
()
>
768
)
{
$
(
".enviroment-images__list"
).
slick
({
slidesToShow
:
4
,
dots
:
false
,
...
...
@@ -45,4 +45,4 @@
location
.
href
=
url
;
}
});
})(
window
.
jQuery
,
window
.
Drupal
);
\ No newline at end of file
})(
window
.
jQuery
,
window
.
Drupal
);
themes/custom/sgmt/templates/layout/page--front.html.twig
View file @
f72a8917
...
...
@@ -2,7 +2,7 @@
<div
class=
"header-account"
>
<div
class=
"container"
>
{%
if
not
logged_in
%}
<ul
class=
"navbar-nav flex-row align-items-center justify-content-end h-100"
>
<ul
class=
"navbar-nav
d-none d-lg-flex
flex-row align-items-center justify-content-end h-100"
>
<li
class=
"nav-item"
>
<div
class=
"btn btn-signIn"
data-toggle=
"modal"
data-target=
"#signIn"
>
Sign in
</div>
</li>
...
...
@@ -60,7 +60,7 @@
{%
endif
%}
<!-- end header -->
</div>
</div>
</div>
</div>
</section>
...
...
@@ -108,6 +108,7 @@
<section
class=
"focus-news"
>
<div
class=
"row"
>
<div
class=
"col-12 col-lg-9"
>
<!-- content_second -->
{%
if
page.content_second
%}
...
...
@@ -135,14 +136,14 @@
<section
class=
"hot-news"
>
<div
class=
"row"
>
<div
class=
"col-lg-9 col-12"
>
<div
class=
"col-lg-9 col-
md-8 col-
12"
>
<!-- content_four -->
{%
if
page.content_four
%}
{{
page.content_four
}}
{%
endif
%}
<!-- end content_four -->
</div>
<div
class=
"col-lg-3 col-12"
>
<div
class=
"col-lg-3 col-
md-4 col-
12"
>
<!-- sidebar_right_four -->
{%
if
page.sidebar_right_four
%}
{{
page.sidebar_right_four
}}
...
...
@@ -228,4 +229,4 @@
</div>
</div>
</div>
</footer>
\ No newline at end of file
</footer>
themes/custom/sgmt/templates/layout/page.html.twig
View file @
f72a8917
...
...
@@ -2,7 +2,7 @@
<div
class=
"header-account"
>
<div
class=
"container"
>
{%
if
not
logged_in
%}
<ul
class=
"navbar-nav flex-row align-items-center justify-content-end h-100"
>
<ul
class=
"navbar-nav flex-row
d-none d-lg-flex
align-items-center justify-content-end h-100"
>
<li
class=
"nav-item"
>
<div
class=
"btn btn-signIn"
data-toggle=
"modal"
data-target=
"#signIn"
>
Sign in
</div>
</li>
...
...
@@ -118,7 +118,7 @@
<!-- end top_main_content -->
</div>
<div
class=
"row"
>
<div
class=
"col-12 col-lg-9"
>
<div
class=
"col-12 col-
md-8 col-
lg-9"
>
<!-- main_content -->
{%
if
page.main_content
%}
...
...
@@ -127,7 +127,7 @@
<!-- end main_content -->
</div>
<div
class=
"col-lg-3 col-12"
>
<div
class=
"col-lg-3 col-
md-4 col-
12"
>
<!-- sidebar_right_second -->
{%
if
page.sidebar_right_second
%}
{{
page.sidebar_right_second
}}
...
...
themes/custom/sgmt/templates/navigation/breadcrumb.html.twig
View file @
f72a8917
...
...
@@ -8,7 +8,7 @@
*/
#}
{%
if
breadcrumb
%}
<div
class=
"headline d-none d-
lg
-flex align-items-center"
>
<div
class=
"headline d-none d-
md
-flex align-items-center"
>
{%
for
item
in
breadcrumb
%}
{%
if
loop.index
==
1
%}
{%
if
item.url
%}
...
...
themes/custom/sgmt/templates/navigation/menu--main.html.twig
View file @
f72a8917
...
...
@@ -17,8 +17,8 @@
* @ingroup templates
*/
#}
<nav
class=
"navbar navbar-expand-
md
"
>
<nav
class=
"navbar navbar-expand-
lg
"
>
<h5
class=
"d-lg-none text-uppercase text-white mb-0 flex-1"
><a
href=
"
{{
url
(
'<front>'
)
}}
"
>
{{
site_name
}}
</a></h5>
...
...
@@ -57,4 +57,4 @@
</li>
</ul>
</div>
</nav>
\ No newline at end of file
</nav>
themes/custom/sgmt/templates/views/views-view-unformatted--advertising--block-ads-1.html.twig
View file @
f72a8917
<div
class=
"hot-news__imgs"
>
<div
class=
"hot-news__imgs
d-lg-block d-none
"
>
{%
for
row
in
rows
%}
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"
{{
row.content
[
'#row'
]
.
_entity.field_url
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"mb-2 w-100"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
></a>
{%
endfor
%}
</div>
\ No newline at end of file
</div>
themes/custom/sgmt/templates/views/views-view-unformatted--ambassador--block-ambassador.html.twig
View file @
f72a8917
<div
class=
"title"
>
<div
class=
"d-flex"
>
<div
class=
"title-img"
><img
src=
"/themes/custom/sgmt/assets/images/icon/lacay.png"
alt=
""
></div>
<div
class=
"title-text"
>
Sứ giả môi trường
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"d-lg-block d-lg-none"
>
<div
class=
"title"
>
<div
class=
"d-flex"
>
<div
class=
"title-img"
><img
src=
"/themes/custom/sgmt/assets/images/icon/lacay.png"
alt=
""
></div>
<div
class=
"title-text"
>
Sứ giả môi trường
</div>
</div>
<div
class=
"line"
></div>
</div>
<div
class=
"ambassador__list"
>
{%
for
row
in
rows
%}
<div
class=
"ambassador__list-item"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
></a>
<div
class=
"text-center mt-2"
>
<div
class=
"name font-weight-bold text-uppercase"
><a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</a></div>
<span
class=
"address"
>
{{
row.content
[
'#row'
]
.
_entity.field_address.0.administrative_area
}}
</span>
</div>
</div>
{%
endfor
%}
</div>
</div>
<div
class=
"ambassador__list"
>
{%
for
row
in
rows
%}
<div
class=
"ambassador__list-item"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
></a>
<div
class=
"text-center mt-2"
>
<div
class=
"name font-weight-bold text-uppercase"
><a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</a></div>
<span
class=
"address"
>
{{
row.content
[
'#row'
]
.
_entity.field_address.0.administrative_area
}}
</span>
</div>
</div>
{%
endfor
%}
</div>
\ No newline at end of file
themes/custom/sgmt/templates/views/views-view-unformatted--article--block-environmental-focus.html.twig
View file @
f72a8917
...
...
@@ -7,7 +7,7 @@
</div>
<div
class=
"row"
>
{%
for
row
in
rows
%}
<div
class=
"col-lg-6 col-12"
>
<div
class=
"col-lg-6 col-
md-4 col-
12"
>
<div
class=
"focus-news-item d-flex"
>
<div
class=
"focus-news__img"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
...
...
@@ -23,4 +23,4 @@
</div>
</div>
{%
endfor
%}
</div>
\ No newline at end of file
</div>
themes/custom/sgmt/templates/views/views-view-unformatted--article--block-environmental-violate.html.twig
View file @
f72a8917
<div
class=
"title"
>
<div
class=
"d-flex"
>
<div
class=
"title-img"
><img
src=
"/themes/custom/sgmt/assets/images/icon/lacay.png"
alt=
""
></div>
<div
class=
"title-text"
>
Vi phạm ô nhiễm môi trường
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"d-flex"
>
<div
class=
"title-img"
><img
src=
"/themes/custom/sgmt/assets/images/icon/lacay.png"
alt=
""
></div>
<div
class=
"title-text"
>
Vi phạm ô nhiễm môi trường
</div>
</div>
<div
class=
"line"
></div>
</div>
<div
class=
"row"
>
{%
for
row
in
rows
%}
{%
if
loop.index
==
1
%}
<div
class=
"col-lg-7 col-12 "
>
<div
class=
"hot-news__brand"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
>
<h5>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</h5></a>
<div
class=
"hot-news__brand-time"
>
<i
class=
"fas fa-clock icon1"
>
 
{{
row
[
'content'
][
'#row'
]
.
_entity.created
[
0
]
.
value
|
date
(
'd/m/Y'
)
}}
</i>
   
<i
class=
"fas fa-comments icon1"
>
 
{{
row.content
[
'#row'
]
.
_entity.comment.comment_count
}}
</i>
<p
class=
"description"
>
{%
set
text
=
row.content
[
'#row'
]
.
_entity.body
[
0
]
.
value
|
render
|
striptags
%}
{{
text
|
length
>
400
?
text
|
slice
(
0
,
400
)
|
raw
~
'...'
:
text
|
raw
}}
</p>
</div>
</div>
</div>
<div
class=
"col-lg-5 col-12"
>
<div
class=
"focus-news"
>
{%
for
row
in
rows
%}
{%
if
loop.index
==
1
%}
<div
class=
"col-lg-7 col-12 "
>
<div
class=
"hot-news__brand"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
>
<h5>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</h5>
</a>
<div
class=
"hot-news__brand-time"
>
<i
class=
"fas fa-clock icon1"
>
 
{{
row
[
'content'
][
'#row'
]
.
_entity.created
[
0
]
.
value
|
date
(
'd/m/Y'
)
}}
</i>
   
<i
class=
"fas fa-comments icon1"
>
 
{{
row.content
[
'#row'
]
.
_entity.comment.comment_count
}}
</i>
<p
class=
"description"
>
{%
set
text
=
row.content
[
'#row'
]
.
_entity.body
[
0
]
.
value
|
render
|
striptags
%}
{{
text
|
length
>
400
?
text
|
slice
(
0
,
400
)
|
raw
~
'...'
:
text
|
raw
}}
</p>
</div>
</div>
</div>
<div
class=
"col-lg-5 col-12"
>
<div
class=
"focus-news"
>
{%
endif
%}
{%
if
loop.index
!=
7
and
loop.index
!=
1
%}
<div
class=
"focus-news-item d-flex"
>
<div
class=
"focus-news__img"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
></a>
</div>
<div
class=
"focus-news__content"
>
<div
class=
"font-weight-bold focus-news__content-title mb-2"
><a
href=
"node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</a></div>
<p
class=
"d-flex icon"
>
<i
class=
"fas fa-clock"
>
 
{{
row
[
'content'
][
'#row'
]
.
_entity.created
[
0
]
.
value
|
date
(
'd/m/Y'
)
}}
</i>
  
<i
class=
"fas fa-comments"
>
 
{{
row.content
[
'#row'
]
.
_entity.comment.comment_count
}}
</i>
</p>
</div>
<div
class=
"focus-news-item d-flex"
>
<div
class=
"focus-news__img"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
></a>
</div>
<div
class=
"focus-news__content"
>
<div
class=
"font-weight-bold focus-news__content-title mb-2"
>
<a
href=
"node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</a>
</div>
<p
class=
"d-flex icon"
>
<i
class=
"fas fa-clock"
>
 
{{
row
[
'content'
][
'#row'
]
.
_entity.created
[
0
]
.
value
|
date
(
'd/m/Y'
)
}}
</i>
  
<i
class=
"fas fa-comments"
>
 
{{
row.content
[
'#row'
]
.
_entity.comment.comment_count
}}
</i>
</p>
</div>
</div>
{%
endif
%}
{%
if
loop.index
==
7
%}
<div
class=
"focus-news-item d-flex"
>
<div
class=
"focus-news__img"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
></a>
</div>
<div
class=
"focus-news__content"
>
<div
class=
"font-weight-bold focus-news__content-title mb-2"
><a
href=
"node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</a></div>
<p
class=
"d-flex icon"
>
<i
class=
"fas fa-clock"
>
 
{{
row
[
'content'
][
'#row'
]
.
_entity.created
[
0
]
.
value
|
date
(
'd/m/Y'
)
}}
</i>
  
<i
class=
"fas fa-comments"
>
 
{{
row.content
[
'#row'
]
.
_entity.comment.comment_count
}}
</i>
</p>
</div>
</div>
<div
class=
"focus-news-item d-flex"
>
<div
class=
"focus-news__img"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
></a>
</div>
<div
class=
"focus-news__content"
>
<div
class=
"font-weight-bold focus-news__content-title mb-2"
>
<a
href=
"node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
>
{{
row.content
[
'#row'
]
.
_entity.title
[
0
]
.
value
}}
</a>
</div>
<p
class=
"d-flex icon"
>
<i
class=
"fas fa-clock"
>
 
{{
row
[
'content'
][
'#row'
]
.
_entity.created
[
0
]
.
value
|
date
(
'd/m/Y'
)
}}
</i>
  
<i
class=
"fas fa-comments"
>
 
{{
row.content
[
'#row'
]
.
_entity.comment.comment_count
}}
</i>
</p>
</div>
{%
endif
%}
{%
endfor
%}
</div>
\ No newline at end of file
</div>
</div>
</div>
{%
endif
%}
{%
endfor
%}
</div>
themes/custom/sgmt/templates/views/views-view-unformatted--article--block-news.html.twig
View file @
f72a8917
<div
class=
"row"
>
{%
for
row
in
rows
%}
{%
if
loop.index
==
1
%}
<div
class=
"col-lg-8 col-12"
>
<div
class=
"col-lg-8 col-
md-6 col-
12"
>
<div
class=
"hot-news__brand"
>
{%
set
photo
=
file_url
(
row
[
'content'
][
'#row'
]
.
_entity.field_image.entity.fileuri
)
%}
<a
href=
"/node/
{{
row.content
[
'#row'
]
.
_entity.nid
[
0
]
.
value
}}
"
><img
src=
"
{{
photo
}}
"
class=
"img-fluid"
alt=
"
{{
row
[
'content'
][
'#row'
]
.
_entity.field_image.alt
}}
"
>
...
...
@@ -17,7 +17,7 @@
</div>
</div>
</div>
<div
class=
"col-lg-4 col-12"
>
<div
class=
"col-lg-4 col-
md-6 col-
12"
>
<div
class=
"hot-news__list"
>
{%
endif
%}
{%
if
loop.index
!=
7
and
loop.index
!=
1
%}
...
...
@@ -37,4 +37,4 @@
</div>
{%
endif
%}
{%
endfor
%}
</div>
\ No newline at end of file
</div>
themes/custom/sgmt/templates/views/views-view-unformatted--article--block-related.html.twig
View file @
f72a8917
<div
class=
"row"
>
<div
class=
"col-lg-9 col-12"
>
<div
class=
"container"
>
<div
class=
"col-lg-9 col-
md-8 col-
12"
>
<div
class=
"container
ctn-720
"
>
<h2
class=
" mb-3"
>
Bài viết liên quan
</h2>
<section
class=
"sliders-news type-3 custom-slick mb-5"
>
{%
for
row
in
rows
%}
...
...
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