diff --git a/themes/default-bootstrap/css/contact-form.css b/themes/default-bootstrap/css/contact-form.css
index b632687f2..70dc69983 100644
--- a/themes/default-bootstrap/css/contact-form.css
+++ b/themes/default-bootstrap/css/contact-form.css
@@ -17,9 +17,9 @@
padding: 23px 0 0 0;
margin-bottom: 30px;
background: url(../img/contact-form.png) repeat-x white;
- -webkit-box-shadow: rgba(0, 0, 0, 0) 0px 5px 13px;
- -moz-box-shadow: rgba(0, 0, 0, 0) 0px 5px 13px;
- box-shadow: rgba(0, 0, 0, 0) 0px 5px 13px;
+ -webkit-box-shadow: rgba(0, 0, 0, 0.17) 0px 5px 13px;
+ -moz-box-shadow: rgba(0, 0, 0, 0.17) 0px 5px 13px;
+ box-shadow: rgba(0, 0, 0, 0.17) 0px 5px 13px;
}
.contact-form-box fieldset {
padding: 0 19px 21px 19px;
diff --git a/themes/default-bootstrap/css/global.css b/themes/default-bootstrap/css/global.css
index c23693255..c5766fe7a 100644
--- a/themes/default-bootstrap/css/global.css
+++ b/themes/default-bootstrap/css/global.css
@@ -1733,7 +1733,6 @@ ul.step li em {
margin: 0 1px 0 0;
width: 16px;
height: 16px;
- text-indent: -999em;
cursor: pointer;
}
@@ -1741,10 +1740,6 @@ ul.step li em {
background: url(../../../modules/productcomments/img/delete.gif) no-repeat 0 -16px !important;
}
-.star, .star a {
- background: url(modules/productcomments/img/star.png) no-repeat 0 0;
-}
-
.cancel a, .star a {
display: block;
width: 100%;
@@ -3203,25 +3198,46 @@ form#sendComment h3 {
.star {
position: relative;
- top: 2px;
+ top: -1px;
float: left;
- height: 12px;
- width: 12px;
+ width: 14px;
overflow: hidden;
- text-indent: -999em;
cursor: pointer;
+ font-size: 14px;
+ font-weight: normal;
}
.star, .star a {
- background: url(modules/productcomments/img/star.png) no-repeat 0 0;
+ display: block;
}
-div.star_on a {
- background-position: 0 -13px;
+.star a {
+ position: absolute;
+ text-indent: -5000px;
}
-div.star_hover a, div.star a:hover {
- background-position: 0 -13px;
+div.star:after {
+ content: "";
+ font-family: "FontAwesome";
+ display: inline-block;
+ color: #777676;
+}
+
+div.star.star_on {
+ display: block;
+}
+div.star.star_on:after {
+ content: "";
+ font-family: "FontAwesome";
+ display: inline-block;
+ color: #ef8743;
+}
+
+div.star.star_hover:after {
+ content: "";
+ font-family: "FontAwesome";
+ display: inline-block;
+ color: #ef8743;
}
/* ************************************************************************************************
diff --git a/themes/default-bootstrap/css/modules/productcomments/productcomments.css b/themes/default-bootstrap/css/modules/productcomments/productcomments.css
index 7d81eecc8..722424fb0 100644
--- a/themes/default-bootstrap/css/modules/productcomments/productcomments.css
+++ b/themes/default-bootstrap/css/modules/productcomments/productcomments.css
@@ -14,7 +14,6 @@
.comments_advices li {
display: inline-block;
line-height: 30px;
- /*min 768px max 991px*/
}
@media (min-width: 768px) and (max-width: 991px) {
.comments_advices li {
@@ -30,7 +29,6 @@
line-height: 30px;
padding: 0;
display: inline-block;
- /*min 768px max 991px*/
}
@media (min-width: 768px) and (max-width: 1199px) {
.comments_advices a {
@@ -73,7 +71,6 @@
border-right: 1px solid #d6d4d4;
padding-right: 30px;
margin-right: 9px;
- /* min 768px max 991px*/
}
@media (min-width: 768px) and (max-width: 991px) {
.comments_advices a.reviews {
@@ -94,11 +91,17 @@
#product_comments_block_extra .star_content {
margin-top: 1px;
}
-#product_comments_block_extra div.star {
- background: url(img/star.png) no-repeat 0 0;
+#product_comments_block_extra div.star:after {
+ content: "";
+ font-family: "FontAwesome";
+ display: inline-block;
+ color: #777676;
}
-#product_comments_block_extra div.star_on {
- background: url(img/star.png) no-repeat 0 -13px;
+#product_comments_block_extra div.star_on:after {
+ content: "";
+ font-family: "FontAwesome";
+ display: inline-block;
+ color: #ef8743;
}
#product_comments_block_extra .comments_advices {
clear: both;
@@ -125,7 +128,6 @@
overflow: hidden;
color: #333333;
text-align: left;
- /*max 767px*/
}
@media (max-width: 767px) {
#new_comment_form {
@@ -252,12 +254,17 @@
#product_comments_block_tab div.comment .star_content {
margin: 0 0 0 5px;
}
-#product_comments_block_tab div.star,
-#product_comments_block_tab div.star_on {
- background: url(img/star.png) no-repeat 0 0;
+#product_comments_block_tab div.star:after {
+ content: "";
+ font-family: "FontAwesome";
+ display: inline-block;
+ color: #777676;
}
-#product_comments_block_tab div.star_on {
- background-position: 0 -13px;
+#product_comments_block_tab div.star_on:after {
+ content: "";
+ font-family: "FontAwesome";
+ display: inline-block;
+ color: #ef8743;
}
#product_comments_block_tab .comment_author_infos {
clear: both;
@@ -273,7 +280,6 @@
#product_comments_block_tab div.comment div.comment_details {
overflow: hidden;
border-left: 1px solid #d6d4d4;
- /*max 767px */
}
@media (max-width: 991px) {
#product_comments_block_tab div.comment div.comment_details {
diff --git a/themes/default-bootstrap/css/product_list.css b/themes/default-bootstrap/css/product_list.css
index 558e610a6..d22fb2c79 100644
--- a/themes/default-bootstrap/css/product_list.css
+++ b/themes/default-bootstrap/css/product_list.css
@@ -62,6 +62,17 @@ ul.product_list .product-image-container .quick-view {
display: none;
}
}
+ul.product_list .comments_note {
+ text-align: left;
+ overflow: hidden;
+}
+ul.product_list .comments_note .star_content {
+ float: left;
+}
+ul.product_list .comments_note .nb-comments {
+ overflow: hidden;
+ font-style: italic;
+}
/*******************************************************
Product list(Grid) Styles
@@ -113,6 +124,16 @@ ul.product_list.grid > li .product-container h5 {
padding: 0 15px 7px 15px;
min-height: 53px;
}
+@media (min-width: 1200px) {
+ ul.product_list.grid > li .product-container .comments_note {
+ display: none;
+ }
+}
+ul.product_list.grid > li .product-container .comments_note .star_content {
+ margin-left: 59px;
+ margin-right: 3px;
+ margin-bottom: 12px;
+}
ul.product_list.grid > li .product-container .product-desc {
display: none;
}
@@ -165,11 +186,20 @@ ul.product_list.grid > li .product-container .functional-buttons div a:hover, ul
ul.product_list.grid > li .product-container .functional-buttons div.wishlist {
border-right: 1px solid #d6d4d4;
}
+ul.product_list.grid > li .product-container .functional-buttons div.wishlist a:before {
+ display: inline-block;
+ font-family: "FontAwesome";
+ content: "";
+ margin-right: 3px;
+}
+ul.product_list.grid > li .product-container .functional-buttons div.wishlist a.checked:before {
+ content: "";
+}
@media (min-width: 992px) and (max-width: 1199px) {
ul.product_list.grid > li .product-container .functional-buttons div.wishlist {
border-right: 0;
}
- ul.product_list.grid > li .product-container .functional-buttons div.wishlist i {
+ ul.product_list.grid > li .product-container .functional-buttons div.wishlist a:before {
display: none;
}
}
@@ -177,32 +207,33 @@ ul.product_list.grid > li .product-container .functional-buttons div.wishlist {
ul.product_list.grid > li .product-container .functional-buttons div.wishlist {
border-right: 0;
}
- ul.product_list.grid > li .product-container .functional-buttons div.wishlist i {
+ ul.product_list.grid > li .product-container .functional-buttons div.wishlist a:before {
display: none;
}
}
-ul.product_list.grid > li .product-container .functional-buttons div.compare label:before {
+ul.product_list.grid > li .product-container .functional-buttons div.compare a:before {
content: "";
display: inline-block;
font-family: "FontAwesome";
+ margin-right: 3px;
}
@media (min-width: 992px) and (max-width: 1199px) {
- ul.product_list.grid > li .product-container .functional-buttons div.compare label:before {
+ ul.product_list.grid > li .product-container .functional-buttons div.compare a:before {
display: none;
}
}
@media (min-width: 480px) and (max-width: 767px) {
- ul.product_list.grid > li .product-container .functional-buttons div.compare label:before {
+ ul.product_list.grid > li .product-container .functional-buttons div.compare a:before {
display: none;
}
}
-ul.product_list.grid > li .product-container .functional-buttons div.compare label.checked:before {
+ul.product_list.grid > li .product-container .functional-buttons div.compare a.checked:before {
content: "";
}
@media (min-width: 1200px) {
ul.product_list.grid > li.hovered {
margin-bottom: -300px;
- padding-bottom: 250px;
+ padding-bottom: 226px;
}
ul.product_list.grid > li.hovered .product-container {
-webkit-box-shadow: rgba(0, 0, 0, 0.17) 0 0 13px;
@@ -220,7 +251,7 @@ ul.product_list.grid > li .product-container .functional-buttons div.compare lab
ul.product_list.grid > li.hovered .product-container .product-image-container .quick-view {
display: block;
}
- ul.product_list.grid > li.hovered .product-container .functional-buttons, ul.product_list.grid > li.hovered .product-container .button-container {
+ ul.product_list.grid > li.hovered .product-container .functional-buttons, ul.product_list.grid > li.hovered .product-container .button-container, ul.product_list.grid > li.hovered .product-container .comments_note {
display: block;
}
}
@@ -242,7 +273,7 @@ ul.product_list.grid > li .product-container .functional-buttons div.compare lab
margin-bottom: 0;
}
#blockpack ul > li.last-line.hovered {
- margin-bottom: -289px;
+ margin-bottom: -320px;
padding-bottom: 250px;
}
}
@@ -299,6 +330,9 @@ ul.product_list.list > li .product-desc {
width: 100%;
}
}
+ul.product_list.list > li .center-block .comments_note {
+ margin-bottom: 12px;
+}
@media (min-width: 992px) {
ul.product_list.list > li .right-block .right-block-content {
margin: 0;
@@ -382,12 +416,14 @@ ul.product_list.list > li .right-block .right-block-content .button-container .b
display: none !important;
}
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons a, ul.product_list.list > li .right-block .right-block-content .functional-buttons label {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons a {
font-weight: bold;
color: #777676;
cursor: pointer;
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons a i, ul.product_list.list > li .right-block .right-block-content .functional-buttons label i {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .wishlist a:before {
+ content: "";
+ font-family: "FontAwesome";
width: 30px;
height: 30px;
font-size: 15px;
@@ -402,17 +438,22 @@ ul.product_list.list > li .right-block .right-block-content .functional-buttons
-o-border-radius: 100px;
border-radius: 100px;
margin-right: 3px;
+ font-weight: normal;
+ margin-right: 7px;
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons a:hover, ul.product_list.list > li .right-block .right-block-content .functional-buttons label:hover {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .wishlist a:hover {
color: #333333;
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons a:hover i, ul.product_list.list > li .right-block .right-block-content .functional-buttons label:hover i {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .wishlist a:hover:before {
background: #333333;
}
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .wishlist a.checked:before {
+ content: "";
+}
ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare {
padding-top: 10px;
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare label:before {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare a:before {
content: "";
display: inline-block;
font-family: "FontAwesome";
@@ -430,13 +471,13 @@ ul.product_list.list > li .right-block .right-block-content .functional-buttons
padding: 6px 0 0 0;
color: white;
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare label:hover {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare a:hover {
color: #333333;
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare label:hover:before {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare a:hover:before {
background: #333333;
}
-ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare label.checked:before {
+ul.product_list.list > li .right-block .right-block-content .functional-buttons .compare a.checked:before {
background: white;
border: 1px solid #929292;
color: #929292;
@@ -468,7 +509,7 @@ ul.product_list.list > li .right-block .right-block-content .functional-buttons
}
@media (min-width: 1200px) {
#index ul.product_list.tab-pane > li.hovered {
- margin-bottom: -290px;
+ margin-bottom: -300px;
}
}
#index ul.product_list.tab-pane > li .availability {
@@ -481,8 +522,8 @@ ul.product_list.list > li .right-block .right-block-content .functional-buttons
margin-bottom: 0;
}
#index ul.product_list.tab-pane > li.last-line.hovered {
- margin-bottom: -290px;
- padding-bottom: 250px;
+ margin-bottom: -300px;
+ padding-bottom: 235px;
}
}
@media (min-width: 480px) and (max-width: 767px) {
diff --git a/themes/default-bootstrap/css/theme1.css b/themes/default-bootstrap/css/theme1.css
new file mode 100644
index 000000000..e21eac6bb
--- /dev/null
+++ b/themes/default-bootstrap/css/theme1.css
@@ -0,0 +1,183 @@
+body {
+ background: #282828;
+}
+
+.header-container,
+.columns-container {
+ background: #f6f6f6;
+}
+
+#header {
+ background: none;
+}
+#header .header-row {
+ background: #dadada;
+}
+#header .header-row .shop-phone {
+ color: #333333;
+}
+#header .header-row .shop-phone i,
+#header .header-row .shop-phone strong {
+ color: #f44051;
+}
+#header #currencies-block-top,
+#header #languages-block-top,
+#header .header-row #header_user_info {
+ border-color: #c6c6c6;
+}
+#header #currencies-block-top div.current,
+#header #languages-block-top div.current,
+#header .header-row #header_user_info a {
+ color: #333333;
+}
+#header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active,
+#header #languages-block-top div.current:hover,
+#header #languages-block-top div.current.active,
+#header .header-row #header_user_info a:hover,
+#header .header-row #header_user_info a.active {
+ background: #b7b7b7;
+ color: white;
+}
+#header #currencies-block-top div.current strong,
+#header #languages-block-top div.current strong {
+ color: #333333;
+}
+#header #currencies-block-top div.current:hover strong, #header #currencies-block-top div.current:hover:after, #header #currencies-block-top div.current.active strong, #header #currencies-block-top div.current.active:after,
+#header #languages-block-top div.current:hover strong,
+#header #languages-block-top div.current:hover:after,
+#header #languages-block-top div.current.active strong,
+#header #languages-block-top div.current.active:after {
+ background: #b7b7b7;
+ color: white;
+}
+#header #contact-link {
+ border-color: #c6c6c6;
+}
+#header #contact-link a {
+ color: #333333;
+}
+#header #contact-link a:hover, #header #contact-link a.active {
+ background: #b7b7b7;
+ color: white;
+}
+
+#search_block_top .btn.button-search {
+ background: #f44051;
+}
+#search_block_top .btn.button-search:hover {
+ color: white;
+ background: #333333;
+}
+
+#header_right #header_user #shopping_cart a {
+ background: #f44051;
+ color: white;
+}
+#header_right #header_user #shopping_cart a:after {
+ color: white;
+}
+#header_right #header_user #shopping_cart a:hover {
+ color: white;
+ background: #333333;
+}
+
+.sf-menu {
+ background: white;
+ border-bottom: 3px solid #e8e8e8;
+}
+.sf-menu > li {
+ border-right: 1px solid #e8e8e8;
+}
+.sf-menu > li a {
+ border-bottom: 3px solid #e8e8e8;
+}
+.sf-menu > li.sfHover > a, .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a {
+ color: #fff;
+ background: #f44051;
+ border-bottom-color: #ce2434;
+}
+
+#home-page-tabs {
+ background: #f6f6f6;
+}
+#home-page-tabs > li.active a,
+#home-page-tabs > li a:hover {
+ background: #f44051;
+ color: white;
+}
+
+.new,
+.sale {
+ background: #f44051;
+}
+.new:before, .new:after,
+.sale:before,
+.sale:after {
+ border-color: #ad2b34 transparent transparent transparent;
+}
+
+ul.product_list.grid > li .product-container {
+ background: #f6f6f6;
+}
+ul.product_list.grid > li .product-container .product-image-container {
+ background: white;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link {
+ background: #fbfbfb;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link img {
+ background: #fbfbfb;
+}
+
+.button.lnk_view {
+ text-shadow: none;
+ padding: 0;
+ border: none;
+}
+.button.lnk_view span {
+ border: none;
+ padding: 12px 16px;
+ background: #333333;
+ color: white;
+}
+.button.lnk_view:hover span {
+ background: #f44051;
+}
+
+#cmsinfo_block em {
+ background: #f44051;
+}
+
+#facebook_block, #cmsinfo_block {
+ background: #e8e8e8;
+}
+
+#cmsinfo_block,
+#cmsinfo_block > div + div {
+ border-color: #d0d0d0;
+}
+
+.footer-container #footer #social_block {
+ background: #1b1b1b;
+ padding-bottom: 15px;
+}
+
+.footer-container {
+ background: #1b1b1b;
+}
+@media (min-width: 768px) {
+ .footer-container {
+ background: url(../img/footer-bg1.gif) repeat-x;
+ }
+}
+
+#footer #newsletter_block_left .form-group .form-control {
+ background: #1b1b1b;
+}
+#footer #newsletter_block_left .form-group .button-small {
+ color: #f44051;
+}
+
+.footer-container #footer #social_block ul li a:hover {
+ color: #f44051;
+}
diff --git a/themes/default-bootstrap/css/theme2.css b/themes/default-bootstrap/css/theme2.css
new file mode 100644
index 000000000..fd62ffbfb
--- /dev/null
+++ b/themes/default-bootstrap/css/theme2.css
@@ -0,0 +1,200 @@
+body {
+ background: #232323;
+}
+
+.header-container,
+.columns-container {
+ background: #333333;
+}
+
+#header {
+ background: none;
+}
+#header .header-row {
+ background: #545454;
+}
+#header .header-row .shop-phone {
+ color: white;
+ text-shadow: 0 1px #404040;
+}
+#header .header-row .shop-phone i,
+#header .header-row .shop-phone strong {
+ color: #aaaaaa;
+ text-shadow: 0 1px #404040;
+}
+#header #currencies-block-top,
+#header #languages-block-top,
+#header .header-row #header_user_info {
+ border-color: #656565;
+}
+#header #currencies-block-top div.current,
+#header #languages-block-top div.current,
+#header .header-row #header_user_info a {
+ color: white;
+}
+#header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active,
+#header #languages-block-top div.current:hover,
+#header #languages-block-top div.current.active,
+#header .header-row #header_user_info a:hover,
+#header .header-row #header_user_info a.active {
+ color: white;
+}
+#header #currencies-block-top div.current,
+#header #languages-block-top div.current {
+ padding-bottom: 11px;
+}
+#header #currencies-block-top div.current strong, #header #currencies-block-top div.current:after,
+#header #languages-block-top div.current strong,
+#header #languages-block-top div.current:after {
+ color: white;
+}
+#header #currencies-block-top div.current:hover strong, #header #currencies-block-top div.current:hover:after, #header #currencies-block-top div.current.active strong, #header #currencies-block-top div.current.active:after,
+#header #languages-block-top div.current:hover strong,
+#header #languages-block-top div.current:hover:after,
+#header #languages-block-top div.current.active strong,
+#header #languages-block-top div.current.active:after {
+ background: #2b2b2b;
+ color: white;
+}
+#header #contact-link {
+ border-color: #656565;
+}
+#header #contact-link a {
+ color: white;
+}
+#header #contact-link a:hover, #header #contact-link a.active {
+ background: #2b2b2b;
+ color: white;
+}
+
+#search_block_top .btn.button-search {
+ background: #666666;
+}
+#search_block_top .btn.button-search:hover {
+ color: white;
+ background: #333333;
+}
+
+#search_block_top #search_query_top {
+ background: white;
+ color: #333333;
+}
+
+#header_right #header_user #shopping_cart a {
+ background: #666666;
+ color: white;
+}
+#header_right #header_user #shopping_cart a:after {
+ color: white;
+}
+#header_right #header_user #shopping_cart a:hover {
+ color: white;
+ background: #333333;
+}
+
+.sf-menu {
+ background: white;
+ border: 1px solid #f2f2f2;
+ border-bottom: 3px solid #f2f2f2;
+}
+.sf-menu > li {
+ border-right: 1px solid #d6d4d4;
+}
+.sf-menu > li a {
+ border-bottom: 3px solid #f2f2f2;
+}
+.sf-menu > li.sfHover > a, .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a {
+ color: #fff;
+ background: #666666;
+ border-bottom-color: #666666;
+}
+
+#home-page-tabs {
+ background: white;
+}
+#home-page-tabs > li.active a,
+#home-page-tabs > li a:hover {
+ background: #333333;
+ color: white;
+}
+
+.new,
+.sale {
+ background: #f44051;
+}
+.new:before, .new:after,
+.sale:before,
+.sale:after {
+ border-color: #f44051 transparent transparent transparent;
+}
+
+ul.product_list.grid > li .product-container {
+ background: white;
+}
+ul.product_list.grid > li .product-container .product-image-container {
+ background: #474747;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link {
+ background: #474747;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link img {
+ background: #474747;
+}
+
+ul.product_list.grid > li:hover .product-container {
+ background: #5c5c5c;
+}
+ul.product_list.grid > li:hover .product-container .product-name {
+ color: #aaa;
+}
+ul.product_list.grid > li:hover .product-container .functional-buttons div a, ul.product_list.grid > li:hover .product-container ul.product_list.grid > li .product-container .functional-buttons div label {
+ color: #aaa;
+}
+ul.product_list.grid > li:hover .product-container .functional-buttons div a:hover, ul.product_list.grid > li:hover .product-container ul.product_list.grid > li .product-container .functional-buttons div label:hover {
+ color: #fff;
+}
+
+#cmsinfo_block em {
+ background: #666666;
+}
+
+#facebook_block, #cmsinfo_block {
+ background: #454545;
+}
+#facebook_block h4, #cmsinfo_block h4 {
+ color: white;
+}
+
+#cmsinfo_block h3,
+#cmsinfo_block .dark {
+ color: white;
+}
+
+#cmsinfo_block,
+#cmsinfo_block > div + div {
+ border-color: #1b1b1b;
+}
+
+.footer-container {
+ background: #1b1b1b;
+}
+@media (min-width: 768px) {
+ .footer-container {
+ background: url(../img/footer-bg1.gif) repeat-x;
+ }
+}
+
+.footer-container #footer #social_block {
+ background: #1b1b1b;
+}
+
+#footer #newsletter_block_left .form-group .form-control {
+ background: #1b1b1b;
+}
+#footer #newsletter_block_left .form-group .button-small {
+ color: #666666;
+}
+
+.footer-container #footer #social_block ul li a:hover {
+ color: white;
+}
diff --git a/themes/default-bootstrap/css/theme3.css b/themes/default-bootstrap/css/theme3.css
new file mode 100644
index 000000000..ec1100819
--- /dev/null
+++ b/themes/default-bootstrap/css/theme3.css
@@ -0,0 +1,222 @@
+body {
+ background: #333333;
+}
+
+.header-container,
+.columns-container {
+ background: #fff;
+}
+
+#header {
+ background: none;
+}
+#header .header-row {
+ background: #333333;
+}
+#header .header-row .shop-phone {
+ color: #777;
+}
+#header .header-row .shop-phone i,
+#header .header-row .shop-phone strong {
+ color: #719f41;
+}
+#header #currencies-block-top,
+#header #languages-block-top,
+#header .header-row #header_user_info {
+ border-color: #515151;
+}
+#header #currencies-block-top div.current,
+#header #languages-block-top div.current,
+#header .header-row #header_user_info a {
+ color: white;
+}
+#header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active,
+#header #languages-block-top div.current:hover,
+#header #languages-block-top div.current.active,
+#header .header-row #header_user_info a:hover,
+#header .header-row #header_user_info a.active {
+ background: #2b2b2b;
+ color: white;
+}
+#header #currencies-block-top div.current strong,
+#header #languages-block-top div.current strong {
+ color: #333333;
+}
+#header #currencies-block-top div.current:after,
+#header #currencies-block-top div.current strong,
+#header #languages-block-top div.current:after,
+#header #languages-block-top div.current strong {
+ color: white;
+}
+#header #currencies-block-top div.current:hover strong, #header #currencies-block-top div.current:hover:after, #header #currencies-block-top div.current.active strong, #header #currencies-block-top div.current.active:after,
+#header #languages-block-top div.current:hover strong,
+#header #languages-block-top div.current:hover:after,
+#header #languages-block-top div.current.active strong,
+#header #languages-block-top div.current.active:after {
+ color: white;
+}
+#header #contact-link {
+ border-color: #515151;
+}
+#header #contact-link a {
+ color: white;
+}
+#header #contact-link a:hover, #header #contact-link a.active {
+ background: #2b2b2b;
+ color: white;
+}
+
+#search_block_top .btn.button-search {
+ background: #719f41;
+ text-shadow: 0 1px #567931;
+}
+#search_block_top .btn.button-search:hover {
+ color: white;
+ background: #333333;
+ text-shadow: 0 1px #333;
+}
+
+#search_block_top #search_query_top {
+ color: #686666;
+}
+
+#header_right #header_user #shopping_cart a {
+ background: #719f41;
+ color: white;
+ text-shadow: 0 1px #567931;
+}
+#header_right #header_user #shopping_cart a:after {
+ color: white;
+}
+#header_right #header_user #shopping_cart a:hover {
+ color: white;
+ text-shadow: 0 1px #333;
+ background: #333333;
+}
+
+.sf-menu {
+ background: #f6f6f6;
+ border-bottom: 3px solid #e9e9e9;
+}
+.sf-menu > li {
+ border-right: 1px solid #d6d4d4;
+}
+.sf-menu > li a {
+ border-bottom: 3px solid #e9e9e9;
+}
+.sf-menu > li.sfHover > a, .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a {
+ color: #fff;
+ background: #719f41;
+ border-bottom-color: #598b24;
+}
+
+#home-page-tabs {
+ background: white;
+}
+#home-page-tabs > li.active a,
+#home-page-tabs > li a:hover {
+ background: #719f41;
+ color: white;
+}
+
+.new,
+.sale {
+ background: #719f41;
+}
+.new:before, .new:after,
+.sale:before,
+.sale:after {
+ border-color: #719f41 transparent transparent transparent;
+}
+
+ul.product_list.grid > li .product-container {
+ background: white;
+}
+ul.product_list.grid > li .product-container .product-image-container {
+ background: white;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link {
+ background: white;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link img {
+ background: white;
+}
+
+.price.product-price {
+ color: #719f41;
+}
+
+.price-percent-reduction {
+ background: #719f41;
+ border-color: #719f41;
+}
+
+.button.lnk_view {
+ text-shadow: none;
+ padding: 0;
+ border: none;
+}
+.button.lnk_view span {
+ border: none;
+ padding: 12px 16px;
+ background: #333333;
+ color: white;
+}
+.button.lnk_view:hover span {
+ background: #719f41;
+}
+
+#cmsinfo_block em {
+ background: #333333;
+}
+
+#facebook_block, #cmsinfo_block {
+ background: #e8e8e8;
+}
+
+#cmsinfo_block,
+#cmsinfo_block > div + div {
+ border-color: #d0d0d0;
+}
+
+.footer-container #footer #social_block {
+ background: #3f3f3f;
+ padding-bottom: 15px;
+}
+
+.footer-container {
+ background: #3f3f3f;
+}
+@media (min-width: 768px) {
+ .footer-container {
+ background: url(../img/footer-bg.gif) repeat-x;
+ }
+}
+
+.footer-container #footer #social_block ul li a:hover {
+ color: #719f41;
+}
+
+#footer #newsletter_block_left .form-group .form-control {
+ background: #3f3f3f;
+}
+
+#footer #newsletter_block_left h4,
+.footer-container #footer #social_block h4 {
+ color: #fff;
+}
+
+.footer-container #footer h4,
+.footer-container #footer h4 a {
+ color: #719f41;
+}
+
+.footer-container #footer .bottom-footer {
+ color: #719f41;
+}
+.footer-container #footer .bottom-footer a {
+ color: #719f41;
+}
+.footer-container #footer .bottom-footer a:hover {
+ color: #fff;
+}
diff --git a/themes/default-bootstrap/css/theme8.css b/themes/default-bootstrap/css/theme8.css
new file mode 100644
index 000000000..804038e1a
--- /dev/null
+++ b/themes/default-bootstrap/css/theme8.css
@@ -0,0 +1,183 @@
+body {
+ background: #282828;
+}
+
+.header-container,
+.columns-container {
+ background: #f7f5eb;
+}
+
+#header {
+ background: none;
+}
+#header .header-row {
+ background: #333333;
+}
+#header .header-row .shop-phone {
+ color: white;
+}
+#header .header-row .shop-phone i,
+#header .header-row .shop-phone strong {
+ color: #eea200;
+}
+#header #currencies-block-top,
+#header #languages-block-top,
+#header .header-row #header_user_info {
+ border-color: #515151;
+}
+#header #currencies-block-top div.current,
+#header #languages-block-top div.current,
+#header .header-row #header_user_info a {
+ color: white;
+}
+#header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active,
+#header #languages-block-top div.current:hover,
+#header #languages-block-top div.current.active,
+#header .header-row #header_user_info a:hover,
+#header .header-row #header_user_info a.active {
+ background: #b7b7b7;
+ color: white;
+}
+#header #currencies-block-top div.current strong,
+#header #languages-block-top div.current strong {
+ color: white;
+}
+#header #currencies-block-top div.current:hover strong, #header #currencies-block-top div.current:hover:after, #header #currencies-block-top div.current.active strong, #header #currencies-block-top div.current.active:after,
+#header #languages-block-top div.current:hover strong,
+#header #languages-block-top div.current:hover:after,
+#header #languages-block-top div.current.active strong,
+#header #languages-block-top div.current.active:after {
+ background: #b7b7b7;
+ color: white;
+}
+#header #contact-link {
+ border-color: #515151;
+}
+#header #contact-link a {
+ color: white;
+}
+#header #contact-link a:hover, #header #contact-link a.active {
+ background: #b7b7b7;
+ color: white;
+}
+
+#search_block_top .btn.button-search {
+ background: #eea200;
+}
+#search_block_top .btn.button-search:hover {
+ color: white;
+ background: #b7b7b7;
+}
+
+#header_right #header_user #shopping_cart a {
+ background: #eea200;
+ color: white;
+}
+#header_right #header_user #shopping_cart a:after {
+ color: white;
+}
+#header_right #header_user #shopping_cart a:hover {
+ color: white;
+ background: #b7b7b7;
+}
+
+.sf-menu {
+ background: #fffef6;
+ border-bottom: 3px solid #e2dec8;
+}
+.sf-menu > li {
+ border-right: 1px solid #e2dec8;
+}
+.sf-menu > li a {
+ border-bottom: 3px solid #e2dec8;
+}
+.sf-menu > li.sfHover > a, .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a {
+ color: #fff;
+ background: #eea200;
+ border-bottom-color: #da9400;
+}
+
+#home-page-tabs {
+ background: none;
+}
+#home-page-tabs > li.active a,
+#home-page-tabs > li a:hover {
+ background: #eea200;
+ color: white;
+}
+
+.new,
+.sale {
+ background: #eea200;
+}
+.new:before, .new:after,
+.sale:before,
+.sale:after {
+ border-color: #eea200 transparent transparent transparent;
+}
+
+ul.product_list.grid > li .product-container {
+ background: none;
+}
+ul.product_list.grid > li .product-container .product-image-container {
+ background: white;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link {
+ background: #f1e8e3;
+}
+ul.product_list.grid > li .product-container .product-image-container .product_img_link img {
+ background: #f1e8e3;
+}
+
+.button.lnk_view {
+ text-shadow: none;
+ padding: 0;
+ border: none;
+}
+.button.lnk_view span {
+ border: 1px solid #9a9a9a;
+ padding: 12px 16px;
+ background: #f2f2f2;
+ color: white;
+}
+.button.lnk_view:hover span {
+ background: #b7b7b7;
+}
+
+#cmsinfo_block em {
+ background: #eea200;
+}
+
+#facebook_block, #cmsinfo_block {
+ background: #f0eee1;
+}
+
+#cmsinfo_block,
+#cmsinfo_block > div + div {
+ border-color: #e9e6d6;
+}
+
+.footer-container #footer #social_block {
+ background: none;
+ padding-bottom: 15px;
+}
+
+.footer-container {
+ background: #3f3f3f;
+}
+@media (min-width: 768px) {
+ .footer-container {
+ background: url(../img/footer-bg.gif) repeat-x;
+ }
+}
+
+#footer #newsletter_block_left .form-group .form-control {
+ background: #3c3c3c;
+}
+#footer #newsletter_block_left .form-group .button-small {
+ color: #eea200;
+}
+
+.footer-container #footer #social_block ul li a:hover {
+ color: #eea200;
+}
diff --git a/themes/default-bootstrap/img/footer-bg1.gif b/themes/default-bootstrap/img/footer-bg1.gif
new file mode 100644
index 000000000..1684526ba
Binary files /dev/null and b/themes/default-bootstrap/img/footer-bg1.gif differ
diff --git a/themes/default-bootstrap/index.tpl b/themes/default-bootstrap/index.tpl
index 568caba9d..b8fc942b6 100644
--- a/themes/default-bootstrap/index.tpl
+++ b/themes/default-bootstrap/index.tpl
@@ -28,6 +28,18 @@
{if isset($HOOK_HOME_TAB)}
{/if}{$HOOK_HOME_TAB}{if isset($HOOK_HOME_TAB)}
{/if}
+
{$HOOK_HOME_TAB_CONTENT}
diff --git a/themes/default-bootstrap/js/modules/blockwishlist/js/ajax-wishlist.js b/themes/default-bootstrap/js/modules/blockwishlist/js/ajax-wishlist.js
index 1b11ab291..fc146d9d9 100644
--- a/themes/default-bootstrap/js/modules/blockwishlist/js/ajax-wishlist.js
+++ b/themes/default-bootstrap/js/modules/blockwishlist/js/ajax-wishlist.js
@@ -17,230 +17,257 @@
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
-* @author PrestaShop SA
-* @copyright 2007-2013 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
+* @author PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
*/
/**
- * Update WishList Cart by adding, deleting, updating objects
- *
- * @return void
- */
+* Update WishList Cart by adding, deleting, updating objects
+*
+* @return void
+*/
function WishlistCart(id, action, id_product, id_product_attribute, quantity)
{
- $.ajax({
- type: 'GET',
- url: baseDir + 'modules/blockwishlist/cart.php',
- async: true,
- cache: false,
- data: 'action=' + action + '&id_product=' + id_product + '&quantity=' + quantity + '&token=' + static_token + '&id_product_attribute=' + id_product_attribute,
- success: function(data)
- {
- if (action == 'add')
- {
- if (isLoggedWishlist == true) {
- alert ('Adedd to wishlist')
- }
- else {
- alert ('You must be logged in to manage your wishlist.')
- }
- }
-
- if($('#' + id).length != 0)
- {
- $('#' + id).slideUp('normal');
- document.getElementById(id).innerHTML = data;
- $('#' + id).slideDown('normal');
- }
- }
- });
+ $.ajax({
+ type: 'GET',
+ url: baseDir + 'modules/blockwishlist/cart.php',
+ async: true,
+ cache: false,
+ data: 'action=' + action + '&id_product=' + id_product + '&quantity=' + quantity + '&token=' + static_token + '&id_product_attribute=' + id_product_attribute,
+ success: function(data)
+ {
+ if (action == 'add')
+ {
+ if (isLoggedWishlist == true) {
+ wishlistProductsIdsAdd(id_product),
+ wishlistRefreshStatus(),
+ alert ('Adedd to wishlist')
+ }
+ else {
+ alert ('You must be logged in to manage your wishlist.')
+ }
+ }
+ if (action == 'delete') {
+ wishlistProductsIdsRemove(id_product),
+ wishlistRefreshStatus();
+ }
+ if($('#' + id).length != 0)
+ {
+ $('#' + id).slideUp('normal');
+ document.getElementById(id).innerHTML = data;
+ $('#' + id).slideDown('normal');
+ }
+ }
+ });
}
/**
- * Change customer default wishlist
- *
- * @return void
- */
+* Change customer default wishlist
+*
+* @return void
+*/
function WishlistChangeDefault(id, id_wishlist)
{
- $.ajax({
- type: 'GET',
- url: baseDir + 'modules/blockwishlist/cart.php',
- async: true,
- data: 'id_wishlist=' + id_wishlist + '&token=' + static_token,
- cache: false,
- success: function(data)
- {
- $('#' + id).slideUp('normal');
- document.getElementById(id).innerHTML = data;
- $('#' + id).slideDown('normal');
- }
- });
+ $.ajax({
+ type: 'GET',
+ url: baseDir + 'modules/blockwishlist/cart.php',
+ async: true,
+ data: 'id_wishlist=' + id_wishlist + '&token=' + static_token,
+ cache: false,
+ success: function(data)
+ {
+ $('#' + id).slideUp('normal');
+ document.getElementById(id).innerHTML = data;
+ $('#' + id).slideDown('normal');
+ }
+ });
}
/**
- * Buy Product
- *
- * @return void
- */
+* Buy Product
+*
+* @return void
+*/
function WishlistBuyProduct(token, id_product, id_product_attribute, id_quantity, button, ajax)
{
- if(ajax)
- ajaxCart.add(id_product, id_product_attribute, false, button, 1, [token, id_quantity]);
- else
- {
- $('#' + id_quantity).val(0);
- WishlistAddProductCart(token, id_product, id_product_attribute, id_quantity)
- document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].method='POST';
- document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].action=baseUri + '?controller=cart';
- document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].elements['token'].value = static_token;
- document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].submit();
- }
- return (true);
+ if(ajax)
+ ajaxCart.add(id_product, id_product_attribute, false, button, 1, [token, id_quantity]);
+ else
+ {
+ $('#' + id_quantity).val(0);
+ WishlistAddProductCart(token, id_product, id_product_attribute, id_quantity)
+ document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].method='POST';
+ document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].action=baseUri + '?controller=cart';
+ document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].elements['token'].value = static_token;
+ document.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].submit();
+ }
+ return (true);
}
function WishlistAddProductCart(token, id_product, id_product_attribute, id_quantity)
{
- if ($('#' + id_quantity).val() <= 0)
- return (false);
- $.ajax({
- type: 'GET',
- url: baseDir + 'modules/blockwishlist/buywishlistproduct.php',
- data: 'token=' + token + '&static_token=' + static_token + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute,
- async: true,
- cache: false,
- success: function(data)
- {
- if (data)
- alert(data);
- else
- {
- $('#' + id_quantity).val($('#' + id_quantity).val() - 1);
- }
- }
- });
- return (true);
+ if ($('#' + id_quantity).val() <= 0)
+ return (false);
+ $.ajax({
+ type: 'GET',
+ url: baseDir + 'modules/blockwishlist/buywishlistproduct.php',
+ data: 'token=' + token + '&static_token=' + static_token + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute,
+ async: true,
+ cache: false,
+ success: function(data)
+ {
+ if (data)
+ alert(data);
+ else
+ {
+ $('#' + id_quantity).val($('#' + id_quantity).val() - 1);
+ }
+ }
+ });
+ return (true);
}
/**
- * Show wishlist managment page
- *
- * @return void
- */
+* Show wishlist managment page
+*
+* @return void
+*/
function WishlistManage(id, id_wishlist)
{
- $.ajax({
- type: 'GET',
- async: true,
- url: baseDir + 'modules/blockwishlist/managewishlist.php',
- data: 'id_wishlist=' + id_wishlist + '&refresh=' + false,
- cache: false,
- success: function(data)
- {
- $('#' + id).hide();
- document.getElementById(id).innerHTML = data;
- $('#' + id).fadeIn('slow');
- }
- });
+ $.ajax({
+ type: 'GET',
+ async: true,
+ url: baseDir + 'modules/blockwishlist/managewishlist.php',
+ data: 'id_wishlist=' + id_wishlist + '&refresh=' + false,
+ cache: false,
+ success: function(data)
+ {
+ $('#' + id).hide();
+ document.getElementById(id).innerHTML = data;
+ $('#' + id).fadeIn('slow');
+ }
+ });
}
/**
- * Show wishlist product managment page
- *
- * @return void
- */
+* Show wishlist product managment page
+*
+* @return void
+*/
function WishlistProductManage(id, action, id_wishlist, id_product, id_product_attribute, quantity, priority)
{
- $.ajax({
- type: 'GET',
- async: true,
- url: baseDir + 'modules/blockwishlist/managewishlist.php',
- data: 'action=' + action + '&id_wishlist=' + id_wishlist + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute + '&quantity=' + quantity + '&priority=' + priority + '&refresh=' + true,
- cache: false,
- success: function(data)
- {
- if (action == 'delete')
- $('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');
- else if (action == 'update')
- {
- $('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');
- $('#wlp_' + id_product + '_' + id_product_attribute).fadeIn('fast');
- }
- }
- });
+ $.ajax({
+ type: 'GET',
+ async: true,
+ url: baseDir + 'modules/blockwishlist/managewishlist.php',
+ data: 'action=' + action + '&id_wishlist=' + id_wishlist + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute + '&quantity=' + quantity + '&priority=' + priority + '&refresh=' + true,
+ cache: false,
+ success: function(data)
+ {
+ if (action == 'delete')
+ $('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');
+ else if (action == 'update')
+ {
+ $('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');
+ $('#wlp_' + id_product + '_' + id_product_attribute).fadeIn('fast');
+ }
+ }
+ });
}
/**
- * Delete wishlist
- *
- * @return boolean succeed
- */
+* Delete wishlist
+*
+* @return boolean succeed
+*/
function WishlistDelete(id, id_wishlist, msg)
{
- var res = confirm(msg);
- if (res == false)
- return (false);
- $.ajax({
- type: 'GET',
- async: true,
- url: baseDir + 'modules/blockwishlist/mywishlist.php',
- cache: false,
- data: 'deleted&id_wishlist=' + id_wishlist,
- success: function(data)
- {
- $('#' + id).fadeOut('slow');
- }
- });
+ var res = confirm(msg);
+ if (res == false)
+ return (false);
+ $.ajax({
+ type: 'GET',
+ async: true,
+ url: baseDir + 'modules/blockwishlist/mywishlist.php',
+ cache: false,
+ data: 'deleted&id_wishlist=' + id_wishlist,
+ success: function(data)
+ {
+ $('#' + id).fadeOut('slow');
+ }
+ });
}
/**
- * Hide/Show bought product
- *
- * @return void
- */
+* Hide/Show bought product
+*
+* @return void
+*/
function WishlistVisibility(bought_class, id_button)
{
- if ($('#hide' + id_button).css('display') == 'none')
- {
- $('.' + bought_class).slideDown('fast');
- $('#show' + id_button).hide();
- $('#hide' + id_button).css('display', 'block');
- }
- else
- {
- $('.' + bought_class).slideUp('fast');
- $('#hide' + id_button).hide();
- $('#show' + id_button).css('display', 'block');
- }
+ if ($('#hide' + id_button).css('display') == 'none')
+ {
+ $('.' + bought_class).slideDown('fast');
+ $('#show' + id_button).hide();
+ $('#hide' + id_button).css('display', 'block');
+ }
+ else
+ {
+ $('.' + bought_class).slideUp('fast');
+ $('#hide' + id_button).hide();
+ $('#show' + id_button).css('display', 'block');
+ }
}
/**
- * Send wishlist by email
- *
- * @return void
- */
+* Send wishlist by email
+*
+* @return void
+*/
function WishlistSend(id, id_wishlist, id_email)
{
- $.post(baseDir + 'modules/blockwishlist/sendwishlist.php',
- { token: static_token,
- id_wishlist: id_wishlist,
- email1: $('#' + id_email + '1').val(),
- email2: $('#' + id_email + '2').val(),
- email3: $('#' + id_email + '3').val(),
- email4: $('#' + id_email + '4').val(),
- email5: $('#' + id_email + '5').val(),
- email6: $('#' + id_email + '6').val(),
- email7: $('#' + id_email + '7').val(),
- email8: $('#' + id_email + '8').val(),
- email9: $('#' + id_email + '9').val(),
- email10: $('#' + id_email + '10').val() },
- function(data)
- {
- if (data)
- alert(data);
- else
- WishlistVisibility(id, 'hideSendWishlist');
- });
+ $.post(baseDir + 'modules/blockwishlist/sendwishlist.php',
+ { token: static_token,
+ id_wishlist: id_wishlist,
+ email1: $('#' + id_email + '1').val(),
+ email2: $('#' + id_email + '2').val(),
+ email3: $('#' + id_email + '3').val(),
+ email4: $('#' + id_email + '4').val(),
+ email5: $('#' + id_email + '5').val(),
+ email6: $('#' + id_email + '6').val(),
+ email7: $('#' + id_email + '7').val(),
+ email8: $('#' + id_email + '8').val(),
+ email9: $('#' + id_email + '9').val(),
+ email10: $('#' + id_email + '10').val() },
+ function(data)
+ {
+ if (data)
+ alert(data);
+ else
+ WishlistVisibility(id, 'hideSendWishlist');
+ });
}
+function wishlistProductsIdsAdd(id){
+ if ($.inArray(parseInt(id),wishlistProductsIds) == -1)
+ wishlistProductsIds.push(parseInt(id))
+}
+function wishlistProductsIdsRemove(id){
+ wishlistProductsIds.splice($.inArray(parseInt(id),wishlistProductsIds), 1)
+}
+function wishlistRefreshStatus(){
+$('.addToWishlist').each(function() {
+ if ($.inArray(parseInt($(this).prop('rel')),wishlistProductsIds)!= -1){
+ $(this).addClass('checked');
+ }
+ else
+ $(this).removeClass('checked');
+ });
+}
+$(document).ready(function() {
+ if (typeof wishlistProductsIds == 'undefined') {
+ wishlistProductsIds = [];
+ }
+ wishlistRefreshStatus();
+});
\ No newline at end of file
diff --git a/themes/default-bootstrap/js/products-comparison.js b/themes/default-bootstrap/js/products-comparison.js
index f3735fe30..75666fe4c 100644
--- a/themes/default-bootstrap/js/products-comparison.js
+++ b/themes/default-bootstrap/js/products-comparison.js
@@ -23,12 +23,55 @@
* International Registered Trademark & Property of PrestaShop SA
*/
+function addToCompare(productId){
+
+ var totalValueNow = parseInt($('.bt_compare').next('.compare_product_count').val());
+
+ $.inArray(parseInt(productId),comparedProductsIds) == -1?action = 'add':action = 'remove';
+
+ $.ajax({
+ url: 'index.php?controller=products-comparison&ajax=1&action='+action+'&id_product=' + productId,
+ async: true,
+ cache: false,
+ success: function(data){
+ if (action == 'add' && comparedProductsIds.length < comparator_max_item) {
+ comparedProductsIds.push(parseInt(productId)),
+ compareButtonsStatusRefresh(),
+ totalVal = totalValueNow +1,
+ $('.bt_compare').next('.compare_product_count').val(totalVal),
+ totalValue(totalVal)
+ }
+ else if (action == 'remove') {
+ comparedProductsIds.splice($.inArray(parseInt(productId),comparedProductsIds), 1),
+ compareButtonsStatusRefresh(),
+ totalVal = totalValueNow -1,
+ $('.bt_compare').next('.compare_product_count').val(totalVal),
+ totalValue(totalVal)
+ }
+ else {
+ alert(max_item)
+ }
+ },
+ error: function(){}
+ });
+}
+
+function compareButtonsStatusRefresh(){
+ $('.addToCompare').each(function() {
+ if ($.inArray(parseInt($(this).prop('rel')),comparedProductsIds)!= -1){
+ $(this).addClass('checked');
+ }
+ else {
+ $(this).removeClass('checked');
+ }
+ })
+}
+
+function totalValue(value) {
+ $('.bt_compare').find('.total-compare-val').html(value);
+}
+
reloadProductComparison = function() {
- $('input:checkbox.comparator').each(function() {
- var checkedCheckbox = $(this);
- if (checkedCheckbox.is(':checked'))
- checkedCheckbox.parent().addClass('checked');
- });
$('a.cmp_remove').click(function(){
var idProduct = $(this).prop('rel').replace('ajax_id_product_', '');
@@ -42,57 +85,8 @@ reloadProductComparison = function() {
}
});
});
- $('input:checkbox.comparator').click(function(){
- var totalValueNow = parseInt($('.bt_compare').next('.compare_product_count').val());
- var idProduct = $(this).prop('value').replace('comparator_item_', '');
- var checkbox = $(this);
- if(checkbox.is(':checked'))
- {
- $.ajax({
- url: 'index.php?controller=products-comparison&ajax=1&action=add&id_product=' + idProduct,
- async: true,
- cache: false,
- success: function(data){
- if (data === '0')
- {
- checkbox.prop('checked', false);
- alert(max_item);
- }
- else {
- checkbox.prop('checked', true),
- checkbox.parent().addClass('checked'),
- totalVal = totalValueNow +1,
- $('.bt_compare').next('.compare_product_count').val(totalVal),
- totalValue(totalVal)
- }
- },
- error: function(){
- checkbox.prop('checked', false);
- }
- });
- }
- else
- {
- $.ajax({
- url: 'index.php?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct,
- async: true,
- cache: false,
- success: function(data){
- if (data === '0')
-
- checkbox.prop('checked', true);
- checkbox.parent().removeClass('checked');
- totalVal = totalValueNow -1;
- $('.bt_compare').next('.compare_product_count').val(totalVal),
- totalValue(totalVal)
- },
- error: function(){
- checkbox.prop('checked', true);
- }
- });
- }
- });
}
-function totalValue(value) {
- $('.bt_compare').find('.total-compare-val').html(value);
-}
\ No newline at end of file
+
+$(document).ready(function() {
+ compareButtonsStatusRefresh();
+});
\ No newline at end of file
diff --git a/themes/default-bootstrap/lang/en.php b/themes/default-bootstrap/lang/en.php
index 11136241c..10279038d 100644
--- a/themes/default-bootstrap/lang/en.php
+++ b/themes/default-bootstrap/lang/en.php
@@ -95,7 +95,7 @@ $_LANG['history_bd0e34e5be6447844e6f262d51f1a9dc'] = 'Price Rules';
$_LANG['history_ec53a8c4f07baed5d8825072c89799be'] = 'Status';
$_LANG['history_466eadd40b3c10580e3ab4e8061161ce'] = 'Invoice';
$_LANG['history_bcd1b68617759b1dfcff0403a6b5a8d1'] = 'PDF';
-$_LANG['history_0b3db27bc15f682e92ff250ebb167d4b'] = 'Back to your account';
+$_LANG['history_0b3db27bc15f682e92ff250ebb167d4b'] = 'Back to your account.';
$_LANG['history_8cf04a9734132302f96da8e113e80ce5'] = 'Home';
$_LANG['history_01abfc750a0c942167651c40d088531d'] = '#';
$_LANG['identity_19f823c6453c2b1ffd09cb715214813d'] = 'Required field';
diff --git a/modules/blockquickview/translations/index.php b/themes/default-bootstrap/modules/blockwishlist/blockwishlist_button.tpl
similarity index 74%
rename from modules/blockquickview/translations/index.php
rename to themes/default-bootstrap/modules/blockwishlist/blockwishlist_button.tpl
index 3f6561f72..b8ab465fe 100644
--- a/modules/blockquickview/translations/index.php
+++ b/themes/default-bootstrap/modules/blockwishlist/blockwishlist_button.tpl
@@ -1,5 +1,4 @@
-
+{l s="Add to Wishlist"}
+
\ No newline at end of file
diff --git a/modules/blockquickview/index.php b/themes/default-bootstrap/modules/blockwishlist/blockwishlist_top.tpl
similarity index 70%
rename from modules/blockquickview/index.php
rename to themes/default-bootstrap/modules/blockwishlist/blockwishlist_top.tpl
index 07830d90c..6c6ef0c52 100644
--- a/modules/blockquickview/index.php
+++ b/themes/default-bootstrap/modules/blockwishlist/blockwishlist_top.tpl
@@ -1,35 +1,31 @@
-
-* @copyright 2007-2013 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
-header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
-
-header('Cache-Control: no-store, no-cache, must-revalidate');
-header('Cache-Control: post-check=0, pre-check=0', false);
-header('Pragma: no-cache');
-
-header('Location: ../../');
-exit;
\ No newline at end of file
+{*
+* 2007-2013 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA