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
75cf8b94
Commit
75cf8b94
authored
Aug 22, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update]Product page : Add H/W fields to format icon
parent
8dd0fa18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
.DS_Store
wp-content/themes/nap/assets/css/.DS_Store
+0
-0
.DS_Store
wp-content/themes/nap/assets/js/.DS_Store
+0
-0
functions.php
wp-content/themes/nap/functions.php
+5
-0
variable.php
...s/nap/woocommerce/single-product/add-to-cart/variable.php
+1
-1
No files found.
wp-content/themes/nap/assets/css/.DS_Store
deleted
100644 → 0
View file @
8dd0fa18
File deleted
wp-content/themes/nap/assets/js/.DS_Store
deleted
100644 → 0
View file @
8dd0fa18
File deleted
wp-content/themes/nap/functions.php
View file @
75cf8b94
...
...
@@ -381,8 +381,13 @@ function nap_icon_format($name){
$termID
=
$term
->
term_id
;
$active
=
get_field
(
'format_icone_active'
,
'pa_format_'
.
$termID
);
$inactive
=
get_field
(
'format_icone_inactive'
,
'pa_format_'
.
$termID
);
$iconHeight
=
get_field
(
'hauteur_icone'
,
'pa_format_'
.
$termID
);
$iconWidth
=
get_field
(
'largeur_icone'
,
'pa_format_'
.
$termID
);
$icons
[
'active'
]
=
$active
;
$icons
[
'inactive'
]
=
$inactive
;
$icons
[
'height'
]
=
$iconHeight
;
$icons
[
'width'
]
=
$iconWidth
;
return
$icons
;
...
...
wp-content/themes/nap/woocommerce/single-product/add-to-cart/variable.php
View file @
75cf8b94
...
...
@@ -60,7 +60,7 @@ if (!function_exists('print_attribute_radio')) {
}
else
{
$icons
=
nap_icon_format
(
$value
);
$format_img
=
'<img src="'
.
$icons
[
'inactive'
]
.
'" data-img = "'
.
$icons
[
'inactive'
]
.
'" data-img-active = "'
.
$icons
[
'active'
]
.
'" id="format_'
.
$index
.
'">'
;
$format_img
=
'<img src="'
.
$icons
[
'inactive'
]
.
'" data-img = "'
.
$icons
[
'inactive'
]
.
'" data-img-active = "'
.
$icons
[
'active'
]
.
'" id="format_'
.
$index
.
'"
style ="height:'
.
$icons
[
'height'
]
.
'px;width:'
.
$icons
[
'width'
]
.
'px"
>'
;
$filtered_label
=
apply_filters
(
'woocommerce_variation_option_name'
,
$label
);
...
...
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