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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
116 additions
and
102 deletions
+116
-102
index.css
themes/custom/sgmt/assets/css/index.css
+11
-0
style.css
themes/custom/sgmt/assets/css/style.css
+0
-0
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
This diff is collapsed.
Click to expand it.
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