Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
cd1ab84c
Commit
cd1ab84c
authored
Aug 28, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]Add download link
parent
30ff71ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
simple.php
...mes/nap/woocommerce/single-product/add-to-cart/simple.php
+3
-1
variable.php
...s/nap/woocommerce/single-product/add-to-cart/variable.php
+3
-1
No files found.
wp-content/themes/nap/woocommerce/single-product/add-to-cart/simple.php
View file @
cd1ab84c
...
...
@@ -88,7 +88,9 @@ do_action('woocommerce_before_add_to_cart_form');
<article
class =
"row"
data-color =
"
<?php
echo
get_post_thumbnail_id
(
$ID
)
?>
"
>
<a
href=
"
<?php
echo
get_the_post_thumbnail_url
(
$ID
,
'full'
)
?>
"
></a>
<?php
if
(
is_user_logged_in
()
)
{
?>
<a
class =
"download-btn"
href=
"
<?php
echo
get_the_post_thumbnail_url
(
$ID
,
'full'
)
?>
"
download
></a>
<?php
}
?>
<figure>
<img
src=
"
<?php
echo
get_the_post_thumbnail_url
(
$ID
,
'medium'
)
?>
"
alt=
""
title=
""
>
</figure>
...
...
wp-content/themes/nap/woocommerce/single-product/add-to-cart/variable.php
View file @
cd1ab84c
...
...
@@ -147,7 +147,9 @@ do_action('woocommerce_before_add_to_cart_form');
<?php
foreach
(
$var_colors
as
$key
=>
$value
)
:
?>
<article
class =
"row"
data-color =
"
<?php
echo
$value
;
?>
"
>
<a
href=
"
<?php
echo
get_the_post_thumbnail_url
(
$key
,
'full'
)
?>
"
></a>
<?php
if
(
is_user_logged_in
()
)
{
?>
<a
class =
"download-btn"
href=
"
<?php
echo
get_the_post_thumbnail_url
(
$key
,
'full'
)
?>
"
download
></a>
<?php
}
?>
<figure>
<img
src=
"
<?php
echo
get_the_post_thumbnail_url
(
$key
,
'medium'
)
?>
"
alt=
""
title=
""
>
</figure>
...
...
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