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
ef48f362
Commit
ef48f362
authored
Jul 20, 2017
by
Nahla Shiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
css modifié
parent
4fa9d076
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
44 deletions
+45
-44
main.css
wp-content/themes/nap/assets/css/main.css
+2
-2
nap.js
wp-content/themes/nap/assets/js/nap.js
+25
-0
fiche-technique.php
wp-content/themes/nap/fiche-technique.php
+3
-3
variable.php
...s/nap/woocommerce/single-product/add-to-cart/variable.php
+15
-39
No files found.
wp-content/themes/nap/assets/css/main.css
View file @
ef48f362
...
@@ -890,7 +890,7 @@ aside.news-wrapper {
...
@@ -890,7 +890,7 @@ aside.news-wrapper {
}
}
#slides
{
#slides
{
/* width: 80%;*/
/* width: 80%;*/
width
:
416
px
;
width
:
500
px
;
}
}
#slides
.image
>
img
{
#slides
.image
>
img
{
max-width
:
100%
;
max-width
:
100%
;
...
@@ -948,7 +948,7 @@ aside.news-wrapper {
...
@@ -948,7 +948,7 @@ aside.news-wrapper {
}
}
.nav-slider
ul
{
.nav-slider
ul
{
position
:
absolute
;
position
:
absolute
;
left
:
84
.5%
;
left
:
95
.5%
;
z-index
:
999
;
z-index
:
999
;
display
:
table
;
display
:
table
;
}
}
...
...
wp-content/themes/nap/assets/js/nap.js
View file @
ef48f362
...
@@ -15,5 +15,30 @@ jQuery( document ).ready( function() {
...
@@ -15,5 +15,30 @@ jQuery( document ).ready( function() {
return
false
;
return
false
;
});
});
jQuery
(
document
).
on
(
'change'
,
'.color-list input,.format-list input '
,
function
()
{
var
varID
=
jQuery
(
'input[name="variation_id"]'
).
val
();
if
(
varID
!=
0
){
var
price
=
jQuery
(
'.woocommerce-variation-price .woocommerce-Price-amount'
).
text
();
var
pq
=
jQuery
(
'.woocommerce-variation-description'
).
text
();
jQuery
(
'.price .crete'
).
text
(
price
);
jQuery
(
'.pq'
).
text
(
pq
);
}
var
name
=
jQuery
(
this
).
attr
(
'name'
);
if
(
jQuery
(
this
).
is
(
':checked'
)
&&
name
==
'attribute_pa_couleur'
){
jQuery
(
'.info-color'
).
text
(
jQuery
(
this
).
attr
(
'value'
));
}
if
(
jQuery
(
this
).
is
(
':checked'
)
&&
name
==
'attribute_pa_format'
){
jQuery
(
'.info-format'
).
text
(
jQuery
(
this
).
attr
(
'value'
));
jQuery
(
'.info-format-txt'
).
text
(
jQuery
(
this
).
attr
(
'value'
));
}
});
});
});
\ No newline at end of file
wp-content/themes/nap/fiche-technique.php
View file @
ef48f362
...
@@ -125,7 +125,7 @@ $product = wc_get_product($product_infos->ID);
...
@@ -125,7 +125,7 @@ $product = wc_get_product($product_infos->ID);
$tags
=
$product
->
get_tag_ids
();
$tags
=
$product
->
get_tag_ids
();
$file_title
.=
"<br/>"
.
$variable_product
->
get_attribute
(
'format'
)
.
" "
.
get_tag
(
$tags
[
0
])
->
name
;
$file_title
.=
"<br/>"
.
$variable_product
->
get_attribute
(
'format'
)
.
" "
.
get_tag
(
$tags
[
0
])
->
name
;
$thumb_image
=
get_the_post_thumbnail_url
(
$variation_id
,
'medium'
);
...
@@ -137,7 +137,7 @@ echo $file_content = "<html>
...
@@ -137,7 +137,7 @@ echo $file_content = "<html>
<body><div class='file_content'>
<body><div class='file_content'>
<div class='file_header'>
<div class='file_header'>
<div class='half_width thumb_var'>
<div class='half_width thumb_var'>
"
.
$thumb_image
=
get_the_post_thumbnail
(
$variation_id
,
'large'
)
.
"
<img src= "
.
$thumb_image
.
" />
</div>
</div>
<div class='half_width'>
<div class='half_width'>
<h1>"
.
$file_title
.
"</h1>
<h1>"
.
$file_title
.
"</h1>
...
@@ -147,7 +147,7 @@ echo $file_content = "<html>
...
@@ -147,7 +147,7 @@ echo $file_content = "<html>
</div>
</div>
<div class='bleu_zone'>
<div class='bleu_zone'>
<div class='half_width'>
<div class='half_width'>
<p>Code article : "
.
$code_variation
[
'var_code'
]
.
"</p>
<p>Code article : "
.
nap_variable_meta
(
$variation_id
,
'sku'
)
.
"</p>
<p>Gencod : "
.
$code_variation
[
'var_gencod'
]
.
"</p>
<p>Gencod : "
.
$code_variation
[
'var_gencod'
]
.
"</p>
<p>ITF 14 : "
.
$code_variation
[
'var_itf14'
]
.
"</p>
<p>ITF 14 : "
.
$code_variation
[
'var_itf14'
]
.
"</p>
...
...
wp-content/themes/nap/woocommerce/single-product/add-to-cart/variable.php
View file @
ef48f362
...
@@ -166,12 +166,14 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -166,12 +166,14 @@ do_action('woocommerce_before_add_to_cart_form');
<p
class=
"stock out-of-stock"
>
<?php
_e
(
'This product is currently out of stock and unavailable.'
,
'woocommerce'
);
?>
</p>
<p
class=
"stock out-of-stock"
>
<?php
_e
(
'This product is currently out of stock and unavailable.'
,
'woocommerce'
);
?>
</p>
<?php
else
:
?>
<?php
else
:
?>
<div
class=
"variations"
cellspacing=
"0"
>
<div
class=
"variations"
cellspacing=
"0"
>
<?php
foreach
(
$attributes
as
$name
=>
$options
)
:
?>
<?php
$i
=
0
;
foreach
(
$attributes
as
$name
=>
$options
)
:
?>
<div
class=
"list row
<?php
echo
$name
;
?>
left border-l center"
>
<div
class=
"list row
<?php
echo
$name
;
?>
left border-l center"
>
<div
class=
"product-header center font-small label"
>
<div
class=
"product-header center font-small label"
>
<label
for=
"
<?php
echo
sanitize_title
(
$name
);
?>
"
class =
"chevron bottom"
>
Choix
de la
<?php
echo
wc_attribute_label
(
$name
);
?>
</label>
<label
for=
"
<?php
echo
sanitize_title
(
$name
);
?>
"
class =
"chevron bottom"
>
Choix
<?php
if
(
$i
==
0
)
echo
'de la '
;
else
echo
'du '
;
?>
<?php
echo
wc_attribute_label
(
$name
);
?>
</label>
</div>
</div>
<?php
<?php
$sanitized_name
=
sanitize_title
(
$name
);
$sanitized_name
=
sanitize_title
(
$name
);
...
@@ -207,7 +209,7 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -207,7 +209,7 @@ do_action('woocommerce_before_add_to_cart_form');
?>
?>
</ul>
</ul>
</div>
</div>
<?php
endforeach
;
?>
<?php
$i
++
;
endforeach
;
?>
</div>
</div>
...
@@ -268,10 +270,10 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -268,10 +270,10 @@ do_action('woocommerce_before_add_to_cart_form');
<div
class=
"info-content"
>
<div
class=
"info-content"
>
<h2
class =
"crete -italic font-small"
>
<?php
echo
$product_cats
[
1
]
->
name
?>
</h2>
<h2
class =
"crete -italic font-small"
>
<?php
echo
$product_cats
[
1
]
->
name
?>
</h2>
<h3
class =
"crete -italic font-small
"
>
39x39 abricot
</h3>
<h3
class =
"crete -italic font-small
info-attr"
><span
class=
"info-format"
>
<?php
echo
$_GET
[
'attribute_format'
]
?>
</span>
<span
class=
"info-color"
>
<?php
echo
$_GET
[
'attribute_couleur'
]
?>
</span>
</h3>
<div
class=
"details font-small"
>
<div
class=
"details font-small"
>
<p
>
39 x 39 cm - 2 feuilles
</p>
<p
class=
"info-format-txt"
>
<?php
echo
$_GET
[
'attribute_format'
]
?>
</p>
<p>
<?php
echo
nap_variable_meta
(
$current_variationID
,
'variation_description'
);
?>
</p>
<p
class=
"pq"
>
<?php
echo
nap_variable_meta
(
$current_variationID
,
'variation_description'
);
?>
</p>
</div>
</div>
<div
class=
"price"
>
<div
class=
"price"
>
<span
class=
"crete"
>
<?php
echo
nap_variable_meta
(
$current_variationID
,
'price'
);
?>
€ ht
</span>
<span
class=
"crete"
>
<?php
echo
nap_variable_meta
(
$current_variationID
,
'price'
);
?>
€ ht
</span>
...
@@ -312,45 +314,19 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -312,45 +314,19 @@ do_action('woocommerce_before_add_to_cart_form');
<article
class =
"row full-width"
>
<article
class =
"row full-width"
>
<a
href=
"#"
></a>
<a
href=
"#"
></a>
<figure>
<figure>
<img
src=
"img/assoc1.jpg"
alt=
""
title=
""
>
<img
src=
"http://nap.mano.fr/wp-content/uploads/2017/07/505714-papier-toilette-jumbo-500x375.jpg"
alt=
""
title=
""
>
</figure>
<h3
class =
"font-small"
>
Distributeur pour
<br>
serviettes
</h3>
</article>
<article
class =
"row full-width"
>
<a
href=
"#"
></a>
<figure>
<img
src=
"img/assoc2.jpg"
alt=
""
title=
""
>
</figure>
</figure>
<h3
class =
"font-small"
>
Distributeur pour
<br>
serviettes pliage décalè
</h3>
<h3
class =
"font-small"
>
Bobines papier toilette
</h3>
</article>
</article>
<article
class =
"row full-width"
>
<article
class =
"row full-width"
>
<a
href=
"#"
></a>
<a
href=
"#"
></a>
<figure>
<figure>
<img
src=
"
img/assoc1
.jpg"
alt=
""
title=
""
>
<img
src=
"
http://nap.mano.fr/wp-content/uploads/2017/07/450108-flexibles-noirs-21cm-315x500
.jpg"
alt=
""
title=
""
>
</figure>
</figure>
<h3
class =
"font-small"
>
Distributeur pour
<br>
serviettes
</h3>
<h3
class =
"font-small"
>
Pailles
</h3>
</article>
<article
class =
"row full-width"
>
<a
href=
"#"
></a>
<figure>
<img
src=
"img/assoc2.jpg"
alt=
""
title=
""
>
</figure>
<h3
class =
"font-small"
>
Distributeur pour
<br>
serviettes pliage décalè
</h3>
</article>
<article
class =
"row full-width"
>
<a
href=
"#"
></a>
<figure>
<img
src=
"img/assoc1.jpg"
alt=
""
title=
""
>
</figure>
<h3
class =
"font-small"
>
Distributeur pour
<br>
serviettes
</h3>
</article>
<article
class =
"row full-width"
>
<a
href=
"#"
></a>
<figure>
<img
src=
"img/assoc2.jpg"
alt=
""
title=
""
>
</figure>
<h3
class =
"font-small"
>
Distributeur pour
<br>
serviettes pliage décalè
</h3>
</article>
</article>
</div>
</div>
</div>
</div>
</div>
</div>
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