Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
ptd
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
ptd
Commits
e0aa2d4a
Commit
e0aa2d4a
authored
Jun 03, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit ..
parent
13edb288
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
6 deletions
+98
-6
styles.css
themes/contrib/estore/css/styles.css
+0
-0
gift.svg
themes/contrib/estore/images/gift.svg
+69
-0
custom.js
themes/contrib/estore/js/custom.js
+14
-1
block--system-branding-block.html.twig
...re/templates/block/block--system-branding-block.html.twig
+8
-2
commerce-product--teaser.html.twig
...ore/templates/commerce/commerce-product--teaser.html.twig
+3
-1
commerce-product.html.twig
...trib/estore/templates/commerce/commerce-product.html.twig
+3
-1
views-view-unformatted--products--block-featured.html.twig
...iews-view-unformatted--products--block-featured.html.twig
+1
-1
No files found.
themes/contrib/estore/css/styles.css
View file @
e0aa2d4a
This diff is collapsed.
Click to expand it.
themes/contrib/estore/images/gift.svg
0 → 100755
View file @
e0aa2d4a
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Capa_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 512 512"
style=
"enable-background:new 0 0 512 512;"
xml:space=
"preserve"
>
<polygon
style=
"fill:#ED7064;"
points=
"22.568,229.834 231.939,109.12 441.31,229.834 441.455,229.75 441.455,391.036 231.939,512
22.423,391.036 22.423,229.75 "
/>
<polygon
style=
"fill:#C40041;"
points=
"22.423,391.036 231.939,512 231.939,350.715 22.423,229.75 "
/>
<polygon
style=
"fill:#F43834;"
points=
"231.939,350.715 441.455,229.75 441.455,391.036 231.939,512 "
/>
<polygon
style=
"fill:#FF8A5C;"
points=
"11.317,167.729 231.939,40.528 452.561,167.729 452.713,167.641 452.713,223.443
231.939,350.907 11.165,223.443 11.165,167.641 "
/>
<polygon
style=
"fill:#F43834;"
points=
"11.165,223.443 231.939,350.907 231.939,295.105 11.165,167.641 "
/>
<polygon
style=
"fill:#FF5331;"
points=
"231.939,295.105 452.713,167.641 452.713,223.443 231.939,350.907 "
/>
<polygon
style=
"fill:#FF812C;"
points=
"143.114,460.717 88.266,429.05 88.266,211.973 308.631,84.745 363.452,116.353
143.114,243.565 "
/>
<polygon
style=
"fill:#FF9F2C;"
points=
"321.864,460.07 376.712,428.403 376.712,211.326 156.348,84.098 101.526,115.706
321.864,242.918 "
/>
<g>
<polygon
style=
"fill:#FFD800;"
points=
"321.864,242.918 376.712,211.326 156.348,84.098 101.526,115.706 "
/>
<polygon
style=
"fill:#FFD800;"
points=
"143.114,243.565 88.266,211.973 308.631,84.745 363.452,116.353 "
/>
</g>
<g>
<polygon
style=
"fill:#F0C419;"
points=
"459.912,204.961 447.188,173.729 500.835,156.674 250.42,111.512 209.527,159.804 "
/>
<polygon
style=
"fill:#F0C419;"
points=
"229.829,366.666 203.818,345.201 171.529,391.314 203.158,138.832 261.454,114.214 "
/>
</g>
<path
style=
"fill:#FFD800;"
d=
"M250.838,134.616c-3.811-4.714-4.948-11.028-3.04-16.781c9.529-28.74,36.521-102.331,81.496-115.963
c42.026-12.738,94.921,41.85,61.405,93.683c-26.688,41.273-89.968,53.439-114.645,56.683c-6.153,0.809-12.274-1.613-16.176-6.439
L250.838,134.616z"
/>
<path
style=
"fill:#DCA700;"
d=
"M360.892,61.068c19.805-10.837,30.242,1.518,23.479,21.507c-6.764,19.99-41.373,39.044-61.926,49.099
c-20.553,10.055-48.773,13.685-48.773,13.685S341.087,71.905,360.892,61.068z"
/>
<path
style=
"fill:#FFE252;"
d=
"M183.568,131.791c6.849-5.409,14.667-8.286,22.502-8.903c10.433-0.823,19.702-6.173,25.631-14.797
c4.453-6.478,10.855-11.811,18.966-15.038c17.143-6.821,37.244-1.057,48.228,13.767c15.006,20.252,8.728,48.39-12.458,60.622
c-5.721,3.303-11.899,5.076-18.07,5.454c-10.028,0.614-18.961,5.771-24.507,14.149c-3.412,5.155-8.037,9.618-13.758,12.921
c-21.187,12.232-48.696,3.599-58.73-19.525C164.028,163.515,169.089,143.226,183.568,131.791z"
/>
<path
style=
"fill:#FFD800;"
d=
"M199.189,156.221c-3.217-5.137-8.818-8.267-14.879-8.335c-30.277-0.34-108.646,1.24-136.169,39.333
c-25.718,35.595,8.69,103.373,68.607,88.544c47.71-11.808,79.803-67.687,90.899-89.965c2.767-5.555,2.468-12.131-0.826-17.391
L199.189,156.221z"
/>
<path
style=
"fill:#DCA700;"
d=
"M93.836,236.358c-16.691,15.201-8.404,29.091,12.698,29.199
c21.103,0.108,50.381-26.419,66.576-42.582c16.195-16.164,28.809-41.667,28.809-41.667S110.528,221.156,93.836,236.358z"
/>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>
themes/contrib/estore/js/custom.js
View file @
e0aa2d4a
...
...
@@ -2,7 +2,20 @@
* @file
* Contain code for header elements
*/
var
acc
=
document
.
getElementsByClassName
(
"accordion"
);
var
i
;
for
(
i
=
0
;
i
<
acc
.
length
;
i
++
)
{
acc
[
i
].
addEventListener
(
"click"
,
function
()
{
this
.
classList
.
toggle
(
"active"
);
var
panel
=
this
.
nextElementSibling
;
if
(
panel
.
style
.
maxHeight
)
{
panel
.
style
.
maxHeight
=
null
;
}
else
{
panel
.
style
.
maxHeight
=
panel
.
scrollHeight
+
"px"
;
}
});
}
(
function
(
$
,
Drupal
)
{
var
rightMenu
=
$
(
".menu.menu--category-menu.nav"
);
lengthMenu
=
rightMenu
.
children
(
'li'
).
length
;
...
...
themes/contrib/estore/templates/block/block--system-branding-block.html.twig
View file @
e0aa2d4a
...
...
@@ -19,14 +19,20 @@
<div
class=
"branding-block clearfix"
>
{%
if
site_logo
%}
<a
class=
"logo navbar-btn pull-left"
href=
"
{{
path
(
'<front>'
)
}}
"
title=
"
{{
'Home'
|
t
}}
"
rel=
"home"
>
<img
class=
"logo_img"
src=
"/themes/contrib/estore/logo0.png"
alt=
"
{{
'Home'
|
t
}}
"
/>
<div
class=
"img-logo"
>
<div
class=
"logo-top"
></div>
<div
class=
"logo-center"
></div>
<img
class=
"logo_img"
src=
"/themes/contrib/estore/logo0.png"
alt=
"
{{
'Home'
|
t
}}
"
/>
<div
class=
"logo-bottom"
></div>
</div>
</a>
{%
endif
%}
{%
if
site_name
or
site_slogan
%}
<div
class=
"site-title"
>
{%
if
site_name
%}
<a
class=
"name navbar-brand"
href=
"
{{
path
(
'<front>'
)
}}
"
title=
"
{{
'Home'
|
t
}}
"
rel=
"home"
>
Pin Tuan Dung
</a>
<a
class=
"name navbar-brand"
href=
"
{{
path
(
'<front>'
)
}}
"
title=
"
{{
'Home'
|
t
}}
"
rel=
"home"
>
Pin Tuan Dung
</a>
<!-- <a class="name navbar-brand" href="
{{
path
(
'<front>'
)
}}
" title="
{{
'Home'
|
t
}}
" rel="home">
{{
site_name
}}
</a> -->
{%
endif
%}
{%
if
site_slogan
%}
...
...
themes/contrib/estore/templates/commerce/commerce-product--teaser.html.twig
View file @
e0aa2d4a
...
...
@@ -29,7 +29,9 @@
<a
href=
"
{{
product_url
}}
"
>
{{
product.title
}}
</a>
</h3>
{%
if
product.field_sale
[
0
][
'#markup'
]
==
1
%}
<div
class=
"sales-tag"
>
{{
'Sale!'
|
t
}}
</div>
<img
src=
"/themes/contrib/estore/images/gift.svg"
alt=
"gift"
class=
"gift-sale"
>
<div
class=
"sales-tag"
></div>
{%
endif
%}
{{
-
product
|
without
(
'variation_attributes'
,
'field_images'
,
'title'
,
'field_sale'
)
-
}}
</article>
themes/contrib/estore/templates/commerce/commerce-product.html.twig
View file @
e0aa2d4a
...
...
@@ -30,7 +30,9 @@
{{
product
|
without
(
'variation_attributes'
,
'field_images'
,
'field_reviews'
,
'field_related_products'
,
'body'
,
'field_sale'
)
}}
</div>
{%
if
product.field_sale
[
0
][
'#markup'
]
==
1
%}
<div
class=
"sales-tag"
>
{{
'Sale!'
|
t
}}
</div>
<div
class=
"contain-gift"
>
<img
src=
"/themes/contrib/estore/images/gift.svg"
alt=
"gift"
class=
"gift-sale-big"
>
</div>
{%
endif
%}
...
...
themes/contrib/estore/templates/views/views-view-unformatted--products--block-featured.html.twig
View file @
e0aa2d4a
...
...
@@ -20,7 +20,7 @@
<div
id=
"estore-featured-products-carousel"
class=
"features-products-carousel carousel slide"
data-ride=
"carousel"
>
<div
class=
"featured-top"
>
<div
class=
"featured-title"
>
<h3
class=
"title"
>
{{
'Sản phẩm
nổi bật
'
|
t
}}
</h3>
<h3
class=
"title"
>
{{
'Sản phẩm
có khuyễn mãi
'
|
t
}}
</h3>
{%
if
view.display_handler.options
[
'title'
]
!=
''
%}
{# <h4 class="sub-title">
{{
view.display_handler.options['title']|t }}</h4> #}
{%
endif
%}
...
...
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