Version Notes
Version 1.0.0
Download this release
Release Info
Developer | magentech.com |
Extension | sm_glasses_free |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/design/frontend/default/sm_glasses_free/layout/catalog.xml +457 -0
- app/design/frontend/default/sm_glasses_free/layout/catalogsearch.xml +141 -0
- app/design/frontend/default/sm_glasses_free/layout/checkout.xml +430 -0
- app/design/frontend/default/sm_glasses_free/layout/contacts.xml +57 -0
- app/design/frontend/default/sm_glasses_free/layout/customer.xml +265 -0
- app/design/frontend/default/sm_glasses_free/layout/developertoolbar.xml +10 -0
- app/design/frontend/default/sm_glasses_free/layout/directory.xml +67 -0
- app/design/frontend/default/sm_glasses_free/layout/newsletter.xml +67 -0
- app/design/frontend/default/sm_glasses_free/layout/page.xml +346 -0
- app/design/frontend/default/sm_glasses_free/layout/paypal.xml +148 -0
- app/design/frontend/default/sm_glasses_free/layout/poll.xml +63 -0
- app/design/frontend/default/sm_glasses_free/layout/reports.xml +45 -0
- app/design/frontend/default/sm_glasses_free/layout/review.xml +121 -0
- app/design/frontend/default/sm_glasses_free/layout/smartaddons/basicproducts.xml +37 -0
- app/design/frontend/default/sm_glasses_free/layout/tag.xml +130 -0
- app/design/frontend/default/sm_glasses_free/layout/wishlist.xml +153 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/category/view.phtml +71 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/layer/filter.phtml +48 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/layer/state.phtml +55 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/layer/view.phtml +94 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/navigation/mobinav.phtml +109 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/navigation/sidenav.phtml +95 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/navigation/top.phtml +271 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/navigation/tops.phtml +86 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/bestseller.phtml +73 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/compare/sidebar.phtml +64 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/feature.phtml +295 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/list.phtml +164 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/list/related.phtml +94 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/list/toolbar.phtml +94 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/list/upsell.phtml +90 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/price.phtml +428 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view.phtml +250 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view/additional.phtml +31 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view/addtocart.phtml +50 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view/attributes.phtml +49 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view/media.phtml +181 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view/options/wrapper.phtml +33 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view/options/wrapper/bottom.phtml +31 -0
- app/design/frontend/default/sm_glasses_free/template/catalog/product/view/type/default.phtml +36 -0
- app/design/frontend/default/sm_glasses_free/template/catalogsearch/form.mini.phtml +39 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart.phtml +181 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/coupon.phtml +59 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/crosssell.phtml +67 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/item/configure/updatecart.phtml +49 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/item/default.phtml +278 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/noItems.phtml +36 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/render/default.phtml +70 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/render/simple.phtml +70 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/shipping.phtml +139 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/sidebar.phtml +80 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/sidebar/default.phtml +155 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/cart/totals.phtml +48 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/address/select.phtml +58 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/addresses.phtml +81 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/agreements.phtml +49 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/billing.phtml +116 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/billing/items.phtml +54 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/item/default.phtml +45 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/link.phtml +27 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/overview.phtml +242 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/overview/item.phtml +238 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/shipping.phtml +130 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/state.phtml +39 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/success.phtml +50 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage.phtml +60 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/agreements.phtml +51 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/billing.phtml +216 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/failure.phtml +32 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/link.phtml +29 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/login.phtml +123 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/payment.phtml +73 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/payment/methods.phtml +68 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/progress.phtml +115 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review.phtml +29 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/button.phtml +27 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/info.phtml +84 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/item.phtml +239 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/totals.phtml +47 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping.phtml +156 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping_method.phtml +46 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping_method/additional.phtml +29 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping_method/available.phtml +101 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/success.phtml +64 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/total/default.phtml +38 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/total/nominal.phtml +56 -0
- app/design/frontend/default/sm_glasses_free/template/checkout/total/tax.phtml +68 -0
- app/design/frontend/default/sm_glasses_free/template/contacts/form-footer.phtml +70 -0
- app/design/frontend/default/sm_glasses_free/template/contacts/form.phtml +75 -0
- app/design/frontend/default/sm_glasses_free/template/customer/account/navigation.phtml +46 -0
- app/design/frontend/default/sm_glasses_free/template/customer/form/forgotpassword.phtml +60 -0
- app/design/frontend/default/sm_glasses_free/template/customer/form/mini.login.phtml +42 -0
- app/design/frontend/default/sm_glasses_free/template/developertoolbar/toolbar.phtml +98 -0
- app/design/frontend/default/sm_glasses_free/template/directory/currency.phtml +51 -0
- app/design/frontend/default/sm_glasses_free/template/newsletter/subscribe-footer.phtml +52 -0
- app/design/frontend/default/sm_glasses_free/template/newsletter/subscribe.phtml +53 -0
- app/design/frontend/default/sm_glasses_free/template/page/1column.phtml +210 -0
- app/design/frontend/default/sm_glasses_free/template/page/2columns-left.phtml +83 -0
- app/design/frontend/default/sm_glasses_free/template/page/2columns-right.phtml +83 -0
- app/design/frontend/default/sm_glasses_free/template/page/3columns.phtml +186 -0
- app/design/frontend/default/sm_glasses_free/template/page/dashboard.phtml +84 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/backtotop.phtml +41 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/before_footer.phtml +92 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/breadcrumbs.phtml +51 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/footer.phtml +29 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/head.phtml +299 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/header.phtml +143 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/new_cpanel.phtml +421 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/pager.phtml +124 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/tool.links.phtml +28 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/top.links.phtml +34 -0
- app/design/frontend/default/sm_glasses_free/template/page/html/wrapper.phtml +50 -0
- app/design/frontend/default/sm_glasses_free/template/page/one-column.phtml +43 -0
- app/design/frontend/default/sm_glasses_free/template/page/print.phtml +53 -0
- app/design/frontend/default/sm_glasses_free/template/page/redirect.phtml +39 -0
- app/design/frontend/default/sm_glasses_free/template/page/smartaddons/includes/browser.php +1053 -0
- app/design/frontend/default/sm_glasses_free/template/page/smartaddons/includes/mobile_device_detect.php +162 -0
- app/design/frontend/default/sm_glasses_free/template/page/smartaddons/includes/yt_theme.class.php +247 -0
- app/design/frontend/default/sm_glasses_free/template/page/smartaddons/yt_config_inc.php +131 -0
- app/design/frontend/default/sm_glasses_free/template/page/smartaddons/yt_prepar.php +13 -0
- app/design/frontend/default/sm_glasses_free/template/page/switch/flags.phtml +38 -0
- app/design/frontend/default/sm_glasses_free/template/page/switch/languages.phtml +45 -0
- app/design/frontend/default/sm_glasses_free/template/page/switch/stores.phtml +48 -0
- app/design/frontend/default/sm_glasses_free/template/page/template/container.phtml +35 -0
- app/design/frontend/default/sm_glasses_free/template/page/template/links.phtml +43 -0
- app/design/frontend/default/sm_glasses_free/template/persistent/checkout/onepage/billing.phtml +226 -0
- app/design/frontend/default/sm_glasses_free/template/persistent/checkout/onepage/login.phtml +185 -0
- app/design/frontend/default/sm_glasses_free/template/persistent/customer/form/login.phtml +107 -0
- app/design/frontend/default/sm_glasses_free/template/persistent/customer/form/register.phtml +192 -0
- app/design/frontend/default/sm_glasses_free/template/persistent/remember_me.phtml +41 -0
- app/design/frontend/default/sm_glasses_free/template/persistent/remember_me_tooltip.phtml +72 -0
- app/design/frontend/default/sm_glasses_free/template/poll/active.phtml +66 -0
- app/design/frontend/default/sm_glasses_free/template/poll/result.phtml +47 -0
- app/design/frontend/default/sm_glasses_free/template/reports/home_product_compared.phtml +60 -0
- app/design/frontend/default/sm_glasses_free/template/reports/home_product_viewed.phtml +65 -0
- app/design/frontend/default/sm_glasses_free/template/reports/product_compared.phtml +44 -0
- app/design/frontend/default/sm_glasses_free/template/reports/product_viewed.phtml +44 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/column/compared_default_list.phtml +55 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/column/compared_images_list.phtml +46 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/column/compared_names_list.phtml +46 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/content/compared_grid.phtml +65 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/content/compared_list.phtml +62 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/column/viewed_default_list.phtml +60 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/column/viewed_images_list.phtml +51 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/column/viewed_names_list.phtml +51 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/content/viewed_grid.phtml +70 -0
- app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/content/viewed_list.phtml +67 -0
- app/design/frontend/default/sm_glasses_free/template/review/form.phtml +134 -0
- app/design/frontend/default/sm_glasses_free/template/review/helper/summary.phtml +41 -0
- app/design/frontend/default/sm_glasses_free/template/sales/reorder/sidebar.phtml +77 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/bestseller.phtml +148 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/feature.phtml +152 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/for-menu.phtml +127 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/for-menu2.phtml +109 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/home.phtml +209 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/home.phtml_ +134 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/home2.phtml +121 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/list.phtml +271 -0
- app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/mega-products.phtml +113 -0
- app/design/frontend/default/sm_glasses_free/template/tag/customer/view.phtml +82 -0
- app/design/frontend/default/sm_glasses_free/template/tag/popular.phtml +44 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/button/share.phtml +30 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/button/tocart.phtml +30 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/button/update.phtml +30 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/email/items.phtml +56 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/email/rss.phtml +31 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/cart.phtml +54 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/image.phtml +33 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/info.phtml +40 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/remove.phtml +29 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/item/configure/addto.phtml +39 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/item/list.phtml +66 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/options_list.phtml +51 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/render/item/price.phtml +39 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/render/item/price_msrp_item.phtml +105 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/render/item/price_msrp_rss.phtml +38 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/shared.phtml +85 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/sharing.phtml +86 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/sidebar.phtml +75 -0
- app/design/frontend/default/sm_glasses_free/template/wishlist/view.phtml +76 -0
- package.xml +18 -0
- skin/frontend/default/sm_glasses_free/bootstrap/css/bootstrap-responsive.css +1040 -0
- skin/frontend/default/sm_glasses_free/bootstrap/css/bootstrap.css +22 -0
app/design/frontend/default/sm_glasses_free/layout/catalog.xml
ADDED
@@ -0,0 +1,457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
Supported layout update handles (action):
|
29 |
+
- catalog_product_gallery
|
30 |
+
- catalog_product_compare_index
|
31 |
+
|
32 |
+
Supported layout update handles (special):
|
33 |
+
- default
|
34 |
+
- catalog_category_default
|
35 |
+
- catalog_category_layered
|
36 |
+
- catalog_product_view
|
37 |
+
|
38 |
+
-->
|
39 |
+
<layout version="0.1.0">
|
40 |
+
|
41 |
+
<!--
|
42 |
+
Default layout, loads most of the pages
|
43 |
+
-->
|
44 |
+
<catalog_category_view>
|
45 |
+
<reference name="right">
|
46 |
+
<block type="directory/currency" name="currency" before="right.reports.product.viewed" template="directory/currency.phtml"/>
|
47 |
+
<block type="catalog/layer_view" name="catalog.shopby" before="currency" template="catalog/layer/view.phtml"/>
|
48 |
+
</reference>
|
49 |
+
</catalog_category_view>
|
50 |
+
<default>
|
51 |
+
|
52 |
+
<!-- Mage_Catalog -->
|
53 |
+
<reference name="root">
|
54 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
55 |
+
</reference>
|
56 |
+
<reference name="top.menu">
|
57 |
+
<block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/>
|
58 |
+
</reference>
|
59 |
+
<reference name="left">
|
60 |
+
<!--
|
61 |
+
<block type="core/template" name="left.permanent.callout" after="left.newsletter" template="callouts/left_col.phtml">
|
62 |
+
<action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>
|
63 |
+
<action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
|
64 |
+
<action method="setLinkUrl"><url>checkout/cart</url></action>
|
65 |
+
</block>
|
66 |
+
<block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>-->
|
67 |
+
<block type="catalog/navigation" name="catalog.leftnavig" before="-" template="catalog/navigation/sidenav.phtml"/>
|
68 |
+
<block type="catalog/product" name="best_seller" after="right.poll" template="catalog/product/bestseller.phtml"/>
|
69 |
+
</reference>
|
70 |
+
|
71 |
+
<reference name="footer_links">
|
72 |
+
<action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
|
73 |
+
</reference>
|
74 |
+
<block type="catalog/product_price_template" name="catalog_product_price_template" />
|
75 |
+
|
76 |
+
</default>
|
77 |
+
|
78 |
+
|
79 |
+
<!--
|
80 |
+
Category default layout
|
81 |
+
-->
|
82 |
+
|
83 |
+
<catalog_category_default translate="label">
|
84 |
+
<label>Catalog Category (Non-Anchor)</label>
|
85 |
+
<reference name="left">
|
86 |
+
<!-- <block type="catalog/layer_view" name="catalog.leftnav" template="catalog/layer/view.phtml"/> -->
|
87 |
+
|
88 |
+
</reference>
|
89 |
+
|
90 |
+
<reference name="content">
|
91 |
+
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
|
92 |
+
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
|
93 |
+
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
|
94 |
+
<block type="page/html_pager" name="product_list_toolbar_pager"/>
|
95 |
+
<!-- The following code shows how to set your own pager increments -->
|
96 |
+
<!--
|
97 |
+
<action method="setDefaultListPerPage"><limit>4</limit></action>
|
98 |
+
<action method="setDefaultGridPerPage"><limit>9</limit></action>
|
99 |
+
<action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
|
100 |
+
<action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
|
101 |
+
<action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
|
102 |
+
<action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
|
103 |
+
<action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
|
104 |
+
-->
|
105 |
+
</block>
|
106 |
+
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>5</count></action>
|
107 |
+
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
|
108 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
|
109 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
|
110 |
+
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
|
111 |
+
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
|
112 |
+
</block>
|
113 |
+
</block>
|
114 |
+
</reference>
|
115 |
+
</catalog_category_default>
|
116 |
+
|
117 |
+
<!--
|
118 |
+
Category layered navigation layout
|
119 |
+
-->
|
120 |
+
|
121 |
+
<catalog_category_layered translate="label">
|
122 |
+
<label>Catalog Category (Anchor)</label>
|
123 |
+
<reference name="left">
|
124 |
+
<block type="catalog/navigation" name="catalog.leftnavig" before="-" template="catalog/navigation/sidenav.phtml"/>
|
125 |
+
<block type="catalog/product" name="best_seller" template="catalog/product/bestseller.phtml"/>
|
126 |
+
</reference>
|
127 |
+
<reference name="content">
|
128 |
+
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
|
129 |
+
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
|
130 |
+
<!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
|
131 |
+
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
|
132 |
+
<block type="page/html_pager" name="product_list_toolbar_pager"/>
|
133 |
+
<!-- The following code shows how to set your own pager increments -->
|
134 |
+
<!--
|
135 |
+
<action method="setDefaultListPerPage"><limit>4</limit></action>
|
136 |
+
<action method="setDefaultGridPerPage"><limit>3</limit></action>
|
137 |
+
<action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
|
138 |
+
<action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
|
139 |
+
<action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
|
140 |
+
<action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
|
141 |
+
<action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
|
142 |
+
<action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
|
143 |
+
<action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
|
144 |
+
<action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
|
145 |
+
<action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
|
146 |
+
-->
|
147 |
+
</block>
|
148 |
+
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>5</count></action>
|
149 |
+
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
|
150 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
|
151 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
|
152 |
+
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
|
153 |
+
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
|
154 |
+
</block>
|
155 |
+
</block>
|
156 |
+
</reference>
|
157 |
+
</catalog_category_layered>
|
158 |
+
|
159 |
+
<catalog_category_layered_nochildren translate="label">
|
160 |
+
<label>Catalog Category (Without Subcategories)</label>
|
161 |
+
<!-- <remove name="right.poll" /> -->
|
162 |
+
<remove name="right.reports.product.viewed" />
|
163 |
+
<reference name="right">
|
164 |
+
<!-- <block type="reports/product_viewed" before="right.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" /> -->
|
165 |
+
</reference>
|
166 |
+
</catalog_category_layered_nochildren>
|
167 |
+
|
168 |
+
<!--
|
169 |
+
Compare products page
|
170 |
+
-->
|
171 |
+
|
172 |
+
<catalog_product_compare_index translate="label">
|
173 |
+
<label>Catalog Product Compare List</label>
|
174 |
+
<!-- Mage_Catalog -->
|
175 |
+
<reference name="root">
|
176 |
+
<action method="setTemplate"><template>page/popup.phtml</template></action>
|
177 |
+
</reference>
|
178 |
+
<reference name="head">
|
179 |
+
<action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
|
180 |
+
<action method="addJs"><script>varien/product.js</script></action>
|
181 |
+
</reference>
|
182 |
+
<reference name="content">
|
183 |
+
<block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
|
184 |
+
</reference>
|
185 |
+
</catalog_product_compare_index>
|
186 |
+
|
187 |
+
<customer_account_index>
|
188 |
+
|
189 |
+
<reference name="right">
|
190 |
+
<action method="unsetChild"><name>catalog.compare.sidebar</name></action>
|
191 |
+
</reference>
|
192 |
+
</customer_account_index>
|
193 |
+
|
194 |
+
<!--
|
195 |
+
Product view
|
196 |
+
-->
|
197 |
+
|
198 |
+
<catalog_product_view translate="label">
|
199 |
+
<label>Catalog Product View (Any)</label>
|
200 |
+
<!-- Mage_Catalog -->
|
201 |
+
<reference name="root">
|
202 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
203 |
+
</reference>
|
204 |
+
<reference name="left">
|
205 |
+
<!--
|
206 |
+
<block type="catalog/navigation" name="catalog.leftnavig" before="-" template="catalog/navigation/sidenav.phtml"/>
|
207 |
+
<block type="catalog/product" name="best_seller" template="catalog/product/bestseller.phtml"/>
|
208 |
+
-->
|
209 |
+
</reference>
|
210 |
+
<reference name="head">
|
211 |
+
<action method="addJs"><script>varien/product.js</script></action>
|
212 |
+
<action method="addJs"><script>varien/configurable.js</script></action>
|
213 |
+
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
|
214 |
+
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
|
215 |
+
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
|
216 |
+
</reference>
|
217 |
+
<reference name="content">
|
218 |
+
<block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
|
219 |
+
<!--
|
220 |
+
<action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
|
221 |
+
<action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
|
222 |
+
<action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
|
223 |
+
-->
|
224 |
+
<block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
|
225 |
+
<block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
|
226 |
+
<label>Alert Urls</label>
|
227 |
+
</block>
|
228 |
+
|
229 |
+
<action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
|
230 |
+
|
231 |
+
<block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
|
232 |
+
<action method="setColumnCount"><columns>4</columns></action>
|
233 |
+
<action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
|
234 |
+
</block>
|
235 |
+
|
236 |
+
<block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
|
237 |
+
<block type="review/product_view_list" name="product.info.product_additional_data" as="reviews" template="review/product/view/list.phtml"/>
|
238 |
+
<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
|
239 |
+
<action method="addToParentGroup"><group>detailed_info</group></action>
|
240 |
+
</block>
|
241 |
+
<block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
|
242 |
+
<action method="addToParentGroup"><group>detailed_info</group></action>
|
243 |
+
</block>
|
244 |
+
<block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
|
245 |
+
<block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
|
246 |
+
<block type="review/product_view_list" name="product.info.product_additional_data" as="product_reviews" template="review/product/view/list.phtml" />
|
247 |
+
<block type="review/form" name="product.review.form" as="review_form"/>
|
248 |
+
|
249 |
+
<block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
|
250 |
+
<label>Info Column Options Wrapper</label>
|
251 |
+
<block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
|
252 |
+
<block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
|
253 |
+
<action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
|
254 |
+
<action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
|
255 |
+
<action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
|
256 |
+
<action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
|
257 |
+
</block>
|
258 |
+
<block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
|
259 |
+
</block>
|
260 |
+
<block type="catalog/product_view" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="catalog/product/view/options/wrapper/bottom.phtml" translate="label">
|
261 |
+
<label>Bottom Block Options Wrapper</label>
|
262 |
+
<action method="insert"><block>product.tierprices</block></action>
|
263 |
+
<block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
|
264 |
+
<action method="append"><block>product.info.addtocart</block></action>
|
265 |
+
<action method="append"><block>product.info.addto</block></action>
|
266 |
+
</block>
|
267 |
+
|
268 |
+
<block type="core/template_facade" name="product.info.container1" as="container1">
|
269 |
+
<action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
|
270 |
+
<action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
|
271 |
+
<action method="append"><block>product.info.options.wrapper</block></action>
|
272 |
+
<action method="append"><block>product.info.options.wrapper.bottom</block></action>
|
273 |
+
</block>
|
274 |
+
<block type="core/template_facade" name="product.info.container2" as="container2">
|
275 |
+
<action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
|
276 |
+
<action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
|
277 |
+
<action method="append"><block>product.info.options.wrapper</block></action>
|
278 |
+
<action method="append"><block>product.info.options.wrapper.bottom</block></action>
|
279 |
+
</block>
|
280 |
+
<action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
|
281 |
+
<action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
|
282 |
+
</block>
|
283 |
+
</reference>
|
284 |
+
<reference name="right">
|
285 |
+
<block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
|
286 |
+
</reference>
|
287 |
+
</catalog_product_view>
|
288 |
+
|
289 |
+
<!--
|
290 |
+
Additional block dependant on product type
|
291 |
+
-->
|
292 |
+
<PRODUCT_TYPE_simple translate="label" module="catalog">
|
293 |
+
<label>Catalog Product View (Simple)</label>
|
294 |
+
<reference name="product.info">
|
295 |
+
<block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
|
296 |
+
<block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
|
297 |
+
<label>Product Extra Info</label>
|
298 |
+
</block>
|
299 |
+
</block>
|
300 |
+
</reference>
|
301 |
+
</PRODUCT_TYPE_simple>
|
302 |
+
<PRODUCT_TYPE_configurable translate="label" module="catalog">
|
303 |
+
<label>Catalog Product View (Configurable)</label>
|
304 |
+
<reference name="product.info">
|
305 |
+
<block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
|
306 |
+
<block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
|
307 |
+
<label>Product Extra Info</label>
|
308 |
+
</block>
|
309 |
+
</block>
|
310 |
+
</reference>
|
311 |
+
<reference name="product.info.options.wrapper">
|
312 |
+
<block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
|
313 |
+
</reference>
|
314 |
+
</PRODUCT_TYPE_configurable>
|
315 |
+
<PRODUCT_TYPE_grouped translate="label" module="catalog">
|
316 |
+
<label>Catalog Product View (Grouped)</label>
|
317 |
+
<reference name="product.info">
|
318 |
+
<block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
|
319 |
+
<block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
|
320 |
+
<label>Product Extra Info</label>
|
321 |
+
</block>
|
322 |
+
</block>
|
323 |
+
</reference>
|
324 |
+
</PRODUCT_TYPE_grouped>
|
325 |
+
<PRODUCT_TYPE_virtual translate="label" module="catalog">
|
326 |
+
<label>Catalog Product View (Virtual)</label>
|
327 |
+
<reference name="product.info">
|
328 |
+
<block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
|
329 |
+
<block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
|
330 |
+
<label>Product Extra Info</label>
|
331 |
+
</block>
|
332 |
+
</block>
|
333 |
+
</reference>
|
334 |
+
</PRODUCT_TYPE_virtual>
|
335 |
+
|
336 |
+
|
337 |
+
|
338 |
+
<!--
|
339 |
+
Product send to friend
|
340 |
+
-->
|
341 |
+
|
342 |
+
<catalog_product_send translate="label">
|
343 |
+
<label>Catalog Product Email to a Friend</label>
|
344 |
+
<!-- Mage_Catalog -->
|
345 |
+
<reference name="root">
|
346 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
347 |
+
</reference>
|
348 |
+
<reference name="head">
|
349 |
+
<action method="addJs"><script>varien/product.js</script></action>
|
350 |
+
</reference>
|
351 |
+
<reference name="content">
|
352 |
+
<block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
|
353 |
+
</block>
|
354 |
+
</reference>
|
355 |
+
</catalog_product_send>
|
356 |
+
|
357 |
+
<!--
|
358 |
+
Product additional images gallery popup
|
359 |
+
-->
|
360 |
+
|
361 |
+
<catalog_product_gallery translate="label">
|
362 |
+
<label>Catalog Product Image Gallery Popup</label>
|
363 |
+
<!-- Mage_Catalog -->
|
364 |
+
<reference name="root">
|
365 |
+
<action method="setTemplate"><template>page/popup.phtml</template></action>
|
366 |
+
</reference>
|
367 |
+
<reference name="content">
|
368 |
+
<block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
|
369 |
+
</reference>
|
370 |
+
</catalog_product_gallery>
|
371 |
+
|
372 |
+
<!--
|
373 |
+
SEO Site Map
|
374 |
+
-->
|
375 |
+
|
376 |
+
<catalog_seo_sitemap translate="label">
|
377 |
+
<label>Catalog Seo Sitemap (Common)</label>
|
378 |
+
<remove name="right"/>
|
379 |
+
<!--<remove name="left"/>-->
|
380 |
+
|
381 |
+
<reference name="root">
|
382 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
383 |
+
</reference>
|
384 |
+
<reference name="content">
|
385 |
+
<block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
|
386 |
+
<block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
|
387 |
+
<block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
|
388 |
+
<block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
|
389 |
+
</block>
|
390 |
+
</reference>
|
391 |
+
</catalog_seo_sitemap>
|
392 |
+
|
393 |
+
<catalog_seo_sitemap_category translate="label">
|
394 |
+
<label>Catalog Seo Sitemap (Category List)</label>
|
395 |
+
<update handle="catalog_seo_sitemap" />
|
396 |
+
<reference name="seo.sitemap.container">
|
397 |
+
<action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
|
398 |
+
<block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
|
399 |
+
<action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
|
400 |
+
<action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
|
401 |
+
<action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
|
402 |
+
</block>
|
403 |
+
</reference>
|
404 |
+
<reference name="seo.sitemap.links">
|
405 |
+
<action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
|
406 |
+
</reference>
|
407 |
+
</catalog_seo_sitemap_category>
|
408 |
+
|
409 |
+
<catalog_seo_sitemap_category_tree translate="label">
|
410 |
+
<label>Catalog Seo Sitemap (Category Tree)</label>
|
411 |
+
<reference name="seo.sitemap.container">
|
412 |
+
<remove name="seo.sitemap.pager.top" />
|
413 |
+
<remove name="seo.sitemap.pager.bottom" />
|
414 |
+
<block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
|
415 |
+
<block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
|
416 |
+
<remove name="seo.sitemap.sitemap" />
|
417 |
+
<block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
|
418 |
+
<action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
|
419 |
+
<action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
|
420 |
+
</block>
|
421 |
+
</reference>
|
422 |
+
</catalog_seo_sitemap_category_tree>
|
423 |
+
|
424 |
+
<catalog_seo_sitemap_product translate="label">
|
425 |
+
<label>Catalog Seo Sitemap (Product List)</label>
|
426 |
+
<update handle="catalog_seo_sitemap" />
|
427 |
+
<reference name="seo.sitemap.container">
|
428 |
+
<action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
|
429 |
+
<block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
|
430 |
+
<action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
|
431 |
+
<action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
|
432 |
+
<action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
|
433 |
+
</block>
|
434 |
+
</reference>
|
435 |
+
<reference name="seo.sitemap.links">
|
436 |
+
<action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
|
437 |
+
</reference>
|
438 |
+
</catalog_seo_sitemap_product>
|
439 |
+
|
440 |
+
|
441 |
+
<!--
|
442 |
+
Catalog search terms block
|
443 |
+
-->
|
444 |
+
|
445 |
+
<catalog_seo_searchterm_popular translate="label">
|
446 |
+
<label>Catalog Seo Popular Search Terms</label>
|
447 |
+
<remove name="right"/>
|
448 |
+
<remove name="left"/>
|
449 |
+
<reference name="root">
|
450 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
451 |
+
</reference>
|
452 |
+
<reference name="content">
|
453 |
+
<block type="catalog/seo_searchterm" name="seo.searchterm" template="catalog/seo/searchterm.phtml"/>
|
454 |
+
</reference>
|
455 |
+
</catalog_seo_searchterm_popular>
|
456 |
+
|
457 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/catalogsearch.xml
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<default>
|
32 |
+
<reference name="header">
|
33 |
+
<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
|
34 |
+
</reference>
|
35 |
+
<reference name="footer_links">
|
36 |
+
<action method="addLink" translate="label title" module="catalogsearch" ifconfig="catalog/seo/search_terms">
|
37 |
+
<label>Search Terms</label>
|
38 |
+
<url helper="catalogsearch/getSearchTermUrl" />
|
39 |
+
<title>Search Terms</title>
|
40 |
+
</action>
|
41 |
+
<action method="addLink" translate="label title" module="catalogsearch">
|
42 |
+
<label>Advanced Search</label>
|
43 |
+
<url helper="catalogsearch/getAdvancedSearchUrl" />
|
44 |
+
<title>Advanced Search</title>
|
45 |
+
</action>
|
46 |
+
</reference>
|
47 |
+
</default>
|
48 |
+
|
49 |
+
<catalogsearch_result_index translate="label">
|
50 |
+
<label>Quick Search Form</label>
|
51 |
+
<remove name="right.newsletter" />
|
52 |
+
<remove name="right.reports.product.viewed" />
|
53 |
+
<reference name="root">
|
54 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
55 |
+
</reference>
|
56 |
+
<reference name="left">
|
57 |
+
<block type="catalogsearch/layer" name="catalogsearch.leftnav" before="-" template="catalog/layer/view.phtml"/>
|
58 |
+
<!-- <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/> -->
|
59 |
+
</reference>
|
60 |
+
<reference name="content">
|
61 |
+
<block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
|
62 |
+
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
|
63 |
+
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
|
64 |
+
<block type="page/html_pager" name="product_list_toolbar_pager"/>
|
65 |
+
</block>
|
66 |
+
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>5</count></action>
|
67 |
+
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
|
68 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
|
69 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
|
70 |
+
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
|
71 |
+
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
|
72 |
+
</block>
|
73 |
+
<action method="setListOrders"/>
|
74 |
+
<action method="setListModes"/>
|
75 |
+
<action method="setListCollection"/>
|
76 |
+
</block>
|
77 |
+
</reference>
|
78 |
+
|
79 |
+
<reference name="right">
|
80 |
+
<block type="reports/product_viewed" after="right.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
|
81 |
+
</reference>
|
82 |
+
</catalogsearch_result_index>
|
83 |
+
|
84 |
+
<catalogsearch_advanced_index translate="label">
|
85 |
+
<label>Advanced Search Form</label>
|
86 |
+
<!-- Mage_Catalogsearch -->
|
87 |
+
<reference name="root">
|
88 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
89 |
+
</reference>
|
90 |
+
<reference name="head">
|
91 |
+
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
|
92 |
+
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
|
93 |
+
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
|
94 |
+
</reference>
|
95 |
+
<reference name="content">
|
96 |
+
<block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/>
|
97 |
+
<block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
|
98 |
+
</reference>
|
99 |
+
</catalogsearch_advanced_index>
|
100 |
+
|
101 |
+
<!--
|
102 |
+
Advanced search results
|
103 |
+
-->
|
104 |
+
|
105 |
+
<catalogsearch_advanced_result translate="label">
|
106 |
+
<label>Advanced Search Result</label>
|
107 |
+
<update handle="page_two_columns_right" />
|
108 |
+
<!-- Mage_Catalogsearch -->
|
109 |
+
<reference name="root">
|
110 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
111 |
+
</reference>
|
112 |
+
<reference name="content">
|
113 |
+
<block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="catalogsearch/advanced/result.phtml">
|
114 |
+
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
|
115 |
+
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>5</count></action>
|
116 |
+
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
|
117 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
|
118 |
+
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
|
119 |
+
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
|
120 |
+
</block>
|
121 |
+
<action method="setListOrders"/>
|
122 |
+
<action method="setListModes"/>
|
123 |
+
<action method="setListCollection"/>
|
124 |
+
</block>
|
125 |
+
</reference>
|
126 |
+
</catalogsearch_advanced_result>
|
127 |
+
|
128 |
+
<catalogsearch_term_popular translate="label">
|
129 |
+
<label>Popular Search Terms</label>
|
130 |
+
<remove name="right"/>
|
131 |
+
<remove name="left"/>
|
132 |
+
|
133 |
+
<reference name="root">
|
134 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
135 |
+
</reference>
|
136 |
+
<reference name="content">
|
137 |
+
<block type="catalogsearch/term" name="seo.searchterm" template="catalogsearch/term.phtml"/>
|
138 |
+
</reference>
|
139 |
+
</catalogsearch_term_popular>
|
140 |
+
|
141 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/checkout.xml
ADDED
@@ -0,0 +1,430 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<!--
|
32 |
+
Default layout, loads most of the pages
|
33 |
+
-->
|
34 |
+
|
35 |
+
<default>
|
36 |
+
|
37 |
+
<!-- Mage_Checkout -->
|
38 |
+
<reference name="top.links">
|
39 |
+
<block type="checkout/links" name="checkout_cart_link">
|
40 |
+
<action method="addCartLink"></action>
|
41 |
+
<action method="addCheckoutLink"></action>
|
42 |
+
</block>
|
43 |
+
</reference>
|
44 |
+
<reference name="left">
|
45 |
+
<!--<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" after="catalog.leftnav">
|
46 |
+
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
47 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
48 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
49 |
+
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions"/>
|
50 |
+
</block>-->
|
51 |
+
</reference>
|
52 |
+
<reference name="right">
|
53 |
+
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" after="catalog.leftnav">
|
54 |
+
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
55 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
56 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
57 |
+
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions"/>
|
58 |
+
</block>
|
59 |
+
</reference>
|
60 |
+
</default>
|
61 |
+
|
62 |
+
<checkout_cart_index translate="label">
|
63 |
+
<label>Shopping Cart</label>
|
64 |
+
<remove name="right"/>
|
65 |
+
<remove name="left"/>
|
66 |
+
<!-- Mage_Checkout -->
|
67 |
+
<reference name="root">
|
68 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
69 |
+
</reference>
|
70 |
+
<reference name="content">
|
71 |
+
<block type="checkout/cart" name="checkout.cart">
|
72 |
+
<action method="setCartTemplate"><value>checkout/cart.phtml</value></action>
|
73 |
+
<action method="setEmptyTemplate"><value>checkout/cart/noItems.phtml</value></action>
|
74 |
+
<action method="chooseTemplate"/>
|
75 |
+
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
|
76 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/item/default.phtml</template></action>
|
77 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/item/default.phtml</template></action>
|
78 |
+
|
79 |
+
<block type="core/text_list" name="checkout.cart.top_methods" as="top_methods" translate="label">
|
80 |
+
<label>Payment Methods Before Checkout Button</label>
|
81 |
+
<block type="checkout/onepage_link" name="checkout.cart.methods.onepage" template="checkout/onepage/link.phtml"/>
|
82 |
+
</block>
|
83 |
+
|
84 |
+
<block type="page/html_wrapper" name="checkout.cart.form.before" as="form_before" translate="label">
|
85 |
+
<label>Shopping Cart Form Before</label>
|
86 |
+
</block>
|
87 |
+
|
88 |
+
<block type="core/text_list" name="checkout.cart.methods" as="methods" translate="label">
|
89 |
+
<label>Payment Methods After Checkout Button</label>
|
90 |
+
<block type="checkout/onepage_link" name="checkout.cart.methods.onepage" template="checkout/onepage/link.phtml"/>
|
91 |
+
<block type="checkout/multishipping_link" name="checkout.cart.methods.multishipping" template="checkout/multishipping/link.phtml"/>
|
92 |
+
</block>
|
93 |
+
|
94 |
+
<block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
|
95 |
+
<block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>
|
96 |
+
<block type="checkout/cart_crosssell" name="checkout.cart.crosssell" as="crosssell" template="checkout/cart/crosssell.phtml"/>
|
97 |
+
|
98 |
+
<block type="checkout/cart_totals" name="checkout.cart.totals" as="totals" template="checkout/cart/totals.phtml"/>
|
99 |
+
</block>
|
100 |
+
</reference>
|
101 |
+
</checkout_cart_index>
|
102 |
+
<checkout_cart_configure translate="label">
|
103 |
+
<label>Configure Cart Item</label>
|
104 |
+
<update handle="catalog_product_view"/>
|
105 |
+
<reference name="product.info">
|
106 |
+
<block type="checkout/cart_item_configure" name="checkout.cart.item.configure.block"></block>
|
107 |
+
</reference>
|
108 |
+
</checkout_cart_configure>
|
109 |
+
<!--
|
110 |
+
Multi address shipping checkout main layout,
|
111 |
+
will be rendered on all checkout pages
|
112 |
+
-->
|
113 |
+
|
114 |
+
<checkout_multishipping translate="label">
|
115 |
+
<label>Multishipping Checkout</label>
|
116 |
+
<!-- Mage_Checkout -->
|
117 |
+
<remove name="right"/>
|
118 |
+
<remove name="left"/>
|
119 |
+
|
120 |
+
<reference name="root">
|
121 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
122 |
+
</reference>
|
123 |
+
<reference name="content">
|
124 |
+
<block type="checkout/multishipping_state" name="checkout_state" template="checkout/multishipping/state.phtml"/>
|
125 |
+
</reference>
|
126 |
+
</checkout_multishipping>
|
127 |
+
|
128 |
+
<checkout_multishipping_login>
|
129 |
+
<update handle="customer_account_login"/>
|
130 |
+
</checkout_multishipping_login>
|
131 |
+
|
132 |
+
<checkout_multishipping_register>
|
133 |
+
<update handle="customer_account_create"/>
|
134 |
+
</checkout_multishipping_register>
|
135 |
+
|
136 |
+
<!--
|
137 |
+
Multi address shipping checkout selection of address per item page
|
138 |
+
-->
|
139 |
+
|
140 |
+
<checkout_multishipping_address_select translate="label">
|
141 |
+
<label>Multishipping Checkout Shipping Address Selection</label>
|
142 |
+
<update handle="checkout_multishipping"/>
|
143 |
+
<!-- Mage_Checkout -->
|
144 |
+
<reference name="content">
|
145 |
+
<block type="checkout/multishipping_address_select" name="checkout_address_select" template="checkout/multishipping/address/select.phtml"/>
|
146 |
+
</reference>
|
147 |
+
</checkout_multishipping_address_select>
|
148 |
+
|
149 |
+
<checkout_multishipping_address_selectbilling translate="label">
|
150 |
+
<label>Multishipping Checkout Billing Address Selection</label>
|
151 |
+
<update handle="checkout_multishipping"/>
|
152 |
+
<!-- Mage_Checkout -->
|
153 |
+
<reference name="content">
|
154 |
+
<block type="checkout/multishipping_address_select" name="checkout_address_select" template="checkout/multishipping/address/select.phtml"/>
|
155 |
+
</reference>
|
156 |
+
</checkout_multishipping_address_selectbilling>
|
157 |
+
|
158 |
+
|
159 |
+
<checkout_multishipping_address_newshipping translate="label">
|
160 |
+
<label>Multishipping Checkout Shipping Address Creation</label>
|
161 |
+
<update handle="checkout_multishipping"/>
|
162 |
+
<update handle="checkout_multishipping_customer_address"/>
|
163 |
+
</checkout_multishipping_address_newshipping>
|
164 |
+
|
165 |
+
<checkout_multishipping_address_newbilling translate="label">
|
166 |
+
<label>Multishipping Checkout Billing Address Creation</label>
|
167 |
+
<update handle="checkout_multishipping"/>
|
168 |
+
<update handle="checkout_multishipping_customer_address"/>
|
169 |
+
</checkout_multishipping_address_newbilling>
|
170 |
+
|
171 |
+
<checkout_multishipping_address_editshipping translate="label">
|
172 |
+
<label>Multishipping Checkout Shipping Address Edit Form</label>
|
173 |
+
<update handle="checkout_multishipping"/>
|
174 |
+
<update handle="checkout_multishipping_customer_address"/>
|
175 |
+
</checkout_multishipping_address_editshipping>
|
176 |
+
|
177 |
+
<checkout_multishipping_address_editaddress>
|
178 |
+
<update handle="checkout_multishipping"/>
|
179 |
+
<update handle="checkout_multishipping_customer_address"/>
|
180 |
+
</checkout_multishipping_address_editaddress>
|
181 |
+
|
182 |
+
<checkout_multishipping_address_editbilling translate="label">
|
183 |
+
<label>Multishipping Checkout Billing Address Edit Form</label>
|
184 |
+
<update handle="checkout_multishipping"/>
|
185 |
+
<update handle="checkout_multishipping_customer_address"/>
|
186 |
+
</checkout_multishipping_address_editbilling>
|
187 |
+
|
188 |
+
<checkout_multishipping_customer_address translate="label">
|
189 |
+
<label>Multishipping Checkout Customer Address Edit Form</label>
|
190 |
+
<reference name="content">
|
191 |
+
<block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
|
192 |
+
</reference>
|
193 |
+
</checkout_multishipping_customer_address>
|
194 |
+
|
195 |
+
<!--
|
196 |
+
Multi address shipping checkout address page
|
197 |
+
-->
|
198 |
+
|
199 |
+
<checkout_multishipping_addresses translate="label">
|
200 |
+
<label>Multishipping Checkout Address (Any) Form</label>
|
201 |
+
<update handle="checkout_multishipping"/>
|
202 |
+
<!-- Mage_Checkout -->
|
203 |
+
<reference name="content">
|
204 |
+
<block type="checkout/multishipping_addresses" name="checkout_addresses" template="checkout/multishipping/addresses.phtml">
|
205 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
|
206 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
|
207 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
|
208 |
+
</block>
|
209 |
+
</reference>
|
210 |
+
</checkout_multishipping_addresses>
|
211 |
+
|
212 |
+
<!--
|
213 |
+
Multi address shipping checkout shipping information
|
214 |
+
-->
|
215 |
+
|
216 |
+
<checkout_multishipping_shipping translate="label">
|
217 |
+
<label>Multishipping Checkout Shipping Information Step</label>
|
218 |
+
<update handle="checkout_multishipping"/>
|
219 |
+
<!-- Mage_Checkout -->
|
220 |
+
<reference name="content">
|
221 |
+
<block type="checkout/multishipping_shipping" name="checkout_shipping" template="checkout/multishipping/shipping.phtml">
|
222 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
|
223 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
|
224 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
|
225 |
+
|
226 |
+
<block type="checkout/multishipping_billing_items" name="checkout_billing_items" template="checkout/multishipping/billing/items.phtml">
|
227 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
|
228 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
|
229 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
|
230 |
+
</block>
|
231 |
+
</block>
|
232 |
+
</reference>
|
233 |
+
</checkout_multishipping_shipping>
|
234 |
+
|
235 |
+
<!--
|
236 |
+
Multi address shipping checkout billing information
|
237 |
+
-->
|
238 |
+
|
239 |
+
<checkout_multishipping_billing translate="label">
|
240 |
+
<label>Multishipping Checkout Billing Information Step</label>
|
241 |
+
<update handle="checkout_multishipping"/>
|
242 |
+
<!-- Mage_Checkout -->
|
243 |
+
<reference name="content">
|
244 |
+
<block type="checkout/multishipping_billing" name="checkout_billing" template="checkout/multishipping/billing.phtml">
|
245 |
+
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
|
246 |
+
|
247 |
+
<!--<block type="checkout/multishipping_billing_items" name="checkout_billing_items" template="checkout/multishipping/billing/items.phtml">
|
248 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
|
249 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
|
250 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
|
251 |
+
</block>-->
|
252 |
+
|
253 |
+
</block>
|
254 |
+
</reference>
|
255 |
+
</checkout_multishipping_billing>
|
256 |
+
|
257 |
+
<!--
|
258 |
+
Multi address shipping checkout overview
|
259 |
+
-->
|
260 |
+
|
261 |
+
<checkout_multishipping_overview translate="label">
|
262 |
+
<label>Multishipping Checkout Overview</label>
|
263 |
+
<update handle="checkout_multishipping"/>
|
264 |
+
<!-- Mage_Checkout -->
|
265 |
+
<reference name="content">
|
266 |
+
<block type="checkout/multishipping_overview" name="checkout_overview" template="checkout/multishipping/overview.phtml">
|
267 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
|
268 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
|
269 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
|
270 |
+
<action method="addRowItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/overview/item.phtml</template></action>
|
271 |
+
<action method="addRowItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/overview/item.phtml</template></action>
|
272 |
+
<block type="checkout/multishipping_payment_info" name="payment_info">
|
273 |
+
<action method="setInfoTemplate"><method></method><template></template></action>
|
274 |
+
</block>
|
275 |
+
<block type="checkout/agreements" name="checkout.multishipping.agreements" as="agreements" template="checkout/multishipping/agreements.phtml"/>
|
276 |
+
<block type="checkout/cart_totals" name="totals" />
|
277 |
+
<block type="core/text_list" name="checkout.multishipping.overview.items.after" as="items_after"/>
|
278 |
+
</block>
|
279 |
+
</reference>
|
280 |
+
</checkout_multishipping_overview>
|
281 |
+
|
282 |
+
<!--
|
283 |
+
Multi address shipping checkout success
|
284 |
+
-->
|
285 |
+
|
286 |
+
<checkout_multishipping_success translate="label">
|
287 |
+
<label>Multishipping Checkout Success</label>
|
288 |
+
<update handle="checkout_multishipping"/>
|
289 |
+
<!-- Mage_Checkout -->
|
290 |
+
<reference name="content">
|
291 |
+
<block type="checkout/multishipping_success" name="checkout_success" template="checkout/multishipping/success.phtml"/>
|
292 |
+
</reference>
|
293 |
+
</checkout_multishipping_success>
|
294 |
+
|
295 |
+
<!--
|
296 |
+
One page checkout main layout
|
297 |
+
-->
|
298 |
+
|
299 |
+
<checkout_onepage_index translate="label">
|
300 |
+
<label>One Page Checkout</label>
|
301 |
+
<!-- Mage_Checkout -->
|
302 |
+
<reference name="root">
|
303 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
304 |
+
</reference>
|
305 |
+
<reference name="left">
|
306 |
+
<action method="unsetChildren"></action>
|
307 |
+
<block type="page/html_wrapper" name="checkout.progress.wrapper">
|
308 |
+
<action method="setElementId"><value>checkout-progress-wrapper</value></action>
|
309 |
+
<block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml"/>
|
310 |
+
</block>
|
311 |
+
</reference>
|
312 |
+
<reference name="content">
|
313 |
+
<block type="checkout/onepage" name="checkout.onepage" template="checkout/onepage.phtml">
|
314 |
+
<block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml">
|
315 |
+
<block type="page/html_wrapper" name="checkout.onepage.login.before" as="login_before">
|
316 |
+
<action method="setMayBeInvisible"><value>1</value></action>
|
317 |
+
</block>
|
318 |
+
</block>
|
319 |
+
<block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>
|
320 |
+
<block type="checkout/onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="checkout/onepage/shipping.phtml"/>
|
321 |
+
<block type="checkout/onepage_shipping_method" name="checkout.onepage.shipping_method" as="shipping_method" template="checkout/onepage/shipping_method.phtml">
|
322 |
+
<block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="checkout/onepage/shipping_method/available.phtml"/>
|
323 |
+
<block type="checkout/onepage_shipping_method_additional" name="checkout.onepage.shipping_method.additional" as="additional" template="checkout/onepage/shipping_method/additional.phtml"/>
|
324 |
+
</block>
|
325 |
+
<block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
|
326 |
+
<block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">
|
327 |
+
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
|
328 |
+
</block>
|
329 |
+
</block>
|
330 |
+
<block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="checkout/onepage/review.phtml"/>
|
331 |
+
</block>
|
332 |
+
</reference>
|
333 |
+
</checkout_onepage_index>
|
334 |
+
|
335 |
+
<!--
|
336 |
+
One page checkout progress block
|
337 |
+
-->
|
338 |
+
|
339 |
+
<checkout_onepage_progress>
|
340 |
+
<!-- Mage_Checkout -->
|
341 |
+
<remove name="right"/>
|
342 |
+
<remove name="left"/>
|
343 |
+
|
344 |
+
<block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress.phtml">
|
345 |
+
<block type="checkout/onepage_payment_info" name="payment_info">
|
346 |
+
<action method="setInfoTemplate"><method></method><template></template></action>
|
347 |
+
</block>
|
348 |
+
</block>
|
349 |
+
</checkout_onepage_progress>
|
350 |
+
|
351 |
+
<!--
|
352 |
+
One page checkout payment methods block
|
353 |
+
-->
|
354 |
+
<checkout_onepage_paymentmethod>
|
355 |
+
<remove name="right"/>
|
356 |
+
<remove name="left"/>
|
357 |
+
|
358 |
+
<block type="checkout/onepage_payment_methods" name="root" output="toHtml" template="checkout/onepage/payment/methods.phtml">
|
359 |
+
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
|
360 |
+
</block>
|
361 |
+
</checkout_onepage_paymentmethod>
|
362 |
+
|
363 |
+
|
364 |
+
<!--
|
365 |
+
One page checkout shipping methods block
|
366 |
+
-->
|
367 |
+
|
368 |
+
<checkout_onepage_shippingmethod>
|
369 |
+
<!-- Mage_Checkout -->
|
370 |
+
<remove name="right"/>
|
371 |
+
<remove name="left"/>
|
372 |
+
|
373 |
+
<block type="checkout/onepage_shipping_method_available" name="root" output="toHtml" template="checkout/onepage/shipping_method/available.phtml"/>
|
374 |
+
</checkout_onepage_shippingmethod>
|
375 |
+
|
376 |
+
<checkout_onepage_additional>
|
377 |
+
<!-- Mage_Checkout -->
|
378 |
+
<remove name="right"/>
|
379 |
+
<remove name="left"/>
|
380 |
+
|
381 |
+
<block type="checkout/onepage_shipping_method_additional" name="root" output="toHtml" template="checkout/onepage/shipping_method/additional.phtml">
|
382 |
+
<action method="setDontDisplayContainer"><param>1</param></action>
|
383 |
+
</block>
|
384 |
+
</checkout_onepage_additional>
|
385 |
+
|
386 |
+
<!--
|
387 |
+
One page checkout order review block
|
388 |
+
-->
|
389 |
+
|
390 |
+
<checkout_onepage_review>
|
391 |
+
<!-- Mage_Checkout -->
|
392 |
+
<remove name="right"/>
|
393 |
+
<remove name="left"/>
|
394 |
+
|
395 |
+
<block type="checkout/onepage_review_info" name="root" output="toHtml" template="checkout/onepage/review/info.phtml">
|
396 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
397 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
|
398 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
|
399 |
+
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
|
400 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
|
401 |
+
<label>Items Before</label>
|
402 |
+
</block>
|
403 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
|
404 |
+
<label>Items After</label>
|
405 |
+
</block>
|
406 |
+
<block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
|
407 |
+
<block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
|
408 |
+
</block>
|
409 |
+
|
410 |
+
</checkout_onepage_review>
|
411 |
+
|
412 |
+
<checkout_onepage_success translate="label">
|
413 |
+
<label>One Page Checkout Success</label>
|
414 |
+
<reference name="root">
|
415 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
416 |
+
</reference>
|
417 |
+
<reference name="content">
|
418 |
+
<block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
|
419 |
+
</reference>
|
420 |
+
</checkout_onepage_success>
|
421 |
+
<checkout_onepage_failure translate="label">
|
422 |
+
<label>One Page Checkout Failure</label>
|
423 |
+
<reference name="root">
|
424 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
425 |
+
</reference>
|
426 |
+
<reference name="content">
|
427 |
+
<block type="checkout/onepage_failure" name="checkout.failure" template="checkout/onepage/failure.phtml"/>
|
428 |
+
</reference>
|
429 |
+
</checkout_onepage_failure>
|
430 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/contacts.xml
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<layout version="0.1.0">
|
29 |
+
<default>
|
30 |
+
<reference name="footer_links">
|
31 |
+
<action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action>
|
32 |
+
</reference>
|
33 |
+
</default>
|
34 |
+
|
35 |
+
<contacts_index_index translate="label">
|
36 |
+
<label>Contact Us Form</label>
|
37 |
+
<reference name="head">
|
38 |
+
<action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
|
39 |
+
</reference>
|
40 |
+
<reference name="root">
|
41 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
42 |
+
<action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
|
43 |
+
</reference>
|
44 |
+
<reference name="left">
|
45 |
+
<remove name="left.newsletter"/>
|
46 |
+
<remove name="catalog.leftnavig"/>
|
47 |
+
<remove name="best_seller"/>
|
48 |
+
<remove name="right.poll"/>
|
49 |
+
<block type="cms/block" name="contact-block">
|
50 |
+
<action method="setBlockId"><block_id>contacts-address</block_id></action>
|
51 |
+
</block>
|
52 |
+
</reference>
|
53 |
+
<reference name="content">
|
54 |
+
<block type="core/template" name="contactForm" template="contacts/form.phtml"/>
|
55 |
+
</reference>
|
56 |
+
</contacts_index_index>
|
57 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/customer.xml
ADDED
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
Supported layout update handles (action):
|
29 |
+
- customer_account_index
|
30 |
+
- customer_address_index
|
31 |
+
- customer_address_view
|
32 |
+
- customer_account_login
|
33 |
+
- customer_account_logoutsuccess
|
34 |
+
- customer_account_create
|
35 |
+
- customer_account_forgotpassword
|
36 |
+
- customer_account_confirmation
|
37 |
+
- customer_account_edit
|
38 |
+
|
39 |
+
Supported layout update handles (special):
|
40 |
+
- default
|
41 |
+
|
42 |
+
-->
|
43 |
+
<layout version="0.1.0">
|
44 |
+
|
45 |
+
<!--
|
46 |
+
Default layout, loads most of the pages
|
47 |
+
-->
|
48 |
+
|
49 |
+
<default>
|
50 |
+
<!-- Mage_Customer -->
|
51 |
+
<reference name="top.links">
|
52 |
+
<action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
|
53 |
+
</reference>
|
54 |
+
</default>
|
55 |
+
|
56 |
+
<!--
|
57 |
+
Load this update on every page when customer is logged in
|
58 |
+
-->
|
59 |
+
|
60 |
+
<customer_logged_in>
|
61 |
+
<reference name="top.links">
|
62 |
+
<action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
|
63 |
+
</reference>
|
64 |
+
</customer_logged_in>
|
65 |
+
|
66 |
+
<!--
|
67 |
+
Load this update on every page when customer is logged out
|
68 |
+
-->
|
69 |
+
|
70 |
+
<customer_logged_out>
|
71 |
+
<!---<reference name="right">
|
72 |
+
<block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/>
|
73 |
+
</reference>-->
|
74 |
+
|
75 |
+
<reference name="top.links">
|
76 |
+
<action method="addLink" translate="label title" module="customer"><label>Log In</label><url helper="customer/getLoginUrl"/><title>Log In</title><prepare/><urlParams/><position>100</position></action>
|
77 |
+
</reference>
|
78 |
+
<remove name="wishlist_sidebar"></remove>
|
79 |
+
<remove name="reorder"></remove>
|
80 |
+
</customer_logged_out>
|
81 |
+
|
82 |
+
<!--
|
83 |
+
Layout for customer login page
|
84 |
+
-->
|
85 |
+
|
86 |
+
<customer_account_login translate="label">
|
87 |
+
<label>Customer Account Login Form</label>
|
88 |
+
<!-- Mage_Customer -->
|
89 |
+
<remove name="right"/>
|
90 |
+
|
91 |
+
<reference name="root">
|
92 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
93 |
+
</reference>
|
94 |
+
<reference name="content">
|
95 |
+
<block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
|
96 |
+
</reference>
|
97 |
+
</customer_account_login>
|
98 |
+
|
99 |
+
<!--
|
100 |
+
Layout for customer log out page
|
101 |
+
-->
|
102 |
+
|
103 |
+
<customer_account_logoutsuccess translate="label">
|
104 |
+
<label>Customer Account Logout Success</label>
|
105 |
+
<!-- Mage_Customer -->
|
106 |
+
<remove name="right"/>
|
107 |
+
|
108 |
+
<reference name="root">
|
109 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
110 |
+
</reference>
|
111 |
+
<reference name="content">
|
112 |
+
<block type="core/template" name="customer_logout" template="customer/logout.phtml"/>
|
113 |
+
</reference>
|
114 |
+
</customer_account_logoutsuccess>
|
115 |
+
|
116 |
+
<!--
|
117 |
+
New customer registration
|
118 |
+
-->
|
119 |
+
|
120 |
+
<customer_account_create translate="label">
|
121 |
+
<label>Customer Account Registration Form</label>
|
122 |
+
<!-- Mage_Customer -->
|
123 |
+
<remove name="right"/>
|
124 |
+
|
125 |
+
|
126 |
+
<reference name="head">
|
127 |
+
<block type="core/template" name="optional_zip_countries" as="optional_zip_countries" template="directory/js/optional_zip_countries.phtml" />
|
128 |
+
</reference>
|
129 |
+
<reference name="root">
|
130 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
131 |
+
</reference>
|
132 |
+
<reference name="content">
|
133 |
+
<block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
|
134 |
+
<block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before"/>
|
135 |
+
</block>
|
136 |
+
</reference>
|
137 |
+
</customer_account_create>
|
138 |
+
|
139 |
+
<customer_account_forgotpassword translate="label">
|
140 |
+
<label>Customer Forgot Password Form</label>
|
141 |
+
<remove name="right"/>
|
142 |
+
|
143 |
+
<reference name="root">
|
144 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
145 |
+
<action method="setHeaderTitle" translate="title" module="customer"><title>Password forgotten</title></action>
|
146 |
+
</reference>
|
147 |
+
<reference name="content">
|
148 |
+
<!--<block type="core/template" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>-->
|
149 |
+
<block type="customer/account_forgotpassword" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>
|
150 |
+
</reference>
|
151 |
+
</customer_account_forgotpassword>
|
152 |
+
|
153 |
+
<customer_account_confirmation>
|
154 |
+
<remove name="right"/>
|
155 |
+
<remove name="left"/>
|
156 |
+
|
157 |
+
<reference name="root">
|
158 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
159 |
+
<action method="setHeaderTitle" translate="title" module="customer"><title>Send confirmation link</title></action>
|
160 |
+
</reference>
|
161 |
+
<reference name="content">
|
162 |
+
<block type="core/template" name="accountConfirmation" template="customer/form/confirmation.phtml"/>
|
163 |
+
</reference>
|
164 |
+
</customer_account_confirmation>
|
165 |
+
|
166 |
+
<customer_account_edit translate="label">
|
167 |
+
<label>Customer Account Edit Form</label>
|
168 |
+
<update handle="customer_account"/>
|
169 |
+
<reference name="root">
|
170 |
+
<action method="setHeaderTitle" translate="title" module="customer"><title>Edit Account Info</title></action>
|
171 |
+
</reference>
|
172 |
+
<reference name="my.account.wrapper">
|
173 |
+
<block type="customer/form_edit" name="customer_edit" template="customer/form/edit.phtml"/>
|
174 |
+
</reference>
|
175 |
+
|
176 |
+
<reference name="left">
|
177 |
+
<action method="unsetChild"><name>left.permanent.callout</name></action>
|
178 |
+
</reference>
|
179 |
+
</customer_account_edit>
|
180 |
+
|
181 |
+
<!--
|
182 |
+
Customer account pages, rendered for all tabs in dashboard
|
183 |
+
-->
|
184 |
+
|
185 |
+
<customer_account translate="label">
|
186 |
+
<label>Customer My Account (All Pages)</label>
|
187 |
+
<!-- Mage_Customer -->
|
188 |
+
<reference name="root">
|
189 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
190 |
+
</reference>
|
191 |
+
|
192 |
+
<reference name="content">
|
193 |
+
<block type="page/html_wrapper" name="my.account.wrapper">
|
194 |
+
<action method="setElementClass"><value>my-account</value></action>
|
195 |
+
</block>
|
196 |
+
</reference>
|
197 |
+
<remove name="right.poll" />
|
198 |
+
<remove name="catalog.leftcat" />
|
199 |
+
<remove name="wishlist_sidebar"></remove>
|
200 |
+
<reference name="left">
|
201 |
+
<block type="customer/account_navigation" name="customer_account_navigation" template="customer/account/navigation.phtml" before="-">
|
202 |
+
<action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
|
203 |
+
<action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
|
204 |
+
<action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
|
205 |
+
</block>
|
206 |
+
<remove name="tags_popular"/>
|
207 |
+
|
208 |
+
</reference>
|
209 |
+
</customer_account>
|
210 |
+
|
211 |
+
<!--
|
212 |
+
Customer account home dashboard layout
|
213 |
+
-->
|
214 |
+
|
215 |
+
<customer_account_index translate="label">
|
216 |
+
<label>Customer My Account Dashboard</label>
|
217 |
+
<update handle="customer_account"/>
|
218 |
+
<!-- Mage_Customer -->
|
219 |
+
<reference name="root">
|
220 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
221 |
+
</reference>
|
222 |
+
<reference name="my.account.wrapper">
|
223 |
+
<block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
|
224 |
+
<block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/>
|
225 |
+
<block type="core/template" name="customer_account_dashboard_top" as="top" />
|
226 |
+
<block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/>
|
227 |
+
<block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/>
|
228 |
+
<block type="customer/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/>
|
229 |
+
<block type="core/template" name="customer_account_dashboard_info1" as="info1" />
|
230 |
+
<block type="core/template" name="customer_account_dashboard_info2" as="info2" />
|
231 |
+
</block>
|
232 |
+
</reference>
|
233 |
+
|
234 |
+
</customer_account_index>
|
235 |
+
|
236 |
+
<!--
|
237 |
+
Customer account address book
|
238 |
+
-->
|
239 |
+
|
240 |
+
<customer_address_index translate="label">
|
241 |
+
<label>Customer My Account Address Book</label>
|
242 |
+
<!-- Mage_Customer -->
|
243 |
+
<update handle="customer_account"/>
|
244 |
+
<reference name="my.account.wrapper">
|
245 |
+
<block type="customer/address_book" name="address_book" before="-" template="customer/address/book.phtml"/>
|
246 |
+
</reference>
|
247 |
+
</customer_address_index>
|
248 |
+
|
249 |
+
<!--
|
250 |
+
Customer account address edit page
|
251 |
+
-->
|
252 |
+
|
253 |
+
<customer_address_form translate="label">
|
254 |
+
<label>Customer My Account Address Edit Form</label>
|
255 |
+
<!-- Mage_Customer -->
|
256 |
+
<update handle="customer_account"/>
|
257 |
+
<reference name="head">
|
258 |
+
<block type="core/template" name="optional_zip_countries" as="optional_zip_countries" template="directory/js/optional_zip_countries.phtml" />
|
259 |
+
</reference>
|
260 |
+
<reference name="my.account.wrapper">
|
261 |
+
<block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
|
262 |
+
</reference>
|
263 |
+
</customer_address_form>
|
264 |
+
|
265 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/developertoolbar.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="core/template" template="developertoolbar/toolbar.phtml">
|
6 |
+
<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
|
7 |
+
</block>
|
8 |
+
</reference>
|
9 |
+
</default>
|
10 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/directory.xml
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<!--
|
32 |
+
Category default layout
|
33 |
+
-->
|
34 |
+
|
35 |
+
<catalog_category_default>
|
36 |
+
<reference name="left">
|
37 |
+
</reference>
|
38 |
+
</catalog_category_default>
|
39 |
+
|
40 |
+
<!--
|
41 |
+
Category layered navigation layout
|
42 |
+
-->
|
43 |
+
|
44 |
+
<catalog_category_layered>
|
45 |
+
<reference name="left">
|
46 |
+
</reference>
|
47 |
+
</catalog_category_layered>
|
48 |
+
|
49 |
+
<!--
|
50 |
+
Catalog Search layout
|
51 |
+
-->
|
52 |
+
|
53 |
+
<catalogsearch_advanced_index>
|
54 |
+
<reference name="left"></reference>
|
55 |
+
</catalogsearch_advanced_index>
|
56 |
+
|
57 |
+
<catalogsearch_result_index>
|
58 |
+
<reference name="left">
|
59 |
+
</reference>
|
60 |
+
</catalogsearch_result_index>
|
61 |
+
|
62 |
+
<catalogsearch_advanced_result>
|
63 |
+
<reference name="right">
|
64 |
+
</reference>
|
65 |
+
</catalogsearch_advanced_result>
|
66 |
+
|
67 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/newsletter.xml
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<!--
|
32 |
+
Default layout, loads most of the pages
|
33 |
+
-->
|
34 |
+
|
35 |
+
<default>
|
36 |
+
<!--
|
37 |
+
<reference name="left">
|
38 |
+
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml" after="-"/>
|
39 |
+
</reference>
|
40 |
+
-->
|
41 |
+
</default>
|
42 |
+
|
43 |
+
<!--
|
44 |
+
Customer account pages, rendered for all tabs in dashboard
|
45 |
+
-->
|
46 |
+
|
47 |
+
<customer_account>
|
48 |
+
<!-- Mage_Newsletter -->
|
49 |
+
<reference name="customer_account_navigation">
|
50 |
+
<action method="addLink" translate="label" module="newsletter"><name>newsletter</name><path>newsletter/manage/</path><label>Newsletter Subscriptions</label></action>
|
51 |
+
</reference>
|
52 |
+
<remove name="left.newsletter"/>
|
53 |
+
</customer_account>
|
54 |
+
|
55 |
+
<newsletter_manage_index translate="label">
|
56 |
+
<label>Customer My Account Newsletter Subscriptions</label>
|
57 |
+
<update handle="customer_account"/>
|
58 |
+
<reference name="my.account.wrapper">
|
59 |
+
<block type="customer/newsletter" name="customer_newsletter">
|
60 |
+
<block type="page/html_wrapper" name="customer.newsletter.form.before" as="form_before">
|
61 |
+
<action method="setMayBeInvisible"><value>1</value></action>
|
62 |
+
</block>
|
63 |
+
</block>
|
64 |
+
</reference>
|
65 |
+
</newsletter_manage_index>
|
66 |
+
|
67 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/page.xml
ADDED
@@ -0,0 +1,346 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design_default
|
23 |
+
* @package Mage
|
24 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<layout version="0.1.0">
|
29 |
+
<!--
|
30 |
+
Default layout, loads most of the pages
|
31 |
+
-->
|
32 |
+
<cms_index_index>
|
33 |
+
<!-- Top Spotlight - topsl -->
|
34 |
+
<reference name="topsl">
|
35 |
+
<block type="cms/block" name="position-1">
|
36 |
+
<action method="setBlockId"><block_id>position-1</block_id></action>
|
37 |
+
</block>
|
38 |
+
<block type="cms/block" name="position-2">
|
39 |
+
<action method="setBlockId"><block_id>position-2</block_id></action>
|
40 |
+
</block>
|
41 |
+
<block type="cms/block" name="position-3">
|
42 |
+
<action method="setBlockId"><block_id>position-3</block_id></action>
|
43 |
+
</block>
|
44 |
+
</reference>
|
45 |
+
<!-- Top Spotlight - topsl -->
|
46 |
+
|
47 |
+
<remove name="breadcrumbs" />
|
48 |
+
</cms_index_index>
|
49 |
+
<default translate="label" module="page">
|
50 |
+
<label>All Pages</label>
|
51 |
+
<block type="page/html" name="root" output="toHtml" template="page/2columns-right.phtml">
|
52 |
+
|
53 |
+
<block type="page/html_head" name="head" as="head">
|
54 |
+
<action method="addJs"><script>prototype/prototype.js</script></action>
|
55 |
+
<action method="addJs"><script>lib/ccard.js</script></action>
|
56 |
+
<action method="addJs" ifconfig="dev/js/deprecation"><script>prototype/deprecation.js</script></action>
|
57 |
+
<action method="addJs"><script>prototype/validation.js</script></action>
|
58 |
+
<action method="addJs"><script>scriptaculous/builder.js</script></action>
|
59 |
+
<action method="addJs"><script>scriptaculous/effects.js</script></action>
|
60 |
+
<action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
|
61 |
+
<action method="addJs"><script>scriptaculous/controls.js</script></action>
|
62 |
+
<action method="addJs"><script>scriptaculous/slider.js</script></action>
|
63 |
+
<action method="addJs"><script>varien/js.js</script></action>
|
64 |
+
<action method="addJs"><script>varien/form.js</script></action>
|
65 |
+
<action method="addJs"><script>varien/menu.js</script></action>
|
66 |
+
<action method="addJs"><script>mage/translate.js</script></action>
|
67 |
+
<action method="addJs"><script>mage/cookies.js</script></action>
|
68 |
+
<block type="page/js_cookie" name="js_cookies" template="page/js/cookie.phtml"/>
|
69 |
+
<action method="addItem"><type>skin_css</type><name>bootstrap/css/bootstrap.css</name></action>
|
70 |
+
<action method="addItem"><type>skin_css</type><name>bootstrap/css/bootstrap-responsive.css</name></action>
|
71 |
+
<action method="addCss"><stylesheet>css/docs.css</stylesheet></action>
|
72 |
+
|
73 |
+
<action method="addCss"><stylesheet>css/addons.css</stylesheet></action>
|
74 |
+
<action method="addCss"><stylesheet>css/theme.css</stylesheet></action>
|
75 |
+
<action method="addCss"><stylesheet>css/ytc-bootstrap-responsive.css</stylesheet></action>
|
76 |
+
<action method="addCss"><stylesheet>css/menu.css</stylesheet></action>
|
77 |
+
<action method="addCss"><stylesheet>css/colorbox.css</stylesheet></action>
|
78 |
+
<action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
|
79 |
+
<action method="addItem"><type>skin_css</type><name>css/fontello.css</name><params/></action>
|
80 |
+
<action method="addItem"><type>skin_css</type><name>css/ie.css</name><params/><if>IE</if></action>
|
81 |
+
<action method="addItem"><type>skin_css</type><name>css/fontello-ie7.css</name><params/><if>IE7</if></action>
|
82 |
+
<action method="addItem"><type>skin_css</type><name>css/ie8.css</name><params/><if>IE 8</if></action>
|
83 |
+
|
84 |
+
<action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
|
85 |
+
</block>
|
86 |
+
|
87 |
+
<block type="core/text_list" name="after_body_start" as="after_body_start"/>
|
88 |
+
|
89 |
+
<block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
|
90 |
+
|
91 |
+
<block type="page/html_header" name="header" as="header">
|
92 |
+
<block type="page/template_links" name="top.links" as="topLinks"/>
|
93 |
+
<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
|
94 |
+
<block type="catalog/navigation" name="mobinav" template="catalog/navigation/mobinav.phtml" />
|
95 |
+
<block type="directory/currency" name="currency" as="currency" template="directory/currency-top.phtml"/>
|
96 |
+
<block type="page/html_wrapper" name="top.container" as="topContainer" translate="label">
|
97 |
+
<label>Page Header</label>
|
98 |
+
<action method="setElementClass"><value>top-container</value></action>
|
99 |
+
</block>
|
100 |
+
<block type="core/text_list" name="megaMenu" as="megaMenu" />
|
101 |
+
<block type="core/text_list" name="top.menu" as="topMenu" />
|
102 |
+
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" >
|
103 |
+
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
104 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
105 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
|
106 |
+
</block>
|
107 |
+
<block type="cms/block" name="about-us">
|
108 |
+
<action method="setBlockId"><block_id>about-us</block_id></action>
|
109 |
+
</block>
|
110 |
+
<block type="megamenu/list" name="megamenu.list.theme"/>
|
111 |
+
<block type="customer/form_login" name="customer_form_mini_login" after="-" template="customer/form/mini.login.phtml" />
|
112 |
+
</block>
|
113 |
+
|
114 |
+
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
|
115 |
+
|
116 |
+
<block type="core/text_list" name="left" as="left" translate="label">
|
117 |
+
<label>Left Column</label>
|
118 |
+
</block>
|
119 |
+
|
120 |
+
<block type="core/text_list" name="topsl" as="topsl" translate="label">
|
121 |
+
<label>Top Spotlight</label>
|
122 |
+
</block>
|
123 |
+
|
124 |
+
<block type="core/text_list" name="slideshow" as="slideshow" translate="label">
|
125 |
+
<label>SM SlideShow</label>
|
126 |
+
</block>
|
127 |
+
<block type="slider/list" name="slider" template="smartaddons/slider/theme14.phtml" />
|
128 |
+
|
129 |
+
<block type="core/text_list" name="right-slideshow" as="right-slideshow" translate="label">
|
130 |
+
<label>SM Basicproduct</label>
|
131 |
+
</block>
|
132 |
+
|
133 |
+
<block type="core/text_list" name="ads" as="ads" translate="label">
|
134 |
+
<label>Ads</label>
|
135 |
+
</block>
|
136 |
+
|
137 |
+
<block type="core/text_list" name="connect" as="connect" translate="label">
|
138 |
+
<label>Connect</label>
|
139 |
+
</block>
|
140 |
+
<block type="core/text_list" name="botsl" as="botsl" translate="label">
|
141 |
+
<label>Bottom Spotlight</label>
|
142 |
+
</block>
|
143 |
+
|
144 |
+
<block type="core/text_list" name="botsl1" as="botsl1" translate="label">
|
145 |
+
<label>Bottom Spotlight1</label>
|
146 |
+
</block>
|
147 |
+
<block type="core/text_list" name="botproduct" as="botproduct" translate="label">
|
148 |
+
<label>Bottom Product Slider</label>
|
149 |
+
</block>
|
150 |
+
|
151 |
+
<block type="core/messages" name="global_messages" as="global_messages"/>
|
152 |
+
<block type="core/messages" name="messages" as="messages"/>
|
153 |
+
|
154 |
+
<block type="core/text_list" name="content" as="content" translate="label">
|
155 |
+
<label>Main Content Area</label>
|
156 |
+
</block>
|
157 |
+
|
158 |
+
<block type="core/text_list" name="content-top" as="content-top" translate="label">
|
159 |
+
<label>Top Content Area</label>
|
160 |
+
</block>
|
161 |
+
|
162 |
+
<block type="core/text_list" name="content-bottom" as="content-bottom" translate="label">
|
163 |
+
<label>Bottom Content Area</label>
|
164 |
+
</block>
|
165 |
+
|
166 |
+
<block type="core/text_list" name="right" as="right" translate="label">
|
167 |
+
<label>Right Column</label>
|
168 |
+
</block>
|
169 |
+
|
170 |
+
<block type="core/text_list" name="before_footer" as="before_footer" translate="label">
|
171 |
+
<label>Before Footer</label>
|
172 |
+
</block>
|
173 |
+
|
174 |
+
<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
|
175 |
+
<block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
|
176 |
+
<label>Page Footer</label>
|
177 |
+
<action method="setElementClass"><value>bottom-container</value></action>
|
178 |
+
</block>
|
179 |
+
<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
|
180 |
+
<!--<block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>-->
|
181 |
+
</block>
|
182 |
+
|
183 |
+
<block type="core/text_list" name="before_body_end" as="before_body_end"/>
|
184 |
+
</block>
|
185 |
+
<!-- Mega Menu -->
|
186 |
+
<reference name="megaMenu">
|
187 |
+
<block type="megamenu/list" name="megamenu.list.theme">
|
188 |
+
</block>
|
189 |
+
</reference>
|
190 |
+
|
191 |
+
<!--Display category on right-->
|
192 |
+
<remove name="right.reports.product.viewed" />
|
193 |
+
<remove name="catalog.product.related" />
|
194 |
+
|
195 |
+
<!--Display category on right-->
|
196 |
+
<reference name="right">
|
197 |
+
<!--<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml" before="-" />-->
|
198 |
+
<block type="catalog/navigation" name="catalog.leftcat" template="catalog/navigation/sidenav.phtml" before="catalog.shopby"/>
|
199 |
+
</reference>
|
200 |
+
|
201 |
+
<!--<remove name="catalog.product.related" />-->
|
202 |
+
<reference name="right">
|
203 |
+
<block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
|
204 |
+
</reference>
|
205 |
+
|
206 |
+
|
207 |
+
<block type="core/profiler" output="toHtml" name="core_profiler"/>
|
208 |
+
<!--Ads -->
|
209 |
+
<reference name="ads">
|
210 |
+
<block type="cms/block" name="position-4">
|
211 |
+
<action method="setBlockId"><block_id>position-4</block_id></action>
|
212 |
+
</block>
|
213 |
+
</reference>
|
214 |
+
<!--Connect -->
|
215 |
+
<reference name="connect">
|
216 |
+
<block type="cms/block" name="position-5">
|
217 |
+
<action method="setBlockId"><block_id>position-5</block_id></action>
|
218 |
+
</block>
|
219 |
+
</reference>
|
220 |
+
|
221 |
+
<!-- Bottom Spotlight - botsl -->
|
222 |
+
<reference name="botsl">
|
223 |
+
<block type="cms/block" name="position-6">
|
224 |
+
<action method="setBlockId"><block_id>position-6</block_id></action>
|
225 |
+
</block>
|
226 |
+
<block type="cms/block" name="position-7">
|
227 |
+
<action method="setBlockId"><block_id>position-7</block_id></action>
|
228 |
+
</block>
|
229 |
+
<block type="cms/block" name="position-8">
|
230 |
+
<action method="setBlockId"><block_id>position-8</block_id></action>
|
231 |
+
</block>
|
232 |
+
<block type="cms/block" name="position-9">
|
233 |
+
<action method="setBlockId"><block_id>position-9</block_id></action>
|
234 |
+
</block>
|
235 |
+
<block type="cms/block" name="position-10">
|
236 |
+
<action method="setBlockId"><block_id>position-10</block_id></action>
|
237 |
+
</block>
|
238 |
+
</reference>
|
239 |
+
<!-- Bottom Spotlight - botsl -->
|
240 |
+
|
241 |
+
<!-- Bottom Product Slider -->
|
242 |
+
<reference name="botproduct">
|
243 |
+
<block type="cms/block" name="bt-slider" before="-" >
|
244 |
+
<action method="setBlockId"><block_id>bt-slider</block_id></action>
|
245 |
+
</block>
|
246 |
+
</reference>
|
247 |
+
<!-- //Bottom Product Slider -->
|
248 |
+
|
249 |
+
<!-- Bottom Spotlight - botsl1 -->
|
250 |
+
<reference name="botsl1">
|
251 |
+
<block type="cms/block" name="position-11">
|
252 |
+
<action method="setBlockId"><block_id>position-11</block_id></action>
|
253 |
+
</block>
|
254 |
+
<block type="cms/block" name="position-12">
|
255 |
+
<action method="setBlockId"><block_id>position-12</block_id></action>
|
256 |
+
</block>
|
257 |
+
<block type="cms/block" name="position-13">
|
258 |
+
<action method="setBlockId"><block_id>position-13</block_id></action>
|
259 |
+
</block>
|
260 |
+
</reference>
|
261 |
+
<!-- Bottom Spotlight - botsl1 -->
|
262 |
+
|
263 |
+
<!-- Before footer - before_footer -->
|
264 |
+
<reference name="before_footer">
|
265 |
+
<block type="core/template" name="before.footer" template="page/html/before_footer.phtml">
|
266 |
+
<action method="setBlockId"><block_id>position-11</block_id></action>
|
267 |
+
</block>
|
268 |
+
</reference>
|
269 |
+
|
270 |
+
</default>
|
271 |
+
|
272 |
+
<print translate="label" module="page">
|
273 |
+
<label>All Pages (Print Version)</label>
|
274 |
+
<!-- Mage_Page -->
|
275 |
+
<block type="page/html" name="root" output="toHtml" template="page/print.phtml">
|
276 |
+
|
277 |
+
<block type="page/html_head" name="head" as="head">
|
278 |
+
<action method="addJs"><script>prototype/prototype.js</script></action>
|
279 |
+
<action method="addJs"><script>mage/translate.js</script></action>
|
280 |
+
<action method="addJs"><script>prototype/validation.js</script></action>
|
281 |
+
<action method="addJs"><script>varien/js.js</script></action>
|
282 |
+
<action method="addJs"><script>lib/ccard.js</script></action>
|
283 |
+
<action method="addCss"><stylesheet>css/addons.css</stylesheet></action>
|
284 |
+
<action method="addCss"><stylesheet>css/layout.css</stylesheet></action>
|
285 |
+
<action method="addCss"><stylesheet>css/theme.css</stylesheet></action>
|
286 |
+
|
287 |
+
<action method="addItem"><type>skin_css</type><name>css/ie.css</name><params/><if>IE</if></action>
|
288 |
+
<action method="addItem"><type>skin_css</type><name>css/ie7minus.css</name><params/><if>lt IE 7</if></action>
|
289 |
+
|
290 |
+
<action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
|
291 |
+
<action method="addItem"><type>js</type><name>varien/iehover-fix.js</name><params/><if>lt IE 7</if></action>
|
292 |
+
|
293 |
+
<action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
|
294 |
+
</block>
|
295 |
+
|
296 |
+
<block type="core/text_list" name="content" as="content" translate="label">
|
297 |
+
<label>Main Content Area</label>
|
298 |
+
</block>
|
299 |
+
|
300 |
+
</block>
|
301 |
+
</print> <!-- Custom page layout handles -->
|
302 |
+
<page_empty translate="label">
|
303 |
+
<label>All Empty Layout Pages</label>
|
304 |
+
<reference name="root">
|
305 |
+
<action method="setTemplate"><template>page/empty.phtml</template></action>
|
306 |
+
<!-- Mark root page block that template is applied -->
|
307 |
+
<action method="setIsHandle"><applied>1</applied></action>
|
308 |
+
</reference>
|
309 |
+
</page_empty>
|
310 |
+
|
311 |
+
<page_one_column translate="label">
|
312 |
+
<label>All One-Column Layout Pages</label>
|
313 |
+
<reference name="root">
|
314 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
315 |
+
<!-- Mark root page block that template is applied -->
|
316 |
+
<action method="setIsHandle"><applied>1</applied></action>
|
317 |
+
</reference>
|
318 |
+
</page_one_column>
|
319 |
+
|
320 |
+
<page_two_columns_left translate="label">
|
321 |
+
<label>All Two-Column Layout Pages (Left Column)</label>
|
322 |
+
<reference name="root">
|
323 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
324 |
+
<!-- Mark root page block that template is applied -->
|
325 |
+
<action method="setIsHandle"><applied>1</applied></action>
|
326 |
+
</reference>
|
327 |
+
</page_two_columns_left>
|
328 |
+
|
329 |
+
<page_two_columns_right translate="label">
|
330 |
+
<label>All Two-Column Layout Pages (Right Column)</label>
|
331 |
+
<reference name="root">
|
332 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
333 |
+
<!-- Mark root page block that template is applied -->
|
334 |
+
<action method="setIsHandle"><applied>1</applied></action>
|
335 |
+
</reference>
|
336 |
+
</page_two_columns_right>
|
337 |
+
|
338 |
+
<page_three_columns translate="label">
|
339 |
+
<label>All Three-Column Layout Pages</label>
|
340 |
+
<reference name="root">
|
341 |
+
<action method="setTemplate"><template>page/3columns.phtml</template></action>
|
342 |
+
<!-- Mark root page block that template is applied -->
|
343 |
+
<action method="setIsHandle"><applied>1</applied></action>
|
344 |
+
</reference>
|
345 |
+
</page_three_columns>
|
346 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/paypal.xml
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
<checkout_cart_index>
|
31 |
+
<reference name="checkout.cart.top_methods">
|
32 |
+
<block type="paypal/express_shortcut" name="checkout.cart.methods.paypal_express.top" before="-" template="paypal/express/shortcut.phtml">
|
33 |
+
<action method="setIsQuoteAllowed"><value>1</value></action>
|
34 |
+
</block>
|
35 |
+
</reference>
|
36 |
+
|
37 |
+
<reference name="checkout.cart.methods">
|
38 |
+
<block type="paypal/express_shortcut" name="checkout.cart.methods.paypal_express.bottom" before="-" template="paypal/express/shortcut.phtml">
|
39 |
+
<action method="setIsQuoteAllowed"><value>1</value></action>
|
40 |
+
</block>
|
41 |
+
</reference>
|
42 |
+
</checkout_cart_index>
|
43 |
+
|
44 |
+
<paypal_express_review translate="label">
|
45 |
+
<label>PayPal Express Order Review Form</label>
|
46 |
+
<remove name="right"/>
|
47 |
+
<remove name="left"/>
|
48 |
+
|
49 |
+
<reference name="root">
|
50 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
51 |
+
</reference>
|
52 |
+
<reference name="content">
|
53 |
+
<block type="paypal/express_review" name="paypal.express.review" template="paypal/express/review.phtml">
|
54 |
+
<block type="paypal/express_review_details" name="paypal.express.review.details" as="details" template="paypal/express/review/details.phtml">
|
55 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
56 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
|
57 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
|
58 |
+
<block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
|
59 |
+
</block>
|
60 |
+
</block>
|
61 |
+
</reference>
|
62 |
+
<reference name="head">
|
63 |
+
<action method="addItem"><type>skin_js</type><name>js/checkout/review.js</name></action>
|
64 |
+
</reference>
|
65 |
+
</paypal_express_review>
|
66 |
+
|
67 |
+
<paypal_express_review_details>
|
68 |
+
<block type="paypal/express_review_details" name="root" output="toHtml" template="paypal/express/review/details.phtml">
|
69 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
70 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
|
71 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
|
72 |
+
<block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
|
73 |
+
</block>
|
74 |
+
</paypal_express_review_details>
|
75 |
+
|
76 |
+
<!--
|
77 |
+
Available logo types can be assigned with action="setLogoType":
|
78 |
+
- wePrefer_150x60
|
79 |
+
- wePrefer_150x40
|
80 |
+
- nowAccepting_150x60
|
81 |
+
- nowAccepting_150x40
|
82 |
+
- paymentsBy_150x60
|
83 |
+
- paymentsBy_150x40
|
84 |
+
- shopNowUsing_150x60
|
85 |
+
- shopNowUsing_150x40
|
86 |
+
-->
|
87 |
+
<catalog_product_view>
|
88 |
+
<reference name="product.info.addtocart">
|
89 |
+
<block type="page/html_wrapper" name="product.info.addtocart.paypal.wrapper">
|
90 |
+
<action method="setHtmlTagName"><tag>p</tag></action>
|
91 |
+
<action method="setElementClass"><class>paypal-logo</class></action>
|
92 |
+
<block type="paypal/express_shortcut" name="product.info.addtocart.paypal" template="paypal/express/shortcut.phtml">
|
93 |
+
<action method="setIsInCatalogProduct"><value>1</value></action>
|
94 |
+
</block>
|
95 |
+
</block>
|
96 |
+
</reference>
|
97 |
+
<reference name="right">
|
98 |
+
<!--<block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml">-->
|
99 |
+
<!--action method="setLogoType"><value>wePrefer_150x60</value></action-->
|
100 |
+
</block>
|
101 |
+
</reference>
|
102 |
+
</catalog_product_view>
|
103 |
+
|
104 |
+
<catalog_category_default>
|
105 |
+
<reference name="right">
|
106 |
+
<block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
|
107 |
+
</reference>
|
108 |
+
</catalog_category_default>
|
109 |
+
|
110 |
+
<catalog_category_layered>
|
111 |
+
<reference name="right">
|
112 |
+
<block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
|
113 |
+
</reference>
|
114 |
+
</catalog_category_layered>
|
115 |
+
|
116 |
+
<cms_index_index>
|
117 |
+
<!--
|
118 |
+
<reference name="left">
|
119 |
+
<block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
|
120 |
+
</reference>
|
121 |
+
-->
|
122 |
+
</cms_index_index>
|
123 |
+
|
124 |
+
<default>
|
125 |
+
<reference name="topCart.extra_actions">
|
126 |
+
<block type="paypal/express_shortcut" name="paypal.partner.top_cart.shortcut" template="paypal/express/shortcut.phtml"/>
|
127 |
+
</reference>
|
128 |
+
<reference name="cart_sidebar.extra_actions">
|
129 |
+
<block type="paypal/express_shortcut" name="paypal.partner.cart_sidebar.shortcut" template="paypal/express/shortcut.phtml"/>
|
130 |
+
</reference>
|
131 |
+
</default>
|
132 |
+
<checkout_onepage_review>
|
133 |
+
<reference name="checkout.onepage.review.info.items.after">
|
134 |
+
<block type="paypal/iframe" name="paypal.iframe" />
|
135 |
+
</reference>
|
136 |
+
<reference name="checkout.onepage.review.button">
|
137 |
+
<action method="setTemplate"><template helper="paypal/hss/getReviewButtonTemplate"><name>paypal/hss/review/button.phtml</name><block>checkout.onepage.review.button</block></template></action>
|
138 |
+
</reference>
|
139 |
+
</checkout_onepage_review>
|
140 |
+
|
141 |
+
<paypal_payflow_link_iframe>
|
142 |
+
<block type="paypal/payflow_link_iframe" name="payflow.link.iframe" template="paypal/hss/form.phtml" />
|
143 |
+
</paypal_payflow_link_iframe>
|
144 |
+
|
145 |
+
<paypal_hosted_pro_iframe>
|
146 |
+
<block type="paypal/hosted_pro_iframe" name="hosted.pro.iframe" />
|
147 |
+
</paypal_hosted_pro_iframe>
|
148 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/poll.xml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<!--
|
32 |
+
Default layout, loads most of the pages
|
33 |
+
-->
|
34 |
+
|
35 |
+
<default>
|
36 |
+
|
37 |
+
<!-- Mage_Poll -->
|
38 |
+
<reference name="left">
|
39 |
+
<block type="poll/activePoll" name="right.poll">
|
40 |
+
<action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action>
|
41 |
+
<action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action>
|
42 |
+
</block>
|
43 |
+
</reference>
|
44 |
+
<reference name="right">
|
45 |
+
<!--<block type="poll/activePoll" name="right.poll" before="tags_popular" >
|
46 |
+
<action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action>
|
47 |
+
<action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action>
|
48 |
+
</block>-->
|
49 |
+
</reference>
|
50 |
+
|
51 |
+
</default>
|
52 |
+
|
53 |
+
<!--
|
54 |
+
Customer account home dashboard layout
|
55 |
+
-->
|
56 |
+
|
57 |
+
<customer_account_index>
|
58 |
+
<reference name="right">
|
59 |
+
<action method="unsetChild"><name>right.poll</name></action>
|
60 |
+
</reference>
|
61 |
+
</customer_account_index>
|
62 |
+
|
63 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/reports.xml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
<default>
|
31 |
+
<!-- Mage_Reports -->
|
32 |
+
<reference name="right">
|
33 |
+
<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
|
34 |
+
<block type="reports/product_compared" before="right.permanent.callout" name="right.reports.product.compared" template="reports/product_compared.phtml" />
|
35 |
+
</reference>
|
36 |
+
</default>
|
37 |
+
|
38 |
+
<catalog_category_layered_nochildren translate="label">
|
39 |
+
<label>Catalog Category (Without Subcategories)</label>
|
40 |
+
<remove name="right.reports.product.viewed" />
|
41 |
+
<reference name="right">
|
42 |
+
<!--<block type="reports/product_viewed" before="right.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />-->
|
43 |
+
</reference>
|
44 |
+
</catalog_category_layered_nochildren>
|
45 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/review.xml
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<customer_account>
|
32 |
+
<!-- Mage_Review -->
|
33 |
+
<reference name="customer_account_navigation">
|
34 |
+
<action method="addLink" translate="label" module="review"><name>reviews</name><path>review/customer</path><label>My Product Reviews</label></action>
|
35 |
+
</reference>
|
36 |
+
|
37 |
+
</customer_account>
|
38 |
+
|
39 |
+
<!--
|
40 |
+
Customer account home dashboard layout
|
41 |
+
-->
|
42 |
+
|
43 |
+
<customer_account_index>
|
44 |
+
|
45 |
+
<!-- Mage_Review -->
|
46 |
+
<reference name="customer_account_dashboard">
|
47 |
+
<action method="unsetChild"><name>customer_account_dashboard_info1</name></action>
|
48 |
+
<block type="review/customer_recent" name="customer_account_dashboard_info1" as="info1" template="review/customer/recent.phtml"/>
|
49 |
+
</reference>
|
50 |
+
|
51 |
+
</customer_account_index>
|
52 |
+
|
53 |
+
|
54 |
+
<!--
|
55 |
+
Product reviews page (?)
|
56 |
+
-->
|
57 |
+
|
58 |
+
<reviews>
|
59 |
+
<!-- Mage_Review -->
|
60 |
+
<reference name="root">
|
61 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
62 |
+
</reference>
|
63 |
+
</reviews>
|
64 |
+
|
65 |
+
<!--
|
66 |
+
Product reviews page
|
67 |
+
-->
|
68 |
+
|
69 |
+
<review_product_list translate="label">
|
70 |
+
<label>Catalog Product Reviews List</label>
|
71 |
+
<reference name="root">
|
72 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
73 |
+
</reference>
|
74 |
+
<reference name="head">
|
75 |
+
<action method="addJs"><script>varien/product.js</script></action>
|
76 |
+
<action method="addJs"><script>varien/configurable.js</script></action>
|
77 |
+
</reference>
|
78 |
+
<reference name="content">
|
79 |
+
<block type="review/product_view" name="product.info" template="catalog/product/view.phtml">
|
80 |
+
<block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
|
81 |
+
<action method="disableGallery"/>
|
82 |
+
</block>
|
83 |
+
<block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
|
84 |
+
<block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
|
85 |
+
<block type="catalog/product_view" name="product.tierprices" as="tierprices" template="catalog/product/view/tierprices.phtml"/>
|
86 |
+
<block type="core/template" name="product.info.other" as="other" template="review/product/view/other.phtml"/>
|
87 |
+
<block type="page/html_pager" name="product_review_list.toolbar" />
|
88 |
+
<block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
|
89 |
+
<block type="review/product_view_list" name="product.info.product_additional_data" as="product_reviews" template="review/product/view/list.phtml" />
|
90 |
+
<block type="review/form" name="product.review.form" as="review_form" template="review/form.phtml" />
|
91 |
+
</block>
|
92 |
+
</reference>
|
93 |
+
</review_product_list>
|
94 |
+
|
95 |
+
<review_product_view translate="label">
|
96 |
+
<label>Catalog Product Review View</label>
|
97 |
+
<reference name="root">
|
98 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
99 |
+
</reference>
|
100 |
+
<reference name="content">
|
101 |
+
<block type="review/view" name="review_view"/>
|
102 |
+
</reference>
|
103 |
+
</review_product_view>
|
104 |
+
|
105 |
+
<review_customer_index translate="label">
|
106 |
+
<label>Customer My Account Product Reviews</label>
|
107 |
+
<update handle="customer_account"/>
|
108 |
+
<reference name="my.account.wrapper">
|
109 |
+
<block type="review/customer_list" name="review_customer_list" template="review/customer/list.phtml"/>
|
110 |
+
</reference>
|
111 |
+
</review_customer_index>
|
112 |
+
|
113 |
+
<review_customer_view translate="label">
|
114 |
+
<label>Customer My Account Review Details</label>
|
115 |
+
<update handle="customer_account"/>
|
116 |
+
<reference name="my.account.wrapper">
|
117 |
+
<block type="review/customer_view" name="customers_review"/>
|
118 |
+
</reference>
|
119 |
+
</review_customer_view>
|
120 |
+
|
121 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/smartaddons/basicproducts.xml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss"><stylesheet>smartaddons/basicproducts.css</stylesheet></action>
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
<!--
|
9 |
+
<cms_index_index>
|
10 |
+
<reference name="content-top">
|
11 |
+
<block type="basicproducts/home" name="default.basicproducts.list1" template="smartaddons/basicproducts/home.phtml">
|
12 |
+
<action method="setConfig">
|
13 |
+
<values>
|
14 |
+
<product_limitation>20</product_limitation>
|
15 |
+
</values>
|
16 |
+
</action>
|
17 |
+
</block>
|
18 |
+
</reference>
|
19 |
+
</cms_index_index>
|
20 |
+
|
21 |
+
<catalog_category_view>
|
22 |
+
<reference name="right">
|
23 |
+
<block type="basicproducts/home" name="bestseller" template="smartaddons/basicproducts/bestseller.phtml" after="scrollbar.list.theme">
|
24 |
+
<action method="setConfig">
|
25 |
+
<values>
|
26 |
+
<product_limitation>5</product_limitation>
|
27 |
+
<product_category>93</product_category>
|
28 |
+
<product_cart_or_status>0</product_cart_or_status>
|
29 |
+
<product_title_disp>1</product_title_disp>
|
30 |
+
</values>
|
31 |
+
</action>
|
32 |
+
</block>
|
33 |
+
</reference>
|
34 |
+
</catalog_category_view>
|
35 |
+
-->
|
36 |
+
</layout>
|
37 |
+
|
app/design/frontend/default/sm_glasses_free/layout/tag.xml
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<!--
|
32 |
+
Default layout, loads most of the pages
|
33 |
+
-->
|
34 |
+
|
35 |
+
<default>
|
36 |
+
<!--
|
37 |
+
<reference name="left">
|
38 |
+
<block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>
|
39 |
+
</reference>
|
40 |
+
-->
|
41 |
+
<reference name="right">
|
42 |
+
<!--<block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>-->
|
43 |
+
</reference>
|
44 |
+
</default>
|
45 |
+
|
46 |
+
<!--
|
47 |
+
Customer account pages, rendered for all tabs in dashboard
|
48 |
+
-->
|
49 |
+
|
50 |
+
<customer_account>
|
51 |
+
<!-- Mage_Tag -->
|
52 |
+
<reference name="customer_account_navigation">
|
53 |
+
<action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>
|
54 |
+
</reference>
|
55 |
+
</customer_account>
|
56 |
+
|
57 |
+
<!--
|
58 |
+
Customer account home dashboard layout
|
59 |
+
-->
|
60 |
+
|
61 |
+
<customer_account_index>
|
62 |
+
<!-- Mage_Tag -->
|
63 |
+
<reference name="customer_account_dashboard">
|
64 |
+
<action method="unsetChild"><name>customer_account_dashboard_info2</name></action>
|
65 |
+
<block type="tag/customer_recent" name="customer_account_dashboard_info2" as="info2" template="tag/customer/recent.phtml"/>
|
66 |
+
</reference>
|
67 |
+
</customer_account_index>
|
68 |
+
|
69 |
+
<catalog_product_view>
|
70 |
+
<!-- Mage_Tag -->
|
71 |
+
<reference name="product.info.additional">
|
72 |
+
<block type="tag/product_list" name="product_tag_list" before="-" template="tag/list.phtml">
|
73 |
+
<block type="page/html_wrapper" name="product.tag.list.list.before" as="list_before">
|
74 |
+
<action method="setMayBeInvisible"><value>1</value></action>
|
75 |
+
</block>
|
76 |
+
</block>
|
77 |
+
</reference>
|
78 |
+
</catalog_product_view>
|
79 |
+
|
80 |
+
<!--
|
81 |
+
All tags page
|
82 |
+
-->
|
83 |
+
|
84 |
+
<tag_list_index translate="label">
|
85 |
+
<label>Tags List (All Available)</label>
|
86 |
+
<!-- Mage_Tag -->
|
87 |
+
<reference name="root">
|
88 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
89 |
+
</reference>
|
90 |
+
<reference name="content">
|
91 |
+
<block type="tag/all" name="tags_all" template="tag/cloud.phtml"/>
|
92 |
+
</reference>
|
93 |
+
</tag_list_index>
|
94 |
+
|
95 |
+
<tag_product_list translate="label">
|
96 |
+
<label>Tagged Products List</label>
|
97 |
+
<!-- Mage_Tag -->
|
98 |
+
<reference name="content">
|
99 |
+
<block type="tag/product_result" name="tag_products" template="catalogsearch/result.phtml">
|
100 |
+
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
|
101 |
+
<action method="setListOrders"/>
|
102 |
+
<action method="setListModes"/>
|
103 |
+
<action method="setListCollection"/>
|
104 |
+
</block>
|
105 |
+
</reference>
|
106 |
+
</tag_product_list>
|
107 |
+
|
108 |
+
<tag_customer_index translate="label">
|
109 |
+
<label>Customer My Account My Tags List</label>
|
110 |
+
<update handle="customer_account"/>
|
111 |
+
<reference name="root">
|
112 |
+
<action method="setHeaderTitle" translate="title" module="customer"><title>My Account</title></action>
|
113 |
+
</reference>
|
114 |
+
<reference name="my.account.wrapper">
|
115 |
+
<block type="tag/customer_tags" name="customer_tags" template="tag/customer/tags.phtml"/>
|
116 |
+
</reference>
|
117 |
+
</tag_customer_index>
|
118 |
+
|
119 |
+
<tag_customer_view translate="label">
|
120 |
+
<label>Customer My Account Tag View</label>
|
121 |
+
<update handle="customer_account"/>
|
122 |
+
<reference name="root">
|
123 |
+
<action method="setHeaderTitle" translate="title" module="customer"><title>My Account</title></action>
|
124 |
+
</reference>
|
125 |
+
<reference name="my.account.wrapper">
|
126 |
+
<block type="tag/customer_view" name="customer_view" template="tag/customer/view.phtml"/>
|
127 |
+
</reference>
|
128 |
+
</tag_customer_view>
|
129 |
+
|
130 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/layout/wishlist.xml
ADDED
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
|
28 |
+
-->
|
29 |
+
<layout version="0.1.0">
|
30 |
+
|
31 |
+
<!--
|
32 |
+
Default layout, loads most of the pages
|
33 |
+
-->
|
34 |
+
|
35 |
+
<default>
|
36 |
+
|
37 |
+
<reference name="top.links">
|
38 |
+
<block type="wishlist/links" name="wishlist_link" />
|
39 |
+
<action method="addLinkBlock"><blockName>wishlist_link</blockName></action>
|
40 |
+
</reference>
|
41 |
+
<!--
|
42 |
+
<reference name="top.links">
|
43 |
+
<action method="addLink" translate="label title" module="wishlist">
|
44 |
+
<label>My Wishlist</label>
|
45 |
+
<path>wishlist</path>
|
46 |
+
<title>My Wishlist</title>
|
47 |
+
<prepare>1</prepare>
|
48 |
+
<urlParams/>
|
49 |
+
<position>20</position>
|
50 |
+
<li/>
|
51 |
+
<a>class="top-link-wishlist"</a>
|
52 |
+
</action>
|
53 |
+
</reference>
|
54 |
+
-->
|
55 |
+
<!-- Mage_Wishlist -->
|
56 |
+
<reference name="right">
|
57 |
+
<block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" after="cart_sidebar" template="wishlist/sidebar.phtml" />
|
58 |
+
</reference>
|
59 |
+
</default>
|
60 |
+
|
61 |
+
<!--
|
62 |
+
Customer account pages, rendered for all tabs in dashboard
|
63 |
+
-->
|
64 |
+
|
65 |
+
<customer_account>
|
66 |
+
<!-- Mage_Wishlist -->
|
67 |
+
<reference name="customer_account_navigation">
|
68 |
+
<action method="addLink" translate="label" module="wishlist" ifconfig="wishlist/general/active"><name>wishlist</name><path>wishlist/</path><label>My Wishlist</label></action>
|
69 |
+
</reference>
|
70 |
+
</customer_account>
|
71 |
+
|
72 |
+
<!--
|
73 |
+
Customer account home dashboard layout
|
74 |
+
-->
|
75 |
+
|
76 |
+
<customer_account_index>
|
77 |
+
<reference name="right">
|
78 |
+
<action method="unsetChild"><name>wishlist</name></action>
|
79 |
+
</reference>
|
80 |
+
</customer_account_index>
|
81 |
+
|
82 |
+
<!--
|
83 |
+
Wishlist pages
|
84 |
+
-->
|
85 |
+
|
86 |
+
<wishlist_index_index translate="label">
|
87 |
+
<label>Customer My Account My Wishlist</label>
|
88 |
+
<!-- Mage_Wishlist -->
|
89 |
+
<update handle="customer_account" />
|
90 |
+
<reference name="my.account.wrapper">
|
91 |
+
<block type="wishlist/customer_wishlist" name="customer.wishlist" template="wishlist/view.phtml">
|
92 |
+
<action method="setTitle" translate="title">
|
93 |
+
<title>My Wishlist</title>
|
94 |
+
</action>
|
95 |
+
<block type="wishlist/customer_wishlist_items" name="customer.wishlist.items" as="items" template="wishlist/item/list.phtml">
|
96 |
+
<block type="wishlist/customer_wishlist_item_column_image" name="customer.wishlist.item.image" template="wishlist/item/column/image.phtml" />
|
97 |
+
<block type="wishlist/customer_wishlist_item_column_comment" name="customer.wishlist.item.info" template="wishlist/item/column/info.phtml">
|
98 |
+
<action method="setTitle" translate="title">
|
99 |
+
<title>Product Details and Comment</title>
|
100 |
+
</action>
|
101 |
+
</block>
|
102 |
+
<block type="wishlist/customer_wishlist_item_column_cart" name="customer.wishlist.item.cart" template="wishlist/item/column/cart.phtml">
|
103 |
+
<action method="setTitle" translate="title">
|
104 |
+
<title>Add to Cart</title>
|
105 |
+
</action>
|
106 |
+
<block type="wishlist/customer_wishlist_item_options" name="customer.wishlist.item.options" />
|
107 |
+
</block>
|
108 |
+
<block type="wishlist/customer_wishlist_item_column_remove" name="customer.wishlist.item.remove" template="wishlist/item/column/remove.phtml" />
|
109 |
+
</block>
|
110 |
+
<block type="core/text_list" name="customer.wishlist.buttons" as="control_buttons">
|
111 |
+
<block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.share" template="wishlist/button/share.phtml" />
|
112 |
+
<block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.toCart" template="wishlist/button/tocart.phtml" />
|
113 |
+
<block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.update" template="wishlist/button/update.phtml" />
|
114 |
+
</block>
|
115 |
+
</block>
|
116 |
+
</reference>
|
117 |
+
<reference name="right">
|
118 |
+
<action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
|
119 |
+
</reference>
|
120 |
+
</wishlist_index_index>
|
121 |
+
|
122 |
+
<wishlist_index_share translate="label">
|
123 |
+
<label>Customer My Account Wishlist Sharing Form</label>
|
124 |
+
<!-- Mage_Wishlist -->
|
125 |
+
<update handle="customer_account" />
|
126 |
+
<reference name="my.account.wrapper">
|
127 |
+
<block type="wishlist/customer_sharing" name="wishlist.sharing" template="wishlist/sharing.phtml" />
|
128 |
+
</reference>
|
129 |
+
<reference name="right">
|
130 |
+
<action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
|
131 |
+
</reference>
|
132 |
+
</wishlist_index_share>
|
133 |
+
|
134 |
+
<wishlist_index_configure translate="label">
|
135 |
+
<label>Configure Wishlist Item</label>
|
136 |
+
<update handle="catalog_product_view" />
|
137 |
+
<reference name="product.info">
|
138 |
+
<block type="wishlist/item_configure" name="product.info.addto" as="addto" template="wishlist/item/configure/addto.phtml" />
|
139 |
+
</reference>
|
140 |
+
<reference name="product.info.options.wrapper.bottom">
|
141 |
+
<action method="unsetChild"><name>product.info.addto</name></action>
|
142 |
+
<action method="append"><block>product.info.addto</block></action>
|
143 |
+
</reference>
|
144 |
+
</wishlist_index_configure>
|
145 |
+
|
146 |
+
<wishlist_shared_index translate="label">
|
147 |
+
<label>Customer Shared Wishlist View</label>
|
148 |
+
<!-- Mage_Wishlist -->
|
149 |
+
<reference name="content">
|
150 |
+
<block type="wishlist/share_wishlist" name="customer.wishlist" template="wishlist/shared.phtml" />
|
151 |
+
</reference>
|
152 |
+
</wishlist_shared_index>
|
153 |
+
</layout>
|
app/design/frontend/default/sm_glasses_free/template/catalog/category/view.phtml
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Category view template
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Category_View
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php
|
35 |
+
$_helper = $this->helper('catalog/output');
|
36 |
+
$_category = $this->getCurrentCategory();
|
37 |
+
$_imgHtml = '';
|
38 |
+
if ($_imgUrl = $_category->getImageUrl()) {
|
39 |
+
$_imgHtml = '<p class="category-image"><img src="'.$_imgUrl.'" alt="'.$this->htmlEscape($_category->getName()).'" title="'.$this->htmlEscape($_category->getName()).'" /></p>';
|
40 |
+
$_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
|
41 |
+
}
|
42 |
+
?>
|
43 |
+
<div class="page-title category-title">
|
44 |
+
<?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
|
45 |
+
<a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
|
46 |
+
<?php endif; ?>
|
47 |
+
<h1 class=""><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
51 |
+
|
52 |
+
<?php if($_imgUrl): ?>
|
53 |
+
<?php echo $_imgHtml ?>
|
54 |
+
<?php endif; ?>
|
55 |
+
|
56 |
+
<?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
|
57 |
+
<div class="category-description std">
|
58 |
+
<?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
|
59 |
+
</div>
|
60 |
+
<?php endif; ?>
|
61 |
+
|
62 |
+
<?php if($this->isContentMode()): ?>
|
63 |
+
<?php echo $this->getCmsBlockHtml() ?>
|
64 |
+
|
65 |
+
<?php elseif($this->isMixedMode()): ?>
|
66 |
+
<?php echo $this->getCmsBlockHtml() ?>
|
67 |
+
<?php echo $this->getProductListHtml() ?>
|
68 |
+
|
69 |
+
<?php else: ?>
|
70 |
+
<?php echo $this->getProductListHtml() ?>
|
71 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/layer/filter.phtml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for filter items block
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Layer_Filter
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
|
35 |
+
<ol>
|
36 |
+
<?php foreach ($this->getItems() as $_item): ?>
|
37 |
+
<li>
|
38 |
+
<?php if ($_item->getCount() > 0): ?>
|
39 |
+
<a href="<?php echo $this->urlEscape($_item->getUrl()) ?>"><?php echo $_item->getLabel() ?>
|
40 |
+
<?php else: echo $_item->getLabel() ?>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php if ($this->shouldDisplayProductCount()): ?>
|
43 |
+
(<?php echo $_item->getCount() ?>)
|
44 |
+
<?php endif; ?>
|
45 |
+
</a>
|
46 |
+
</li>
|
47 |
+
<?php endforeach ?>
|
48 |
+
</ol>
|
app/design/frontend/default/sm_glasses_free/template/catalog/layer/state.phtml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Category layered navigation state
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Layer_State
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php $_filters = $this->getActiveFilters() ?>
|
35 |
+
<?php if(!empty($_filters)): ?>
|
36 |
+
<div class="currently">
|
37 |
+
<p class="block-subtitle"><?php echo $this->__('Currently Shopping by:') ?></p>
|
38 |
+
<ol>
|
39 |
+
<?php foreach ($_filters as $_filter): ?>
|
40 |
+
<li>
|
41 |
+
<span class="label"><?php echo $this->__($_filter->getName()) ?>:</span> <span class="value"><?php echo $this->stripTags($_filter->getLabel()) ?></span>
|
42 |
+
<?php
|
43 |
+
$clearLinkUrl = $_filter->getClearLinkUrl();
|
44 |
+
if ($clearLinkUrl):
|
45 |
+
?>
|
46 |
+
<a class="btn-previous" href="<?php echo $_filter->getRemoveUrl() ?>" title="<?php echo $this->__('Previous') ?>"><?php echo $this->__('Previous') ?></a>
|
47 |
+
<a class="btn-remove" title="<?php echo $this->escapeHtml($_filter->getFilter()->getClearLinkText()) ?>" href="<?php echo $clearLinkUrl ?>"><?php echo $this->escapeHtml($_filter->getFilter()->getClearLinkText()) ?></a>
|
48 |
+
<?php else: ?>
|
49 |
+
<a class="btn-remove" href="<?php echo $_filter->getRemoveUrl() ?>" title="<?php echo $this->__('Remove This Item') ?>"><?php //echo $this->__('Remove This Item') ?></a>
|
50 |
+
<?php endif; ?>
|
51 |
+
</li>
|
52 |
+
<?php endforeach; ?>
|
53 |
+
</ol>
|
54 |
+
</div>
|
55 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/layer/view.phtml
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Category layered navigation
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Layer_View
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php if($this->canShowBlock()):?>
|
35 |
+
<?php
|
36 |
+
if(!defined('ACCORDION_SNYDERPLACE')){
|
37 |
+
define('ACCORDION_SNYDERPLACE', 1);
|
38 |
+
?>
|
39 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.cookie.min.js') ?>"></script>
|
40 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.accordion_snyderplace.js') ?>"></script>
|
41 |
+
<?php
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
|
45 |
+
<script type="text/javascript">
|
46 |
+
$jsmart(document).ready(function($) {
|
47 |
+
//syntax highlighter
|
48 |
+
//accordion
|
49 |
+
$('.layered-accordion').accordion_snyderplace({
|
50 |
+
defaultOpen: 'content_la1',
|
51 |
+
cookieName: 'layered_accordion',
|
52 |
+
speed: 'fast',
|
53 |
+
animateOpen: function (elem, opts) { //replace the standard slideUp with custom function
|
54 |
+
elem.next().slideFadeToggle(opts.speed);
|
55 |
+
},
|
56 |
+
animateClose: function (elem, opts) { //replace the standard slideDown with custom function
|
57 |
+
elem.next().slideFadeToggle(opts.speed);
|
58 |
+
}
|
59 |
+
});
|
60 |
+
//custom animation for open/close
|
61 |
+
$.fn.slideFadeToggle = function(speed, easing, callback) {
|
62 |
+
return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
|
63 |
+
};
|
64 |
+
});
|
65 |
+
</script>
|
66 |
+
<div class="block block-layered-nav">
|
67 |
+
<div class="block-title">
|
68 |
+
<strong><?php echo $this->__('Shop')?> <span><?php echo $this->__('By') ?></span></strong>
|
69 |
+
</div>
|
70 |
+
<div class="block-content">
|
71 |
+
<?php echo $this->getStateHtml() ?>
|
72 |
+
<?php if ($this->getLayer()->getState()->getFilters()): ?>
|
73 |
+
<div class="actions"><a href="<?php echo $this->getClearUrl() ?>"><?php echo $this->__('Clear All') ?></a></div>
|
74 |
+
<?php endif; ?>
|
75 |
+
<?php if($this->canShowOptions()): ?>
|
76 |
+
<p class="block-subtitle"><?php echo $this->__('Shopping Options') ?></p>
|
77 |
+
<dl id="narrow-by-list">
|
78 |
+
<?php $_filters = $this->getFilters() ?>
|
79 |
+
<?php
|
80 |
+
$i_la = 0;
|
81 |
+
foreach ($_filters as $_filter):
|
82 |
+
|
83 |
+
?>
|
84 |
+
<?php if($_filter->getItemsCount()): ?>
|
85 |
+
<dt id="content_la<?php echo $i_la; ?>" class="layered-accordion subhead"><span><span><?php echo $this->__($_filter->getName()) ?></span></span><a class="toggle" title="" href="#"> </a></dt>
|
86 |
+
<dd><?php echo $_filter->getHtml() ?></dd>
|
87 |
+
<?php endif; ?>
|
88 |
+
<?php $i_la ++; endforeach; ?>
|
89 |
+
</dl>
|
90 |
+
<script type="text/javascript">decorateDataList('narrow-by-list')</script>
|
91 |
+
<?php endif; ?>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/navigation/mobinav.phtml
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Top menu for store
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Navigation
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php
|
35 |
+
global $var_yttheme;
|
36 |
+
$options = array();
|
37 |
+
$category_collection = Mage::getModel('catalog/category')->getCollection();
|
38 |
+
$category_collection->addAttributeToSelect('*');
|
39 |
+
foreach ($this->getStoreCategories() as $_category){
|
40 |
+
$catIds[] = $_category->getId();
|
41 |
+
}
|
42 |
+
$regexp = "[0-9/]+(".implode("|", $catIds)."){1}[0-9/]?";
|
43 |
+
$category_collection->addPathFilter($regexp);
|
44 |
+
foreach($category_collection as $category){
|
45 |
+
$c = new stdClass();
|
46 |
+
$c->label = $category->getName();
|
47 |
+
$c->value = $category->getId();
|
48 |
+
$c->level = $category->getLevel();
|
49 |
+
$c->parentid = $category->getParentId();
|
50 |
+
$c->url_path = $category->getUrlPath();
|
51 |
+
$c->is_active = false;
|
52 |
+
if ($this->getCurrentCategory()) {
|
53 |
+
if($c->value == array_pop($this->getCurrentCategory()->getPathIds())){
|
54 |
+
$c->is_active = true;
|
55 |
+
}
|
56 |
+
}
|
57 |
+
$cats[$c->value] = $c;
|
58 |
+
}
|
59 |
+
|
60 |
+
foreach($cats as $id => $c){
|
61 |
+
if (isset($cats[$c->parentid])){
|
62 |
+
if (!isset($cats[$c->parentid]->child)){
|
63 |
+
$cats[$c->parentid]->child = array();
|
64 |
+
}
|
65 |
+
$cats[$c->parentid]->child[] =& $cats[$id];
|
66 |
+
}
|
67 |
+
}
|
68 |
+
foreach($cats as $id => $c){
|
69 |
+
if (!isset($cats[$c->parentid])){
|
70 |
+
$stack = array($cats[$id]);
|
71 |
+
while( count($stack)>0 ){
|
72 |
+
$opt = array_pop($stack);
|
73 |
+
$option = array(
|
74 |
+
'label' => ($opt->level>2 ? str_repeat('- - ', $opt->level-2) : '') . $opt->label,
|
75 |
+
'value' => $opt->value,
|
76 |
+
'url_path' => $opt->url_path,
|
77 |
+
'is_active' => $opt->is_active,
|
78 |
+
);
|
79 |
+
array_push($options, $option);
|
80 |
+
if (isset($opt->child) && count($opt->child)){
|
81 |
+
foreach(array_reverse($opt->child) as $child){
|
82 |
+
array_push($stack, $child);
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
}
|
87 |
+
}
|
88 |
+
unset($cats);
|
89 |
+
?>
|
90 |
+
<?php
|
91 |
+
if ($var_yttheme->isHomepage()===FALSE) {
|
92 |
+
$homecls='';
|
93 |
+
} else {
|
94 |
+
$homecls='selected="selected"';
|
95 |
+
}
|
96 |
+
?>
|
97 |
+
<script type="text/javascript">
|
98 |
+
function MobileRedirectUrl(){
|
99 |
+
window.location.href = document.getElementById("yt-mobilemenu").value;
|
100 |
+
}
|
101 |
+
</script>
|
102 |
+
<select id="yt-mobilemenu" onchange="MobileRedirectUrl(this);">
|
103 |
+
<option value="<?php echo $this->getUrl(); ?>" <?php echo $homecls ?> ><?php echo $this->__('Home') ?></option>
|
104 |
+
<?php foreach ($options as $item): ?>
|
105 |
+
<option <?php echo ($item['is_active'])?"selected='selected'":"" ?> value="<?php echo ($item['url_path'])?$this->getBaseUrl().$item['url_path']: $item['value'] ?>"><?php echo $item['label'] ?></option>
|
106 |
+
<?php endforeach ?>
|
107 |
+
<option value="<?php echo Mage::getUrl(); ?>contacts/"><?php echo $this->__('Contact Us') ?></option>
|
108 |
+
<option value="http://demo.magentech.com/#sm-glasses"><?php echo $this->__('Demo Pro Version') ?></option>
|
109 |
+
</select>
|
app/design/frontend/default/sm_glasses_free/template/catalog/navigation/sidenav.phtml
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Top menu for store
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Navigation
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php
|
35 |
+
if(!defined('ACCORDION')){
|
36 |
+
define('ACCORDION', 1);
|
37 |
+
?>
|
38 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.accordion.js') ?>"></script>
|
39 |
+
<?php
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
<script type="text/javascript">
|
43 |
+
$jsmart(document).ready(function($) {
|
44 |
+
$('#yt_sidenav li.level0 > a').addClass ('subhead');
|
45 |
+
$('#yt_sidenav li.level0 > a').after ('<a href="#" title="" class="toggle"> </a>'); //header
|
46 |
+
// second simple accordion with special markup
|
47 |
+
$jsmart('#yt_sidenav').accordion({
|
48 |
+
active: '.active',
|
49 |
+
header: '.toggle', // same header above
|
50 |
+
navigation: true,
|
51 |
+
event: 'click',
|
52 |
+
fillSpace: false,
|
53 |
+
autoheight: false,
|
54 |
+
alwaysOpen: false,
|
55 |
+
animated: 'easeslide',
|
56 |
+
collapsible: true
|
57 |
+
});
|
58 |
+
var header_element = $jsmart("#yt_sidenav .level2 .current").parents('.parent').children('a.toggle');
|
59 |
+
|
60 |
+
//check if headerId is set, if so activate that id
|
61 |
+
if (header_element) {
|
62 |
+
// $jsmart('#yt_sidenav').accordion('option', 'animated', false);
|
63 |
+
$jsmart('#yt_sidenav').accordion('activate', header_element);
|
64 |
+
// $jsmart('#yt_sidenav').accordion('option', 'animated', 'slide');
|
65 |
+
}
|
66 |
+
// setTimeout(
|
67 |
+
// function()
|
68 |
+
// {
|
69 |
+
// var header_element = $jsmart("#yt_sidenav .level2 .current").parents('.parent').children('a.toggle');
|
70 |
+
|
71 |
+
// //check if headerId is set, if so activate that id
|
72 |
+
// if (header_element) {
|
73 |
+
// // $jsmart('#yt_sidenav').accordion('option', 'animated', false);
|
74 |
+
// $jsmart('#yt_sidenav').accordion('activate', header_element);
|
75 |
+
// // $jsmart('#yt_sidenav').accordion('option', 'animated', 'slide');
|
76 |
+
// }
|
77 |
+
// }, 5000);
|
78 |
+
|
79 |
+
});
|
80 |
+
</script>
|
81 |
+
<div class="block block-yt-layered-nav">
|
82 |
+
<div class="block-layered-nav-inner">
|
83 |
+
<div class="block-title">
|
84 |
+
<strong><?php echo $this->__('Products Categories') ?></strong>
|
85 |
+
</div>
|
86 |
+
<div class="block-content clearfix">
|
87 |
+
<ul id="yt_sidenav">
|
88 |
+
<?php foreach ($this->getStoreCategories() as $_category): ?>
|
89 |
+
<?php echo $this->drawItem($_category) ?>
|
90 |
+
<?php endforeach ?>
|
91 |
+
</ul>
|
92 |
+
</div>
|
93 |
+
<?php echo $this->getChildHtml('topLeftLinks') ?>
|
94 |
+
</div>
|
95 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/catalog/navigation/top.phtml
ADDED
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Top menu for store
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Navigation
|
32 |
+
*/
|
33 |
+
global $var_yttheme;
|
34 |
+
|
35 |
+
class YT_BasicMenu extends Mage_Catalog_Block_Navigation {
|
36 |
+
/**
|
37 |
+
* Enter description here...
|
38 |
+
*
|
39 |
+
* @param Mage_Catalog_Model_Category $category
|
40 |
+
* @param int $level
|
41 |
+
* @param boolean $last
|
42 |
+
* @return string
|
43 |
+
*/
|
44 |
+
protected $_isNotParent = false;
|
45 |
+
public function getParentItem ($category, $level=0, $last=false, $id)
|
46 |
+
{
|
47 |
+
$html = '';
|
48 |
+
if (!$category->getIsActive()) {
|
49 |
+
return $html;
|
50 |
+
}
|
51 |
+
if (Mage::helper('catalog/category_flat')->isEnabled()) {
|
52 |
+
$children = $category->getChildrenNodes();
|
53 |
+
$childrenCount = count($children);
|
54 |
+
} else {
|
55 |
+
$children = $category->getChildren();
|
56 |
+
$childrenCount = $children->count();
|
57 |
+
}
|
58 |
+
$hasChildren = $children && $childrenCount;
|
59 |
+
|
60 |
+
$html.= '<li id="parent_menu'.$id.'" ';
|
61 |
+
if ($hasChildren) {
|
62 |
+
$html.= '';
|
63 |
+
}
|
64 |
+
|
65 |
+
$html.= ' class="level'.$level;
|
66 |
+
$html.= ' nav-'.str_replace('/', '-', Mage::helper('catalog/category')->getCategoryUrlPath($category->getRequestPath()));
|
67 |
+
if ($this->isCategoryActive($category)) {
|
68 |
+
$html.= ' active';
|
69 |
+
}
|
70 |
+
if ($last) {
|
71 |
+
$html .= ' last';
|
72 |
+
}
|
73 |
+
if ($hasChildren) {
|
74 |
+
$cnt = 0;
|
75 |
+
foreach ($children as $child) {
|
76 |
+
if ($child->getIsActive()) {
|
77 |
+
$cnt++;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
if(!$this->_isNotParent){
|
81 |
+
if ($cnt > 0) {
|
82 |
+
$html .= ' parent';
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
$html.= '">'."\n";
|
87 |
+
$html.= '<a onmouseover="toggleMenu(this,1); hideAllMenu(); displayChildMenu('.$id.');" onmouseout="toggleMenu(this,0);" href="'.$this->getCategoryUrl($category).'"><span>'.$this->htmlEscape($category->getName()).'</span></a>'."\n";
|
88 |
+
|
89 |
+
$html.= '</li>'."\n";
|
90 |
+
|
91 |
+
return $html;
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Enter description here...
|
96 |
+
*
|
97 |
+
* @param Mage_Catalog_Model_Category $category
|
98 |
+
* @param int $level
|
99 |
+
* @param boolean $last
|
100 |
+
* @return string
|
101 |
+
*/
|
102 |
+
public function getChildItem ($category, $level=0, $last=false)
|
103 |
+
{
|
104 |
+
$html = '';
|
105 |
+
if (!$category->getIsActive()) {
|
106 |
+
return $html;
|
107 |
+
}
|
108 |
+
if (Mage::helper('catalog/category_flat')->isEnabled()) {
|
109 |
+
$children = $category->getChildrenNodes();
|
110 |
+
$childrenCount = count($children);
|
111 |
+
} else {
|
112 |
+
$children = $category->getChildren();
|
113 |
+
$childrenCount = $children->count();
|
114 |
+
}
|
115 |
+
$hasChildren = $children && $childrenCount;
|
116 |
+
|
117 |
+
$html.= '<li ';
|
118 |
+
if ($hasChildren) {
|
119 |
+
$html.= '';
|
120 |
+
}
|
121 |
+
|
122 |
+
$html.= ' class="level'.$level;
|
123 |
+
$html.= ' nav-'.str_replace('/', '-', Mage::helper('catalog/category')->getCategoryUrlPath($category->getRequestPath()));
|
124 |
+
if ($this->isCategoryActive($category)) {
|
125 |
+
$html.= ' active';
|
126 |
+
}
|
127 |
+
if ($last) {
|
128 |
+
$html .= ' last';
|
129 |
+
}
|
130 |
+
if ($hasChildren) {
|
131 |
+
$cnt = 0;
|
132 |
+
foreach ($children as $child) {
|
133 |
+
if ($child->getIsActive()) {
|
134 |
+
$cnt++;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
if(!$this->_isNotParent){
|
138 |
+
if ($cnt > 0) {
|
139 |
+
$html .= ' parent';
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
143 |
+
$html.= '">'."\n";
|
144 |
+
$html.= '<a onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)" href="'.$this->getCategoryUrl($category).'"><span>'.$this->htmlEscape($category->getName()).'</span></a>'."\n";
|
145 |
+
|
146 |
+
$html.= '</li>'."\n";
|
147 |
+
|
148 |
+
return $html;
|
149 |
+
}
|
150 |
+
public function setIsNotParent($boolean){
|
151 |
+
$this->_isNotParent = $boolean;
|
152 |
+
}
|
153 |
+
public function getIsNotParent(){
|
154 |
+
return $this->_isNotParent;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
$yt_basicmenu = new YT_BasicMenu();
|
159 |
+
|
160 |
+
|
161 |
+
?>
|
162 |
+
<?php if ($var_yttheme->isHomepage()===FALSE) {
|
163 |
+
$homecls='class="nav-home"';
|
164 |
+
} else {
|
165 |
+
$homecls='class="nav-home active"';
|
166 |
+
}
|
167 |
+
|
168 |
+
if ( $var_yttheme->getParam("menustyle", 'css') == "css" ) {
|
169 |
+
?>
|
170 |
+
|
171 |
+
<div class="header-nav-container-home">
|
172 |
+
<div class="header-nav">
|
173 |
+
<h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
|
174 |
+
<ul id="nav" class="clearfix">
|
175 |
+
<li <?php echo $homecls;?>>
|
176 |
+
<a <?php echo $homecls;?> href="<?php echo $this->getUrl('') ?>" title="Home"><span>Home</span></a>
|
177 |
+
</li>
|
178 |
+
<?php foreach ($this->getStoreCategories() as $_category): ?>
|
179 |
+
<?php echo $this->drawItem($_category) ?>
|
180 |
+
<?php endforeach ?>
|
181 |
+
<?php if ( $var_yttheme->getParam("user_themecolor", '4') == "4" &&(1==0) ) : ?>
|
182 |
+
<li class="level0 parent" >
|
183 |
+
<a onmouseout="toggleMenu(this,0)" onmouseover="toggleMenu(this,1)" href="#"><span>Color</span></a>
|
184 |
+
<?php echo $var_yttheme->renderToolList ($var_yttheme->getParam('user_themecolor'),'txt'); ?>
|
185 |
+
</li>
|
186 |
+
<?php endif; ?>
|
187 |
+
<li class="">
|
188 |
+
<a title="<?php echo $this->__('Contact Us') ?>" href="<?php echo Mage::getUrl(); ?>contacts/" class=""><span><?php echo $this->__('Contact Us') ?></span></a>
|
189 |
+
</li>
|
190 |
+
<li class="last">
|
191 |
+
<a title="<?php echo $this->__('Demo Pro Version') ?>" href="http://demo.magentech.com/#sm-glasses" class="" target="_blank"><span><?php echo $this->__('Demo Pro Version') ?></span></a>
|
192 |
+
</li>
|
193 |
+
</ul>
|
194 |
+
</div>
|
195 |
+
<?php echo $this->getChildHtml('topLeftLinks') ?>
|
196 |
+
</div>
|
197 |
+
|
198 |
+
<?php
|
199 |
+
}else {
|
200 |
+
$yt_basicmenu ->setIsNotParent(true);
|
201 |
+
?>
|
202 |
+
<div onmouseout="rollbackCurrentMenu()" class="header-nav-container-home"">
|
203 |
+
<div class="header-nav">
|
204 |
+
<h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
|
205 |
+
<ul id="nav" class="clearfix">
|
206 |
+
<li <?php echo $homecls;?>>
|
207 |
+
<a <?php echo $homecls;?> href="<?php echo $this->getUrl('') ?>" title="Home" onmouseover="hideAllMenu();"><span>Home</span></a>
|
208 |
+
</li>
|
209 |
+
<?php $i=0; foreach ($this->getStoreCategories() as $_category): ?>
|
210 |
+
<?php echo $yt_basicmenu->getParentItem($_category, 0, false, $i); $i++; ?>
|
211 |
+
<?php endforeach ?>
|
212 |
+
<li class="">
|
213 |
+
<a title="<?php echo $this->__('Contact Us') ?>" href="<?php echo Mage::getUrl(); ?>contacts/" class=""><span><?php echo $this->__('Contact Us') ?></span></a>
|
214 |
+
</li>
|
215 |
+
<li class="last">
|
216 |
+
<a title="<?php echo $this->__('Demo Pro Version') ?>" href="http://demo.magentech.com/#sm-glasses" class="" target="_blank"><span><?php echo $this->__('Demo Pro Version') ?></span></a>
|
217 |
+
</li>
|
218 |
+
<?php /*
|
219 |
+
<?php if ( $var_yttheme->getParam("user_themecolor", '4') == "4" ) : ?>
|
220 |
+
<li id="parent_menu9999" class="level0" >
|
221 |
+
<a onmouseout="toggleMenu(this,0);" onmouseover="toggleMenu(this,1); hideAllMenu(); displayChildMenu('9999'); " href="#"><span>Color</span></a>
|
222 |
+
</li>
|
223 |
+
<?php endif; ?>*/ ?>
|
224 |
+
</ul>
|
225 |
+
</div>
|
226 |
+
<?php echo $this->getChildHtml('topLeftLinks') ?>
|
227 |
+
</div>
|
228 |
+
|
229 |
+
<div onmouseout="rollbackCurrentMenu()" id="yt_subnav" class="clearfix">
|
230 |
+
<div class="main clearfix">
|
231 |
+
<div class="main-inner1">
|
232 |
+
<?php $i=0; foreach ($this->getStoreCategories() as $_category): ?>
|
233 |
+
<?php
|
234 |
+
if (Mage::helper('catalog/category_flat')->isEnabled()) {
|
235 |
+
$children = $_category->getChildrenNodes();
|
236 |
+
$childrenCount = count($children);
|
237 |
+
} else {
|
238 |
+
$children = $_category->getChildren();
|
239 |
+
$childrenCount = $children->count();
|
240 |
+
}
|
241 |
+
|
242 |
+
if( $childrenCount > 0 ){
|
243 |
+
if ( ! $this->isCategoryActive($_category) )
|
244 |
+
echo '<ul class="subnav-item clearfix" id="child_menu'.$i.'" style="display:none" onmouseover="hideAllMenu(); displayChildMenu(\''.$i.'\');" > ';
|
245 |
+
else
|
246 |
+
echo '<ul class="subnav-item clearfix" id="child_menu'.$i.'" style="" rel="active_menu" onmouseover="hideAllMenu(); displayChildMenu(\''.$i.'\');" > ';
|
247 |
+
foreach ($children as $child) {
|
248 |
+
echo $yt_basicmenu->getChildItem( $child );
|
249 |
+
}
|
250 |
+
echo '</ul>';
|
251 |
+
}
|
252 |
+
$i++;
|
253 |
+
?>
|
254 |
+
<?php endforeach ?>
|
255 |
+
|
256 |
+
<?php if ( $var_yttheme->getParam("user_themecolor", '4') == "4" && (1==0)) :
|
257 |
+
echo '<div class="subnav-item" id="child_menu9999" style="display:none" onmouseover="hideAllMenu(); displayChildMenu(\'9999\');">';
|
258 |
+
echo $var_yttheme->renderToolList ($var_yttheme->getParam('user_themecolor'),'txt');
|
259 |
+
echo '</div>';
|
260 |
+
endif;
|
261 |
+
?>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
<script type="text/javascript" language="javascript">
|
266 |
+
$jsmart(document).ready(function($) {
|
267 |
+
$("#menu_split").html($("#yt_subnav").clone());
|
268 |
+
$("#yt_subnav").remove();
|
269 |
+
});
|
270 |
+
</script>
|
271 |
+
<?php } ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/navigation/tops.phtml
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Top menu for store
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Navigation
|
32 |
+
*/
|
33 |
+
global $var_yttheme;
|
34 |
+
|
35 |
+
$yt_basicmenu = new YT_BasicMenu();
|
36 |
+
|
37 |
+
?>
|
38 |
+
<?php if ($var_yttheme->isHomepage()===FALSE)
|
39 |
+
{
|
40 |
+
$homecls='class="nav-home"';
|
41 |
+
} else {
|
42 |
+
$homecls='class="nav-home active"';
|
43 |
+
}
|
44 |
+
|
45 |
+
?>
|
46 |
+
<?php if ( $var_yttheme->getParam("menustyle", 'css') == "css" ) { ?>
|
47 |
+
|
48 |
+
<?php }else { ?>
|
49 |
+
|
50 |
+
<div onmouseout="rollbackCurrentMenu()" id="yt_subnav" class="clearfix wrap">
|
51 |
+
<div class="main">
|
52 |
+
<div class="inner clearfix">
|
53 |
+
<?php $i=0; foreach ($this->getStoreCategories() as $_category): ?>
|
54 |
+
<?php
|
55 |
+
if (Mage::helper('catalog/category_flat')->isEnabled()) {
|
56 |
+
$children = $_category->getChildrenNodes();
|
57 |
+
$childrenCount = count($children);
|
58 |
+
} else {
|
59 |
+
$children = $_category->getChildren();
|
60 |
+
$childrenCount = $children->count();
|
61 |
+
}
|
62 |
+
|
63 |
+
if( $childrenCount > 0 ){
|
64 |
+
if ( ! $this->isCategoryActive($_category) )
|
65 |
+
echo '<ul class="subnav-item clearfix" id="child_menu'.$i.'" style="display:none" onmouseover="hideAllMenu(); displayChildMenu(\''.$i.'\');" > ';
|
66 |
+
else
|
67 |
+
echo '<ul class="subnav-item clearfix" id="child_menu'.$i.'" style="" rel="active_menu" onmouseover="hideAllMenu(); displayChildMenu(\''.$i.'\');" > ';
|
68 |
+
foreach ($children as $child) {
|
69 |
+
echo $yt_basicmenu->extendDrawChildItem( $child );
|
70 |
+
}
|
71 |
+
echo '</ul>';
|
72 |
+
}
|
73 |
+
$i++;
|
74 |
+
?>
|
75 |
+
<?php endforeach ?>
|
76 |
+
|
77 |
+
<?php if ( $var_yttheme->getParam("user_themecolor", '4') == "4" ) :
|
78 |
+
echo '<div class="subnav-item" id="child_menu9999" style="display:none" onmouseover="hideAllMenu(); displayChildMenu(\'9999\');">';
|
79 |
+
echo $var_yttheme->renderToolList ($var_yttheme->getParam('user_themecolor'),'txt');
|
80 |
+
echo '</div>';
|
81 |
+
endif;
|
82 |
+
?>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
<?php } ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/bestseller.phtml
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @author Branko Ajzele | http://activecodeline.com | branko.ajzele@surgeworks.com
|
5 |
+
* @license GPL
|
6 |
+
*/
|
7 |
+
$totalPerPage = 4;
|
8 |
+
$counter = 1;
|
9 |
+
$visibility = array(
|
10 |
+
Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
|
11 |
+
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
|
12 |
+
);
|
13 |
+
|
14 |
+
$storeId = Mage::app()->getStore()->getId();
|
15 |
+
$_productCollection = Mage::getResourceModel('reports/product_collection')
|
16 |
+
->addAttributeToSelect('*')
|
17 |
+
->addOrderedQty()
|
18 |
+
->addAttributeToFilter('visibility', $visibility)
|
19 |
+
->setOrder('ordered_qty', 'desc');
|
20 |
+
|
21 |
+
|
22 |
+
//Mage_Reports_Model_Mysql4_Product_Collection
|
23 |
+
?>
|
24 |
+
<div class="block-title">
|
25 |
+
<strong><?php echo $this->__('Best Sales') ?></strong>
|
26 |
+
</div>
|
27 |
+
<div class="bestsale-items">
|
28 |
+
|
29 |
+
<?php foreach($_productCollection as $_product): ?>
|
30 |
+
|
31 |
+
<?php
|
32 |
+
$this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper');
|
33 |
+
|
34 |
+
$categories = null;
|
35 |
+
foreach (explode(",", $_product->category_ids) as $catId){
|
36 |
+
|
37 |
+
//Mage_Catalog_Model_Category
|
38 |
+
$cat = Mage::getModel('catalog/category')
|
39 |
+
->setStoreId(Mage::app()->getStore()->getId())
|
40 |
+
->load($catId);
|
41 |
+
$catName = $cat->getName();
|
42 |
+
|
43 |
+
$catLink = $cat->getUrlPath();
|
44 |
+
$categories .= '<a href="'.$catLink.'" title="'.$catName.'">'.$catName.'</a> ';
|
45 |
+
}
|
46 |
+
|
47 |
+
?>
|
48 |
+
|
49 |
+
<?php if($counter <= $totalPerPage): ?>
|
50 |
+
<?php $productUrl = $_product->getProductUrl() ?>
|
51 |
+
<div class="items items_<?php echo $counter ?> clearfix <?php if($counter == $totalPerPage){ ?>last<?php } ?>">
|
52 |
+
<div class="bestsale-img">
|
53 |
+
<a href="<?php echo $productUrl ?>" title="View <?php echo $_product->name ?>">
|
54 |
+
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(107,78); ?>" width="107" height="78" alt="Product image" />
|
55 |
+
</a>
|
56 |
+
|
57 |
+
</div>
|
58 |
+
<div class="bestsale-info">
|
59 |
+
<h2 class="product-name"><a href="<?php echo $productUrl ?>"><?php echo $_product->getName() ?></a></h2>
|
60 |
+
<?php echo $this->getPriceHtml($_product); ?>
|
61 |
+
<?php $product = Mage::getModel('catalog/product')->load($_product->getId());
|
62 |
+
if($this->_reviewsHelperBlock->getSummaryHtml($product, false, false)):
|
63 |
+
echo $this->_reviewsHelperBlock->getSummaryHtml($product, false, false);
|
64 |
+
else:
|
65 |
+
?>
|
66 |
+
<a class="add-your-review" href="<?php echo Mage::getBaseUrl(); ?>/review/product/list/id/<?php echo $_product->getId(); ?>/#review-form">Add Review</a>
|
67 |
+
<?php endif; ?>
|
68 |
+
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<?php endif; $counter++; ?>
|
72 |
+
<?php endforeach; ?>
|
73 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/compare/sidebar.phtml
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Catalog_Block_Product_Compare_Sidebar */
|
27 |
+
?>
|
28 |
+
<div class="block block-compare">
|
29 |
+
<div class="block-title">
|
30 |
+
<strong><?php echo $this->__('Compare ')?> <span><?php echo $this->__('Products') ?></span>
|
31 |
+
<?php if($this->helper('catalog/product_compare')->getItemCount()>0): ?>
|
32 |
+
<small><?php echo $this->__('(%d)', $this->helper('catalog/product_compare')->getItemCount()) ?></small>
|
33 |
+
<?php endif; ?>
|
34 |
+
</strong>
|
35 |
+
</div>
|
36 |
+
<div class="block-content clearfix">
|
37 |
+
<?php if($this->helper('catalog/product_compare')->getItemCount()>0): ?>
|
38 |
+
<ol id="compare-items">
|
39 |
+
<?php foreach($this->helper('catalog/product_compare')->getItemCollection() as $_index=>$_item): ?>
|
40 |
+
<li class="item">
|
41 |
+
<input type="hidden" class="compare-item-id" value="<?php echo $_item->getId() ?>" />
|
42 |
+
<a href="<?php echo $this->helper('catalog/product_compare')->getRemoveUrl($_item) ?>" title="<?php echo $this->__('Remove This Item') ?>" class="btn-remove" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the comparison list?') ?>');"><?php //echo $this->__('Remove This Item') ?></a>
|
43 |
+
<p class="product-name"><a title="<?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name'); ?>" href="<?php echo $this->getProductUrl($_item) ?>">
|
44 |
+
<?php
|
45 |
+
if(strlen($this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name'))>=17){
|
46 |
+
echo substr($this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name'), 0, 17).'...';
|
47 |
+
}else{
|
48 |
+
echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name');
|
49 |
+
}
|
50 |
+
?>
|
51 |
+
</a></p>
|
52 |
+
</li>
|
53 |
+
<?php endforeach; ?>
|
54 |
+
</ol>
|
55 |
+
<script type="text/javascript">decorateList('compare-items')</script>
|
56 |
+
<div class="actions">
|
57 |
+
<button type="button" title="<?php echo $this->__('Compare') ?>" class="button" onclick="popWin('<?php echo $this->helper('catalog/product_compare')->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')"><span><span><?php echo $this->__('Compare') ?></span></span></button>
|
58 |
+
<a class="action-clear" href="<?php echo $this->helper('catalog/product_compare')->getClearListUrl() ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove all products from your comparison?') ?>');"><?php echo $this->__('Clear All') ?></a>
|
59 |
+
</div>
|
60 |
+
<?php else: ?>
|
61 |
+
<p class="empty"><?php echo $this->__('You have no items to compare.') ?></p>
|
62 |
+
<?php endif; ?>
|
63 |
+
</div>
|
64 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/feature.phtml
ADDED
@@ -0,0 +1,295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Product list template
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Product_List
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php
|
35 |
+
$_productCollection=$this->getLoadedProductCollection();
|
36 |
+
$_helper = $this->helper('catalog/output');
|
37 |
+
?>
|
38 |
+
<?php if(!$_productCollection->count()): ?>
|
39 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
40 |
+
<?php else: ?>
|
41 |
+
<div class="category-products">
|
42 |
+
<?php echo $this->getToolbarHtml() ?>
|
43 |
+
<?php // List mode ?>
|
44 |
+
<div class="yt-products-container">
|
45 |
+
<?php if($this->getMode()!='grid'): ?>
|
46 |
+
<?php $_iterator = 0; ?>
|
47 |
+
<ol class="products-list font2" id="products-list">
|
48 |
+
<?php foreach ($_productCollection as $_product): ?>
|
49 |
+
<?php
|
50 |
+
$count_input_qty++;
|
51 |
+
$now = date("Y-m-d");
|
52 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
53 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
54 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
55 |
+
|
56 |
+
?>
|
57 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
58 |
+
<?php // Product Image ?>
|
59 |
+
|
60 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
61 |
+
<?php
|
62 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
63 |
+
echo "<span class='newproduct-list'>new</span>";
|
64 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
65 |
+
}
|
66 |
+
if ($specialprice){
|
67 |
+
echo "<span class='saleoff-list'>sale off</span>";
|
68 |
+
}
|
69 |
+
?>
|
70 |
+
<span class="item-inner">
|
71 |
+
<img class="image-main" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300,215); ?>" width="300" height="215" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
72 |
+
<?php
|
73 |
+
$_gallery = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
74 |
+
$i_im = 0;
|
75 |
+
foreach ($_gallery as $_image ):
|
76 |
+
$i_im++;
|
77 |
+
if($i_im == 1){ ?>
|
78 |
+
<img class="image-hover" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_image->getFile())->resize(300, 215); ?>" width="300" height="215" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
|
79 |
+
<?php
|
80 |
+
break;
|
81 |
+
}
|
82 |
+
?>
|
83 |
+
<?php endforeach; ?>
|
84 |
+
</span></a>
|
85 |
+
<?php // Product description ?>
|
86 |
+
<?php /*
|
87 |
+
<div class="product-shop">
|
88 |
+
<div class="f-fix">
|
89 |
+
*/ ?>
|
90 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
91 |
+
<h2 class="product-name "><a class="fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
92 |
+
<?php //if($_product->getRatingSummary()): ?>
|
93 |
+
<?php //echo $this->getReviewsSummaryHtml($_product) ?>
|
94 |
+
<?php //endif; ?>
|
95 |
+
<div class="box-price-review">
|
96 |
+
<?php echo $this->getReviewsSummaryHtml($_product, false, false)?>
|
97 |
+
<?php echo $this->getPriceHtml($_product) ?>
|
98 |
+
<div class="stock-status">
|
99 |
+
<?php if ($_product->isAvailable()): ?>
|
100 |
+
<p class="availability in-stock"><i class="i-ok-circle fontcolor"></i><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
|
101 |
+
<?php else: ?>
|
102 |
+
<p class="availability out-of-stock"><i class="i-cancel-circle fontcolor"></i><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
|
103 |
+
<?php endif; ?>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
|
107 |
+
<div class="desc std">
|
108 |
+
<?php //echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
109 |
+
<?php
|
110 |
+
if(strlen($_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description')) >150){
|
111 |
+
echo substr( $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description'), 0, 150) .' ...';
|
112 |
+
}else{
|
113 |
+
echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description');
|
114 |
+
}
|
115 |
+
?>
|
116 |
+
</div>
|
117 |
+
<?php /*<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a> */ ?>
|
118 |
+
<?php /*<div class="price-box"> <?php echo $this->getPriceHtml($_product, true) ?> </div> */ ?>
|
119 |
+
<div class="box-main">
|
120 |
+
|
121 |
+
<div class="add-to-holder">
|
122 |
+
<div class="addtocart-box add-to-cart">
|
123 |
+
<?php if($_product->isSaleable()): ?>
|
124 |
+
<form action="<?php echo $this->getAddToCartUrl($_product);?>" method="post" id="product_addtocart_form_<?php echo $_product->getId();?>" <?php if($_product->getOptions()){?> enctype="multipart/form-data"<?php } ?> >
|
125 |
+
<?php if(!$_product->isGrouped()){?>
|
126 |
+
<div class="wrap-qty">
|
127 |
+
<div class="qty-title"><span><?php echo $this->__('Quantity') ?>:</span></div>
|
128 |
+
<div class="qty-set">
|
129 |
+
<span class="quantity-box">
|
130 |
+
<input type="text" class="quantity-input qty" name="qty" id="qty<?php echo $count_input_qty ?>"maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1);?>" />
|
131 |
+
</span>
|
132 |
+
<span class="quantity-controls ">
|
133 |
+
<input value="+" type="button" class="quantity-controls quantity-plus" onclick="$('qty<?php echo $count_input_qty?>').value=Number($('qty<?php echo $count_input_qty?>').value)+1">
|
134 |
+
<input value="-" type="button" class="quantity-controls quantity-minus" onclick="if(Number($('qty<?php echo $count_input_qty?>').value)>1){$('qty<?php echo $count_input_qty?>').value=Number($('qty<?php echo $count_input_qty?>').value)-1;}">
|
135 |
+
</span>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
<?php } ?>
|
139 |
+
|
140 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="this.form.submit()"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
141 |
+
</form>
|
142 |
+
<?php /*
|
143 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
144 |
+
*/ ?>
|
145 |
+
<?php else: ?>
|
146 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
147 |
+
<?php endif; ?>
|
148 |
+
</div>
|
149 |
+
<ul class="add-to-links">
|
150 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
151 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
152 |
+
<?php endif; ?>
|
153 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
154 |
+
<li><?php /*<span class="separator">|</span> */ ?><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
155 |
+
<?php endif; ?>
|
156 |
+
</ul>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
<?php /*
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
*/ ?>
|
163 |
+
</li>
|
164 |
+
<?php endforeach; ?>
|
165 |
+
</ol>
|
166 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
167 |
+
|
168 |
+
<?php else: ?>
|
169 |
+
|
170 |
+
<?php // Grid Mode ?>
|
171 |
+
|
172 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
173 |
+
<?php
|
174 |
+
// $_columnCount = $this->getColumnCount();
|
175 |
+
$_columnCount = 4;
|
176 |
+
?>
|
177 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
178 |
+
<?php
|
179 |
+
$now = date("Y-m-d");
|
180 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
181 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
182 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
183 |
+
?>
|
184 |
+
<?php //if ($i++%$_columnCount==0): ?>
|
185 |
+
<?php if ($i++==0){ ?>
|
186 |
+
<!--<script type="text/javascript">
|
187 |
+
$jsmart(document).ready(function() {
|
188 |
+
$jsmart(".products-grid li.item").hover(
|
189 |
+
function () {
|
190 |
+
$jsmart(this).find("button").fadeIn('fast');
|
191 |
+
},
|
192 |
+
function () {
|
193 |
+
$jsmart(this).find("button").fadeOut('fast');
|
194 |
+
}
|
195 |
+
);});
|
196 |
+
</script>-->
|
197 |
+
|
198 |
+
<div class="products-grid">
|
199 |
+
<div class="row">
|
200 |
+
<?php } ?>
|
201 |
+
<div class="span3<?php /* if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; */?>" data-normal="span3" data-tablet="span4" data-stablet="span4">
|
202 |
+
<div class="item">
|
203 |
+
<div class="item-inner <?php /*bgcolor2-hover */ ?>font2">
|
204 |
+
|
205 |
+
<div class="item-box">
|
206 |
+
<?php
|
207 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
208 |
+
echo "<span class='newproduct-grid'>new</span>";
|
209 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
210 |
+
}
|
211 |
+
if ($specialprice){
|
212 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
213 |
+
}
|
214 |
+
?>
|
215 |
+
<div class="product-image">
|
216 |
+
<a class="" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" ><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300,215); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
217 |
+
<div class="item-box-hover ">
|
218 |
+
<?php if($_product->isSaleable()): ?>
|
219 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart fontcolor" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></a>
|
220 |
+
<?php else: ?>
|
221 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
222 |
+
<?php endif; ?>
|
223 |
+
<a class="readmore fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><?php echo $this->__('More Detail') ?></a>
|
224 |
+
<?php /*
|
225 |
+
<a class="readmore fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><i class="icon-plus-circle"></i><span class="bgmask"></span></a>
|
226 |
+
<?php //if($_product->getRatingSummary()): ?>
|
227 |
+
<?php //echo $this->getReviewsSummaryHtml($_product, 'short', true) ?>
|
228 |
+
<?php //endif; ?>
|
229 |
+
<div class="actions">
|
230 |
+
<ul class="add-to-links">
|
231 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
232 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
233 |
+
<?php endif; ?>
|
234 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
235 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
236 |
+
<?php endif; ?>
|
237 |
+
</ul>
|
238 |
+
</div>
|
239 |
+
*/ ?>
|
240 |
+
</div>
|
241 |
+
</div>
|
242 |
+
<?php //echo $this->getPriceHtml($_product, true) ?>
|
243 |
+
</div>
|
244 |
+
|
245 |
+
<div class="item-box-footer">
|
246 |
+
<h2 class="product-name">
|
247 |
+
<a class="fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>">
|
248 |
+
<?php
|
249 |
+
if(strlen($_helper->productAttribute($_product, $_product->getName(), 'name')) > 100){
|
250 |
+
echo substr($_helper->productAttribute($_product, $_product->getName(), 'name'), 0, 100) .' ...';
|
251 |
+
}else{
|
252 |
+
echo $_helper->productAttribute($_product, $_product->getName(), 'name');
|
253 |
+
}
|
254 |
+
?>
|
255 |
+
</a>
|
256 |
+
</h2>
|
257 |
+
|
258 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
259 |
+
<?php /*
|
260 |
+
<?php if($_product->isSaleable()): ?>
|
261 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart bgcolor fontcolor" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span class="icon-plus"><?php echo $this->__('Add to Cart') ?></span></span></a>
|
262 |
+
<?php else: ?>
|
263 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
264 |
+
<?php endif; ?>
|
265 |
+
*/ ?>
|
266 |
+
</div>
|
267 |
+
<?php /*<span class="inner-border border-hover"></span>*/ ?>
|
268 |
+
</div>
|
269 |
+
</div>
|
270 |
+
</div>
|
271 |
+
<?php // if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
272 |
+
<?php if ($i==$_collectionSize){ ?>
|
273 |
+
</div>
|
274 |
+
</div>
|
275 |
+
<?php } ?>
|
276 |
+
<?php endforeach ?>
|
277 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
278 |
+
<?php endif; ?>
|
279 |
+
</div>
|
280 |
+
<?php /*
|
281 |
+
<div class="pagination">
|
282 |
+
<?php
|
283 |
+
/// if(!$block_show_pagination = Mage::registry('block_show_pagination')){
|
284 |
+
$block_show_pagination = Mage::registry('block_show_pagination');
|
285 |
+
echo $block_show_pagination->getPagerHtml();
|
286 |
+
// }
|
287 |
+
?>
|
288 |
+
</div>
|
289 |
+
*/ ?>
|
290 |
+
<div class="toolbar-bottom">
|
291 |
+
<?php echo $this->getToolbarHtml() ?>
|
292 |
+
</div>
|
293 |
+
|
294 |
+
</div>
|
295 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/list.phtml
ADDED
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Product list template
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Product_List
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php
|
35 |
+
$_productCollection=$this->getLoadedProductCollection();
|
36 |
+
$_helper = $this->helper('catalog/output');
|
37 |
+
?>
|
38 |
+
<?php if(!$_productCollection->count()): ?>
|
39 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
40 |
+
<?php else: ?>
|
41 |
+
<div class="category-products">
|
42 |
+
<?php echo $this->getToolbarHtml() ?>
|
43 |
+
<?php // List mode ?>
|
44 |
+
<?php if($this->getMode()!='grid'): ?>
|
45 |
+
<?php $_iterator = 0; ?>
|
46 |
+
<ol class="products-list" id="products-list">
|
47 |
+
<?php foreach ($_productCollection as $_product): ?>
|
48 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
49 |
+
<div class="row">
|
50 |
+
<?php // Product Image ?>
|
51 |
+
<div class="span2d4" data-normal="span3" data-tablet="span4" data-stablet="span12">
|
52 |
+
<div class="product-image">
|
53 |
+
<?php if($_product->getData('sale_item') == '1'): ?>
|
54 |
+
<div class='sale-item'><img src="<?php echo $this->getSkinUrl('images/sale-i.png') ?>" alt=""/> </div>
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php if($_product->getData('new_item') == '1'): ?>
|
57 |
+
<div class='new-item'><img src="<?php echo $this->getSkinUrl('images/new-i.png') ?>" alt=""/></div>
|
58 |
+
<?php endif; ?>
|
59 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-imgs"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(220,145); ?>" width="220" height="145" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
60 |
+
<div class="popup-box">
|
61 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><img src="<?php echo $this->getSkinUrl('images/heart.png') ?>" alt="" /></a></p>
|
62 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></p>
|
63 |
+
<?php /* <p><a href="<?php echo Mage::getBaseUrl(); ?>/review/product/list/id/<?php echo $_product->getId(); ?>/#review-form">Add Review</a></p> */ ?>
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
<?php // Product description ?>
|
68 |
+
<div class="span6" data-normal="span6" data-tablet="span5" data-stablet="span12">
|
69 |
+
<div class="product-shop">
|
70 |
+
<?php /* <div class="f-fix"> */ ?>
|
71 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
72 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
73 |
+
<div class="wrap-info">
|
74 |
+
<div class="price-block"><?php echo '<span>Price: </span>'.$this->getPriceHtml($_product, true, false) ?></div>
|
75 |
+
<?php if($_product->getRatingSummary()): ?>
|
76 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
77 |
+
<?php endif; ?>
|
78 |
+
</div>
|
79 |
+
<div class="desc std">
|
80 |
+
<?php $s_des = $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description'); ?>
|
81 |
+
<?php echo substr($s_des ,0, 150).'...' ; ?>
|
82 |
+
</div>
|
83 |
+
<div class="addtocart">
|
84 |
+
<?php if($_product->isSaleable()): ?>
|
85 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a>
|
86 |
+
<?php else: ?>
|
87 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
88 |
+
<?php endif; ?>
|
89 |
+
</div>
|
90 |
+
<?php /* </div> */ ?>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</li>
|
95 |
+
<?php endforeach; ?>
|
96 |
+
</ol>
|
97 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
98 |
+
|
99 |
+
<?php else: ?>
|
100 |
+
|
101 |
+
<?php // Grid Mode ?>
|
102 |
+
|
103 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
104 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
105 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
106 |
+
<?php $this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper'); ?>
|
107 |
+
<?php if ($i++==0): ?>
|
108 |
+
<div class="products-grid category-products">
|
109 |
+
<div class="row">
|
110 |
+
<?php endif ?>
|
111 |
+
<div class="span3" data-normal="span3" data-tablet="span4" data-stablet="span6">
|
112 |
+
<div class="item">
|
113 |
+
<div class="product-image">
|
114 |
+
<?php if($_product->getData('sale_item') == '1'): ?>
|
115 |
+
<div class='sale-item'><img src="<?php echo $this->getSkinUrl('images/sale-i.png') ?>" alt=""/> </div>
|
116 |
+
<?php endif; ?>
|
117 |
+
<?php if($_product->getData('new_item') == '1'): ?>
|
118 |
+
<div class='new-item'><img src="<?php echo $this->getSkinUrl('images/new-i.png') ?>" alt=""/></div>
|
119 |
+
<?php endif; ?>
|
120 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-imgs"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(280,186); ?>" width="280" height="186" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
121 |
+
<div class="popup-box">
|
122 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><img src="<?php echo $this->getSkinUrl('images/heart.png') ?>" alt="" /></a></p>
|
123 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></p>
|
124 |
+
<?php $product = Mage::getModel('catalog/product')->load($_product->getId());
|
125 |
+
if($this->_reviewsHelperBlock->getSummaryHtml($product, false, false)):
|
126 |
+
echo $this->_reviewsHelperBlock->getSummaryHtml($product, false, false);
|
127 |
+
else:
|
128 |
+
?>
|
129 |
+
<?php /* <a href="<?php echo Mage::getBaseUrl(); ?>/review/product/list/id/<?php echo $_product->getId(); ?>/#review-form">Add Review</a> */ ?>
|
130 |
+
<?php endif; ?>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
<div class="product-box">
|
134 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
135 |
+
<div class="item-description">
|
136 |
+
<?php $des = $_product->getShortDescription(); echo substr($des,0, 50).'...' ; ?>
|
137 |
+
</div>
|
138 |
+
<div class="price-block"><?php echo '<span>Price: </span>'.$this->getPriceHtml($_product, true, false) ?></div>
|
139 |
+
<?php // if($_product->getRatingSummary()): ?>
|
140 |
+
<?php // echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
141 |
+
<?php // endif; ?>
|
142 |
+
<div class="actions">
|
143 |
+
<?php if($_product->isSaleable()): ?>
|
144 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a>
|
145 |
+
<?php else: ?>
|
146 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
147 |
+
<?php endif; ?>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
<?php if ($i==$_collectionSize): ?>
|
153 |
+
</div>
|
154 |
+
</div> <?php //[end] products-grid ?>
|
155 |
+
<?php endif ?>
|
156 |
+
<?php endforeach ?>
|
157 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
158 |
+
<?php endif; ?>
|
159 |
+
|
160 |
+
<div class="toolbar-bottom">
|
161 |
+
<?php echo $this->getToolbarHtml() ?>
|
162 |
+
</div>
|
163 |
+
</div>
|
164 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/list/related.phtml
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if($this->getItems()->getSize()): ?>
|
28 |
+
<div class="block block-related">
|
29 |
+
<div class="block-title">
|
30 |
+
<strong><span><?php echo $this->__('Related Products') ?></span></strong>
|
31 |
+
</div>
|
32 |
+
<div class="block-content clearfix">
|
33 |
+
<p class="block-subtitle"><?php echo $this->__('Check items to add to the cart or') ?> <a href="#" onclick="selectAllRelated(this); return false;"><?php echo $this->__('select all') ?></a></p>
|
34 |
+
<ol class="mini-products-list" id="block-related">
|
35 |
+
<?php foreach($this->getItems() as $_item): ?>
|
36 |
+
<li class="item">
|
37 |
+
<?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
|
38 |
+
<?php if (!$_item->getRequiredOptions()): ?>
|
39 |
+
<input type="checkbox" class="checkbox related-checkbox" id="related-checkbox<?php echo $_item->getId() ?>" name="related_products[]" value="<?php echo $_item->getId() ?>" />
|
40 |
+
<?php endif; ?>
|
41 |
+
<?php endif; ?>
|
42 |
+
<div class="product">
|
43 |
+
<a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(75) ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
|
44 |
+
<div class="product-details">
|
45 |
+
<p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></p>
|
46 |
+
<?php echo $this->getPriceHtml($_item, true, '-related') ?>
|
47 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
48 |
+
<a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
|
49 |
+
<?php endif; ?>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
</li>
|
53 |
+
<?php endforeach ?>
|
54 |
+
</ol>
|
55 |
+
<script type="text/javascript">decorateList('block-related', 'none-recursive')</script>
|
56 |
+
</div>
|
57 |
+
<script type="text/javascript">
|
58 |
+
//<![CDATA[
|
59 |
+
$$('.related-checkbox').each(function(elem){
|
60 |
+
Event.observe(elem, 'click', addRelatedToProduct)
|
61 |
+
});
|
62 |
+
|
63 |
+
var relatedProductsCheckFlag = false;
|
64 |
+
function selectAllRelated(txt){
|
65 |
+
if (relatedProductsCheckFlag == false) {
|
66 |
+
$$('.related-checkbox').each(function(elem){
|
67 |
+
elem.checked = true;
|
68 |
+
});
|
69 |
+
relatedProductsCheckFlag = true;
|
70 |
+
txt.innerHTML="<?php echo $this->__('unselect all') ?>";
|
71 |
+
} else {
|
72 |
+
$$('.related-checkbox').each(function(elem){
|
73 |
+
elem.checked = false;
|
74 |
+
});
|
75 |
+
relatedProductsCheckFlag = false;
|
76 |
+
txt.innerHTML="<?php echo $this->__('select all') ?>";
|
77 |
+
}
|
78 |
+
addRelatedToProduct();
|
79 |
+
}
|
80 |
+
|
81 |
+
function addRelatedToProduct(){
|
82 |
+
var checkboxes = $$('.related-checkbox');
|
83 |
+
var values = [];
|
84 |
+
for(var i=0;i<checkboxes.length;i++){
|
85 |
+
if(checkboxes[i].checked) values.push(checkboxes[i].value);
|
86 |
+
}
|
87 |
+
if($('related-products-field')){
|
88 |
+
$('related-products-field').value = values.join(',');
|
89 |
+
}
|
90 |
+
}
|
91 |
+
//]]>
|
92 |
+
</script>
|
93 |
+
</div>
|
94 |
+
<?php endif ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/list/toolbar.phtml
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Product list toolbar
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Product_List_Toolbar
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php if($this->getCollection()->getSize()){ ?>
|
35 |
+
<div class="toolbar">
|
36 |
+
<div class="toolbar-inner font2">
|
37 |
+
<div class="row">
|
38 |
+
<?php if( $this->isEnabledViewSwitcher() ): ?>
|
39 |
+
<div class="view-mode span1d">
|
40 |
+
<?php $_modes = $this->getModes(); ?>
|
41 |
+
<?php if($_modes && count($_modes)>1): ?>
|
42 |
+
<?php foreach ($this->getModes() as $_code=>$_label): ?>
|
43 |
+
<?php if($this->isModeActive($_code)): ?>
|
44 |
+
<strong title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php //echo $_label ?></strong>
|
45 |
+
<?php else: ?>
|
46 |
+
<a href="<?php echo $this->getModeUrl($_code) ?>" title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?> fontcolor">
|
47 |
+
<?php //echo $_label ?>
|
48 |
+
</a>
|
49 |
+
<?php endif; ?>
|
50 |
+
<?php endforeach; ?>
|
51 |
+
<?php endif; ?>
|
52 |
+
</div>
|
53 |
+
<?php endif; ?>
|
54 |
+
<div class="showopt span1d">
|
55 |
+
<div class="limiter ">
|
56 |
+
<label><?php echo $this->__('Show') ?></label>
|
57 |
+
<div class="select-new"><div class="select-inner">
|
58 |
+
<select class="select-limit-show font2" onchange="setLocation(this.value)">
|
59 |
+
<?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
|
60 |
+
<option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
|
61 |
+
<?php echo $_limit; ?>
|
62 |
+
</option>
|
63 |
+
<?php endforeach; ?>
|
64 |
+
</select></div></div>
|
65 |
+
<label><?php echo $this->__('per page') ?></label>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
<div class="sort-by span1d">
|
69 |
+
<label><?php echo $this->__('Sort By') ?></label>
|
70 |
+
<div class="select-new"><div class="select-inner">
|
71 |
+
<select class="select-sort-by font2" onchange="setLocation(this.value)">
|
72 |
+
<?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
|
73 |
+
<option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
|
74 |
+
<?php echo $this->__($_order); ?>
|
75 |
+
</option>
|
76 |
+
<?php endforeach; ?>
|
77 |
+
</select>
|
78 |
+
</div></div>
|
79 |
+
<?php if($this->getCurrentDirection() == 'desc'): ?>
|
80 |
+
<a class="set-asc" href="<?php echo $this->getOrderUrl(null, 'asc') ?>" title="<?php echo $this->__('Set Ascending Direction') ?>">Desc</a>
|
81 |
+
<?php else: ?>
|
82 |
+
<a class="set-desc" href="<?php echo $this->getOrderUrl(null, 'desc') ?>" title="<?php echo $this->__('Set Descending Direction') ?>">Asc</a>
|
83 |
+
<?php endif; ?>
|
84 |
+
</div>
|
85 |
+
<?php //if(!Mage::registry('block_show_pagination')){Mage::register('block_show_pagination',$this);} ?>
|
86 |
+
<div class="pagination span1d">
|
87 |
+
<?php echo $this->getPagerHtml() ?>
|
88 |
+
</div>
|
89 |
+
<?php //if(!Mage::registry('block_show_pagination')){Mage::register('block_show_pagination',$this);} ?>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
<?php } ?>
|
94 |
+
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/list/upsell.phtml
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php $_helper = $this->helper('catalog/output'); ?>
|
28 |
+
<?php if(count($this->getItemCollection()->getItems())): ?>
|
29 |
+
<div class="box-collateral box-up-sell catalog-category-view">
|
30 |
+
<h2><?php echo $this->__('You may also be interested in the following product(s)') ?></h2>
|
31 |
+
<div class="up-sell-products">
|
32 |
+
<?php $this->setColumnCount(4); // uncomment this line if you want to have another number of columns. also can be changed in layout ?>
|
33 |
+
<?php $this->resetItemsIterator() ?>
|
34 |
+
<?php $this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper'); ?>
|
35 |
+
<?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>
|
36 |
+
<div class="products-grid category-products">
|
37 |
+
<div class="row">
|
38 |
+
<?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>
|
39 |
+
<?php if($_product=$this->getIterableItem()): ?>
|
40 |
+
<div class="span2d4" data-normal="span3" data-tablet="span4" data-stablet="span6">
|
41 |
+
<div class="item">
|
42 |
+
<div class="product-image">
|
43 |
+
<?php if($_product->getData('sale_item') == '1'): ?>
|
44 |
+
<div class='sale-item'><img src="<?php echo $this->getSkinUrl('images/sale-i.png') ?>" alt=""/> </div>
|
45 |
+
<?php endif; ?>
|
46 |
+
<?php if($_product->getData('new_item') == '1'): ?>
|
47 |
+
<div class='new-item'><img src="<?php echo $this->getSkinUrl('images/new-i.png') ?>" alt=""/></div>
|
48 |
+
<?php endif; ?>
|
49 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-imgs"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(280,186); ?>" width="280" height="186" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
50 |
+
<div class="popup-box">
|
51 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><img src="<?php echo $this->getSkinUrl('images/heart.png') ?>" alt="" /></a></p>
|
52 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></p>
|
53 |
+
<?php $product = Mage::getModel('catalog/product')->load($_product->getId());
|
54 |
+
if($this->_reviewsHelperBlock->getSummaryHtml($product, false, false)):
|
55 |
+
echo $this->_reviewsHelperBlock->getSummaryHtml($product, false, false);
|
56 |
+
else:
|
57 |
+
?>
|
58 |
+
<?php /* <a href="<?php echo Mage::getBaseUrl(); ?>/review/product/list/id/<?php echo $_product->getId(); ?>/#review-form">Add Review</a> */ ?>
|
59 |
+
<?php endif; ?>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
<div class="product-box">
|
63 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
64 |
+
<div class="item-description">
|
65 |
+
<?php $des = $_product->getShortDescription(); echo substr($des,0, 50).'...' ; ?>
|
66 |
+
</div>
|
67 |
+
<div class="price-block"><?php echo '<span>Price: </span>'.$this->getPriceHtml($_product, true, false) ?></div>
|
68 |
+
<?php // if($_product->getRatingSummary()): ?>
|
69 |
+
<?php // echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
70 |
+
<?php // endif; ?>
|
71 |
+
<div class="actions">
|
72 |
+
<?php if($_product->isSaleable()): ?>
|
73 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a>
|
74 |
+
<?php else: ?>
|
75 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
76 |
+
<?php endif; ?>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
<?php else: ?>
|
82 |
+
<?php endif; ?>
|
83 |
+
<?php endfor; ?>
|
84 |
+
</div>
|
85 |
+
</div> <?php //end div class="product-grid" ?>
|
86 |
+
<?php endfor; ?>
|
87 |
+
</div>
|
88 |
+
<!-- <script type="text/javascript">decorateTable('upsell-product-table')</script>-->
|
89 |
+
</div>
|
90 |
+
<?php endif ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/price.phtml
ADDED
@@ -0,0 +1,428 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php
|
29 |
+
/**
|
30 |
+
* Template for displaying product price in different places (products grid, product view page etc)
|
31 |
+
*
|
32 |
+
* @see Mage_Catalog_Block_Product_Abstract
|
33 |
+
*/
|
34 |
+
?>
|
35 |
+
<?php
|
36 |
+
$_coreHelper = $this->helper('core');
|
37 |
+
$_weeeHelper = $this->helper('weee');
|
38 |
+
$_taxHelper = $this->helper('tax');
|
39 |
+
/* @var $_coreHelper Mage_Core_Helper_Data */
|
40 |
+
/* @var $_weeeHelper Mage_Weee_Helper_Data */
|
41 |
+
/* @var $_taxHelper Mage_Tax_Helper_Data */
|
42 |
+
$uq = rand().time();
|
43 |
+
$_product = $this->getProduct();
|
44 |
+
$_storeId = $_product->getStoreId();
|
45 |
+
$_id = $_product->getId();
|
46 |
+
$_weeeSeparator = '';
|
47 |
+
$_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
|
48 |
+
$_minimalPriceValue = $_product->getMinimalPrice();
|
49 |
+
$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
|
50 |
+
?>
|
51 |
+
|
52 |
+
<?php if (!$_product->isGrouped()): ?>
|
53 |
+
<?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
|
54 |
+
<?php if ($_weeeHelper->typeOfDisplay($_product, array(Mage_Weee_Model_Tax::DISPLAY_INCL_DESCR, Mage_Weee_Model_Tax::DISPLAY_EXCL_DESCR_INCL, 4))): ?>
|
55 |
+
<?php $_weeeTaxAmount = $_weeeHelper->getAmount($_product); ?>
|
56 |
+
<?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForDisplay($_product); ?>
|
57 |
+
<?php endif; ?>
|
58 |
+
<?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
|
59 |
+
<?php if ($_weeeHelper->isTaxable() && !$_taxHelper->priceIncludesTax($_storeId)): ?>
|
60 |
+
<?php $_attributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
|
61 |
+
<?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_attributes); ?>
|
62 |
+
<?php endif; ?>
|
63 |
+
|
64 |
+
<div class="price-box">
|
65 |
+
<?php $_price = $_taxHelper->getPrice($_product, $_product->getPrice()) ?>
|
66 |
+
<?php $_regularPrice = $_taxHelper->getPrice($_product, $_product->getPrice(), $_simplePricesTax) ?>
|
67 |
+
<?php $_finalPrice = $_taxHelper->getPrice($_product, $_product->getFinalPrice()) ?>
|
68 |
+
<?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_product->getFinalPrice(), true) ?>
|
69 |
+
<?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
|
70 |
+
<?php if ($_finalPrice >= $_price): ?>
|
71 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
72 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
|
73 |
+
<span class="price-excluding-tax">
|
74 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
75 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
76 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
|
77 |
+
</span>
|
78 |
+
</span>
|
79 |
+
<span class="price-including-tax">
|
80 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
81 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
82 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
83 |
+
</span>
|
84 |
+
</span>
|
85 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
86 |
+
<span class="price-excluding-tax">
|
87 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
88 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
89 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
|
90 |
+
</span>
|
91 |
+
</span>
|
92 |
+
<span class="price-including-tax">
|
93 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
94 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
95 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
96 |
+
</span>
|
97 |
+
<span class="weee">(
|
98 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
99 |
+
<?php echo $_weeeSeparator; ?>
|
100 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
101 |
+
<?php $_weeeSeparator = ' + '; ?>
|
102 |
+
<?php endforeach; ?>
|
103 |
+
)</span>
|
104 |
+
</span>
|
105 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
106 |
+
<span class="price-excluding-tax">
|
107 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
108 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
109 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
|
110 |
+
</span>
|
111 |
+
</span>
|
112 |
+
<span class="price-including-tax">
|
113 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
114 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
115 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
116 |
+
</span>
|
117 |
+
<span class="weee">(
|
118 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
119 |
+
<?php echo $_weeeSeparator; ?>
|
120 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
|
121 |
+
<?php $_weeeSeparator = ' + '; ?>
|
122 |
+
<?php endforeach; ?>
|
123 |
+
)</span>
|
124 |
+
</span>
|
125 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
126 |
+
<span class="price-excluding-tax">
|
127 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
128 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
129 |
+
<?php echo $_coreHelper->currency($_price, true, false) ?>
|
130 |
+
</span>
|
131 |
+
</span>
|
132 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
133 |
+
<span class="weee">
|
134 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
135 |
+
</span>
|
136 |
+
<?php endforeach; ?>
|
137 |
+
<span class="price-including-tax">
|
138 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
139 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
140 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
141 |
+
</span>
|
142 |
+
</span>
|
143 |
+
<?php else: ?>
|
144 |
+
<span class="price-excluding-tax">
|
145 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
146 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
147 |
+
<?php if ($_finalPrice == $_price): ?>
|
148 |
+
<?php echo $_coreHelper->currency($_price, true, false) ?>
|
149 |
+
<?php else: ?>
|
150 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
151 |
+
<?php endif; ?>
|
152 |
+
</span>
|
153 |
+
</span>
|
154 |
+
<span class="price-including-tax">
|
155 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
156 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
157 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax, true, false) ?>
|
158 |
+
</span>
|
159 |
+
</span>
|
160 |
+
<?php endif; ?>
|
161 |
+
<?php else: ?>
|
162 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
|
163 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
164 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
165 |
+
</span>
|
166 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
167 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
168 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
169 |
+
</span>
|
170 |
+
<span class="weee">(
|
171 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
172 |
+
<?php echo $_weeeSeparator; ?>
|
173 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
174 |
+
<?php $_weeeSeparator = ' + '; ?>
|
175 |
+
<?php endforeach; ?>
|
176 |
+
)</span>
|
177 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
178 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
179 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
180 |
+
</span>
|
181 |
+
<span class="weee">(
|
182 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
183 |
+
<?php echo $_weeeSeparator; ?>
|
184 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
|
185 |
+
<?php $_weeeSeparator = ' + '; ?>
|
186 |
+
<?php endforeach; ?>
|
187 |
+
)</span>
|
188 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
189 |
+
<span class="regular-price"><?php echo $_coreHelper->currency($_price,true,true) ?></span><br />
|
190 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
191 |
+
<span class="weee">
|
192 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
193 |
+
</span>
|
194 |
+
<?php endforeach; ?>
|
195 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
196 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
197 |
+
</span>
|
198 |
+
<?php else: ?>
|
199 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
200 |
+
<?php if ($_finalPrice == $_price): ?>
|
201 |
+
<?php echo $_coreHelper->currency($_price, true, true) ?>
|
202 |
+
<?php else: ?>
|
203 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, true) ?>
|
204 |
+
<?php endif; ?>
|
205 |
+
</span>
|
206 |
+
<?php endif; ?>
|
207 |
+
<?php endif; ?>
|
208 |
+
<?php else: /* if ($_finalPrice == $_price): */ ?>
|
209 |
+
<?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
|
210 |
+
|
211 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
|
212 |
+
<p class="old-price">
|
213 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
214 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
215 |
+
<?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
|
216 |
+
</span>
|
217 |
+
</p>
|
218 |
+
|
219 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
220 |
+
<p class="special-price">
|
221 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
222 |
+
<span class="price-excluding-tax">
|
223 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
224 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
225 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
|
226 |
+
</span>
|
227 |
+
</span>
|
228 |
+
<span class="price-including-tax">
|
229 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
230 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
231 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
232 |
+
</span>
|
233 |
+
</span>
|
234 |
+
</p>
|
235 |
+
<?php else: ?>
|
236 |
+
<p class="special-price">
|
237 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
238 |
+
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
239 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmountInclTaxes, true, false) ?>
|
240 |
+
</span>
|
241 |
+
</p>
|
242 |
+
<?php endif; ?>
|
243 |
+
|
244 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
245 |
+
<p class="old-price">
|
246 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
247 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
248 |
+
<?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
|
249 |
+
</span>
|
250 |
+
</p>
|
251 |
+
|
252 |
+
<p class="special-price">
|
253 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
254 |
+
<span class="price-excluding-tax">
|
255 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
256 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
257 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
|
258 |
+
</span>
|
259 |
+
</span>
|
260 |
+
<span class="weee">(
|
261 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
262 |
+
<?php echo $_weeeSeparator; ?>
|
263 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
264 |
+
<?php $_weeeSeparator = ' + '; ?>
|
265 |
+
<?php endforeach; ?>
|
266 |
+
)</span>
|
267 |
+
<span class="price-including-tax">
|
268 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
269 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
270 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
271 |
+
</span>
|
272 |
+
</span>
|
273 |
+
</p>
|
274 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
275 |
+
<p class="old-price">
|
276 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
277 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
278 |
+
<?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
|
279 |
+
</span>
|
280 |
+
</p>
|
281 |
+
|
282 |
+
<p class="special-price">
|
283 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
284 |
+
<span class="price-excluding-tax">
|
285 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
286 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
287 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
|
288 |
+
</span>
|
289 |
+
</span>
|
290 |
+
<span class="weee">(
|
291 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
292 |
+
<?php echo $_weeeSeparator; ?>
|
293 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
|
294 |
+
<?php $_weeeSeparator = ' + '; ?>
|
295 |
+
<?php endforeach; ?>
|
296 |
+
)</span>
|
297 |
+
<span class="price-including-tax">
|
298 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
299 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
300 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
301 |
+
</span>
|
302 |
+
</span>
|
303 |
+
</p>
|
304 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
305 |
+
<p class="old-price">
|
306 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
307 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
308 |
+
<?php echo $_coreHelper->currency($_regularPrice, true, false) ?>
|
309 |
+
</span>
|
310 |
+
</p>
|
311 |
+
|
312 |
+
<p class="special-price">
|
313 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
314 |
+
<span class="price-excluding-tax">
|
315 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
316 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
317 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
318 |
+
</span>
|
319 |
+
</span>
|
320 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
321 |
+
<span class="weee">
|
322 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
323 |
+
</span>
|
324 |
+
<?php endforeach; ?>
|
325 |
+
<span class="price-including-tax">
|
326 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
327 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
328 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
329 |
+
</span>
|
330 |
+
</span>
|
331 |
+
</p>
|
332 |
+
<?php else: // excl. ?>
|
333 |
+
<p class="old-price">
|
334 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
335 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
336 |
+
<?php echo $_coreHelper->currency($_regularPrice, true, false) ?>
|
337 |
+
</span>
|
338 |
+
</p>
|
339 |
+
|
340 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
341 |
+
<p class="special-price">
|
342 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
343 |
+
<span class="price-excluding-tax">
|
344 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
345 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
346 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
347 |
+
</span>
|
348 |
+
</span>
|
349 |
+
<span class="price-including-tax">
|
350 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
351 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
352 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax, true, false) ?>
|
353 |
+
</span>
|
354 |
+
</span>
|
355 |
+
</p>
|
356 |
+
<?php else: ?>
|
357 |
+
<p class="special-price">
|
358 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
359 |
+
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
360 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
361 |
+
</span>
|
362 |
+
</p>
|
363 |
+
<?php endif; ?>
|
364 |
+
<?php endif; ?>
|
365 |
+
|
366 |
+
<?php endif; /* if ($_finalPrice == $_price): */ ?>
|
367 |
+
|
368 |
+
<?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_product->getFinalPrice()): ?>
|
369 |
+
|
370 |
+
<?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
|
371 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
|
372 |
+
<?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
|
373 |
+
<?php endif; ?>
|
374 |
+
|
375 |
+
<?php if ($this->getUseLinkForAsLowAs()):?>
|
376 |
+
<a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
|
377 |
+
<?php else:?>
|
378 |
+
<span class="minimal-price-link">
|
379 |
+
<?php endif?>
|
380 |
+
<span class="label"><?php echo $this->__('As low as:') ?></span>
|
381 |
+
<span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
382 |
+
<?php echo $_coreHelper->currency($_minimalPriceDisplayValue, true, false) ?>
|
383 |
+
</span>
|
384 |
+
<?php if ($this->getUseLinkForAsLowAs()):?>
|
385 |
+
</a>
|
386 |
+
<?php else:?>
|
387 |
+
</span>
|
388 |
+
<?php endif?>
|
389 |
+
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
|
390 |
+
</div>
|
391 |
+
|
392 |
+
<?php else: /* if (!$_product->isGrouped()): */ ?>
|
393 |
+
<?php
|
394 |
+
$_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue);
|
395 |
+
$_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, true);
|
396 |
+
?>
|
397 |
+
<?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
|
398 |
+
<div class="price-box">
|
399 |
+
<p class="minimal-price">
|
400 |
+
<span class="price-label"><?php echo $this->__('Starting at:') ?></span>
|
401 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
402 |
+
<span class="price-excluding-tax">
|
403 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
404 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
405 |
+
<?php echo $_coreHelper->currency($_exclTax, true, false) ?>
|
406 |
+
</span>
|
407 |
+
</span>
|
408 |
+
<span class="price-including-tax">
|
409 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
410 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
411 |
+
<?php echo $_coreHelper->currency($_inclTax, true, false) ?>
|
412 |
+
</span>
|
413 |
+
</span>
|
414 |
+
<?php else: ?>
|
415 |
+
<?php
|
416 |
+
$_showPrice = $_inclTax;
|
417 |
+
if (!$_taxHelper->displayPriceIncludingTax()) {
|
418 |
+
$_showPrice = $_exclTax;
|
419 |
+
}
|
420 |
+
?>
|
421 |
+
<span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix().$uq ?>">
|
422 |
+
<?php echo $_coreHelper->currency($_showPrice, true, false) ?>
|
423 |
+
</span>
|
424 |
+
<?php endif; ?>
|
425 |
+
</p>
|
426 |
+
</div>
|
427 |
+
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
|
428 |
+
<?php endif; /* if (!$_product->isGrouped()): */ ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view.phtml
ADDED
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Product view template
|
29 |
+
*
|
30 |
+
* @see Mage_Catalog_Block_Product_View
|
31 |
+
* @see Mage_Review_Block_Product_View
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<div class="yt-product-detail">
|
35 |
+
<?php
|
36 |
+
$_helper = $this->helper('catalog/output');
|
37 |
+
$_product = $this->getProduct()
|
38 |
+
?>
|
39 |
+
<script type="text/javascript">
|
40 |
+
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
|
41 |
+
$jsmart("#yt_tab_products").ready( function($) {
|
42 |
+
$jsmart("#yt_tab_products").ytContentTabs();
|
43 |
+
} );
|
44 |
+
</script>
|
45 |
+
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
46 |
+
|
47 |
+
<div class="yt-product-box font2">
|
48 |
+
<div class="product-info-box">
|
49 |
+
<div class="product-essential">
|
50 |
+
<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
51 |
+
|
52 |
+
<div class="product-img-box">
|
53 |
+
<?php echo $this->getChildHtml('media') ?>
|
54 |
+
</div>
|
55 |
+
|
56 |
+
|
57 |
+
<div class="product-shop">
|
58 |
+
|
59 |
+
<h1 class="product-name">
|
60 |
+
<?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getName()), 'name') ?>
|
61 |
+
</h1>
|
62 |
+
<div class="box-price-review">
|
63 |
+
<div class="price-box-wrapper">
|
64 |
+
<div class="price-box-prod"><span>Price:</span><?php echo $this->getPriceHtml($_product) ?></div>
|
65 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
66 |
+
</div>
|
67 |
+
<div class="stock-status">
|
68 |
+
<?php if ($_product->isAvailable()): ?>
|
69 |
+
<p class="availability in-stock"><?php echo $this->__('Availability:') ?> <img src="<?php echo $this->getSkinUrl('images/instock.png') ?>" alt="" /></p>
|
70 |
+
<?php else: ?>
|
71 |
+
<p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <img src="<?php echo $this->getSkinUrl('images/outstock.png') ?>" alt="" /></p>
|
72 |
+
<?php endif; ?>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
|
76 |
+
<?php //echo $this->getChildHtml('product_type_data') ?>
|
77 |
+
<?php $_product = $this->getProduct() ?>
|
78 |
+
|
79 |
+
<?php echo $this->getChildHtml('product_type_data_extra') ?>
|
80 |
+
|
81 |
+
|
82 |
+
<?php echo $this->getChildHtml('alert_urls') ?>
|
83 |
+
<?php /*
|
84 |
+
<div style="clear:both"></div>
|
85 |
+
*/ ?>
|
86 |
+
<div class="box-sub">
|
87 |
+
<?php if ($_product->isAvailable()): ?>
|
88 |
+
<p class="availability in-stock"><i class="i-ok-circle fontcolor"></i><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
|
89 |
+
<?php else: ?>
|
90 |
+
<p class="availability out-of-stock"><i class="i-cancel-circle fontcolor"></i><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
|
91 |
+
<?php endif; ?>
|
92 |
+
<?php if ($this->canEmailToFriend()): ?>
|
93 |
+
<a class="link-mail" href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><i class="i-mail fontcolor"></i><?php echo $this->__('Email to a Friend') ?></a>
|
94 |
+
<?php endif; ?>
|
95 |
+
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
|
96 |
+
</div>
|
97 |
+
<fieldset class="no-display">
|
98 |
+
<input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
|
99 |
+
<input type="hidden" name="related_product" id="related-products-field" value="" />
|
100 |
+
</fieldset>
|
101 |
+
<?php echo $this->getTierPriceHtml() ?>
|
102 |
+
<?php /*
|
103 |
+
<div style="clear:both"></div>
|
104 |
+
*/ ?>
|
105 |
+
<div class="box-main">
|
106 |
+
<?php if (!$this->hasOptions()):?>
|
107 |
+
<div class="add-to-holder">
|
108 |
+
<?php global $addto ; $addto = $this->getChildHtml('addto'); ?>
|
109 |
+
<?php if($_product->isSaleable()): ?>
|
110 |
+
<?php echo $this->getChildHtml('addtocart') ?>
|
111 |
+
<?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
|
112 |
+
<?php /*<span class="add-or"><?php echo $this->__('or') ?></span>*/ ?>
|
113 |
+
<?php endif; ?>
|
114 |
+
<?php endif; ?>
|
115 |
+
|
116 |
+
</div>
|
117 |
+
<?php echo $this->getChildHtml('extra_buttons') ?>
|
118 |
+
<?php endif; ?>
|
119 |
+
|
120 |
+
<div class="divider"></div>
|
121 |
+
</div>
|
122 |
+
|
123 |
+
<?php echo $this->getChildHtml('other');?>
|
124 |
+
|
125 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
126 |
+
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
|
127 |
+
<?php endif;?>
|
128 |
+
|
129 |
+
</div>
|
130 |
+
|
131 |
+
|
132 |
+
<div class="clear"></div>
|
133 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
134 |
+
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
|
135 |
+
<?php endif;?>
|
136 |
+
</form>
|
137 |
+
<script type="text/javascript">
|
138 |
+
//<![CDATA[
|
139 |
+
var productAddToCartForm = new VarienForm('product_addtocart_form');
|
140 |
+
productAddToCartForm.submit = function(button, url) {
|
141 |
+
if (this.validator.validate()) {
|
142 |
+
var form = this.form;
|
143 |
+
var oldUrl = form.action;
|
144 |
+
|
145 |
+
if (url) {
|
146 |
+
form.action = url;
|
147 |
+
}
|
148 |
+
var e = null;
|
149 |
+
try {
|
150 |
+
this.form.submit();
|
151 |
+
} catch (e) {
|
152 |
+
}
|
153 |
+
this.form.action = oldUrl;
|
154 |
+
if (e) {
|
155 |
+
throw e;
|
156 |
+
}
|
157 |
+
|
158 |
+
if (button && button != 'undefined') {
|
159 |
+
button.disabled = true;
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}.bind(productAddToCartForm);
|
163 |
+
|
164 |
+
productAddToCartForm.submitLight = function(button, url){
|
165 |
+
if(this.validator) {
|
166 |
+
var nv = Validation.methods;
|
167 |
+
delete Validation.methods['required-entry'];
|
168 |
+
delete Validation.methods['validate-one-required'];
|
169 |
+
delete Validation.methods['validate-one-required-by-name'];
|
170 |
+
if (this.validator.validate()) {
|
171 |
+
if (url) {
|
172 |
+
this.form.action = url;
|
173 |
+
}
|
174 |
+
this.form.submit();
|
175 |
+
}
|
176 |
+
Object.extend(Validation.methods, nv);
|
177 |
+
}
|
178 |
+
}.bind(productAddToCartForm);
|
179 |
+
//]]>
|
180 |
+
</script>
|
181 |
+
</div>
|
182 |
+
</div>
|
183 |
+
|
184 |
+
<div id="yt_tab_products" class="product-collateral">
|
185 |
+
<ul class="yt-tab-navi clearfix">
|
186 |
+
<?php if ($_description = $this->getChildHtml('description')):?>
|
187 |
+
<li><a href="#yt_tab_decription"><?php echo $this->__('Description') ?></a></li>
|
188 |
+
<?php endif; ?>
|
189 |
+
<?php // if ($_additional = $this->getChildHtml('additional')):?>
|
190 |
+
<!-- <li><a href="#yt_tab_additional"><?php echo $this->__('Additional Information') ?></a></li> -->
|
191 |
+
<?php // endif; ?>
|
192 |
+
<?php if($upsell_products = $this->getChildHtml('upsell_products')): ?>
|
193 |
+
<li><a href="#yt_tabitem_upsell"><?php echo $this->__('Upsell Products') ?></a></li>
|
194 |
+
<?php endif; ?>
|
195 |
+
<?php if($product_additional_data = $this->getChildHtml('product_additional_data')): ?>
|
196 |
+
<li><a href="#yt_abitem_tags"><?php echo $this->__('Product Tags') ?></a></li>
|
197 |
+
<?php endif; ?>
|
198 |
+
<?php if($product_reviews = $this->getChildHtml('product_reviews')): ?>
|
199 |
+
<li><a href="#yt_tabitem_reviews"><?php echo $this->__('Product Reviews') ?></a></li>
|
200 |
+
<?php endif; ?>
|
201 |
+
<?php if($review_form = $this->getChildHtml('review_form')): ?>
|
202 |
+
<li><a href="#yt_tabitem_reviewform"><?php echo $this->__('Write Your Own Review') ?></a></li>
|
203 |
+
<?php endif; ?>
|
204 |
+
</ul>
|
205 |
+
<div class="yt-tab-content">
|
206 |
+
<?php if ( $_description ):?>
|
207 |
+
<div id="yt_tab_decription">
|
208 |
+
<div class="collateral-box">
|
209 |
+
<?php echo $_description ?>
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
<?php endif;?>
|
213 |
+
|
214 |
+
<?php if ( $_additional ) : ?>
|
215 |
+
<div id="yt_tab_additional">
|
216 |
+
<div class="collateral-box">
|
217 |
+
<?php echo $_additional ?>
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
<?php endif;?>
|
221 |
+
|
222 |
+
<?php if( $upsell_products ): ?>
|
223 |
+
<div id="yt_tabitem_upsell">
|
224 |
+
<?php echo $upsell_products; ?>
|
225 |
+
</div>
|
226 |
+
<?php endif;?>
|
227 |
+
|
228 |
+
<?php // if( $product_additional_data ): ?>
|
229 |
+
<div id="yt_abitem_tags">
|
230 |
+
<?php echo $product_additional_data; ?>
|
231 |
+
</div>
|
232 |
+
<?php // endif;?>
|
233 |
+
|
234 |
+
<?php if($product_reviews): ?>
|
235 |
+
<div id="yt_tabitem_reviews">
|
236 |
+
<?php echo $product_reviews ?>
|
237 |
+
</div>
|
238 |
+
<?php endif;?>
|
239 |
+
|
240 |
+
<?php // if($review_form): ?>
|
241 |
+
<div id="yt_tabitem_reviewform">
|
242 |
+
<?php //echo $this->getChildHtml('reviews') ?>
|
243 |
+
<?php echo $review_form; ?>
|
244 |
+
</div>
|
245 |
+
<?php // endif;?>
|
246 |
+
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view/additional.phtml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php foreach ($this->getChildHtmlList() as $_html): ?>
|
28 |
+
<div class="collateral-box">
|
29 |
+
<?php echo $_html ?>
|
30 |
+
</div>
|
31 |
+
<?php endforeach; ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view/addtocart.phtml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php global $addto; ?>
|
28 |
+
<?php $_product = $this->getProduct(); ?>
|
29 |
+
<?php $buttonTitle = $this->__('Add to Cart'); ?>
|
30 |
+
<?php if($_product->isSaleable()): ?>
|
31 |
+
<div class="add-to-cart">
|
32 |
+
<button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
|
33 |
+
<?php echo $addto; ?>
|
34 |
+
<?php if(!$_product->isGrouped()): ?>
|
35 |
+
<div class="wrap-qty">
|
36 |
+
<div class="qty-set">
|
37 |
+
<span class="quantity-box">
|
38 |
+
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="quantity-input qty" />
|
39 |
+
</span>
|
40 |
+
<span class="quantity-controls ">
|
41 |
+
<input type="button" class="quantity-controls quantity-plus" onclick="$('qty').value=Number($('qty').value)+1" value="+">
|
42 |
+
<input type="button" class="quantity-controls quantity-minus" onclick="if(Number($('qty').value)>1){$('qty').value=Number($('qty').value)-1;}" value="-">
|
43 |
+
</span>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
<?php endif; ?>
|
47 |
+
|
48 |
+
<?php echo $this->getChildHtml('', true, true) ?>
|
49 |
+
</div>
|
50 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view/attributes.phtml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Product additional attributes template
|
29 |
+
*
|
30 |
+
* @see Mage_Catalog_Block_Product_View_Attributes
|
31 |
+
*/
|
32 |
+
?>
|
33 |
+
<?php
|
34 |
+
$_helper = $this->helper('catalog/output');
|
35 |
+
$_product = $this->getProduct()
|
36 |
+
?>
|
37 |
+
<?php if($_additional = $this->getAdditionalData()): ?>
|
38 |
+
<div class="attribute-specs">
|
39 |
+
<table cellspacing="0" class="data-table" id="product-attribute-specs-table">
|
40 |
+
<?php foreach ($_additional as $_data): ?>
|
41 |
+
<tr>
|
42 |
+
<td class="label"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></td>
|
43 |
+
<td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
|
44 |
+
</tr>
|
45 |
+
<?php endforeach; ?>
|
46 |
+
</table>
|
47 |
+
<script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
|
48 |
+
</div>
|
49 |
+
<?php endif;?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view/media.phtml
ADDED
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Product media data template
|
29 |
+
*
|
30 |
+
* @see Mage_Catalog_Block_Product_View_Media
|
31 |
+
*/
|
32 |
+
?>
|
33 |
+
|
34 |
+
<?php
|
35 |
+
$_product = $this->getProduct();
|
36 |
+
$_helper = $this->helper('catalog/output');
|
37 |
+
global $var_yttheme;
|
38 |
+
?>
|
39 |
+
<script type="text/javascript">
|
40 |
+
$jsmart(document).ready(function($){
|
41 |
+
|
42 |
+
function init(){
|
43 |
+
device = $.fn.detectDevice();
|
44 |
+
if(device == "stablet" || device =="mobile" ){
|
45 |
+
cloud_rel = "position: 'inside',zoomWidth:280, zoomHeight:280 ";
|
46 |
+
}
|
47 |
+
else{
|
48 |
+
cloud_rel = 'zoomWidth:280, zoomHeight:280, adjustX: 20, adjustY: -3 '; //for device = wide and desktop
|
49 |
+
}
|
50 |
+
$('.cloud-zoom').attr('rel', cloud_rel);
|
51 |
+
$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();
|
52 |
+
//Examples of how to assign the ColorBox event to elements
|
53 |
+
$(".popup-btn a[rel='yt-colorbox']").colorbox({});
|
54 |
+
|
55 |
+
$('a.cloud-zoom-gallery').bind('click', function(){
|
56 |
+
$('a#yt_popup').attr('href', $(this).attr('href'));
|
57 |
+
});
|
58 |
+
}
|
59 |
+
e = $(".ytc_background_theme1"),ehtml=e.html(),id='',init();$(window).resize(function(){if (id) clearTimeout(id);id = setTimeout(function(){e.children().empty().remove();e.html(ehtml);init();}, 300);
|
60 |
+
})
|
61 |
+
});
|
62 |
+
</script>
|
63 |
+
<?php
|
64 |
+
if ($_product->getImage() != 'no_selection' && $_product->getImage()){
|
65 |
+
$now = date("Y-m-d");
|
66 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
67 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
68 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
69 |
+
?>
|
70 |
+
<div class="ytc_background_theme1">
|
71 |
+
<div class="product-image-zoom ">
|
72 |
+
<?php
|
73 |
+
$_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(300, 200).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
74 |
+
?>
|
75 |
+
<a id="yt_cloudzoom" class="cloud-zoom" rel="zoomWidth:280, zoomHeight:280, adjustX: 20, adjustY: -3" title="<?php echo $this->htmlEscape($this->getImageLabel()); ?>" href="<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>" >
|
76 |
+
<?php
|
77 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
78 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
79 |
+
echo "<span class='newproduct-view'>new</span>";
|
80 |
+
}
|
81 |
+
if ($specialprice){
|
82 |
+
echo "<span class='saleoff-view'>sale off</span>";
|
83 |
+
}
|
84 |
+
?>
|
85 |
+
<span class="inner-border" style="border:3px solid #bdbdbd;"></span>
|
86 |
+
</a>
|
87 |
+
|
88 |
+
<div class="popup-btn hidden-phone">
|
89 |
+
<a id="yt_popup" rel="yt-colorbox" href="<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>" >popup</a>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
|
93 |
+
</div>
|
94 |
+
<!--<p class="a-center" id="track_hint"><?php //echo $this->__('Click on above image to view full picture') ?></p>-->
|
95 |
+
<?php }else{
|
96 |
+
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(300, 215).'" alt="'.$this->htmlEscape($_product->getImageLabel()).'" />';
|
97 |
+
?>
|
98 |
+
<a href="#" class="">
|
99 |
+
<?php
|
100 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
101 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
102 |
+
echo "<span class='newproduct-view'>new</span>";
|
103 |
+
}
|
104 |
+
if ($specialprice){
|
105 |
+
echo "<span class='saleoff-view'>sale off</span>";
|
106 |
+
}
|
107 |
+
?>
|
108 |
+
</a>
|
109 |
+
<?php } ?>
|
110 |
+
<?php
|
111 |
+
|
112 |
+
if (count($this->getGalleryImages()) > 0){
|
113 |
+
if( count($this->getGalleryImages()) >= 3 ){ ?>
|
114 |
+
<div class="more-views slide-gallery">
|
115 |
+
<div class="jCarouselLite" style="top:10px;">
|
116 |
+
<!--<h4><?php //echo $this->__('More Views') ?></h4>-->
|
117 |
+
|
118 |
+
<ul class="">
|
119 |
+
<?php
|
120 |
+
$media_gallery = $_product->getData('media_gallery');
|
121 |
+
if($media_gallery['images']['0']['disabled']){
|
122 |
+
?>
|
123 |
+
<li>
|
124 |
+
<a style="height:56px; width:78px" onclick="$$('.cloud-zoom-gallery').each(function(e,i){ e.removeClassName('actived');});this.addClassName('actived')" class="cloud-zoom-gallery actived" rel="useZoom: 'yt_cloudzoom', smallImage: '<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(300, 215); ?>' " title="<?php echo $this->htmlEscape($this->getImageLabel()) ; ?>" rel="" href="<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>" >
|
125 |
+
<img class="" src="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(77, 55); ?>" alt="<?php echo $this->htmlEscape($this->getImageLabel()); ?>" title="<?php echo $this->htmlEscape($this->getImageLabel()); ?>" />
|
126 |
+
<span class="inner-border" style="border:3px solid #bdbdbd;"></span>
|
127 |
+
<span class="inner-border bgcolor bgopacity"></span>
|
128 |
+
</a>
|
129 |
+
</li>
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
?>
|
133 |
+
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
134 |
+
<li>
|
135 |
+
<a style="height:56px; width:78px" onclick="$$('.cloud-zoom-gallery').each(function(e,i){ e.removeClassName('actived');});this.addClassName('actived')" class="cloud-zoom-gallery" rel="useZoom: 'yt_cloudzoom', smallImage: '<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(300, 215); ?>'"
|
136 |
+
href="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile()); ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>">
|
137 |
+
<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(78, 55); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
|
138 |
+
<span class="inner-border" style="border:3px solid #bdbdbd;"></span>
|
139 |
+
<span class="inner-border bgcolor bgopacity"></span>
|
140 |
+
</a>
|
141 |
+
</li>
|
142 |
+
<?php endforeach; ?>
|
143 |
+
</ul>
|
144 |
+
|
145 |
+
</div>
|
146 |
+
<span class="prev bgcolor">prev</span>
|
147 |
+
<span class="next bgcolor">next</span>
|
148 |
+
</div>
|
149 |
+
<script type="text/javascript">
|
150 |
+
$jsmart(".jCarouselLite").jCarouselLite({
|
151 |
+
btnNext: ".more-views .next",
|
152 |
+
btnPrev: ".more-views .prev",
|
153 |
+
visible: 3
|
154 |
+
});
|
155 |
+
</script>
|
156 |
+
|
157 |
+
<?php
|
158 |
+
}else{
|
159 |
+
?>
|
160 |
+
<div class="more-views">
|
161 |
+
<!--<h4><?php //echo $this->__('More Views') ?></h4>-->
|
162 |
+
<ul>
|
163 |
+
<li>
|
164 |
+
<a onclick="$jsmart('.cloud-zoom-gallery').each(function(){ this.setStyle('opacity:1');});this.setStyle('opacity:0.6');" class="cloud-zoom-gallery img-first" rel="useZoom: 'yt_cloudzoom', smallImage: '<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(300, 215); ?>' " title="<?php echo $this->htmlEscape($this->getImageLabel()) ; ?>" rel="" href="<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>" >
|
165 |
+
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(78, 55); ?>" alt="<?php echo $this->htmlEscape($this->getImageLabel()); ?>" title="<?php echo $this->htmlEscape($this->getImageLabel()); ?>" />
|
166 |
+
</a>
|
167 |
+
</li>
|
168 |
+
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
169 |
+
<li>
|
170 |
+
<a onclick="$jsmart('.cloud-zoom-gallery').each(function(){ this.setStyle('opacity:1');});this.setStyle('opacity:0.6');" class="cloud-zoom-gallery" rel="useZoom: 'yt_cloudzoom', smallImage: '<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(300, 215); ?>'"
|
171 |
+
href="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile()); ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>">
|
172 |
+
<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(78, 55); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
|
173 |
+
</li>
|
174 |
+
<?php endforeach; ?>
|
175 |
+
</ul>
|
176 |
+
</div>
|
177 |
+
|
178 |
+
<?php
|
179 |
+
}
|
180 |
+
}
|
181 |
+
?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view/options/wrapper.phtml
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="product-options clearfix" id="product-options-wrapper">
|
28 |
+
<?php echo $this->getChildHtml('', true, true);?>
|
29 |
+
<?php if ($this->hasRequiredOptions()):?>
|
30 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
31 |
+
<?php endif;?>
|
32 |
+
</div>
|
33 |
+
<script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view/options/wrapper/bottom.phtml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /*<div class="product-options-bottom">*/ ?>
|
28 |
+
<div class="add-to-holder have-price">
|
29 |
+
<?php echo $this->getChildHtml('', true, true);?>
|
30 |
+
</div>
|
31 |
+
<?php /*</div>*/ ?>
|
app/design/frontend/default/sm_glasses_free/template/catalog/product/view/type/default.phtml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /* @var $this Mage_Catalog_Block_Product_View_Abstract */?>
|
28 |
+
<?php $_product = $this->getProduct() ?>
|
29 |
+
|
30 |
+
<?php if ($_product->isAvailable()): ?>
|
31 |
+
<p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
|
32 |
+
<?php else: ?>
|
33 |
+
<p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
|
34 |
+
<?php endif; ?>
|
35 |
+
<?php echo $this->getChildHtml('product_type_data_extra') ?>
|
36 |
+
<?php echo $this->getPriceHtml($_product) ?>
|
app/design/frontend/default/sm_glasses_free/template/catalogsearch/form.mini.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form id="search_mini_form" action="<?php echo $this->helper('catalogsearch')->getResultUrl() ?>" method="get">
|
28 |
+
<div class="form-search">
|
29 |
+
<button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
|
30 |
+
<input id="search" type="text" name="<?php echo $this->helper('catalogsearch')->getQueryParamName() ?>" value="<?php echo $this->helper('catalogsearch')->getEscapedQueryText() ?>" class="input-text" />
|
31 |
+
<div id="search_autocomplete" class="search-autocomplete"></div>
|
32 |
+
<script type="text/javascript">
|
33 |
+
//<![CDATA[
|
34 |
+
var searchForm = new Varien.searchForm('search_mini_form', 'search', '<?php echo $this->__('Search entire store here...') ?>');
|
35 |
+
searchForm.initAutocomplete('<?php echo $this->helper('catalogsearch')->getSuggestUrl() ?>', 'search_autocomplete');
|
36 |
+
//]]>
|
37 |
+
</script>
|
38 |
+
</div>
|
39 |
+
</form>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart.phtml
ADDED
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Shopping cart template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<div class="cart">
|
35 |
+
<div class="page-title title-buttons">
|
36 |
+
<div class="row-fluid">
|
37 |
+
<div class="span9">
|
38 |
+
<h1><?php echo $this->__('Shopping Cart') ?></h1>
|
39 |
+
</div>
|
40 |
+
<div class="span3">
|
41 |
+
<?php if(!$this->hasError()): ?>
|
42 |
+
<ul class="checkout-types">
|
43 |
+
<?php foreach ($this->getMethods('top_methods') as $method): ?>
|
44 |
+
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
|
45 |
+
<li><?php echo $methodHtml; ?></li>
|
46 |
+
<?php endif; ?>
|
47 |
+
<?php endforeach; ?>
|
48 |
+
</ul>
|
49 |
+
<?php endif; ?>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
54 |
+
<?php echo $this->getChildHtml('form_before') ?>
|
55 |
+
<div class="row-fluid">
|
56 |
+
<form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
|
57 |
+
<fieldset>
|
58 |
+
<table id="shopping-cart-table" class="data-table cart-table">
|
59 |
+
<?php /*
|
60 |
+
<col width="1" />
|
61 |
+
<col />
|
62 |
+
<col width="1" />
|
63 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
64 |
+
<col width="1" />
|
65 |
+
<?php endif ?>
|
66 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
67 |
+
<col width="1" />
|
68 |
+
<?php endif; ?>
|
69 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
70 |
+
<col width="1" />
|
71 |
+
<?php endif; ?>
|
72 |
+
<col width="1" />
|
73 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
74 |
+
<col width="1" />
|
75 |
+
<?php endif; ?>
|
76 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
77 |
+
<col width="1" />
|
78 |
+
<?php endif; ?>
|
79 |
+
<col width="1" />
|
80 |
+
*/ ?>
|
81 |
+
<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
|
82 |
+
<thead>
|
83 |
+
<tr>
|
84 |
+
<th class="span2" > </th>
|
85 |
+
<th class="span3" ><span class="nobr"><?php echo $this->__('Product Name') ?></span></th>
|
86 |
+
<th class="<?php if ($this->helper('wishlist')->isAllowInCart()) { echo "span1"; }else{ echo"span2"; } ?>"></th>
|
87 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
88 |
+
<th class="a-center span2" ><span class="nobr"><?php echo $this->__('Move to Wishlist') ?></span></th>
|
89 |
+
<?php endif ?>
|
90 |
+
<th class="a-right span1" ><span class="nobr"><?php echo $this->__('Unit Price') ?></span></th>
|
91 |
+
<th class="a-center <?php if ($this->helper('wishlist')->isAllowInCart()) { echo "span1"; }else{ echo"span2"; } ?>" ><?php echo $this->__('Qty') ?></th>
|
92 |
+
<th class="a-right span1" ><?php echo $this->__('Subtotal') ?></th>
|
93 |
+
<th class="a-center span1 last" > </th>
|
94 |
+
</tr>
|
95 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
96 |
+
<tr>
|
97 |
+
<th class="a-right span1"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
98 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
99 |
+
<th class="a-right span1"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
100 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
101 |
+
</tr>
|
102 |
+
<?php endif; ?>
|
103 |
+
</thead>
|
104 |
+
<tfoot>
|
105 |
+
<tr>
|
106 |
+
<td colspan="50" class="a-right">
|
107 |
+
<?php if($this->getContinueShoppingUrl()): ?>
|
108 |
+
<button type="button" title="<?php echo $this->__('Continue Shopping') ?>" class="button btn-continue" onclick="setLocation('<?php echo $this->getContinueShoppingUrl() ?>')"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
109 |
+
<?php endif; ?>
|
110 |
+
<button type="submit" name="update_cart_action" value="update_qty" title="<?php echo $this->__('Update Shopping Cart'); ?>" class="button btn-update"><span><span><?php echo $this->__('Update Shopping Cart'); ?></span></span></button>
|
111 |
+
<button type="submit" name="update_cart_action" value="empty_cart" title="<?php echo $this->__('Clear Shopping Cart'); ?>" class="button btn-empty" id="empty_cart_button"><span><span><?php echo $this->__('Clear Shopping Cart'); ?></span></span></button>
|
112 |
+
<!--[if lt IE 8]>
|
113 |
+
<input type="hidden" id="update_cart_action_container" />
|
114 |
+
<script type="text/javascript">
|
115 |
+
//<![CDATA[
|
116 |
+
Event.observe(window, 'load', function()
|
117 |
+
{
|
118 |
+
// Internet Explorer (lt 8) does not support value attribute in button elements
|
119 |
+
$emptyCartButton = $('empty_cart_button');
|
120 |
+
$cartActionContainer = $('update_cart_action_container');
|
121 |
+
if ($emptyCartButton && $cartActionContainer) {
|
122 |
+
Event.observe($emptyCartButton, 'click', function()
|
123 |
+
{
|
124 |
+
$emptyCartButton.setAttribute('name', 'update_cart_action_temp');
|
125 |
+
$cartActionContainer.setAttribute('name', 'update_cart_action');
|
126 |
+
$cartActionContainer.setValue('empty_cart');
|
127 |
+
});
|
128 |
+
}
|
129 |
+
|
130 |
+
});
|
131 |
+
//]]>
|
132 |
+
</script>
|
133 |
+
<![endif]-->
|
134 |
+
</td>
|
135 |
+
</tr>
|
136 |
+
</tfoot>
|
137 |
+
<tbody>
|
138 |
+
<?php foreach($this->getItems() as $_item): ?>
|
139 |
+
<?php echo $this->getItemHtml($_item) ?>
|
140 |
+
<?php endforeach ?>
|
141 |
+
</tbody>
|
142 |
+
</table>
|
143 |
+
<script type="text/javascript">decorateTable('shopping-cart-table')</script>
|
144 |
+
</fieldset>
|
145 |
+
</form>
|
146 |
+
</div>
|
147 |
+
<div class="cart-collaterals">
|
148 |
+
<div class="row-fluid">
|
149 |
+
<div class="col2-set">
|
150 |
+
<div class="span4">
|
151 |
+
<div class="col-1">
|
152 |
+
<?php echo $this->getChildHtml('crosssell') ?>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
+
<div class="span4">
|
156 |
+
<div class="col-2">
|
157 |
+
<?php /* Extensions placeholder */ ?>
|
158 |
+
<?php echo $this->getChildHtml('checkout.cart.extra') ?>
|
159 |
+
<?php echo $this->getChildHtml('coupon') ?>
|
160 |
+
<?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
<div class="span4">
|
164 |
+
<div class="totals">
|
165 |
+
<?php echo $this->getChildHtml('totals'); ?>
|
166 |
+
<?php if(!$this->hasError()): ?>
|
167 |
+
<ul class="checkout-types">
|
168 |
+
<?php foreach ($this->getMethods('methods') as $method): ?>
|
169 |
+
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
|
170 |
+
<li><?php echo $methodHtml; ?></li>
|
171 |
+
<?php endif; ?>
|
172 |
+
<?php endforeach; ?>
|
173 |
+
</ul>
|
174 |
+
<?php endif; ?>
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/coupon.phtml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post">
|
28 |
+
<div class="discount">
|
29 |
+
<h2><?php echo $this->__('Discount Codes') ?></h2>
|
30 |
+
<div class="discount-form">
|
31 |
+
<label for="coupon_code"><?php echo $this->__('Enter your coupon code if you have one.') ?></label>
|
32 |
+
<input type="hidden" name="remove" id="remove-coupone" value="0" />
|
33 |
+
<div class="input-box">
|
34 |
+
<input type="text" class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" />
|
35 |
+
</div>
|
36 |
+
<div class="buttons-set">
|
37 |
+
<button type="button" title="<?php echo $this->__('Apply Coupon') ?>" class="button" onclick="discountForm.submit(false)" value="<?php echo $this->__('Apply Coupon') ?>"><span><span><?php echo $this->__('Apply Coupon') ?></span></span></button>
|
38 |
+
<?php if(strlen($this->getCouponCode())): ?>
|
39 |
+
<button type="button" title="<?php echo $this->__('Cancel Coupon') ?>" class="button" onclick="discountForm.submit(true)" value="<?php echo $this->__('Cancel Coupon') ?>"><span><span><?php echo $this->__('Cancel Coupon') ?></span></span></button>
|
40 |
+
<?php endif;?>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
</form>
|
45 |
+
<script type="text/javascript">
|
46 |
+
//<![CDATA[
|
47 |
+
var discountForm = new VarienForm('discount-coupon-form');
|
48 |
+
discountForm.submit = function (isRemove) {
|
49 |
+
if (isRemove) {
|
50 |
+
$('coupon_code').removeClassName('required-entry');
|
51 |
+
$('remove-coupone').value = "1";
|
52 |
+
} else {
|
53 |
+
$('coupon_code').addClassName('required-entry');
|
54 |
+
$('remove-coupone').value = "0";
|
55 |
+
}
|
56 |
+
return VarienForm.prototype.submit.bind(discountForm)();
|
57 |
+
}
|
58 |
+
//]]>
|
59 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/crosssell.phtml
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Cart cross sell items template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart_Crosssell
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php if($this->getItemCount()): ?>
|
35 |
+
<div class="crosssell">
|
36 |
+
<h2><?php echo $this->__('Based on your selection, you may be interested in the following items:') ?></h2>
|
37 |
+
<ul id="crosssell-products-list">
|
38 |
+
<?php foreach ($this->getItems() as $_item): ?>
|
39 |
+
<li class="item">
|
40 |
+
<a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(150, 100); ?>" width="150" height="100" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
|
41 |
+
<div class="product-details">
|
42 |
+
<h3 class="product-name"><a title="<?php echo $this->htmlEscape($_item->getName()) ?>" href="<?php echo $_item->getProductUrl() ?>">
|
43 |
+
<?php
|
44 |
+
if(strlen($this->htmlEscape($_item->getName())) >= 22){
|
45 |
+
echo substr($this->htmlEscape($_item->getName()), 0, 22).'...';
|
46 |
+
}else{
|
47 |
+
echo $this->htmlEscape($_item->getName());
|
48 |
+
}
|
49 |
+
?>
|
50 |
+
</a></h3>
|
51 |
+
<?php echo $this->getPriceHtml($_item, true) ?>
|
52 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
53 |
+
<ul class="add-to-links">
|
54 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
55 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
56 |
+
<?php endif; ?>
|
57 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_item)): ?>
|
58 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
59 |
+
<?php endif; ?>
|
60 |
+
</ul>
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
<?php endforeach; ?>
|
64 |
+
</ul>
|
65 |
+
<script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
|
66 |
+
</div>
|
67 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/item/configure/updatecart.phtml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php $_product = $this->getProduct(); ?>
|
29 |
+
<?php $buttonTitle = $this->__('Update Cart'); ?>
|
30 |
+
<?php if ($_product->isSaleable()): ?>
|
31 |
+
<div class="add-to-cart">
|
32 |
+
<?php if(!$_product->isGrouped()): ?>
|
33 |
+
<div class="wrap-qty">
|
34 |
+
<div class="qty-title"><span><?php echo $this->__('Quantity') ?>:</span></div>
|
35 |
+
<div class="qty-set">
|
36 |
+
<span class="quantity-box">
|
37 |
+
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="quantity-input qty" />
|
38 |
+
</span>
|
39 |
+
<span class="quantity-controls ">
|
40 |
+
<input type="button" class="quantity-controls quantity-plus" onclick="$('qty').value=Number($('qty').value)+1">
|
41 |
+
<input type="button" class="quantity-controls quantity-minus" onclick="if(Number($('qty').value)>1){$('qty').value=Number($('qty').value)-1;}">
|
42 |
+
</span>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
<?php endif; ?>
|
46 |
+
<button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
|
47 |
+
<?php echo $this->getChildHtml('', true, true) ?>
|
48 |
+
</div>
|
49 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/item/default.phtml
ADDED
@@ -0,0 +1,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$_item = $this->getItem();
|
29 |
+
$isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
|
30 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
31 |
+
?>
|
32 |
+
<tr>
|
33 |
+
<td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(150,100); ?>" width="150" height="100" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
|
34 |
+
<td>
|
35 |
+
<h2 class="product-name">
|
36 |
+
<?php if ($this->hasProductUrl()):?>
|
37 |
+
<a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
|
38 |
+
<?php else: ?>
|
39 |
+
<?php echo $this->htmlEscape($this->getProductName()) ?>
|
40 |
+
<?php endif; ?>
|
41 |
+
</h2>
|
42 |
+
<?php if ($_options = $this->getOptionList()):?>
|
43 |
+
<dl class="item-options">
|
44 |
+
<?php foreach ($_options as $_option) : ?>
|
45 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
46 |
+
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
|
47 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
48 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
49 |
+
<div class="truncated_full_value">
|
50 |
+
<dl class="item-options">
|
51 |
+
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
|
52 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
53 |
+
</dl>
|
54 |
+
</div>
|
55 |
+
<?php endif; ?>
|
56 |
+
</dd>
|
57 |
+
<?php endforeach; ?>
|
58 |
+
</dl>
|
59 |
+
<?php endif;?>
|
60 |
+
<?php if ($messages = $this->getMessages()): ?>
|
61 |
+
<?php foreach ($messages as $message): ?>
|
62 |
+
<p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
|
63 |
+
<?php endforeach; ?>
|
64 |
+
<?php endif; ?>
|
65 |
+
<?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
|
66 |
+
<?php if ($addInfoBlock): ?>
|
67 |
+
<?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
|
68 |
+
<?php endif;?>
|
69 |
+
</td>
|
70 |
+
<td class="a-center">
|
71 |
+
<?php if ($isVisibleProduct): ?>
|
72 |
+
<a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
|
73 |
+
<?php endif ?>
|
74 |
+
</td>
|
75 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
76 |
+
<td class="a-center">
|
77 |
+
<?php if ($isVisibleProduct): ?>
|
78 |
+
<a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
|
79 |
+
<?php endif ?>
|
80 |
+
</td>
|
81 |
+
<?php endif ?>
|
82 |
+
|
83 |
+
<?php if ($canApplyMsrp): ?>
|
84 |
+
<td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
|
85 |
+
<span class="cart-price">
|
86 |
+
<span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
87 |
+
<?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
|
88 |
+
<a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
|
89 |
+
<script type="text/javascript">
|
90 |
+
Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
|
91 |
+
</script>
|
92 |
+
</span>
|
93 |
+
</td>
|
94 |
+
<?php else: ?>
|
95 |
+
|
96 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
97 |
+
<td class="a-right">
|
98 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
99 |
+
<span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
100 |
+
<?php else: ?>
|
101 |
+
<span class="cart-price">
|
102 |
+
<?php endif; ?>
|
103 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
104 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
105 |
+
<?php else: ?>
|
106 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
107 |
+
<?php endif; ?>
|
108 |
+
|
109 |
+
</span>
|
110 |
+
|
111 |
+
|
112 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
113 |
+
|
114 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
115 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
116 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
117 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
118 |
+
<?php endforeach; ?>
|
119 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
120 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
121 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
122 |
+
<?php endforeach; ?>
|
123 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
124 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
125 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
126 |
+
<?php endforeach; ?>
|
127 |
+
<?php endif; ?>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
131 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
132 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
133 |
+
</div>
|
134 |
+
<?php endif; ?>
|
135 |
+
<?php endif; ?>
|
136 |
+
</td>
|
137 |
+
<?php endif; ?>
|
138 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
139 |
+
<td>
|
140 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
141 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
142 |
+
<span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
143 |
+
<?php else: ?>
|
144 |
+
<span class="cart-price">
|
145 |
+
<?php endif; ?>
|
146 |
+
|
147 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
148 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
|
149 |
+
<?php else: ?>
|
150 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
151 |
+
<?php endif; ?>
|
152 |
+
|
153 |
+
</span>
|
154 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
155 |
+
|
156 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
157 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
158 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
159 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
160 |
+
<?php endforeach; ?>
|
161 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
162 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
163 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
164 |
+
<?php endforeach; ?>
|
165 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
166 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
167 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
168 |
+
<?php endforeach; ?>
|
169 |
+
<?php endif; ?>
|
170 |
+
</div>
|
171 |
+
|
172 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
173 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
174 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
|
175 |
+
</div>
|
176 |
+
<?php endif; ?>
|
177 |
+
<?php endif; ?>
|
178 |
+
</td>
|
179 |
+
<?php endif; ?>
|
180 |
+
<?php endif; ?>
|
181 |
+
<td class="a-center">
|
182 |
+
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
|
183 |
+
</td>
|
184 |
+
<?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
185 |
+
<td class="a-right">
|
186 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
187 |
+
<span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
188 |
+
<?php else: ?>
|
189 |
+
<span class="cart-price">
|
190 |
+
<?php endif; ?>
|
191 |
+
|
192 |
+
<?php if ($canApplyMsrp): ?>
|
193 |
+
<span class="cart-msrp-subtotal">--</span>
|
194 |
+
<?php else: ?>
|
195 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
196 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
197 |
+
<?php else: ?>
|
198 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
199 |
+
<?php endif; ?>
|
200 |
+
<?php endif; ?>
|
201 |
+
|
202 |
+
</span>
|
203 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
204 |
+
|
205 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
206 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
207 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
208 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
209 |
+
<?php endforeach; ?>
|
210 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
211 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
212 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
213 |
+
<?php endforeach; ?>
|
214 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
215 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
216 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
217 |
+
<?php endforeach; ?>
|
218 |
+
<?php endif; ?>
|
219 |
+
</div>
|
220 |
+
|
221 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
222 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
223 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
224 |
+
</div>
|
225 |
+
<?php endif; ?>
|
226 |
+
<?php endif; ?>
|
227 |
+
</td>
|
228 |
+
<?php endif; ?>
|
229 |
+
<?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
230 |
+
<td>
|
231 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
232 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
233 |
+
<span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
234 |
+
<?php else: ?>
|
235 |
+
<span class="cart-price">
|
236 |
+
<?php endif; ?>
|
237 |
+
|
238 |
+
<?php if ($canApplyMsrp): ?>
|
239 |
+
<span class="cart-msrp-subtotal">--</span>
|
240 |
+
<?php else: ?>
|
241 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
242 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
|
243 |
+
<?php else: ?>
|
244 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
245 |
+
<?php endif; ?>
|
246 |
+
<?php endif; ?>
|
247 |
+
|
248 |
+
</span>
|
249 |
+
|
250 |
+
|
251 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
252 |
+
|
253 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
254 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
255 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
256 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
257 |
+
<?php endforeach; ?>
|
258 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
259 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
260 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
261 |
+
<?php endforeach; ?>
|
262 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
263 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
264 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
265 |
+
<?php endforeach; ?>
|
266 |
+
<?php endif; ?>
|
267 |
+
</div>
|
268 |
+
|
269 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
270 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
271 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
|
272 |
+
</div>
|
273 |
+
<?php endif; ?>
|
274 |
+
<?php endif; ?>
|
275 |
+
</td>
|
276 |
+
<?php endif; ?>
|
277 |
+
<td class="a-center"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
|
278 |
+
</tr>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/noItems.phtml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('Shopping Cart is Empty') ?></h1>
|
29 |
+
</div>
|
30 |
+
<div class="cart-empty">
|
31 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
32 |
+
<?php echo $this->getChildHtml('checkout_cart_empty_widget'); ?>
|
33 |
+
<p><?php echo $this->__('You have no items in your shopping cart.') ?></p>
|
34 |
+
<p><?php echo $this->__('Click <a href="%s">here</a> to continue shopping.', $this->getContinueShoppingUrl()) ?></p>
|
35 |
+
<?php echo $this->getChildHtml('shopping.cart.table.after'); ?>
|
36 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/render/default.phtml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @deprecated after 1.4.0.0-alpha3
|
29 |
+
*/
|
30 |
+
?>
|
31 |
+
<?php $_item = $this->getItem() ?>
|
32 |
+
<tr>
|
33 |
+
<td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo $this->__('Remove Item')?>" class="btn-remove2"><?php echo $this->__('Remove Item')?></a></td>
|
34 |
+
<td><a href="<?php echo $this->getItemUrl($_item) ?>" title="<?php echo $this->htmlEscape($this->getItemName($_item)) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($this->getItemProductForThumbnail($_item), 'thumbnail')->resize(75); ?>" width="75" alt="<?php echo $this->htmlEscape($this->getItemName($_item)) ?>" /></a></td>
|
35 |
+
<td>
|
36 |
+
<h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
|
37 |
+
<?php echo $this->getItemDescription($_item) ?>
|
38 |
+
<?php if($_item->getMessage()): ?>
|
39 |
+
<p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
|
40 |
+
<?php endif; ?>
|
41 |
+
</td>
|
42 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
43 |
+
<td class="a-center">
|
44 |
+
<a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist"><?php echo $this->__('Move'); ?></a>
|
45 |
+
</td>
|
46 |
+
<?php endif ?>
|
47 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
48 |
+
<td class="a-right">
|
49 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
50 |
+
</td>
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<td class="a-right">
|
54 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
|
55 |
+
</td>
|
56 |
+
<?php endif; ?>
|
57 |
+
<td class="a-center">
|
58 |
+
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="12" />
|
59 |
+
</td>
|
60 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
61 |
+
<td class="a-right">
|
62 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
63 |
+
</td>
|
64 |
+
<?php endif; ?>
|
65 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
66 |
+
<td class="a-right">
|
67 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
|
68 |
+
</td>
|
69 |
+
<?php endif; ?>
|
70 |
+
</tr>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/render/simple.phtml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @deprecated after 1.4.0.0-alpha3
|
29 |
+
*/
|
30 |
+
?>
|
31 |
+
<?php $_item = $this->getItem() ?>
|
32 |
+
<tr>
|
33 |
+
<td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo $this->__('Remove Item')?>" class="btn-remove2"><?php echo $this->__('Remove Item')?></a></td>
|
34 |
+
<td><a href="<?php echo $this->getItemUrl($_item) ?>" title="<?php echo $this->htmlEscape($this->getItemName($_item)) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($this->getItemProductForThumbnail($_item), 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($this->getItemName($_item)) ?>" /></a></td>
|
35 |
+
<td>
|
36 |
+
<h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
|
37 |
+
<?php echo $this->getItemDescription($_item) ?>
|
38 |
+
<?php if($_item->getMessage()): ?>
|
39 |
+
<p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
|
40 |
+
<?php endif; ?>
|
41 |
+
</td>
|
42 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
43 |
+
<td class="a-center">
|
44 |
+
<a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist"><?php echo $this->__('Move'); ?></a>
|
45 |
+
</td>
|
46 |
+
<?php endif ?>
|
47 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
48 |
+
<td class="a-right">
|
49 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
50 |
+
</td>
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<td class="a-right">
|
54 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
|
55 |
+
</td>
|
56 |
+
<?php endif; ?>
|
57 |
+
<td class="a-center">
|
58 |
+
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="12" />
|
59 |
+
</td>
|
60 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
61 |
+
<td class="a-right">
|
62 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
63 |
+
</td>
|
64 |
+
<?php endif; ?>
|
65 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
66 |
+
<td class="a-right">
|
67 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
|
68 |
+
</td>
|
69 |
+
<?php endif; ?>
|
70 |
+
</tr>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/shipping.phtml
ADDED
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /** @var $this Mage_Checkout_Block_Cart_Shipping */ ?>
|
28 |
+
<div class="shipping">
|
29 |
+
<h2><?php echo $this->__('Estimate Shipping and Tax') ?></h2>
|
30 |
+
<div class="shipping-form">
|
31 |
+
<form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
|
32 |
+
<p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
|
33 |
+
<ul class="form-list">
|
34 |
+
<li>
|
35 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
36 |
+
<div class="input-box">
|
37 |
+
<?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
|
38 |
+
</div>
|
39 |
+
</li>
|
40 |
+
<?php //if($this->getStateActive()): ?>
|
41 |
+
<li>
|
42 |
+
<label for="region_id"<?php if ($this->isStateProvinceRequired()) echo ' class="required"' ?>><?php if ($this->isStateProvinceRequired()) echo '<em>*</em>' ?><?php echo $this->__('State/Province') ?></label>
|
43 |
+
<div class="input-box">
|
44 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" style="display:none;"<?php echo ($this->isStateProvinceRequired() ? ' class="validate-select"' : '') ?>>
|
45 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
46 |
+
</select>
|
47 |
+
<script type="text/javascript">
|
48 |
+
//<![CDATA[
|
49 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
|
50 |
+
//]]>
|
51 |
+
</script>
|
52 |
+
<input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getEstimateRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
|
53 |
+
</div>
|
54 |
+
</li>
|
55 |
+
<?php //endif; ?>
|
56 |
+
<?php if($this->getCityActive()): ?>
|
57 |
+
<li>
|
58 |
+
<label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label>
|
59 |
+
<div class="input-box">
|
60 |
+
<input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->escapeHtml($this->getEstimateCity()) ?>" />
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
<?php endif; ?>
|
64 |
+
<li>
|
65 |
+
<label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>><?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?><?php echo $this->__('Zip/Postal Code') ?></label>
|
66 |
+
<div class="input-box">
|
67 |
+
<input class="input-text validate-postcode<?php if ($this->isZipCodeRequired()):?> required-entry<?php endif;?>" type="text" id="postcode" name="estimate_postcode" value="<?php echo $this->escapeHtml($this->getEstimatePostcode()) ?>" />
|
68 |
+
</div>
|
69 |
+
</li>
|
70 |
+
</ul>
|
71 |
+
<div class="buttons-set">
|
72 |
+
<button type="button" title="<?php echo $this->__('Get a Quote') ?>" onclick="coShippingMethodForm.submit()" class="button"><span><span><?php echo $this->__('Get a Quote') ?></span></span></button>
|
73 |
+
</div>
|
74 |
+
</form>
|
75 |
+
<script type="text/javascript">
|
76 |
+
//<![CDATA[
|
77 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
|
78 |
+
//]]>
|
79 |
+
</script>
|
80 |
+
|
81 |
+
<?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
82 |
+
<form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
|
83 |
+
<dl class="sp-methods">
|
84 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
85 |
+
<dt><?php echo $this->escapeHtml($this->getCarrierName($code)) ?></dt>
|
86 |
+
<dd>
|
87 |
+
<ul>
|
88 |
+
<?php foreach ($_rates as $_rate): ?>
|
89 |
+
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
|
90 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
91 |
+
<?php echo $this->escapeHtml($_rate->getErrorMessage()) ?>
|
92 |
+
<?php else: ?>
|
93 |
+
<input name="estimate_method" type="radio" value="<?php echo $this->escapeHtml($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
|
94 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
|
95 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
96 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
97 |
+
<?php echo $_excl; ?>
|
98 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
99 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
100 |
+
<?php endif; ?>
|
101 |
+
</label>
|
102 |
+
<?php endif ?>
|
103 |
+
</li>
|
104 |
+
<?php endforeach; ?>
|
105 |
+
</ul>
|
106 |
+
</dd>
|
107 |
+
<?php endforeach; ?>
|
108 |
+
</dl>
|
109 |
+
<div class="buttons-set">
|
110 |
+
<button type="submit" title="<?php echo $this->__('Update Total') ?>" class="button" name="do" value="<?php echo $this->__('Update Total') ?>"><span><span><?php echo $this->__('Update Total') ?></span></span></button>
|
111 |
+
</div>
|
112 |
+
</form>
|
113 |
+
<?php endif; ?>
|
114 |
+
<script type="text/javascript">
|
115 |
+
//<![CDATA[
|
116 |
+
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
117 |
+
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
118 |
+
|
119 |
+
coShippingMethodForm.submit = function () {
|
120 |
+
var country = $F('country');
|
121 |
+
var optionalZip = false;
|
122 |
+
|
123 |
+
for (i=0; i < countriesWithOptionalZip.length; i++) {
|
124 |
+
if (countriesWithOptionalZip[i] == country) {
|
125 |
+
optionalZip = true;
|
126 |
+
}
|
127 |
+
}
|
128 |
+
if (optionalZip) {
|
129 |
+
$('postcode').removeClassName('required-entry');
|
130 |
+
}
|
131 |
+
else {
|
132 |
+
$('postcode').addClassName('required-entry');
|
133 |
+
}
|
134 |
+
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
135 |
+
}
|
136 |
+
//]]>
|
137 |
+
</script>
|
138 |
+
</div>
|
139 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/sidebar.phtml
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Shoping cart sidebar
|
29 |
+
*
|
30 |
+
* @see Mage_Checkout_Block_Cart_Sidebar
|
31 |
+
*/
|
32 |
+
|
33 |
+
?>
|
34 |
+
<?php if ($this->getIsNeedToDisplaySideBar()):?>
|
35 |
+
<div class="block block-cart">
|
36 |
+
<?php $_cartQty = $this->getSummaryCount() ?>
|
37 |
+
<div class="block-title">
|
38 |
+
<strong><?php echo $this->__('My')?> <span><?php echo $this->__('Cart') ?></span></strong>
|
39 |
+
</div>
|
40 |
+
<div class="block-content">
|
41 |
+
<?php if ($_cartQty>0): ?>
|
42 |
+
<div class="summary">
|
43 |
+
<?php if ($_cartQty==1): ?>
|
44 |
+
<p class="amount"><?php echo $this->__('There is <a href="%s">1 item</a> in your cart.', $this->getUrl('checkout/cart')) ?></p>
|
45 |
+
<?php else: ?>
|
46 |
+
<p class="amount"><?php echo $this->__('There are <a href="%s">%s items</a> in your cart.', $this->getUrl('checkout/cart'), $_cartQty) ?></p>
|
47 |
+
<?php endif ?>
|
48 |
+
<p class="subtotal">
|
49 |
+
<?php if ($this->canApplyMsrp()): ?>
|
50 |
+
<span class="map-cart-sidebar-total"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></span>
|
51 |
+
<?php else: ?>
|
52 |
+
<span class="label"><?php echo $this->__('Cart Subtotal:') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
|
53 |
+
<?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
|
54 |
+
<br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php endif; ?>
|
57 |
+
</p>
|
58 |
+
</div>
|
59 |
+
<?php endif ?>
|
60 |
+
<?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
|
61 |
+
<div class="actions">
|
62 |
+
<?php echo $this->getChildHtml('extra_actions') ?>
|
63 |
+
<button type="button" title="<?php echo $this->__('Checkout') ?>" class="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><span><span><?php echo $this->__('Checkout') ?></span></span></button>
|
64 |
+
</div>
|
65 |
+
<?php endif ?>
|
66 |
+
<?php $_items = $this->getRecentItems() ?>
|
67 |
+
<?php if(count($_items)): ?>
|
68 |
+
<p class="block-subtitle"><?php echo $this->__('Recently added item(s)') ?></p>
|
69 |
+
<ol id="cart-sidebar" class="mini-products-list">
|
70 |
+
<?php foreach($_items as $_item): ?>
|
71 |
+
<?php echo $this->getItemHtml($_item) ?>
|
72 |
+
<?php endforeach; ?>
|
73 |
+
</ol>
|
74 |
+
<script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
|
75 |
+
<?php else: ?>
|
76 |
+
<p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
|
77 |
+
<?php endif ?>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<?php endif;?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/sidebar/default.phtml
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$_item = $this->getItem();
|
29 |
+
$isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
|
30 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
31 |
+
?>
|
32 |
+
<li class="item">
|
33 |
+
<?php //if(1==0){ ?>
|
34 |
+
<?php if ($this->hasProductUrl()): ?>
|
35 |
+
<a href="<?php echo $this->getProductUrl()?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(100, 70)->setWatermarkSize('30x10'); ?>" width="100" height="70" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></a>
|
36 |
+
<?php else: ?>
|
37 |
+
<span class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(100, 70)->setWatermarkSize('30x10'); ?>" width="100" height="70" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></span>
|
38 |
+
<?php endif; ?>
|
39 |
+
<?php //} ?>
|
40 |
+
<div class="product-details">
|
41 |
+
<a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo $this->__('Remove This Item') ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the shopping cart?') ?>');" class="btn-remove fontcolor"><?php //echo $this->__('Remove This Item') ?></a>
|
42 |
+
<?php if ($isVisibleProduct): ?>
|
43 |
+
<a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item') ?>" class="btn-edit"><?php //echo $this->__('Edit item')?></a>
|
44 |
+
<?php endif ?>
|
45 |
+
<p class="product-name"><?php if ($this->hasProductUrl()): ?><a title="<?php echo $this->htmlEscape($this->getProductName()); ?>" href="<?php echo $this->getProductUrl() ?>"><?php endif; ?>
|
46 |
+
<?php
|
47 |
+
if( strlen($this->htmlEscape($this->getProductName()))>=10){
|
48 |
+
echo substr($this->htmlEscape($this->getProductName()), 0, 10).'...';
|
49 |
+
}else{
|
50 |
+
echo $this->htmlEscape($this->getProductName());
|
51 |
+
}
|
52 |
+
?>
|
53 |
+
<?php if ($this->hasProductUrl()): ?></a><?php endif; ?></p>
|
54 |
+
<strong><?php echo $this->getQty() ?></strong> x
|
55 |
+
|
56 |
+
<?php if ($canApplyMsrp): ?>
|
57 |
+
|
58 |
+
<span class="map-cart-sidebar-item"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
59 |
+
|
60 |
+
<?php else: ?>
|
61 |
+
|
62 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
63 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
64 |
+
<?php echo $this->__('Excl. Tax'); ?>:
|
65 |
+
<?php endif; ?>
|
66 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
67 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
68 |
+
<?php else: ?>
|
69 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
70 |
+
<?php endif; ?>
|
71 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
72 |
+
<br />
|
73 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
74 |
+
<small>
|
75 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
76 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
77 |
+
<?php endforeach; ?>
|
78 |
+
</small>
|
79 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
80 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
81 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
82 |
+
<?php endforeach; ?>
|
83 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
84 |
+
<small>
|
85 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
86 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
87 |
+
<?php endforeach; ?>
|
88 |
+
</small>
|
89 |
+
<?php endif; ?>
|
90 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
91 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
92 |
+
<?php endif; ?>
|
93 |
+
<?php endif; ?>
|
94 |
+
<?php endif; ?>
|
95 |
+
|
96 |
+
|
97 |
+
|
98 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
99 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
100 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
101 |
+
<br /><?php echo $this->__('Incl. Tax'); ?>:
|
102 |
+
<?php endif; ?>
|
103 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
104 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
|
105 |
+
<?php else: ?>
|
106 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
107 |
+
<?php endif; ?>
|
108 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
109 |
+
<br />
|
110 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
111 |
+
<small>
|
112 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
113 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
114 |
+
<?php endforeach; ?>
|
115 |
+
</small>
|
116 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
117 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
118 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
119 |
+
<?php endforeach; ?>
|
120 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
121 |
+
<small>
|
122 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
123 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
124 |
+
<?php endforeach; ?>
|
125 |
+
</small>
|
126 |
+
<?php endif; ?>
|
127 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
128 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
|
129 |
+
<?php endif; ?>
|
130 |
+
<?php endif; ?>
|
131 |
+
<?php endif; ?>
|
132 |
+
|
133 |
+
<?php endif; //Can apply MSRP ?>
|
134 |
+
|
135 |
+
<?php if ($_options = $this->getOptionList()):?>
|
136 |
+
<div class="truncated">
|
137 |
+
<div class="truncated_full_value">
|
138 |
+
<dl class="item-options">
|
139 |
+
<?php foreach ($_options as $_option) : ?>
|
140 |
+
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
|
141 |
+
<dd>
|
142 |
+
<?php if (is_array($_option['value'])): ?>
|
143 |
+
<?php echo nl2br(implode("\n", $_option['value'])) ?>
|
144 |
+
<?php else: ?>
|
145 |
+
<?php echo $_option['value'] ?>
|
146 |
+
<?php endif; ?>
|
147 |
+
</dd>
|
148 |
+
<?php endforeach; ?>
|
149 |
+
</dl>
|
150 |
+
</div>
|
151 |
+
<a href="#" onclick="return false;" class="details"><?php echo $this->__('Details') ?></a>
|
152 |
+
</div>
|
153 |
+
<?php endif; ?>
|
154 |
+
</div>
|
155 |
+
</li>
|
app/design/frontend/default/sm_glasses_free/template/checkout/cart/totals.phtml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Shopping cart totals template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart_Totals
|
32 |
+
* @var $this Mage_Checkout_Block_Cart_Totals
|
33 |
+
*/
|
34 |
+
?>
|
35 |
+
<?php if ($this->canApplyMsrp()): ?>
|
36 |
+
<div class="cart-msrp-totals"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></div>
|
37 |
+
<?php else: ?>
|
38 |
+
<table id="shopping-cart-totals-table">
|
39 |
+
<col />
|
40 |
+
<col width="1" />
|
41 |
+
<tfoot>
|
42 |
+
<?php echo $this->renderTotals('footer'); ?>
|
43 |
+
</tfoot>
|
44 |
+
<tbody>
|
45 |
+
<?php echo $this->renderTotals(); ?>
|
46 |
+
</tbody>
|
47 |
+
</table>
|
48 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/address/select.phtml
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="multiple-checkout">
|
28 |
+
<div class="page-title title-buttons">
|
29 |
+
<h1><?php echo $this->__('Change Billing Address') ?></h1>
|
30 |
+
<button type="button" title="<?php echo $this->__('Add New Address') ?>" class="button" onclick="setLocation('<?php echo $this->getAddNewUrl() ?>')"><span><span><?php echo $this->__('Add New Address') ?></span></span></button>
|
31 |
+
</div>
|
32 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
33 |
+
<?php $_index=0 ?>
|
34 |
+
<?php foreach ($this->getAddressCollection() as $_address): ?>
|
35 |
+
<?php if($_index%3==0): ?><div class="col3-set"><?php endif; ?>
|
36 |
+
<div class="col-<?php echo ($_index%3+1) ?>">
|
37 |
+
<p class="actions">
|
38 |
+
<a href="<?php echo $this->getEditAddressUrl($_address) ?>"><?php echo $this->__('Edit Address') ?></a> <span class="separator">|</span>
|
39 |
+
<a href="<?php echo $this->getSetAddressUrl($_address) ?>"><strong><?php echo $this->__('Select Address') ?></strong></a>
|
40 |
+
</p>
|
41 |
+
<address>
|
42 |
+
<?php echo $_address->format('html') ?>
|
43 |
+
</address>
|
44 |
+
<?php if($this->isAddressDefaultBilling($_address)): ?>
|
45 |
+
<strong><?php echo $this->__('Default Billing') ?></strong>
|
46 |
+
<?php endif; ?>
|
47 |
+
<?php if($this->isAddressDefaultShipping($_address)): ?>
|
48 |
+
<br /><strong><?php echo $this->__('Default Shipping') ?></strong>
|
49 |
+
<?php endif; ?>
|
50 |
+
</div>
|
51 |
+
<?php $_index++ ?>
|
52 |
+
<?php if($_index && $_index%3==0): ?></div><?php endif; ?>
|
53 |
+
<?php endforeach; ?>
|
54 |
+
<?php if(!$_index || $_index%3!=0): ?></div><?php endif; ?>
|
55 |
+
<div class="buttons-set">
|
56 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Billing Information') ?></a></p>
|
57 |
+
</div>
|
58 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/addresses.phtml
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Ship to multiple address template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Multishipping_Addresses
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
35 |
+
<form id="checkout_multishipping_form" action="<?php echo $this->getPostActionUrl() ?>" method="post">
|
36 |
+
<div class="multiple-checkout">
|
37 |
+
<div class="page-title title-buttons">
|
38 |
+
<h1><?php echo $this->__('Ship to Multiple Addresses') ?></h1>
|
39 |
+
<button type="button" title="<?php echo $this->__('Enter a New Address') ?>" class="button" onclick="$('add_new_address_flag').value=1; $('checkout_multishipping_form').submit();"><span><span><?php echo $this->__('Enter a New Address') ?></span></span></button>
|
40 |
+
</div>
|
41 |
+
<input type="hidden" name="continue" value="0" id="can_continue_flag" />
|
42 |
+
<input type="hidden" name="new_address" value="0" id="add_new_address_flag" />
|
43 |
+
<h2><?php echo $this->__('Please select shipping address for applicable items') ?></h2>
|
44 |
+
<table class="data-table" id="multiship-addresses-table">
|
45 |
+
<col />
|
46 |
+
<col width="1" />
|
47 |
+
<col width="1" />
|
48 |
+
<col width="1" />
|
49 |
+
<thead>
|
50 |
+
<tr>
|
51 |
+
<th><?php echo $this->__('Product') ?></th>
|
52 |
+
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
53 |
+
<th><?php echo $this->__('Send To') ?></th>
|
54 |
+
<th> </th>
|
55 |
+
</tr>
|
56 |
+
</thead>
|
57 |
+
<tfoot>
|
58 |
+
<tr>
|
59 |
+
<td colspan="100" class="a-right"><button type="submit" title="<?php echo $this->__('Update Qty & Addresses') ?>" class="button" onclick="$('can_continue_flag').value=0"><span><span><?php echo $this->__('Update Qty & Addresses') ?></span></span></button></td>
|
60 |
+
</tr>
|
61 |
+
</tfoot>
|
62 |
+
<tbody>
|
63 |
+
<?php foreach ($this->getItems() as $_index => $_item): ?>
|
64 |
+
<?php if ($_item->getQuoteItem()) :?>
|
65 |
+
<tr>
|
66 |
+
<td><?php echo $this->getItemHtml($_item->getQuoteItem())?></td>
|
67 |
+
<td><input type="text" name="ship[<?php echo $_index ?>][<?php echo $_item->getQuoteItemId() ?>][qty]" value="<?php echo $this->htmlEscape($_item->getQty()) ?>" size="2" class="input-text qty" /></td>
|
68 |
+
<td><?php if ($_item->getProduct()->getIsVirtual()): echo $this->__('Shipping selection is not applicable.'); else: echo $this->getAddressesHtmlSelect($_item, $_index); endif; ?></td>
|
69 |
+
<td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo $this->__('Remove Item') ?>" class="btn-remove2"><?php echo $this->__('Remove Item') ?></a></td>
|
70 |
+
</tr>
|
71 |
+
<?php endif; ?>
|
72 |
+
<?php endforeach; ?>
|
73 |
+
</tbody>
|
74 |
+
</table>
|
75 |
+
<script type="text/javascript">decorateTable('multiship-addresses-table')</script>
|
76 |
+
<div class="buttons-set">
|
77 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Shopping Cart') ?></a></p>
|
78 |
+
<button type="submit" title="<?php echo $this->__('Continue to Shipping Information') ?>" class="button<?php if ($this->isContinueDisabled()):?> disabled<?php endif; ?>" onclick="$('can_continue_flag').value=1"<?php if ($this->isContinueDisabled()):?> disabled="disabled"<?php endif; ?>><span><span><?php echo $this->__('Continue to Shipping Information') ?></span></span></button>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
</form>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/agreements.phtml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Checkout_Block_Agreements
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
|
33 |
+
<?php if (!$this->getAgreements()) return; ?>
|
34 |
+
<ol id="checkout-agreements" class="checkout-agreements">
|
35 |
+
<?php foreach ($this->getAgreements() as $_a): ?>
|
36 |
+
<li>
|
37 |
+
<div class="agreement-content"<?php echo ($_a->getContentHeight() ? ' style="height:' . $_a->getContentHeight() . '"' : '')?>>
|
38 |
+
<?php if ($_a->getIsHtml()):?>
|
39 |
+
<?php echo $_a->getContent() ?>
|
40 |
+
<?php else:?>
|
41 |
+
<?php echo nl2br($this->htmlEscape($_a->getContent())) ?>
|
42 |
+
<?php endif; ?>
|
43 |
+
</div>
|
44 |
+
<p class="agree">
|
45 |
+
<input type="checkbox" id="agreement-<?php echo $_a->getId()?>" name="agreement[<?php echo $_a->getId()?>]" value="1" title="<?php echo $this->htmlEscape($_a->getCheckboxText()) ?>" class="checkbox" /><label for="agreement-<?php echo $_a->getId()?>"><?php echo $_a->getIsHtml() ? $_a->getCheckboxText() : $this->htmlEscape($_a->getCheckboxText()) ?></label>
|
46 |
+
</p>
|
47 |
+
</li>
|
48 |
+
<?php endforeach ?>
|
49 |
+
</ol>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/billing.phtml
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Multishipping checkout billing information
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Multishipping_Billing
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<div class="multiple-checkout">
|
35 |
+
<div class="page-title">
|
36 |
+
<h1><?php echo $this->__('Billing Information') ?></h1>
|
37 |
+
</div>
|
38 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
39 |
+
<script src="<?php echo Mage::getBaseUrl('js') ?>varien/payment.js" type="text/javascript"></script>
|
40 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="multishipping-billing-form">
|
41 |
+
<div class="col2-set">
|
42 |
+
<div class="col-1 col-narrow">
|
43 |
+
<div class="box">
|
44 |
+
<div class="box-title">
|
45 |
+
<h2><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getSelectAddressUrl() ?>"><?php echo $this->__('Change') ?></a></h2>
|
46 |
+
</div>
|
47 |
+
<div class="box-content">
|
48 |
+
<?php $_address=$this->getAddress() ?>
|
49 |
+
<address><?php echo $_address->format('html') ?></address>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
<div class="col-2 col-wide">
|
54 |
+
<div class="box">
|
55 |
+
<div class="box-title">
|
56 |
+
<h2><?php echo $this->__('Payment Method') ?></h2>
|
57 |
+
</div>
|
58 |
+
<div class="box-content">
|
59 |
+
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
|
60 |
+
<div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a></div>
|
61 |
+
<div class="tool-tip-content"><img src="<?php echo $this->getSkinUrl('images/cvv.gif') ?>" alt="<?php echo $this->__('Card Verification Number Visual Reference') ?>" title="<?php echo $this->__('Card Verification Number Visual Reference') ?>" /></div>
|
62 |
+
</div>
|
63 |
+
<!-- Payment methods forms list -->
|
64 |
+
<dl class="sp-methods">
|
65 |
+
<?php
|
66 |
+
$_methods = $this->getMethods();
|
67 |
+
$_methodsCount = count($_methods);
|
68 |
+
?>
|
69 |
+
<?php foreach ($_methods as $_method): $_code = $_method->getCode() ?>
|
70 |
+
<dt>
|
71 |
+
<?php if ($_methodsCount > 1): ?>
|
72 |
+
<input type="radio" id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
|
73 |
+
<?php else :?>
|
74 |
+
<span class="no-display"><input type="radio" id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" name="payment[method]" checked="checked" class="radio" /></span>
|
75 |
+
<?php endif;?>
|
76 |
+
<label for="p_method_<?php echo $_code ?>"><?php echo $_method->getTitle() ?></label>
|
77 |
+
</dt>
|
78 |
+
<?php if($html = $this->getChildHtml('payment.method.'.$_code)) : ?>
|
79 |
+
<dd>
|
80 |
+
<?php echo $html; ?>
|
81 |
+
</dd>
|
82 |
+
<?php endif; ?>
|
83 |
+
<?php endforeach; ?>
|
84 |
+
</dl>
|
85 |
+
<?php echo $this->getChildHtml('checkout_billing_items') ?>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="buttons-set">
|
91 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Shipping Information') ?></a></p>
|
92 |
+
<button type="submit" title="<?php echo $this->__('Continue to Review Your Order') ?>" class="button"><span><span><?php echo $this->__('Continue to Review Your Order') ?></span></span></button>
|
93 |
+
</div>
|
94 |
+
</form>
|
95 |
+
<script type="text/javascript">
|
96 |
+
//<![CDATA[
|
97 |
+
var payment = new paymentForm('multishipping-billing-form');
|
98 |
+
function toggleToolTip(event){
|
99 |
+
if($('payment-tool-tip')){
|
100 |
+
/*$('payment-tool-tip').setStyle({
|
101 |
+
top: (Event.pointerY(event)-510)+'px',
|
102 |
+
left: (Event.pointerX(event)-800)+'px'
|
103 |
+
})*/
|
104 |
+
$('payment-tool-tip').toggle();
|
105 |
+
}
|
106 |
+
Event.stop(event);
|
107 |
+
}
|
108 |
+
if($('payment-tool-tip-close')){
|
109 |
+
Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
|
110 |
+
}
|
111 |
+
$$('.cvv-what-is-this').each(function(element){
|
112 |
+
Event.observe(element, 'click', toggleToolTip);
|
113 |
+
});
|
114 |
+
//]]>
|
115 |
+
</script>
|
116 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/billing/items.phtml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($this->getQuote()->hasVirtualItems()): ?>
|
28 |
+
<div class="col2-set">
|
29 |
+
<h2 class="legend"><?php echo $this->__('Other Items in Your Order') ?></h2>
|
30 |
+
<div class="col-1 col-narrow"></div>
|
31 |
+
<div class="col-2 col-wide">
|
32 |
+
<h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h3>
|
33 |
+
<table class="data-table" id="unavailable-shipping-table">
|
34 |
+
<col />
|
35 |
+
<col width="1" />
|
36 |
+
<thead>
|
37 |
+
<tr>
|
38 |
+
<th><?php echo $this->__('Product Name') ?></th>
|
39 |
+
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
40 |
+
</tr>
|
41 |
+
</thead>
|
42 |
+
<tbody>
|
43 |
+
<?php foreach ($this->getVirtualQuoteItems() as $_item): ?>
|
44 |
+
<tr>
|
45 |
+
<td><?php echo $this->getItemHtml($_item) ?></td>
|
46 |
+
<td class="a-center"><?php echo $_item->getQty() ?></td>
|
47 |
+
</tr>
|
48 |
+
<?php endforeach; ?>
|
49 |
+
</tbody>
|
50 |
+
</table>
|
51 |
+
<script type="text/javascript">decorateTable('unavailable-shipping-table')</script>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/item/default.phtml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<h3 class="product-name"><a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a></h3>
|
28 |
+
<?php if ($_options = $this->getOptionList()):?>
|
29 |
+
<dl class="item-options">
|
30 |
+
<?php foreach ($_options as $_option) : ?>
|
31 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
32 |
+
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
|
33 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
34 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
35 |
+
<div class="truncated_full_value">
|
36 |
+
<dl class="item-options">
|
37 |
+
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
|
38 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
39 |
+
</dl>
|
40 |
+
</div>
|
41 |
+
<?php endif; ?>
|
42 |
+
</dd>
|
43 |
+
<?php endforeach; ?>
|
44 |
+
</dl>
|
45 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/link.phtml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<a href="<?php echo $this->getCheckoutUrl()?>" title="<?php echo Mage::helper('checkout')->__('Checkout with Multiple Addresses');?>"><?php echo Mage::helper('checkout')->__('Checkout with Multiple Addresses');?></a>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/overview.phtml
ADDED
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /** @var $this Mage_Checkout_Block_Multishipping_Overview */ ?>
|
28 |
+
<div class="multiple-checkout">
|
29 |
+
<div class="page-title">
|
30 |
+
<h1><?php echo $this->__('Review Order') ?></h1>
|
31 |
+
</div>
|
32 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
33 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" onsubmit="return showLoader();">
|
34 |
+
<div class="col2-set">
|
35 |
+
<h2 class="legend"><?php echo $this->__('Billing Information') ?></h2>
|
36 |
+
<div class="col-1">
|
37 |
+
<div class="box">
|
38 |
+
<?php $_address=$this->getBillingAddress() ?>
|
39 |
+
<div class="box-title">
|
40 |
+
<h3><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h3>
|
41 |
+
</div>
|
42 |
+
<div class="box-content">
|
43 |
+
<address>
|
44 |
+
<?php echo $_address->format('html') ?>
|
45 |
+
</address>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<div class="col-2">
|
50 |
+
<div class="box">
|
51 |
+
<div class="box-title">
|
52 |
+
<h3><?php echo $this->__('Payment Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingUrl() ?>"><?php echo $this->__('Change') ?></a></h3>
|
53 |
+
</div>
|
54 |
+
<div class="box-content">
|
55 |
+
<input type="hidden" name="payment[cc_number]" value="<?php echo $this->escapeHtml($this->getPayment()->getCcNumber())?>" />
|
56 |
+
<input type="hidden" name="payment[cc_cid]" value="<?php echo $this->escapeHtml($this->getPayment()->getCcCid())?>" />
|
57 |
+
<?php echo $this->getPaymentHtml() ?>
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
|
63 |
+
<div class="col2-set">
|
64 |
+
<h2 class="legend"><?php echo $this->__('Shipping Information') ?></h2>
|
65 |
+
<?php foreach ($this->getShippingAddresses() as $_index => $_address): ?>
|
66 |
+
<h3 class="legend"><?php echo $this->__('Address %s of %s', ($_index+1), $this->getShippingAddressCount()) ?></h3>
|
67 |
+
<div class="col-1 col-narrow">
|
68 |
+
<div class="box">
|
69 |
+
<div class="box-title">
|
70 |
+
<h4><?php echo $this->__('Shipping To') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h4>
|
71 |
+
</div>
|
72 |
+
<div class="box-content">
|
73 |
+
<address>
|
74 |
+
<?php echo $_address->format('html') ?>
|
75 |
+
</address>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
<div class="box">
|
79 |
+
<div class="box-title">
|
80 |
+
<h4><?php echo $this->__('Shipping Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingUrl() ?>"><?php echo $this->__('Change') ?></a></h4>
|
81 |
+
</div>
|
82 |
+
<div class="box-content">
|
83 |
+
<?php if($_rate=$this->getShippingAddressRate($_address)): ?>
|
84 |
+
<p>
|
85 |
+
<?php echo $this->escapeHtml($_rate->getCarrierTitle()) ?> - <?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
|
86 |
+
<?php $_excl = $this->getShippingPriceExclTax($_address); ?>
|
87 |
+
<?php $_incl = $this->getShippingPriceInclTax($_address); ?>
|
88 |
+
<?php echo $_excl; ?>
|
89 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
90 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
91 |
+
<?php endif; ?>
|
92 |
+
</p>
|
93 |
+
<?php endif; ?>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
<div class="col-2 col-wide">
|
98 |
+
<h4><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressesEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h4>
|
99 |
+
<table class="data-table" id="overview-table-<?php echo $_address->getId() ?>">
|
100 |
+
<col />
|
101 |
+
<col width="1" />
|
102 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
103 |
+
<col width="1" />
|
104 |
+
<?php endif; ?>
|
105 |
+
<col width="1" />
|
106 |
+
<col width="1" />
|
107 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
108 |
+
<col width="1" />
|
109 |
+
<?php endif; ?>
|
110 |
+
<thead>
|
111 |
+
<tr>
|
112 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
|
113 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
|
114 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
|
115 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
|
116 |
+
</tr>
|
117 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
118 |
+
<tr>
|
119 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
120 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
121 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
122 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
123 |
+
</tr>
|
124 |
+
<?php endif; ?>
|
125 |
+
</thead>
|
126 |
+
<tfoot>
|
127 |
+
<?php echo $this->renderTotals($this->getShippingAddressTotals($_address)); ?>
|
128 |
+
</tfoot>
|
129 |
+
<tbody>
|
130 |
+
<?php foreach ($this->getShippingAddressItems($_address) as $_item): ?>
|
131 |
+
<?php echo $this->getRowItemHtml($_item); ?>
|
132 |
+
<?php endforeach; ?>
|
133 |
+
</tbody>
|
134 |
+
</table>
|
135 |
+
<script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
|
136 |
+
</div>
|
137 |
+
<?php if($this->getShippingAddressCount()!=$_index+1): ?>
|
138 |
+
<div class="divider"></div>
|
139 |
+
<?php endif; ?>
|
140 |
+
<?php endforeach; ?>
|
141 |
+
</div>
|
142 |
+
<?php if ($this->getQuote()->hasVirtualItems()): ?>
|
143 |
+
<div class="col2-set">
|
144 |
+
<h2 class="legend"><?php echo $this->__('Other Items in Your Order') ?></h2>
|
145 |
+
<div class="col-1 col-narrow"></div>
|
146 |
+
<div class="col-2 col-wide">
|
147 |
+
<h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h3>
|
148 |
+
<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
|
149 |
+
<table class="data-table" id="virtual-overview-table">
|
150 |
+
<col />
|
151 |
+
<col width="1" />
|
152 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
153 |
+
<col width="1" />
|
154 |
+
<?php endif; ?>
|
155 |
+
<col width="1" />
|
156 |
+
<col width="1" />
|
157 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
158 |
+
<col width="70" />
|
159 |
+
<?php endif; ?>
|
160 |
+
<thead>
|
161 |
+
<tr>
|
162 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
|
163 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
|
164 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
|
165 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
|
166 |
+
</tr>
|
167 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
168 |
+
<tr>
|
169 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
170 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
171 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
172 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
173 |
+
</tr>
|
174 |
+
<?php endif; ?>
|
175 |
+
</thead>
|
176 |
+
<tfoot>
|
177 |
+
<?php echo $this->renderTotals($this->getBillinAddressTotals()); ?>
|
178 |
+
</tfoot>
|
179 |
+
<tbody>
|
180 |
+
<?php foreach ($this->getVirtualItems() as $_item): ?>
|
181 |
+
<?php echo $this->getRowItemHtml($_item); ?>
|
182 |
+
<?php endforeach; ?>
|
183 |
+
</tbody>
|
184 |
+
</table>
|
185 |
+
<script type="text/javascript">decorateTable('virtual-overview-table')</script>
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
<?php endif; ?>
|
189 |
+
|
190 |
+
<?php echo $this->getChildHtml('items_after'); ?>
|
191 |
+
|
192 |
+
<div id="checkout-review-submit">
|
193 |
+
<?php echo $this->getChildHtml('agreements') ?>
|
194 |
+
<div class="place-order">
|
195 |
+
<div class="grand-total">
|
196 |
+
<div class="inner">
|
197 |
+
<big><?php echo $this->__('Grand Total:') ?> <?php echo $this->helper('checkout')->formatPrice($this->getTotal()) ?></big>
|
198 |
+
<div id="review-buttons-container">
|
199 |
+
<button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" id="review-button"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
<span class="please-wait" id="review-please-wait" style="display:none;">
|
204 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
|
205 |
+
</span>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
<div class="buttons-set">
|
209 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Billing Information') ?></a></p>
|
210 |
+
</div>
|
211 |
+
</form>
|
212 |
+
<script type="text/javascript">
|
213 |
+
//<![CDATA[
|
214 |
+
var submitted = false;
|
215 |
+
|
216 |
+
function showLoader()
|
217 |
+
{
|
218 |
+
if (submitted) {
|
219 |
+
return false;
|
220 |
+
}
|
221 |
+
if ($('checkout-agreements')) {
|
222 |
+
var checkboxes = $$('#checkout-agreements input');
|
223 |
+
for (var i=0, l=checkboxes.length; i<l; i++) {
|
224 |
+
if (!checkboxes[i].checked) {
|
225 |
+
alert("<?php echo $this->__('Please agree to all Terms and Conditions before placing the orders.')?>");
|
226 |
+
return false;
|
227 |
+
}
|
228 |
+
}
|
229 |
+
}
|
230 |
+
|
231 |
+
submitted = true;
|
232 |
+
var step='review';
|
233 |
+
Element.show(step+'-please-wait');
|
234 |
+
$(step+'-buttons-container').setStyle({opacity:.5});
|
235 |
+
$(step+'-buttons-container').descendants().each(function(s) {
|
236 |
+
s.disabled = true;
|
237 |
+
});
|
238 |
+
return true;
|
239 |
+
}
|
240 |
+
//]]>
|
241 |
+
</script>
|
242 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/overview/item.phtml
ADDED
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Quote Item row html
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart_Item_Renderer
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php $_item = $this->getItem() ?>
|
35 |
+
<tr>
|
36 |
+
<td><?php echo $this->getRenderedBlock()->getItemHtml($_item) ?></td>
|
37 |
+
|
38 |
+
<!--- Excluding Tax -->
|
39 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
40 |
+
<td class="a-right">
|
41 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
42 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
43 |
+
<?php else: ?>
|
44 |
+
<div class="cart-price">
|
45 |
+
<?php endif; ?>
|
46 |
+
|
47 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
48 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
49 |
+
<?php else: ?>
|
50 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
51 |
+
<?php endif; ?>
|
52 |
+
|
53 |
+
</div>
|
54 |
+
|
55 |
+
|
56 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
57 |
+
|
58 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
59 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
60 |
+
<small>
|
61 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
62 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
63 |
+
<?php endforeach; ?>
|
64 |
+
</small>
|
65 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
66 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
67 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
68 |
+
<?php endforeach; ?>
|
69 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
70 |
+
<small>
|
71 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
72 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
73 |
+
<?php endforeach; ?>
|
74 |
+
</small>
|
75 |
+
<?php endif; ?>
|
76 |
+
</div>
|
77 |
+
|
78 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
79 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
80 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
81 |
+
</div>
|
82 |
+
<?php endif; ?>
|
83 |
+
<?php endif; ?>
|
84 |
+
</td>
|
85 |
+
<?php endif; ?>
|
86 |
+
<!--- // Excluding Tax -->
|
87 |
+
|
88 |
+
<!--- Including Tax -->
|
89 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
90 |
+
<td>
|
91 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
92 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
93 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
94 |
+
<?php else: ?>
|
95 |
+
<div class="cart-price">
|
96 |
+
<?php endif; ?>
|
97 |
+
|
98 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
99 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
|
100 |
+
<?php else: ?>
|
101 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
102 |
+
<?php endif; ?>
|
103 |
+
|
104 |
+
</div>
|
105 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
106 |
+
|
107 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
108 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
109 |
+
<small>
|
110 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
111 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
112 |
+
<?php endforeach; ?>
|
113 |
+
</small>
|
114 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
115 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
116 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
117 |
+
<?php endforeach; ?>
|
118 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
119 |
+
<small>
|
120 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
121 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
122 |
+
<?php endforeach; ?>
|
123 |
+
</small>
|
124 |
+
<?php endif; ?>
|
125 |
+
</div>
|
126 |
+
|
127 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
128 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
129 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
|
130 |
+
</div>
|
131 |
+
<?php endif; ?>
|
132 |
+
<?php endif; ?>
|
133 |
+
|
134 |
+
</td>
|
135 |
+
<?php endif; ?>
|
136 |
+
<!--- // Including Tax -->
|
137 |
+
|
138 |
+
<td class="a-center"><?php echo $_item->getQty()*1 ?></td>
|
139 |
+
|
140 |
+
<!--- Excluding Tax Subtotal -->
|
141 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
142 |
+
<td class="a-right">
|
143 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
144 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
145 |
+
<?php else: ?>
|
146 |
+
<div class="cart-price">
|
147 |
+
<?php endif; ?>
|
148 |
+
|
149 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
150 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
151 |
+
<?php else: ?>
|
152 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
153 |
+
<?php endif; ?>
|
154 |
+
|
155 |
+
</div>
|
156 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
157 |
+
|
158 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
159 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
160 |
+
<small>
|
161 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
162 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
163 |
+
<?php endforeach; ?>
|
164 |
+
</small>
|
165 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
166 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
167 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
168 |
+
<?php endforeach; ?>
|
169 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
170 |
+
<small>
|
171 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
172 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
173 |
+
<?php endforeach; ?>
|
174 |
+
</small>
|
175 |
+
<?php endif; ?>
|
176 |
+
</div>
|
177 |
+
|
178 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
179 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
180 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
181 |
+
</div>
|
182 |
+
<?php endif; ?>
|
183 |
+
<?php endif; ?>
|
184 |
+
</td>
|
185 |
+
<?php endif; ?>
|
186 |
+
<!--- //Excluding Tax Subtotal -->
|
187 |
+
|
188 |
+
<!--- Including Tax Subtotal -->
|
189 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
190 |
+
<td>
|
191 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
192 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
193 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
194 |
+
<?php else: ?>
|
195 |
+
<div class="cart-price">
|
196 |
+
<?php endif; ?>
|
197 |
+
|
198 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
199 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
|
200 |
+
<?php else: ?>
|
201 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
202 |
+
<?php endif; ?>
|
203 |
+
|
204 |
+
</div>
|
205 |
+
|
206 |
+
|
207 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
208 |
+
|
209 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
210 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
211 |
+
<small>
|
212 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
213 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
214 |
+
<?php endforeach; ?>
|
215 |
+
</small>
|
216 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
217 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
218 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
219 |
+
<?php endforeach; ?>
|
220 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
221 |
+
<small>
|
222 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
223 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
224 |
+
<?php endforeach; ?>
|
225 |
+
</small>
|
226 |
+
<?php endif; ?>
|
227 |
+
</div>
|
228 |
+
|
229 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
230 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
231 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
|
232 |
+
</div>
|
233 |
+
<?php endif; ?>
|
234 |
+
<?php endif; ?>
|
235 |
+
</td>
|
236 |
+
<?php endif; ?>
|
237 |
+
<!--- //Including Tax Subtotal -->
|
238 |
+
</tr>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/shipping.phtml
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Multishipping checkout shipping template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Multishipping_Shipping
|
32 |
+
* @var $this Mage_Checkout_Block_Multishipping_Shipping
|
33 |
+
*/
|
34 |
+
?>
|
35 |
+
<div class="multiple-checkout">
|
36 |
+
<div class="page-title">
|
37 |
+
<h1><?php echo $this->__('Select Shipping Method') ?></h1>
|
38 |
+
</div>
|
39 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
40 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="shipping_method_form">
|
41 |
+
<?php foreach ($this->getAddresses() as $_index => $_address): ?>
|
42 |
+
<div class="col2-set">
|
43 |
+
<h2 class="legend"><?php echo $this->__('Address %s of %s', ($_index+1), $this->getAddressCount()) ?></h2>
|
44 |
+
<div class="col-1 col-narrow">
|
45 |
+
<div class="box">
|
46 |
+
<div class="box-title">
|
47 |
+
<h3><?php echo $this->__('Shipping To') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressEditUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h3>
|
48 |
+
</div>
|
49 |
+
<div class="box-content">
|
50 |
+
<address><?php echo $_address->format('html') ?></address>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
<div class="box box-sp-methods">
|
54 |
+
<div class="pointer"></div>
|
55 |
+
<div class="box-title">
|
56 |
+
<h3><?php echo $this->__('Shipping Method') ?></h3>
|
57 |
+
</div>
|
58 |
+
<div class="box-content">
|
59 |
+
<?php if (!($_shippingRateGroups = $this->getShippingRates($_address))): ?>
|
60 |
+
<p><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></p>
|
61 |
+
<?php else: ?>
|
62 |
+
<dl class="sp-methods">
|
63 |
+
<?php $_sole = count($_shippingRateGroups) == 1; foreach ($_shippingRateGroups as $code => $_rates): ?>
|
64 |
+
<dt><?php echo $this->escapeHtml($this->getCarrierName($code)) ?></dt>
|
65 |
+
<dd>
|
66 |
+
<ul>
|
67 |
+
<?php $_sole = $_sole && count($_rates) == 1; foreach ($_rates as $_rate): ?>
|
68 |
+
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"' ?>>
|
69 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
70 |
+
<?php echo $this->escapeHtml($_rate->getCarrierTitle()) ?>: <?php echo $this->escapeHtml($_rate->getErrorMessage()) ?>
|
71 |
+
<?php else: ?>
|
72 |
+
<?php if ($_sole) : ?>
|
73 |
+
<span class="no-display"><input type="radio" name="shipping_method[<?php echo $_address->getId() ?>]" value="<?php echo $this->htmlEscape($_rate->getCode()) ?>" id="s_method_<?php echo $_address->getId() ?>_<?php echo $_rate->getCode() ?>" checked="checked"/></span>
|
74 |
+
<?php else: ?>
|
75 |
+
<input type="radio" name="shipping_method[<?php echo $_address->getId() ?>]" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_address->getId() ?>_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod($_address)) echo ' checked="checked"' ?> class="radio" />
|
76 |
+
<?php endif; ?>
|
77 |
+
<label for="s_method_<?php echo $_address->getId() ?>_<?php echo $_rate->getCode() ?>"><?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
|
78 |
+
<?php $_excl = $this->getShippingPrice($_address, $_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
79 |
+
<?php $_incl = $this->getShippingPrice($_address, $_rate->getPrice(), true); ?>
|
80 |
+
<?php echo $_excl; ?>
|
81 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
82 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
83 |
+
<?php endif; ?>
|
84 |
+
</label>
|
85 |
+
<?php endif ?>
|
86 |
+
</li>
|
87 |
+
<?php endforeach; ?>
|
88 |
+
</ul>
|
89 |
+
</dd>
|
90 |
+
<?php endforeach; ?>
|
91 |
+
</dl>
|
92 |
+
<?php endif; ?>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
<div class="col-2 col-wide">
|
97 |
+
<?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress_checkbox', $_address); ?>
|
98 |
+
<h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getItemsEditUrl($_address) ?>"><?php echo $this->__('Edit Items') ?></a></h3>
|
99 |
+
<table class="data-table" id="shipping-table-<?php echo $_address->getId() ?>">
|
100 |
+
<col />
|
101 |
+
<col width="1" />
|
102 |
+
<thead>
|
103 |
+
<tr>
|
104 |
+
<th><?php echo $this->__('Product Name') ?></th>
|
105 |
+
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
106 |
+
</tr>
|
107 |
+
</thead>
|
108 |
+
<tbody>
|
109 |
+
<?php foreach ($this->getAddressItems($_address) as $_item): ?>
|
110 |
+
<tr>
|
111 |
+
<td>
|
112 |
+
<?php echo $this->getItemHtml($_item->getQuoteItem()) ?>
|
113 |
+
</td>
|
114 |
+
<td class="a-center"><?php echo $_item->getQty() ?></td>
|
115 |
+
</tr>
|
116 |
+
<?php endforeach; ?>
|
117 |
+
</tbody>
|
118 |
+
</table>
|
119 |
+
<script type="text/javascript">decorateTable('shipping-table-<?php echo $_address->getId() ?>')</script>
|
120 |
+
<?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress', $_address); ?>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
<?php endforeach; ?>
|
124 |
+
<?php echo $this->getChildHtml('checkout_billing_items') ?>
|
125 |
+
<div class="buttons-set">
|
126 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Select Addresses') ?></a></p>
|
127 |
+
<button type="submit" title="<?php echo $this->__('Continue to Billing Information') ?>" class="button"><span><span><?php echo $this->__('Continue to Billing Information') ?></span></span></button>
|
128 |
+
</div>
|
129 |
+
</form>
|
130 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/state.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Mustishipping state
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Multishipping_State
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<ul class="checkout-progress" id="checkout-progress-state">
|
35 |
+
<?php foreach ($this->getSteps() as $_step): ?>
|
36 |
+
<li title="<?php echo $_step->getLabel() ?>"<?php if($_step->getIsActive()): ?> class="active"<?php endif; ?>><span><?php echo $_step->getLabel() ?></span></li>
|
37 |
+
<?php endforeach; ?>
|
38 |
+
</ul>
|
39 |
+
<script type="text/javascript">decorateGeneric($$('#checkout-progress-state li'), ['first','last']);</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/multishipping/success.phtml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="multiple-checkout">
|
28 |
+
<div class="page-title">
|
29 |
+
<h1><?php echo $this->__('Order Success') ?></h1>
|
30 |
+
</div>
|
31 |
+
<h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
|
32 |
+
<p><?php echo $this->__('We are processing your order and you will soon receive an email with details of the order. Once the order has shipped you will receive another email with a link to track its progress.') ?></p>
|
33 |
+
<?php if($_orderIds = $this->getOrderIds()): ?>
|
34 |
+
<p>
|
35 |
+
<?php $flag = false ?>
|
36 |
+
<?php echo $this->__('Your order number is ') ?>
|
37 |
+
<?php foreach ($_orderIds as $orderId=>$incrementId): ?>
|
38 |
+
<?php if ($flag): ?>
|
39 |
+
<?php echo ', ' ?>
|
40 |
+
<?php endif; ?>
|
41 |
+
<?php $flag = true ?>
|
42 |
+
<a href="<?php echo $this->getViewOrderUrl($orderId) ?>"><?php echo $incrementId ?></a>
|
43 |
+
<?php endforeach; ?>
|
44 |
+
</p>
|
45 |
+
<?php endif; ?>
|
46 |
+
<?php echo $this->getChildHtml() ?>
|
47 |
+
<div class="buttons-set">
|
48 |
+
<button type="button" title="<?php echo $this->__('Continue Shopping') ?>" class="button" onclick="setLocation('<?php echo $this->getContinueUrl() ?>')"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
49 |
+
</div>
|
50 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage.phtml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('Checkout') ?></h1>
|
29 |
+
</div>
|
30 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('varien/accordion.js') ?>"></script>
|
31 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/opcheckout.js') ?>"></script>
|
32 |
+
<ol class="opc" id="checkoutSteps">
|
33 |
+
<?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?>
|
34 |
+
<?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?>
|
35 |
+
<li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>">
|
36 |
+
<div class="step-title">
|
37 |
+
<span class="number"><?php echo $i ?></span>
|
38 |
+
<h2><?php echo $_stepInfo['label'] ?></h2>
|
39 |
+
<a href="#"><?php echo $this->__('Edit') ?></a>
|
40 |
+
</div>
|
41 |
+
<div id="checkout-step-<?php echo $_stepId ?>" class="step a-item" style="display:none;">
|
42 |
+
<?php echo $this->getChildHtml($_stepId) ?>
|
43 |
+
</div>
|
44 |
+
</li>
|
45 |
+
<?php endforeach ?>
|
46 |
+
</ol>
|
47 |
+
<script type="text/javascript">
|
48 |
+
//<![CDATA[
|
49 |
+
var accordion = new Accordion('checkoutSteps', '.step-title', true);
|
50 |
+
<?php if($this->getActiveStep()): ?>
|
51 |
+
accordion.openSection('opc-<?php echo $this->getActiveStep() ?>');
|
52 |
+
<?php endif ?>
|
53 |
+
var checkout = new Checkout(accordion,{
|
54 |
+
progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
|
55 |
+
review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
|
56 |
+
saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>',
|
57 |
+
failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
|
58 |
+
);
|
59 |
+
//]]>
|
60 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/agreements.phtml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Checkout_Block_Agreements
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
|
33 |
+
<?php if (!$this->getAgreements()) return; ?>
|
34 |
+
<form action="" id="checkout-agreements" onsubmit="return false;">
|
35 |
+
<ol class="checkout-agreements">
|
36 |
+
<?php foreach ($this->getAgreements() as $_a): ?>
|
37 |
+
<li>
|
38 |
+
<div class="agreement-content"<?php echo ($_a->getContentHeight() ? ' style="height:' . $_a->getContentHeight() . '"' : '')?>>
|
39 |
+
<?php if ($_a->getIsHtml()):?>
|
40 |
+
<?php echo $_a->getContent() ?>
|
41 |
+
<?php else:?>
|
42 |
+
<?php echo nl2br($this->htmlEscape($_a->getContent())) ?>
|
43 |
+
<?php endif; ?>
|
44 |
+
</div>
|
45 |
+
<p class="agree">
|
46 |
+
<input type="checkbox" id="agreement-<?php echo $_a->getId()?>" name="agreement[<?php echo $_a->getId()?>]" value="1" title="<?php echo $this->htmlEscape($_a->getCheckboxText()) ?>" class="checkbox" /><label for="agreement-<?php echo $_a->getId()?>"><?php echo $_a->getIsHtml() ? $_a->getCheckboxText() : $this->htmlEscape($_a->getCheckboxText()) ?></label>
|
47 |
+
</p>
|
48 |
+
</li>
|
49 |
+
<?php endforeach ?>
|
50 |
+
</ol>
|
51 |
+
</form>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/billing.phtml
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form id="co-billing-form" action="">
|
28 |
+
<fieldset>
|
29 |
+
<ul class="form-list">
|
30 |
+
<?php if ($this->customerHasAddresses()): ?>
|
31 |
+
<li class="wide">
|
32 |
+
<label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
|
33 |
+
<div class="input-box">
|
34 |
+
<?php echo $this->getAddressesHtmlSelect('billing') ?>
|
35 |
+
</div>
|
36 |
+
</li>
|
37 |
+
<?php endif; ?>
|
38 |
+
<li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
|
39 |
+
<fieldset>
|
40 |
+
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
41 |
+
<ul>
|
42 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getQuote()->getCustomer())->setForceUseCustomerRequiredAttributes(!$this->isCustomerLoggedIn())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
|
43 |
+
<li class="fields">
|
44 |
+
<div class="field">
|
45 |
+
<label for="billing:company"><?php echo $this->__('Company') ?></label>
|
46 |
+
<div class="input-box">
|
47 |
+
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
51 |
+
<div class="field">
|
52 |
+
<label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
53 |
+
<div class="input-box">
|
54 |
+
<input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->escapeHtml($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
<?php endif; ?>
|
58 |
+
</li>
|
59 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
60 |
+
<li class="wide">
|
61 |
+
<label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
62 |
+
<div class="input-box">
|
63 |
+
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
64 |
+
</div>
|
65 |
+
</li>
|
66 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
67 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
68 |
+
<li class="wide">
|
69 |
+
<div class="input-box">
|
70 |
+
<input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
71 |
+
</div>
|
72 |
+
</li>
|
73 |
+
<?php endfor; ?>
|
74 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
75 |
+
<li class="wide">
|
76 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number') ?></label>
|
77 |
+
<div class="input-box">
|
78 |
+
<input type="text" id="billing:vat_id" name="billing[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo $this->__('VAT Number') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
79 |
+
</div>
|
80 |
+
</li>
|
81 |
+
<?php endif; ?>
|
82 |
+
<li class="fields">
|
83 |
+
<div class="field">
|
84 |
+
<label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
85 |
+
<div class="input-box">
|
86 |
+
<input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="billing:city" />
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
<div class="field">
|
90 |
+
<label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
91 |
+
<div class="input-box">
|
92 |
+
<select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
93 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
94 |
+
</select>
|
95 |
+
<script type="text/javascript">
|
96 |
+
//<![CDATA[
|
97 |
+
$('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
98 |
+
//]]>
|
99 |
+
</script>
|
100 |
+
<input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
</li>
|
104 |
+
<li class="fields">
|
105 |
+
<div class="field">
|
106 |
+
<label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
107 |
+
<div class="input-box">
|
108 |
+
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
<div class="field">
|
112 |
+
<label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
113 |
+
<div class="input-box">
|
114 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
</li>
|
118 |
+
<li class="fields">
|
119 |
+
<div class="field">
|
120 |
+
<label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
121 |
+
<div class="input-box">
|
122 |
+
<input type="text" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
<div class="field">
|
126 |
+
<label for="billing:fax"><?php echo $this->__('Fax') ?></label>
|
127 |
+
<div class="input-box">
|
128 |
+
<input type="text" name="billing[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="billing:fax" />
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
</li>
|
132 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
133 |
+
|
134 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
135 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
136 |
+
<?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
|
137 |
+
<li class="fields">
|
138 |
+
<?php if ($_dob->isEnabled()): ?>
|
139 |
+
<div class="field">
|
140 |
+
<?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
141 |
+
</div>
|
142 |
+
<?php endif; ?>
|
143 |
+
<?php if ($_gender->isEnabled()): ?>
|
144 |
+
<div class="field">
|
145 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
146 |
+
</div>
|
147 |
+
<?php endif ?>
|
148 |
+
</li>
|
149 |
+
<?php endif ?>
|
150 |
+
|
151 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
152 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
153 |
+
<li>
|
154 |
+
<?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
155 |
+
</li>
|
156 |
+
<?php endif ?>
|
157 |
+
|
158 |
+
<li class="fields" id="register-customer-password">
|
159 |
+
<div class="field">
|
160 |
+
<label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
161 |
+
<div class="input-box">
|
162 |
+
<input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
|
163 |
+
</div>
|
164 |
+
</div>
|
165 |
+
<div class="field">
|
166 |
+
<label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
167 |
+
<div class="input-box">
|
168 |
+
<input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
|
169 |
+
</div>
|
170 |
+
</div>
|
171 |
+
</li>
|
172 |
+
<?php endif; ?>
|
173 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
174 |
+
<li class="control">
|
175 |
+
<input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
|
176 |
+
</li>
|
177 |
+
<?php else:?>
|
178 |
+
<li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
|
179 |
+
<?php endif; ?>
|
180 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
181 |
+
</ul>
|
182 |
+
</fieldset>
|
183 |
+
</li>
|
184 |
+
<?php /* Extensions placeholder */ ?>
|
185 |
+
<?php echo $this->getChildHtml('checkout.onepage.billing.extra')?>
|
186 |
+
<?php if ($this->canShip()): ?>
|
187 |
+
<li class="control">
|
188 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to this address') ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
|
189 |
+
<li class="control">
|
190 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to different address') ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
|
191 |
+
</li>
|
192 |
+
<?php endif; ?>
|
193 |
+
</ul>
|
194 |
+
<?php if (!$this->canShip()): ?>
|
195 |
+
<input type="hidden" name="billing[use_for_shipping]" value="1" />
|
196 |
+
<?php endif; ?>
|
197 |
+
<div class="buttons-set" id="billing-buttons-container">
|
198 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
199 |
+
<button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
200 |
+
<span class="please-wait" id="billing-please-wait" style="display:none;">
|
201 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
202 |
+
</span>
|
203 |
+
</div>
|
204 |
+
</fieldset>
|
205 |
+
</form>
|
206 |
+
<script type="text/javascript">
|
207 |
+
//<![CDATA[
|
208 |
+
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
|
209 |
+
var billingForm = new VarienForm('co-billing-form');
|
210 |
+
|
211 |
+
//billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
212 |
+
$('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
|
213 |
+
|
214 |
+
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
|
215 |
+
//]]>
|
216 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/failure.phtml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('An error occurred in the process of payment') ?></h1>
|
29 |
+
</div>
|
30 |
+
<?php if ($this->getRealOrderId()) : ?><p><?php echo $this->__('Order #') . $this->getRealOrderId() ?></p><?php endif ?>
|
31 |
+
<?php if ($error = $this->getErrorMessage()) : ?><p><?php echo $error ?></p><?php endif ?>
|
32 |
+
<p><?php echo $this->__('Click <a href="%s">here</a> to continue shopping.', $this->getContinueShoppingUrl()) ?></p>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/link.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($this->isPossibleOnepageCheckout()):?>
|
28 |
+
<button type="button" title="<?php echo $this->__('Proceed to Checkout') ?>" class="button btn-proceed-checkout btn-checkout<?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';"><span><span><?php echo $this->__('Proceed to Checkout') ?></span></span></button>
|
29 |
+
<?php endif?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/login.phtml
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /* Extensions placeholder */ ?>
|
28 |
+
<?php echo $this->getChildHtml('checkout.onepage.login.extra')?>
|
29 |
+
<div class="col2-set">
|
30 |
+
<?php echo $this->getChildHtml('login_before')?>
|
31 |
+
<div class="col-1">
|
32 |
+
<h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3>
|
33 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
34 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
35 |
+
<?php else: ?>
|
36 |
+
<p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
|
37 |
+
<?php echo $this->__('Register with us for future convenience:') ?></p>
|
38 |
+
<ul>
|
39 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
40 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
41 |
+
</ul>
|
42 |
+
<?php endif; ?>
|
43 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
44 |
+
<ul class="form-list">
|
45 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
46 |
+
<li class="control">
|
47 |
+
<input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
|
48 |
+
</li>
|
49 |
+
<?php endif; ?>
|
50 |
+
<li class="control">
|
51 |
+
<input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label>
|
52 |
+
</li>
|
53 |
+
</ul>
|
54 |
+
<h4><?php echo $this->__('Register and save time!') ?></h4>
|
55 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
56 |
+
<ul class="ul">
|
57 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
58 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
59 |
+
</ul>
|
60 |
+
<?php else: ?>
|
61 |
+
<input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
|
62 |
+
<?php endif; ?>
|
63 |
+
</div>
|
64 |
+
<div class="col-2">
|
65 |
+
<h3><?php echo $this->__('Login') ?></h3>
|
66 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
67 |
+
<form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
|
68 |
+
<fieldset>
|
69 |
+
<h4><?php echo $this->__('Already registered?') ?></h4>
|
70 |
+
<p><?php echo $this->__('Please log in below:') ?></p>
|
71 |
+
<ul class="form-list">
|
72 |
+
<li>
|
73 |
+
<label for="login-email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
74 |
+
<div class="input-box">
|
75 |
+
<input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
|
76 |
+
</div>
|
77 |
+
</li>
|
78 |
+
<li>
|
79 |
+
<label for="login-password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
80 |
+
<div class="input-box">
|
81 |
+
<input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
|
82 |
+
</div>
|
83 |
+
</li>
|
84 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
85 |
+
</ul>
|
86 |
+
</fieldset>
|
87 |
+
</form>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="col2-set">
|
91 |
+
<div class="col-1">
|
92 |
+
<div class="buttons-set">
|
93 |
+
<p class="required"> </p>
|
94 |
+
<button type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? $this->__('Continue') : $this->__('Register')) ?></span></span></button>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
<div class="col-2">
|
98 |
+
<div class="buttons-set">
|
99 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
100 |
+
<a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo $this->__('Forgot your password?') ?></a>
|
101 |
+
<button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo $this->__('Login') ?></span></span></button>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<script type="text/javascript">
|
106 |
+
//<![CDATA[
|
107 |
+
var loginForm = new VarienForm('login-form', true);
|
108 |
+
$('login-email').observe('keypress', bindLoginPost);
|
109 |
+
$('login-password').observe('keypress', bindLoginPost);
|
110 |
+
function bindLoginPost(evt){
|
111 |
+
if (evt.keyCode == Event.KEY_RETURN) {
|
112 |
+
loginForm.submit();
|
113 |
+
}
|
114 |
+
}
|
115 |
+
function onepageLogin(button)
|
116 |
+
{
|
117 |
+
if(loginForm.validator && loginForm.validator.validate()){
|
118 |
+
button.disabled = true;
|
119 |
+
loginForm.submit();
|
120 |
+
}
|
121 |
+
}
|
122 |
+
//]]>
|
123 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/payment.phtml
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<script type="text/javascript">
|
28 |
+
//<![CDATA[
|
29 |
+
var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
|
30 |
+
var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
|
31 |
+
var payment = new Payment('co-payment-form', '<?php echo $this->getUrl('checkout/onepage/savePayment') ?>');
|
32 |
+
var lastPrice;
|
33 |
+
//]]>
|
34 |
+
</script>
|
35 |
+
<form action="" id="co-payment-form">
|
36 |
+
<fieldset>
|
37 |
+
<?php echo $this->getChildHtml('methods') ?>
|
38 |
+
</fieldset>
|
39 |
+
</form>
|
40 |
+
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
|
41 |
+
<div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a></div>
|
42 |
+
<div class="tool-tip-content"><img src="<?php echo $this->getSkinUrl('images/cvv.gif') ?>" alt="<?php echo $this->__('Card Verification Number Visual Reference') ?>" title="<?php echo $this->__('Card Verification Number Visual Reference') ?>" /></div>
|
43 |
+
</div>
|
44 |
+
<div class="buttons-set" id="payment-buttons-container">
|
45 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
46 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
47 |
+
<button type="button" class="button" onclick="payment.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
48 |
+
<span class="please-wait" id="payment-please-wait" style="display:none;">
|
49 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
50 |
+
</span>
|
51 |
+
</div>
|
52 |
+
<script type="text/javascript">
|
53 |
+
//<![CDATA[
|
54 |
+
function toggleToolTip(event){
|
55 |
+
if($('payment-tool-tip')){
|
56 |
+
$('payment-tool-tip').setStyle({
|
57 |
+
top: (Event.pointerY(event)-560)+'px'//,
|
58 |
+
//left: (Event.pointerX(event)+100)+'px'
|
59 |
+
})
|
60 |
+
$('payment-tool-tip').toggle();
|
61 |
+
}
|
62 |
+
Event.stop(event);
|
63 |
+
}
|
64 |
+
if($('payment-tool-tip-close')){
|
65 |
+
Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
|
66 |
+
}
|
67 |
+
//]]>
|
68 |
+
</script>
|
69 |
+
<script type="text/javascript">
|
70 |
+
//<![CDATA[
|
71 |
+
payment.currentMethod = "<?php echo $this->getChild('methods')->getSelectedMethodCode() ?>";
|
72 |
+
//]]>
|
73 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/payment/methods.phtml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* One page checkout payment methods
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Onepage_Payment_Methods
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<dl class="sp-methods" id="checkout-payment-method-load">
|
35 |
+
<?php
|
36 |
+
$methods = $this->getMethods();
|
37 |
+
$oneMethod = count($methods) <= 1;
|
38 |
+
?>
|
39 |
+
<?php
|
40 |
+
foreach ($methods as $_method):
|
41 |
+
$_code = $_method->getCode();
|
42 |
+
?>
|
43 |
+
<dt>
|
44 |
+
<?php if(!$oneMethod): ?>
|
45 |
+
<input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
|
46 |
+
<?php else: ?>
|
47 |
+
<span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio" /></span>
|
48 |
+
<?php $oneMethod = $_code; ?>
|
49 |
+
<?php endif; ?>
|
50 |
+
<label for="p_method_<?php echo $_code ?>"><?php echo $this->escapeHtml($this->getMethodTitle($_method)) ?> <?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
|
51 |
+
</dt>
|
52 |
+
<?php if ($html = $this->getPaymentMethodFormHtml($_method)): ?>
|
53 |
+
<dd>
|
54 |
+
<?php echo $html; ?>
|
55 |
+
</dd>
|
56 |
+
<?php endif; ?>
|
57 |
+
<?php endforeach; ?>
|
58 |
+
</dl>
|
59 |
+
<?php echo $this->getChildChildHtml('additional'); ?>
|
60 |
+
<script type="text/javascript">
|
61 |
+
//<![CDATA[
|
62 |
+
<?php echo $this->getChildChildHtml('scripts'); ?>
|
63 |
+
payment.init();
|
64 |
+
<?php if (is_string($oneMethod)): ?>
|
65 |
+
payment.switchMethod('<?php echo $oneMethod ?>');
|
66 |
+
<?php endif; ?>
|
67 |
+
//]]>
|
68 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/progress.phtml
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Checkout_Block_Onepage_Progress */
|
27 |
+
?>
|
28 |
+
<div class="block block-progress opc-block-progress">
|
29 |
+
<div class="block-title">
|
30 |
+
<strong><?php echo $this->__('Your')?> <span title="<?php echo $this->__('Your Checkout Progress') ?>"><?php echo $this->__('Checkout ...') ?></span></strong>
|
31 |
+
</div>
|
32 |
+
<div class="block-content">
|
33 |
+
<dl>
|
34 |
+
<?php if ($this->getCheckout()->getStepData('billing', 'is_show')): ?>
|
35 |
+
<?php if ($this->isStepComplete('billing')): ?>
|
36 |
+
<dt class="complete">
|
37 |
+
<?php echo $this->__('Billing Address') ?> <span class="separator">|</span>
|
38 |
+
<a href="#billing" onclick="checkout.gotoSection('billing'); return false;"><?php echo $this->__('Change') ?></a>
|
39 |
+
</dt>
|
40 |
+
<dd class="complete">
|
41 |
+
<address><?php echo $this->getBilling()->format('html') ?></address>
|
42 |
+
</dd>
|
43 |
+
<?php else: ?>
|
44 |
+
<dt>
|
45 |
+
<?php echo $this->__('Billing Address') ?>
|
46 |
+
</dt>
|
47 |
+
<?php endif; ?>
|
48 |
+
<?php endif; ?>
|
49 |
+
|
50 |
+
<?php if ($this->getCheckout()->getStepData('shipping', 'is_show')): ?>
|
51 |
+
<?php if ($this->isStepComplete('shipping')): ?>
|
52 |
+
<dt class="complete">
|
53 |
+
<?php echo $this->__('Shipping Address') ?> <span class="separator">|</span>
|
54 |
+
<a href="#payment" onclick="checkout.gotoSection('shipping');return false;"><?php echo $this->__('Change') ?></a>
|
55 |
+
</dt>
|
56 |
+
<dd class="complete">
|
57 |
+
<address><?php echo $this->getShipping()->format('html') ?></address>
|
58 |
+
</dd>
|
59 |
+
<?php else: ?>
|
60 |
+
<dt>
|
61 |
+
<?php echo $this->__('Shipping Address') ?>
|
62 |
+
</dt>
|
63 |
+
<?php endif; ?>
|
64 |
+
<?php endif; ?>
|
65 |
+
|
66 |
+
<?php if ($this->getCheckout()->getStepData('shipping_method', 'is_show')): ?>
|
67 |
+
<?php if ($this->isStepComplete('shipping_method')): ?>
|
68 |
+
<dt class="complete">
|
69 |
+
<?php echo $this->__('Shipping Method') ?> <span class="separator">|</span>
|
70 |
+
<a href="#shipping_method" onclick="checkout.gotoSection('shipping_method'); return false;"><?php echo $this->__('Change') ?></a>
|
71 |
+
</dt>
|
72 |
+
<dd class="complete">
|
73 |
+
<?php if ($this->getShippingMethod()): ?>
|
74 |
+
<?php echo $this->escapeHtml($this->getShippingDescription()) ?>
|
75 |
+
|
76 |
+
<?php $_excl = $this->getShippingPriceExclTax(); ?>
|
77 |
+
<?php $_incl = $this->getShippingPriceInclTax(); ?>
|
78 |
+
<?php if ($this->helper('tax')->displayShippingPriceIncludingTax()): ?>
|
79 |
+
<?php echo $_incl; ?>
|
80 |
+
<?php else: ?>
|
81 |
+
<?php echo $_excl; ?>
|
82 |
+
<?php endif; ?>
|
83 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
84 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
85 |
+
<?php endif; ?>
|
86 |
+
|
87 |
+
<?php else: ?>
|
88 |
+
<?php echo $this->__('Shipping method has not been selected yet') ?>
|
89 |
+
<?php endif; ?>
|
90 |
+
</dd>
|
91 |
+
<?php else: ?>
|
92 |
+
<dt>
|
93 |
+
<?php echo $this->__('Shipping Method') ?>
|
94 |
+
</dt>
|
95 |
+
<?php endif; ?>
|
96 |
+
<?php endif; ?>
|
97 |
+
|
98 |
+
<?php if ($this->getCheckout()->getStepData('payment', 'is_show')): ?>
|
99 |
+
<?php if ($this->isStepComplete('payment')): ?>
|
100 |
+
<dt class="complete">
|
101 |
+
<?php echo $this->__('Payment Method') ?> <span class="separator">|</span>
|
102 |
+
<a href="#payment" onclick="checkout.gotoSection('payment'); return false;"><?php echo $this->__('Change') ?></a>
|
103 |
+
</dt>
|
104 |
+
<dd class="complete">
|
105 |
+
<?php echo $this->getPaymentHtml() ?>
|
106 |
+
</dd>
|
107 |
+
<?php else: ?>
|
108 |
+
<dt>
|
109 |
+
<?php echo $this->__('Payment Method') ?>
|
110 |
+
</dt>
|
111 |
+
<?php endif; ?>
|
112 |
+
<?php endif; ?>
|
113 |
+
</dl>
|
114 |
+
</div>
|
115 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="order-review" id="checkout-review-load">
|
28 |
+
<?php echo $this->getChildHtml('info') ?>
|
29 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/button.phtml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="review.save();"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/info.phtml
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php echo $this->getChildHtml('items_before'); ?>
|
28 |
+
<div id="checkout-review-table-wrapper">
|
29 |
+
<table class="data-table" id="checkout-review-table">
|
30 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
|
31 |
+
<col />
|
32 |
+
<col width="1" />
|
33 |
+
<col width="1" />
|
34 |
+
<col width="1" />
|
35 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
36 |
+
<col width="1" />
|
37 |
+
<col width="1" />
|
38 |
+
<?php endif; ?>
|
39 |
+
<thead>
|
40 |
+
<tr>
|
41 |
+
<th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
|
42 |
+
<th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
|
43 |
+
<th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
|
44 |
+
<th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
|
45 |
+
</tr>
|
46 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
47 |
+
<tr>
|
48 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
49 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
50 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
51 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
52 |
+
</tr>
|
53 |
+
<?php endif; ?>
|
54 |
+
</thead>
|
55 |
+
<?php echo $this->getChildHtml('totals'); ?>
|
56 |
+
<tbody>
|
57 |
+
<?php foreach($this->getItems() as $_item): ?>
|
58 |
+
<?php echo $this->getItemHtml($_item)?>
|
59 |
+
<?php endforeach ?>
|
60 |
+
</tbody>
|
61 |
+
</table>
|
62 |
+
</div>
|
63 |
+
<?php echo $this->getChildHtml('items_after'); ?>
|
64 |
+
<script type="text/javascript">
|
65 |
+
//<![CDATA[
|
66 |
+
decorateTable('checkout-review-table');
|
67 |
+
truncateOptions();
|
68 |
+
//]]>
|
69 |
+
</script>
|
70 |
+
<div id="checkout-review-submit">
|
71 |
+
<?php echo $this->getChildHtml('agreements') ?>
|
72 |
+
<div class="buttons-set" id="review-buttons-container">
|
73 |
+
<p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('Edit Your Cart') ?></a></p>
|
74 |
+
<?php echo $this->getChildHtml('button') ?>
|
75 |
+
<span class="please-wait" id="review-please-wait" style="display:none;">
|
76 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
|
77 |
+
</span>
|
78 |
+
</div>
|
79 |
+
<script type="text/javascript">
|
80 |
+
//<![CDATA[
|
81 |
+
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
|
82 |
+
//]]>
|
83 |
+
</script>
|
84 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/item.phtml
ADDED
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php $_item = $this->getItem()?>
|
28 |
+
<tr>
|
29 |
+
<td><h3 class="product-name"><?php echo $this->htmlEscape($this->getProductName()) ?></h3>
|
30 |
+
<?php if ($_options = $this->getOptionList()):?>
|
31 |
+
<dl class="item-options">
|
32 |
+
<?php foreach ($_options as $_option) : ?>
|
33 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
34 |
+
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
|
35 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
36 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
37 |
+
<div class="truncated_full_value">
|
38 |
+
<dl class="item-options">
|
39 |
+
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
|
40 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
41 |
+
</dl>
|
42 |
+
</div>
|
43 |
+
<?php endif; ?>
|
44 |
+
</dd>
|
45 |
+
<?php endforeach; ?>
|
46 |
+
</dl>
|
47 |
+
<?php endif;?>
|
48 |
+
<?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
|
49 |
+
<?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
|
50 |
+
<?php endif;?>
|
51 |
+
</td>
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<td class="a-right">
|
54 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
55 |
+
<span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
56 |
+
<?php else: ?>
|
57 |
+
<span class="cart-price">
|
58 |
+
<?php endif; ?>
|
59 |
+
|
60 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
61 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
62 |
+
<?php else: ?>
|
63 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
64 |
+
<?php endif; ?>
|
65 |
+
|
66 |
+
</span>
|
67 |
+
|
68 |
+
|
69 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
70 |
+
|
71 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
72 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
73 |
+
<small>
|
74 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
75 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
76 |
+
<?php endforeach; ?>
|
77 |
+
</small>
|
78 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
79 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
80 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
81 |
+
<?php endforeach; ?>
|
82 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
83 |
+
<small>
|
84 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
85 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
86 |
+
<?php endforeach; ?>
|
87 |
+
</small>
|
88 |
+
<?php endif; ?>
|
89 |
+
</div>
|
90 |
+
|
91 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
92 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
93 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
94 |
+
</div>
|
95 |
+
<?php endif; ?>
|
96 |
+
<?php endif; ?>
|
97 |
+
</td>
|
98 |
+
<?php endif; ?>
|
99 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
100 |
+
<td>
|
101 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
102 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
103 |
+
<span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
104 |
+
<?php else: ?>
|
105 |
+
<span class="cart-price">
|
106 |
+
<?php endif; ?>
|
107 |
+
|
108 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
109 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
|
110 |
+
<?php else: ?>
|
111 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
112 |
+
<?php endif; ?>
|
113 |
+
|
114 |
+
</span>
|
115 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
116 |
+
|
117 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
118 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
119 |
+
<small>
|
120 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
121 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
122 |
+
<?php endforeach; ?>
|
123 |
+
</small>
|
124 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
125 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
126 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
127 |
+
<?php endforeach; ?>
|
128 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
129 |
+
<small>
|
130 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
131 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
132 |
+
<?php endforeach; ?>
|
133 |
+
</small>
|
134 |
+
<?php endif; ?>
|
135 |
+
</div>
|
136 |
+
|
137 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
138 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
139 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
|
140 |
+
</div>
|
141 |
+
<?php endif; ?>
|
142 |
+
<?php endif; ?>
|
143 |
+
</td>
|
144 |
+
<?php endif; ?>
|
145 |
+
<td class="a-center"><?php echo $_item->getQty() ?></td>
|
146 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
147 |
+
<td class="a-right">
|
148 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
149 |
+
<span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
150 |
+
<?php else: ?>
|
151 |
+
<span class="cart-price">
|
152 |
+
<?php endif; ?>
|
153 |
+
|
154 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
155 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
156 |
+
<?php else: ?>
|
157 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
158 |
+
<?php endif; ?>
|
159 |
+
|
160 |
+
</span>
|
161 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
162 |
+
|
163 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
164 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
165 |
+
<small>
|
166 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
167 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
168 |
+
<?php endforeach; ?>
|
169 |
+
</small>
|
170 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
171 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
172 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
173 |
+
<?php endforeach; ?>
|
174 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
175 |
+
<small>
|
176 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
177 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
178 |
+
<?php endforeach; ?>
|
179 |
+
</small>
|
180 |
+
<?php endif; ?>
|
181 |
+
</div>
|
182 |
+
|
183 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
184 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
185 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
186 |
+
</div>
|
187 |
+
<?php endif; ?>
|
188 |
+
<?php endif; ?>
|
189 |
+
</td>
|
190 |
+
<?php endif; ?>
|
191 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
192 |
+
<td>
|
193 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
194 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
195 |
+
<span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
196 |
+
<?php else: ?>
|
197 |
+
<span class="cart-price">
|
198 |
+
<?php endif; ?>
|
199 |
+
|
200 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
201 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
|
202 |
+
<?php else: ?>
|
203 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
204 |
+
<?php endif; ?>
|
205 |
+
|
206 |
+
</span>
|
207 |
+
|
208 |
+
|
209 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
210 |
+
|
211 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
212 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
213 |
+
<small>
|
214 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
215 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
216 |
+
<?php endforeach; ?>
|
217 |
+
</small>
|
218 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
219 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
220 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
221 |
+
<?php endforeach; ?>
|
222 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
223 |
+
<small>
|
224 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
225 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
226 |
+
<?php endforeach; ?>
|
227 |
+
</small>
|
228 |
+
<?php endif; ?>
|
229 |
+
</div>
|
230 |
+
|
231 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
232 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
233 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
|
234 |
+
</div>
|
235 |
+
<?php endif; ?>
|
236 |
+
<?php endif; ?>
|
237 |
+
</td>
|
238 |
+
<?php endif; ?>
|
239 |
+
</tr>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/review/totals.phtml
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @see Mage_Checkout_Block_Cart_Totals
|
29 |
+
*/
|
30 |
+
?>
|
31 |
+
<?php if ($this->getTotals()): ?>
|
32 |
+
<tfoot>
|
33 |
+
<?php $_colspan = $this->helper('tax')->displayCartBothPrices() ? 5 : 3; ?>
|
34 |
+
<?php echo $this->renderTotals(null, $_colspan); ?>
|
35 |
+
<?php echo $this->renderTotals('footer', $_colspan); ?>
|
36 |
+
<?php if ($this->needDisplayBaseGrandtotal()):?>
|
37 |
+
<tr>
|
38 |
+
<td class="a-right" colspan="<?php echo $_colspan; ?>">
|
39 |
+
<small><?php echo $this->helper('sales')->__('Your credit card will be charged for') ?></small>
|
40 |
+
</td>
|
41 |
+
<td class="a-right">
|
42 |
+
<small><?php echo $this->displayBaseGrandtotal() ?></small>
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
<?php endif?>
|
46 |
+
</tfoot>
|
47 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping.phtml
ADDED
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form action="" id="co-shipping-form">
|
28 |
+
<ul class="form-list">
|
29 |
+
<?php if ($this->customerHasAddresses()): ?>
|
30 |
+
<li class="wide">
|
31 |
+
<label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
|
32 |
+
<div class="input-box">
|
33 |
+
<?php echo $this->getAddressesHtmlSelect('shipping') ?>
|
34 |
+
</div>
|
35 |
+
</li>
|
36 |
+
<?php endif ?>
|
37 |
+
<li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?>>
|
38 |
+
<fieldset>
|
39 |
+
<input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
|
40 |
+
<ul>
|
41 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
|
42 |
+
<li class="fields">
|
43 |
+
<div class="fields">
|
44 |
+
<label for="shipping:company"><?php echo $this->__('Company') ?></label>
|
45 |
+
<div class="input-box">
|
46 |
+
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" onchange="shipping.setSameAsBilling(false);" />
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</li>
|
50 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
51 |
+
<li class="wide">
|
52 |
+
<label for="shipping:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
53 |
+
<div class="input-box">
|
54 |
+
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
55 |
+
</div>
|
56 |
+
</li>
|
57 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
58 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
59 |
+
<li class="wide">
|
60 |
+
<div class="input-box">
|
61 |
+
<input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
62 |
+
</div>
|
63 |
+
</li>
|
64 |
+
<?php endfor; ?>
|
65 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
66 |
+
<li class="wide">
|
67 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number'); ?></label>
|
68 |
+
<div class="input-box">
|
69 |
+
<input type="text" id="shipping:vat_id" name="shipping[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()); ?>" title="<?php echo $this->__('VAT Number'); ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
70 |
+
</div>
|
71 |
+
</li>
|
72 |
+
<?php endif; ?>
|
73 |
+
<li class="fields">
|
74 |
+
<div class="field">
|
75 |
+
<label for="shipping:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
76 |
+
<div class="input-box">
|
77 |
+
<input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<div class="field">
|
81 |
+
<label for="shipping:region" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
82 |
+
<div class="input-box">
|
83 |
+
<select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
84 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
85 |
+
</select>
|
86 |
+
<script type="text/javascript">
|
87 |
+
//<![CDATA[
|
88 |
+
$('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
89 |
+
//]]>
|
90 |
+
</script>
|
91 |
+
<input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</li>
|
95 |
+
<li class="fields">
|
96 |
+
<div class="field">
|
97 |
+
<label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
98 |
+
<div class="input-box">
|
99 |
+
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" onchange="shipping.setSameAsBilling(false);" />
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
<div class="field">
|
103 |
+
<label for="shipping:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
104 |
+
<div class="input-box">
|
105 |
+
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</li>
|
109 |
+
<li class="fields">
|
110 |
+
<div class="field">
|
111 |
+
<label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
112 |
+
<div class="input-box">
|
113 |
+
<input type="text" name="shipping[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<div class="field">
|
117 |
+
<label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
|
118 |
+
<div class="input-box">
|
119 |
+
<input type="text" name="shipping[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</li>
|
123 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
124 |
+
<li class="control">
|
125 |
+
<input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
|
126 |
+
<?php else:?>
|
127 |
+
<li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
|
128 |
+
<?php endif;?>
|
129 |
+
</ul>
|
130 |
+
</fieldset>
|
131 |
+
</li>
|
132 |
+
<li class="control">
|
133 |
+
<input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /><label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label>
|
134 |
+
</li>
|
135 |
+
</ul>
|
136 |
+
<div class="buttons-set" id="shipping-buttons-container">
|
137 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
138 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
139 |
+
<button type="button" class="button" title="<?php echo $this->__('Continue') ?>" onclick="shipping.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
140 |
+
<span id="shipping-please-wait" class="please-wait" style="display:none;">
|
141 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
142 |
+
</span>
|
143 |
+
</div>
|
144 |
+
</form>
|
145 |
+
<script type="text/javascript">
|
146 |
+
//<![CDATA[
|
147 |
+
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
|
148 |
+
'<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
|
149 |
+
var shippingForm = new VarienForm('co-shipping-form');
|
150 |
+
shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
|
151 |
+
//shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
152 |
+
$('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
|
153 |
+
|
154 |
+
var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'shipping:postcode');
|
155 |
+
//]]>
|
156 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping_method.phtml
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form id="co-shipping-method-form" action="">
|
28 |
+
<div id="checkout-shipping-method-load">
|
29 |
+
<?php echo $this->getChildHtml('available') ?>
|
30 |
+
</div>
|
31 |
+
<script type="text/javascript">
|
32 |
+
//<![CDATA[
|
33 |
+
var shippingMethod = new ShippingMethod('co-shipping-method-form', "<?php echo $this->getUrl('checkout/onepage/saveShippingMethod') ?>");
|
34 |
+
//]]>
|
35 |
+
</script>
|
36 |
+
<div id="onepage-checkout-shipping-method-additional-load">
|
37 |
+
<?php echo $this->getChildHtml('additional') ?>
|
38 |
+
</div>
|
39 |
+
<div class="buttons-set" id="shipping-method-buttons-container">
|
40 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
41 |
+
<button type="button" class="button" onclick="shippingMethod.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
42 |
+
<span id="shipping-method-please-wait" class="please-wait" style="display:none;">
|
43 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
44 |
+
</span>
|
45 |
+
</div>
|
46 |
+
</form>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping_method/additional.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if (!$this->getQuote()->isVirtual()): ?>
|
28 |
+
<?php echo $this->helper('giftmessage/message')->getInline('onepage_checkout', $this->getQuote(), $this->getDontDisplayContainer()) ?>
|
29 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/onepage/shipping_method/available.phtml
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /** @var $this Mage_Checkout_Block_Onepage_Shipping_Method_Available */ ?>
|
28 |
+
<?php $_shippingRateGroups = $this->getShippingRates(); ?>
|
29 |
+
<?php if (!$_shippingRateGroups): ?>
|
30 |
+
<p><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></p>
|
31 |
+
<?php else: ?>
|
32 |
+
<dl class="sp-methods">
|
33 |
+
<?php $shippingCodePrice = array(); ?>
|
34 |
+
<?php $_sole = count($_shippingRateGroups) == 1; foreach ($_shippingRateGroups as $code => $_rates): ?>
|
35 |
+
<dt><?php echo $this->escapeHtml($this->getCarrierName($code)) ?></dt>
|
36 |
+
<dd>
|
37 |
+
<ul>
|
38 |
+
<?php $_sole = $_sole && count($_rates) == 1; foreach ($_rates as $_rate): ?>
|
39 |
+
<?php $shippingCodePrice[] = "'".$_rate->getCode()."':".(float)$_rate->getPrice(); ?>
|
40 |
+
<li>
|
41 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
42 |
+
<ul class="messages"><li class="error-msg"><ul><li><?php echo $this->escapeHtml($_rate->getErrorMessage()) ?></li></ul></li></ul>
|
43 |
+
<?php else: ?>
|
44 |
+
<?php if ($_sole) : ?>
|
45 |
+
<span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
|
46 |
+
<?php else: ?>
|
47 |
+
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio"/>
|
48 |
+
|
49 |
+
<?php if ($_rate->getCode() === $this->getAddressShippingMethod()): ?>
|
50 |
+
<script type="text/javascript">
|
51 |
+
//<![CDATA[
|
52 |
+
lastPrice = <?php echo (float)$_rate->getPrice(); ?>;
|
53 |
+
//]]>
|
54 |
+
</script>
|
55 |
+
<?php endif; ?>
|
56 |
+
|
57 |
+
<?php endif; ?>
|
58 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
|
59 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
60 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
61 |
+
<?php echo $_excl; ?>
|
62 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
63 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
64 |
+
<?php endif; ?>
|
65 |
+
</label>
|
66 |
+
<?php endif ?>
|
67 |
+
</li>
|
68 |
+
<?php endforeach; ?>
|
69 |
+
</ul>
|
70 |
+
</dd>
|
71 |
+
<?php endforeach; ?>
|
72 |
+
</dl>
|
73 |
+
<script type="text/javascript">
|
74 |
+
//<![CDATA[
|
75 |
+
<?php if (!empty($shippingCodePrice)): ?>
|
76 |
+
var shippingCodePrice = {<?php echo implode(',',$shippingCodePrice); ?>};
|
77 |
+
<?php endif; ?>
|
78 |
+
|
79 |
+
$$('input[type="radio"][name="shipping_method"]').each(function(el){
|
80 |
+
Event.observe(el, 'click', function(){
|
81 |
+
if (el.checked == true) {
|
82 |
+
var getShippingCode = el.getValue();
|
83 |
+
<?php if (!empty($shippingCodePrice)): ?>
|
84 |
+
var newPrice = shippingCodePrice[getShippingCode];
|
85 |
+
if (!lastPrice) {
|
86 |
+
lastPrice = newPrice;
|
87 |
+
quoteBaseGrandTotal += newPrice;
|
88 |
+
}
|
89 |
+
if (newPrice != lastPrice) {
|
90 |
+
quoteBaseGrandTotal += (newPrice-lastPrice);
|
91 |
+
lastPrice = newPrice;
|
92 |
+
}
|
93 |
+
<?php endif; ?>
|
94 |
+
checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
|
95 |
+
return false;
|
96 |
+
}
|
97 |
+
});
|
98 |
+
});
|
99 |
+
//]]>
|
100 |
+
</script>
|
101 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/success.phtml
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('Your order has been received.') ?></h1>
|
29 |
+
</div>
|
30 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
31 |
+
<h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
|
32 |
+
|
33 |
+
<?php if ($this->getOrderId()):?>
|
34 |
+
<?php if ($this->getCanViewOrder()) :?>
|
35 |
+
<p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
|
36 |
+
<?php else :?>
|
37 |
+
<p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p>
|
38 |
+
<?php endif;?>
|
39 |
+
<p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
|
40 |
+
<?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?>
|
41 |
+
<p>
|
42 |
+
<?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
|
43 |
+
<?php echo $this->getChildHtml() ?>
|
44 |
+
</p>
|
45 |
+
<?php endif;?>
|
46 |
+
<?php endif;?>
|
47 |
+
|
48 |
+
<?php if ($this->getAgreementRefId()): ?>
|
49 |
+
<p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?></p>
|
50 |
+
<?php endif;?>
|
51 |
+
|
52 |
+
<?php if ($profiles = $this->getRecurringProfiles()):?>
|
53 |
+
<p><?php echo $this->__('Your recurring payment profiles:'); ?></p>
|
54 |
+
<ul class="disc">
|
55 |
+
<?php foreach($profiles as $profile):?>
|
56 |
+
<?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id')));?>
|
57 |
+
<li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description')))?></li>
|
58 |
+
<?php endforeach;?>
|
59 |
+
</ul>
|
60 |
+
<?php endif;?>
|
61 |
+
|
62 |
+
<div class="buttons-set">
|
63 |
+
<button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
64 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/checkout/total/default.phtml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<tr>
|
28 |
+
<th colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
29 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
30 |
+
<?php echo $this->escapeHtml($this->getTotal()->getTitle()); ?>
|
31 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
32 |
+
</th>
|
33 |
+
<td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
34 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
35 |
+
<?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?>
|
36 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
37 |
+
</td>
|
38 |
+
</tr>
|
app/design/frontend/default/sm_glasses_free/template/checkout/total/nominal.phtml
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Checkout_Block_Total_Nominal
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<tr>
|
33 |
+
<th colspan="<?php echo $this->getColspan() + 1; ?>" style="<?php echo $this->getTotalStyle() ?>" class="a-right">
|
34 |
+
<?php echo sprintf(($this->getRenderingArea() == $this->getTotalArea()) ? '<strong>%s</strong>' : '%s', $this->escapeHtml($this->getTotalTitle())) ?>
|
35 |
+
</th>
|
36 |
+
</tr>
|
37 |
+
<?php foreach ($this->getTotalItems() as $i => $item): ?>
|
38 |
+
<?php foreach ($this->getTotalItemDetails($item) as $j => $row):?>
|
39 |
+
<tr class="summary-details <?php echo "summary-details-nominal-{$i}" . (0 == $j ? ' summary-details-first' : '') . ($this->getItemDetailsRowIsCompounded($row) ? '' : ' summary-details-excluded')?>" style="display:none;">
|
40 |
+
<td colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotalStyle() ?>" class="a-right">
|
41 |
+
<?php echo $this->escapeHtml($this->getItemDetailsRowLabel($row)) ?>
|
42 |
+
</td>
|
43 |
+
<td class="a-right">
|
44 |
+
<?php echo $this->formatPrice($this->getItemDetailsRowAmount($row)) ?>
|
45 |
+
</td>
|
46 |
+
</tr>
|
47 |
+
<?php endforeach; ?>
|
48 |
+
<tr class="summary-total" onclick="expandDetails(this, '<?php echo ".summary-details-nominal-{$i}"?>')">
|
49 |
+
<td colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotalStyle() ?>">
|
50 |
+
<div class="summary-collapse"><?php echo $this->escapeHtml($this->getItemName($item)); ?></div>
|
51 |
+
</td>
|
52 |
+
<td class="a-right">
|
53 |
+
<?php echo $this->helper('checkout')->formatPrice($this->getItemRowTotal($item)) ?>
|
54 |
+
</td>
|
55 |
+
</tr>
|
56 |
+
<?php endforeach; ?>
|
app/design/frontend/default/sm_glasses_free/template/checkout/total/tax.phtml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php global $taxIter; $taxIter++; ?>
|
28 |
+
<?php if ($this->helper('tax')->displayFullSummary() && $this->getTotal()->getValue()!=0): ?>
|
29 |
+
<?php $isTop = 1; ?>
|
30 |
+
<?php foreach ($this->getTotal()->getFullInfo() as $info): ?>
|
31 |
+
<?php if (isset($info['hidden']) && $info['hidden']) continue; ?>
|
32 |
+
<?php $percent = $info['percent']; ?>
|
33 |
+
<?php $amount = $info['amount']; ?>
|
34 |
+
<?php $rates = $info['rates']; ?>
|
35 |
+
<?php $isFirst = 1; ?>
|
36 |
+
|
37 |
+
<?php foreach ($rates as $rate): ?>
|
38 |
+
<tr class="summary-details-<?php echo $taxIter; ?> summary-details<?php if ($isTop): echo ' summary-details-first'; endif; ?>" style="display:none;">
|
39 |
+
<td class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>" colspan="<?php echo $this->getColspan(); ?>">
|
40 |
+
<?php echo $this->escapeHtml($rate['title']); ?>
|
41 |
+
<?php if (!is_null($rate['percent'])): ?>
|
42 |
+
(<?php echo (float)$rate['percent']; ?>%)
|
43 |
+
<?php endif; ?>
|
44 |
+
<br />
|
45 |
+
</td>
|
46 |
+
<?php if ($isFirst): ?>
|
47 |
+
<td rowspan="<?php echo count($rates); ?>" class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>">
|
48 |
+
<?php echo $this->helper('checkout')->formatPrice($amount); ?>
|
49 |
+
</td>
|
50 |
+
<?php endif; ?>
|
51 |
+
</tr>
|
52 |
+
<?php $isFirst = 0; ?>
|
53 |
+
<?php $isTop = 0; ?>
|
54 |
+
<?php endforeach; ?>
|
55 |
+
<?php endforeach; ?>
|
56 |
+
<?php endif;?>
|
57 |
+
<tr<?php if ($this->helper('tax')->displayFullSummary() && $this->getTotal()->getValue()!=0): ?> class="summary-total" onclick="expandDetails(this, '.summary-details-<?php echo $taxIter;?>')"<?php endif; ?>>
|
58 |
+
<td class="a-right" colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>">
|
59 |
+
<?php if ($this->helper('tax')->displayFullSummary()): ?>
|
60 |
+
<div class="summary-collapse"><?php echo $this->getTotal()->getTitle() ?></div>
|
61 |
+
<?php else: ?>
|
62 |
+
<?php echo $this->getTotal()->getTitle() ?>
|
63 |
+
<?php endif;?>
|
64 |
+
</td>
|
65 |
+
<td class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>">
|
66 |
+
<strong><?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?></strong>
|
67 |
+
</td>
|
68 |
+
</tr>
|
app/design/frontend/default/sm_glasses_free/template/contacts/form-footer.phtml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="block-contact block" >
|
28 |
+
<div class="block-title">
|
29 |
+
<strong><span><?php echo Mage::helper('contacts')->__('Contact Us') ?></span></strong>
|
30 |
+
</div>
|
31 |
+
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
|
32 |
+
<ul class="form-list">
|
33 |
+
<li>
|
34 |
+
<div class="field">
|
35 |
+
<label for="name" class="required"><?php echo Mage::helper('contacts')->__('Name') ?><em> *</em></label>
|
36 |
+
<div class="input-box">
|
37 |
+
<input name="name" id="name" title="<?php echo Mage::helper('contacts')->__('Name') ?>" value="<?php echo $this->htmlEscape($this->helper('contacts')->getUserName()) ?>" class="input-text required-entry" type="text" />
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
</li>
|
41 |
+
|
42 |
+
<li>
|
43 |
+
<div class="field">
|
44 |
+
<label for="email" class="required"><?php echo Mage::helper('contacts')->__('Email') ?><em> *</em></label>
|
45 |
+
<div class="input-box">
|
46 |
+
<input name="email" id="email" title="<?php echo Mage::helper('contacts')->__('Email') ?>" value="<?php echo $this->htmlEscape($this->helper('contacts')->getUserEmail()) ?>" class="input-text required-entry validate-email" type="text" />
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</li>
|
50 |
+
|
51 |
+
<li>
|
52 |
+
<label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label>
|
53 |
+
<div class="input-box">
|
54 |
+
<input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="" class="input-text" type="text" />
|
55 |
+
</div>
|
56 |
+
</li>
|
57 |
+
<li class="wide">
|
58 |
+
<label for="comment" class="required"><?php echo Mage::helper('contacts')->__('Comment') ?><em> *</em></label>
|
59 |
+
<div class="input-box">
|
60 |
+
<textarea name="comment" id="comment" title="<?php echo Mage::helper('contacts')->__('Comment') ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
</ul>
|
64 |
+
<div class="buttons-set">
|
65 |
+
<p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
|
66 |
+
<input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
|
67 |
+
<button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>
|
68 |
+
</div>
|
69 |
+
</form>
|
70 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/contacts/form.phtml
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
28 |
+
<div class="page-title">
|
29 |
+
<h1><?php echo Mage::helper('contacts')->__('Contact Us') ?></h1>
|
30 |
+
</div>
|
31 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('maps')->toHtml() ?>
|
32 |
+
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
|
33 |
+
<div class="fieldset_f">
|
34 |
+
<ul class="form-list">
|
35 |
+
<li class="fields">
|
36 |
+
<div class="field">
|
37 |
+
<label for="name" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Name') ?></label>
|
38 |
+
<div class="input-box">
|
39 |
+
<input name="name" id="name" title="<?php echo Mage::helper('contacts')->__('Name') ?>" value="Name :" class="input-text required-entry" type="text" onFocus="if(this.value != '') {this.value = '';}"onBlur="if (this.value == '') {this.value = 'Name : ';}" />
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
<div class="field">
|
43 |
+
<label for="email" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Email') ?></label>
|
44 |
+
<div class="input-box">
|
45 |
+
<input name="email" id="email" title="<?php echo Mage::helper('contacts')->__('Email') ?>" value="Email :" class="input-text required-entry validate-email" type="text" onFocus="if(this.value != '') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Email : ';}" />
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
</li>
|
49 |
+
<li>
|
50 |
+
<label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label>
|
51 |
+
<div class="input-box">
|
52 |
+
<input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="Phone :" class="input-text" type="text" onFocus="if(this.value != '') {this.value = '';}"onBlur="if (this.value == '') {this.value = 'Phone : ';}" />
|
53 |
+
</div>
|
54 |
+
</li>
|
55 |
+
<li class="wide">
|
56 |
+
<label for="comment" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Comment') ?></label>
|
57 |
+
<div class="input-box">
|
58 |
+
<textarea name="comment" id="comment" title="<?php echo Mage::helper('contacts')->__('Comment') ?>" class="required-entry input-text" cols="5" rows="3" onFocus="if(this.value != '') {this.value = '';}"onBlur="if (this.value == '') {this.value = 'Message : ';}" >Message :</textarea>
|
59 |
+
</div>
|
60 |
+
</li>
|
61 |
+
</ul>
|
62 |
+
</div>
|
63 |
+
<div class="buttons-set">
|
64 |
+
<input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
|
65 |
+
<button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button button-common"><span class="send-mail-button">Send Mail</span></button>
|
66 |
+
</div>
|
67 |
+
</form>
|
68 |
+
<div class="contactform-content">
|
69 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('contact-content')->toHtml() ?>
|
70 |
+
</div>
|
71 |
+
<script type="text/javascript">
|
72 |
+
//<![CDATA[
|
73 |
+
var contactForm = new VarienForm('contactForm', true);
|
74 |
+
//]]>
|
75 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/customer/account/navigation.phtml
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="block block-account">
|
28 |
+
<div class="block-title">
|
29 |
+
<strong><?php echo $this->__('My')?> <span><?php echo $this->__('Account'); ?></span></strong>
|
30 |
+
</div>
|
31 |
+
<div class="block-content">
|
32 |
+
<ul>
|
33 |
+
<?php $_links = $this->getLinks(); ?>
|
34 |
+
<?php $_index = 1; ?>
|
35 |
+
<?php $_count = count($_links); ?>
|
36 |
+
<?php foreach ($_links as $_link): ?>
|
37 |
+
<?php $_last = ($_index++ >= $_count); ?>
|
38 |
+
<?php if ($this->isActive($_link)): ?>
|
39 |
+
<li class="current<?php echo ($_last ? ' last' : '') ?>"><strong><?php echo $_link->getLabel() ?></strong></li>
|
40 |
+
<?php else: ?>
|
41 |
+
<li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
|
42 |
+
<?php endif; ?>
|
43 |
+
<?php endforeach; ?>
|
44 |
+
</ul>
|
45 |
+
</div>
|
46 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/customer/form/forgotpassword.phtml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('Forgot Your Password?') ?></h1>
|
29 |
+
</div>
|
30 |
+
<div class="row-fluid">
|
31 |
+
<div class="span6">
|
32 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
33 |
+
<form action="<?php echo $this->getUrl('*/*/forgotpasswordpost') ?>" method="post" id="form-validate">
|
34 |
+
<div class="fieldset">
|
35 |
+
<h2 class="legend"><?php echo $this->__('Retrieve your password here') ?></h2>
|
36 |
+
<p><?php echo $this->__('Please enter your email address below. You will receive a link to reset your password.') ?></p>
|
37 |
+
<ul class="form-list">
|
38 |
+
<li>
|
39 |
+
<label for="email_address" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
40 |
+
<div class="input-box">
|
41 |
+
<input type="text" name="email" alt="email" id="email_address" class="input-text required-entry validate-email" value="<?php echo $this->htmlEscape($this->getEmailValue()) ?>" />
|
42 |
+
</div>
|
43 |
+
</li>
|
44 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
45 |
+
</ul>
|
46 |
+
</div>
|
47 |
+
<div class="buttons-set">
|
48 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
49 |
+
<button type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('Submit') ?></span></span></button>
|
50 |
+
<p class="back-link"><a href="<?php echo $this->helper('customer')->getLoginUrl() ?>"><small>« </small><?php echo $this->__('Back to Login') ?></a></p>
|
51 |
+
|
52 |
+
</div>
|
53 |
+
</form>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
<script type="text/javascript">
|
57 |
+
//<![CDATA[
|
58 |
+
var dataForm = new VarienForm('form-validate', true);
|
59 |
+
//]]>
|
60 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/customer/form/mini.login.phtml
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="block block-login-top">
|
28 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post">
|
29 |
+
<div class="block-content">
|
30 |
+
<input type="text" name="login[username]" id="mini-login" class="input-text" value="User name" onFocus="if(this.value != '') {this.value = '';}"onBlur="if (this.value == '') {this.value = 'User name';}" />
|
31 |
+
<input type="password" name="login[password]" id="mini-password" class="input-text" value="........." onFocus="if(this.value != '') {this.value = '';}"onBlur="if (this.value == '') {this.value = '.........';}" />
|
32 |
+
<div class="actions">
|
33 |
+
<div class="chk-remember"><input id="chk_remember" type="checkbox" name="rememberme" value="remember" /> <label>Remember</label> </div>
|
34 |
+
<input type="submit" class="submit-repl" name="submit" value="<?php echo $this->__('Login') ?>" />
|
35 |
+
</div>
|
36 |
+
<div class="more-actions">
|
37 |
+
<a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo $this->__('Forgot Your Password') ?></a>
|
38 |
+
<span>|</span><a href="<?php echo Mage::getBaseUrl(); ?>/customer/account/create/" title="Create an Account" class="button-reg">Register</a>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
</form>
|
42 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/developertoolbar/toolbar.phtml
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$array_ip = explode('|',Mage::getStoreConfig('dev/developertoolbar/ip_remote')); // get array ip from string that use seperator "|"
|
3 |
+
$output_ip = array_map("trim", $array_ip); // trim white space of string if have
|
4 |
+
?>
|
5 |
+
<?php if(in_array($_SERVER['REMOTE_ADDR'],$output_ip)): ?>
|
6 |
+
<?php if(Mage::getStoreConfig('dev/developertoolbar/enabled')): ?>
|
7 |
+
<style>
|
8 |
+
.developertoolbar {
|
9 |
+
position: fixed;
|
10 |
+
left: 0px;
|
11 |
+
bottom: 0px;
|
12 |
+
width: 100%;
|
13 |
+
text-align: center;
|
14 |
+
background: #0A263C;
|
15 |
+
border-top: 1px solid #415966;
|
16 |
+
z-index: 10000;
|
17 |
+
}
|
18 |
+
.developertoolbar a {
|
19 |
+
color: #FF822F;
|
20 |
+
font-weight:bold;
|
21 |
+
font-size:11px;
|
22 |
+
text-decoration: none;
|
23 |
+
padding-left: 8px;
|
24 |
+
padding-right: 8px;
|
25 |
+
}
|
26 |
+
|
27 |
+
.developertoolbar a:hover {
|
28 |
+
color: #A7C6DD;
|
29 |
+
}
|
30 |
+
|
31 |
+
.developertoolbar .bar_name {
|
32 |
+
color: #D96708;
|
33 |
+
font-size: 10px;
|
34 |
+
font-weight:bold;
|
35 |
+
float: left;
|
36 |
+
cursor:pointer;
|
37 |
+
padding-left: 3px;
|
38 |
+
}
|
39 |
+
|
40 |
+
.developertoolbar .hide_me {
|
41 |
+
color: #D96708;
|
42 |
+
font-size: 9px;
|
43 |
+
font-weight:bold;
|
44 |
+
padding-right: 3px;
|
45 |
+
}
|
46 |
+
|
47 |
+
.developertoolbar .seperate {
|
48 |
+
width: 1px;
|
49 |
+
border-right: 1px solid #415966;
|
50 |
+
}
|
51 |
+
|
52 |
+
.developertoolbar .disabled {
|
53 |
+
color: #666;
|
54 |
+
}
|
55 |
+
</style>
|
56 |
+
|
57 |
+
<script language="javascript">
|
58 |
+
function hide_developer_toolbar(){
|
59 |
+
if (document.getElementById('bar_content').style.display == 'none') {
|
60 |
+
document.getElementById('bar_content').style.display = "inline";
|
61 |
+
document.getElementById('developertoolbar').style.width = "100%";
|
62 |
+
} else {
|
63 |
+
document.getElementById('bar_content').style.display = "none";
|
64 |
+
document.getElementById('developertoolbar').style.width = "100px";
|
65 |
+
}
|
66 |
+
}
|
67 |
+
</script>
|
68 |
+
<div class="developertoolbar" id="developertoolbar">
|
69 |
+
<a href="" onclick="hide_developer_toolbar(); return false;"><span class="bar_name">Developer Toolbar</span></a>
|
70 |
+
|
71 |
+
|
72 |
+
<span id="bar_content">
|
73 |
+
<a <?php if (Mage::getStoreConfig('dev/debug/template_hints') != '1') echo ' class="disabled "'; ?> href="<?php echo $this->getUrl('developertoolbar/index/hints/enabled/'.(Mage::getStoreConfig('dev/debug/template_hints')!='1'?1:0).'/type/front') ?>">Frontend Hints</a>
|
74 |
+
|
75 |
+
<span class="seperate"></span>
|
76 |
+
<a <?php if (Mage::getStoreConfig('dev/debug/template_hints', 0) != '1') echo ' class="disabled "'; ?> href="<?php echo $this->getUrl('developertoolbar/index/hints/enabled/'.(Mage::getStoreConfig('dev/debug/template_hints', 0)!='1'?1:0).'/type/back') ?>">Backend Hints</a>
|
77 |
+
|
78 |
+
<span class="seperate"></span>
|
79 |
+
<a <?php if (Mage::getStoreConfig('dev/log/active') != '1') echo ' class="disabled "'; ?> href="<?php echo $this->getUrl('developertoolbar/index/log/enabled/'.(Mage::getStoreConfig('dev/log/active')!='1'?1:0)) ?>">Logs</a>
|
80 |
+
|
81 |
+
<span class="seperate"></span>
|
82 |
+
<a <?php if (Mage::getStoreConfig('dev/js/merge_files') != '1') echo ' class="disabled "'; ?> href="<?php echo $this->getUrl('developertoolbar/index/js/enabled/'.(Mage::getStoreConfig('dev/js/merge_files')!='1'?1:0)) ?>">Merge JS</a>
|
83 |
+
|
84 |
+
<span class="seperate"></span>
|
85 |
+
<a <?php if (Mage::getStoreConfig('web/url/use_store') != '1') echo ' class="disabled "'; ?> href="<?php echo $this->getUrl('developertoolbar/index/url/enabled/'.(Mage::getStoreConfig('web/url/use_store')!='1'?1:0)) ?>">Store Code in Urls</a>
|
86 |
+
|
87 |
+
<span class="seperate"></span>
|
88 |
+
<a <?php if (Mage::getStoreConfig('web/seo/use_rewrites') != '1') echo ' class="disabled "'; ?> href="<?php echo $this->getUrl('developertoolbar/index/seo/enabled/'.(Mage::getStoreConfig('web/seo/use_rewrites')!='1'?1:0)) ?>">SEO Rewrites</a>
|
89 |
+
|
90 |
+
<span class="seperate"></span>
|
91 |
+
<a <?php if (Mage::getStoreConfig('dev/translate_inline/active') != '1') echo ' class="disabled "'; ?> href="<?php echo $this->getUrl('developertoolbar/index/translate/enabled/'.(Mage::getStoreConfig('dev/translate_inline/active')!='1'?1:0)) ?>">Translate Inline</a>
|
92 |
+
|
93 |
+
<span class="seperate"></span>
|
94 |
+
<a style="color:#FF0000;" href="<?php echo $this->getUrl('developertoolbar/index/cache/') ?>">Clean & Disable All Cache</a>
|
95 |
+
</span>
|
96 |
+
</div>
|
97 |
+
<?php endif; ?>
|
98 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/directory/currency.phtml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Currency switcher
|
30 |
+
*
|
31 |
+
* @see Mage_Directory_Block_Currency
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php if($this->getCurrencyCount()>1): ?>
|
35 |
+
<div class="block block-currency">
|
36 |
+
<div class="block-title">
|
37 |
+
<strong><?php echo $this->__('Currency') ?></strong>
|
38 |
+
</div>
|
39 |
+
<div class="block-content">
|
40 |
+
<div class="currency-select"><div class="currency-select-inner">
|
41 |
+
<select name="currency" title="<?php echo $this->__('Select Your Currency') ?>" onchange="setLocation(this.value)">
|
42 |
+
<?php foreach ($this->getCurrencies() as $_code => $_name): ?>
|
43 |
+
<option value="<?php echo $this->getSwitchCurrencyUrl($_code) ?>"<?php if($_code==$this->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?>>
|
44 |
+
<?php echo $_name ?> - <?php echo $_code ?>
|
45 |
+
</option>
|
46 |
+
<?php endforeach; ?>
|
47 |
+
</select>
|
48 |
+
</div></div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/newsletter/subscribe-footer.phtml
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="newsletter-validate-detail">
|
28 |
+
<div class="block-content">
|
29 |
+
<label for="newsletter"><?php echo $this->__('Sign Up for Our Newsletter:') ?></label>
|
30 |
+
<div class="input-box">
|
31 |
+
<input type="text" value="Enter your email address" name="email" id="newsletter" title="<?php echo $this->__('Sign up for our newsletter') ?>" class="input-text required-entry validate-email" />
|
32 |
+
<div class="actions">
|
33 |
+
<button type="submit" title="<?php echo $this->__('Subscribe') ?>" class="button"><span><span><?php echo $this->__('Subscribe') ?></span></span></button>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
</div>
|
38 |
+
</form>
|
39 |
+
<script type="text/javascript">
|
40 |
+
//<![CDATA[
|
41 |
+
var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
|
42 |
+
$jsmart('#newsletter').focus(function(){
|
43 |
+
if(this.value == 'Enter your email address'){
|
44 |
+
this.value = '';
|
45 |
+
}
|
46 |
+
}).blur(function(){
|
47 |
+
if($jsmart.trim(this.value) == ''){
|
48 |
+
this.value = 'Enter your email address'
|
49 |
+
}
|
50 |
+
});
|
51 |
+
//]]>
|
52 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/newsletter/subscribe.phtml
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="block block-subscribe">
|
28 |
+
<div class="block-in">
|
29 |
+
<?php /*
|
30 |
+
<div class="block-title">
|
31 |
+
<strong><span><?php echo $this->__('Newsletter') ?></span></strong>
|
32 |
+
</div>
|
33 |
+
*/ ?>
|
34 |
+
<form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="newsletter-validate-detail">
|
35 |
+
<div class="block-content">
|
36 |
+
<div class="form-subscribe-header">
|
37 |
+
<label for="newsletter"><?php echo $this->__('Sign Up for Our Newsletter:') ?></label>
|
38 |
+
</div>
|
39 |
+
<div class="input-box">
|
40 |
+
<input type="text" name="email" id="newsletter" title="<?php echo $this->__('Sign up for our newsletter') ?>" class="input-text required-entry validate-email" value="Enter your email..." onblur="if(this.value=='') this.value='Enter your email...';" onfocus="if(this.value=='Enter your email...') this.value='';"/>
|
41 |
+
</div>
|
42 |
+
<div class="actions">
|
43 |
+
<button type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('Submit') ?></span></span></button>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</form>
|
47 |
+
<script type="text/javascript">
|
48 |
+
//<![CDATA[
|
49 |
+
var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
|
50 |
+
//]]>
|
51 |
+
</script>
|
52 |
+
</div>
|
53 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/page/1column.phtml
ADDED
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php global $var_yttheme; ?>
|
33 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
34 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
35 |
+
<head>
|
36 |
+
<?php echo $this->getChildHtml('head') ?>
|
37 |
+
</head>
|
38 |
+
<?php
|
39 |
+
if( Mage::getSingleton('cms/page')->getIdentifier() == 'home' &&
|
40 |
+
Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ) : ?>
|
41 |
+
<body id="bd" class="free-edition <?php echo $var_yttheme->template ?> <?php echo $this->getBodyClass();?>" >
|
42 |
+
<div id="sm_wrapper">
|
43 |
+
<!-- BEGIN: Header -->
|
44 |
+
<div id="sm_header" class="wrap">
|
45 |
+
<?php echo $this->getChildHtml('header') ?>
|
46 |
+
<!-- END: Header -->
|
47 |
+
<?php //if ($this->getChildHtml('slideshow')) : ?>
|
48 |
+
<!-- BEGIN: SlideShow -->
|
49 |
+
<div class="slide-wrap">
|
50 |
+
<div class="main clearfix">
|
51 |
+
<div class="">
|
52 |
+
<div id="sm_slideshow" class="">
|
53 |
+
<?php //echo $this->getChildHtml('slideshow') ?>
|
54 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('slideshow-free-edition')->toHtml() ?>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
<!--[if IE 7]>
|
60 |
+
<br class="clear" />
|
61 |
+
<![endif]-->
|
62 |
+
|
63 |
+
<!-- END: SlideShow -->
|
64 |
+
<?php //endif; ?>
|
65 |
+
</div>
|
66 |
+
<div id="main-home">
|
67 |
+
<div class="wrapper">
|
68 |
+
<div class="page">
|
69 |
+
|
70 |
+
<!-- BEGIN: top spotlight -->
|
71 |
+
|
72 |
+
<div id="sm_topsl" class="topsl-wrap">
|
73 |
+
<div class="container container-wrap">
|
74 |
+
<?php //echo $this->getChildHtml('topsl') ?>
|
75 |
+
<div class="inner-container">
|
76 |
+
<div class="row">
|
77 |
+
<div class="span7d2" data-normal="span8" data-tablet="span8" data-stablet="span12" data-mobile="span12">
|
78 |
+
<div id="best-sales">
|
79 |
+
<!-- primary content -->
|
80 |
+
<?php echo $this->getChildHtml('content-top') ?>
|
81 |
+
<!-- // primary content -->
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
<div id="testspan" class="span4d8" data-normal="span4" data-tablet="span4" data-stablet="span12" data-mobile="span12">
|
85 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('promotions')->toHtml() ?>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<div class="row">
|
89 |
+
<div class="span12" data-normal="span12" data-tablet="span12" data-stablet="span12">
|
90 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('free-shipping-banner')->toHtml() ?>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
|
97 |
+
<!-- END: top spotlight -->
|
98 |
+
|
99 |
+
<!-- BEGIN: Main Content -->
|
100 |
+
<div id="sm_container" class="wrap container container-wrap">
|
101 |
+
<!-- global messages -->
|
102 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
103 |
+
<!-- // global messages -->
|
104 |
+
<!-- breadcrumbs -->
|
105 |
+
<?php echo $this->getChildHtml('breadcrumbs') ?>
|
106 |
+
<!-- // breadcrumbs -->
|
107 |
+
<div id="yt_content_main" class="yt-content-main clearfix">
|
108 |
+
<!-- primary content -->
|
109 |
+
<?php echo $this->getChildHtml('content') ?>
|
110 |
+
<!-- // primary content -->
|
111 |
+
</div>
|
112 |
+
<div id="yt_content_bottom" class="yt-content-bottom clearfix">
|
113 |
+
<!-- primary content -->
|
114 |
+
<?php /* <div class="container container-wrap"> */ ?>
|
115 |
+
<?php echo $this->getChildHtml('content-bottom') ?>
|
116 |
+
<?php /* </div> */ ?>
|
117 |
+
<!-- // primary content -->
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
<div id="sm_footerwrap">
|
121 |
+
<div class="container container-wrap">
|
122 |
+
|
123 |
+
<div id="footerwrap">
|
124 |
+
<!-- BEGIN: Bottom product slider -->
|
125 |
+
<?php if ($this->getChildHtml('botproduct')) : ?>
|
126 |
+
<div id="yt_botslider" class="wrap">
|
127 |
+
<div class="main clearfix">
|
128 |
+
<?php echo $this->getChildHtml('botproduct') ?>
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
<?php endif; ?>
|
132 |
+
<!-- END: Bottom product slider -->
|
133 |
+
<!-- BEGIN: Bottom spotlight -->
|
134 |
+
<?php if ($this->getChildHtml('botsl')) : ?>
|
135 |
+
<div id="yt_botsl" class="wrap">
|
136 |
+
<div class="main clearfix">
|
137 |
+
<?php echo $this->getChildHtml('botsl') ?>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
<?php endif; ?>
|
141 |
+
<!-- END: Bottom spotlight -->
|
142 |
+
<!-- BEGIN: Bottom spotlight1 -->
|
143 |
+
<?php if ($this->getChildHtml('botsl1')) : ?>
|
144 |
+
<div id="yt_botsl1" class="wrap">
|
145 |
+
<div class="main clearfix">
|
146 |
+
<?php echo $this->getChildHtml('botsl1') ?>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
<?php endif; ?>
|
150 |
+
<!-- END: Bottom spotlight1 -->
|
151 |
+
<!-- BEGIN: Footer -->
|
152 |
+
<?php echo $this->getChildHtml('before_footer') ?>
|
153 |
+
<!-- END: Footer -->
|
154 |
+
</div>
|
155 |
+
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
<div class="copy-right">
|
159 |
+
<?php echo $this->getChildHtml('footer') ?>
|
160 |
+
</div>
|
161 |
+
<!-- END: Footerwrap -->
|
162 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
163 |
+
|
164 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
+
<div id="bg_footer_bottom"> </div>
|
169 |
+
</div>
|
170 |
+
</body>
|
171 |
+
<?php else: ?>
|
172 |
+
<body id="bd" class="<?php echo $var_yttheme->template ?> <?php echo $this->getBodyClass();?>" >
|
173 |
+
<?php echo $this->getChildHtml('after_body_start') ?>
|
174 |
+
<div class="wrapper">
|
175 |
+
<?php echo $this->getChildHtml('global_notices') ?>
|
176 |
+
<div class="page">
|
177 |
+
<?php echo $this->getChildHtml('header') ?>
|
178 |
+
<div class="main-container col1-layout">
|
179 |
+
<div class="main">
|
180 |
+
<div class="container container-wrap">
|
181 |
+
<div class="row">
|
182 |
+
<div class="wrapp-column">
|
183 |
+
<div class="col-main">
|
184 |
+
<div class="span12" data-normal="span12" data-tablet="span12" data-stablet="span12">
|
185 |
+
<?php echo $this->getChildHtml('breadcrumbs') ?>
|
186 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
187 |
+
<?php echo $this->getChildHtml('content') ?>
|
188 |
+
</div>
|
189 |
+
</div>
|
190 |
+
</div>
|
191 |
+
</div>
|
192 |
+
<?php echo $this->getChildHtml('before_footer') ?>
|
193 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
194 |
+
</div>
|
195 |
+
<div class="container ">
|
196 |
+
<div class="row">
|
197 |
+
<div class="copy-right span12">
|
198 |
+
<?php echo $this->getChildHtml('footer') ?>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
</div>
|
204 |
+
<div id="bg_footer_bottom"> </div>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
208 |
+
</body>
|
209 |
+
<?php endif; ?>
|
210 |
+
</html>
|
app/design/frontend/default/sm_glasses_free/template/page/2columns-left.phtml
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php global $var_yttheme; ?>
|
33 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
34 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
35 |
+
<head> <?php echo $this->getChildHtml('head') ?> </head>
|
36 |
+
|
37 |
+
<body id="bd" class="free-edition <?php echo $var_yttheme->template ?> <?php echo $this->getBodyClass();?>" >
|
38 |
+
<?php echo $this->getChildHtml('after_body_start') ?>
|
39 |
+
<div class="wrapper">
|
40 |
+
|
41 |
+
<?php echo $this->getChildHtml('global_notices') ?>
|
42 |
+
|
43 |
+
<div class="page">
|
44 |
+
<?php echo $this->getChildHtml('header') ?>
|
45 |
+
<div class="main-container col2-left-layout">
|
46 |
+
<div class="main">
|
47 |
+
<div class="container container-wrap">
|
48 |
+
<div class="row">
|
49 |
+
<div class="wrapp-column">
|
50 |
+
<div class="col-left sidebar">
|
51 |
+
<div class="span3" data-normal="span3" data-tablet="span12" data-stablet="span12">
|
52 |
+
<?php echo $this->getChildHtml('left') ?>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
<div class="col-main">
|
56 |
+
<div class="span9" data-normal="span9" data-tablet="span12" data-stablet="span12">
|
57 |
+
<?php echo $this->getChildHtml('breadcrumbs') ?>
|
58 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
59 |
+
<?php echo $this->getChildHtml('content') ?>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<?php echo $this->getChildHtml('before_footer') ?>
|
65 |
+
|
66 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
67 |
+
</div>
|
68 |
+
<div class="container ">
|
69 |
+
<div class="row">
|
70 |
+
<div class="copy-right span12">
|
71 |
+
<?php echo $this->getChildHtml('footer') ?>
|
72 |
+
</div>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
|
77 |
+
</div>
|
78 |
+
<div id="bg_footer_bottom"> </div>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
82 |
+
</body>
|
83 |
+
</html>
|
app/design/frontend/default/sm_glasses_free/template/page/2columns-right.phtml
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php global $var_yttheme; ?>
|
33 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
34 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
35 |
+
<head> <?php echo $this->getChildHtml('head') ?> </head>
|
36 |
+
|
37 |
+
<body id="bd" class="free-edition <?php echo $var_yttheme->template ?> <?php echo $this->getBodyClass();?>" >
|
38 |
+
<?php echo $this->getChildHtml('after_body_start') ?>
|
39 |
+
<div class="wrapper">
|
40 |
+
|
41 |
+
<?php echo $this->getChildHtml('global_notices') ?>
|
42 |
+
|
43 |
+
<div class="page">
|
44 |
+
<?php echo $this->getChildHtml('header') ?>
|
45 |
+
<div class="main-container col2-right-layout">
|
46 |
+
<div class="main">
|
47 |
+
<div class="container container-wrap">
|
48 |
+
<div class="row">
|
49 |
+
<div class="wrapp-column">
|
50 |
+
<div class="col-main">
|
51 |
+
<div class="span9" data-normal="span9" data-tablet="span12" data-stablet="span12">
|
52 |
+
<?php echo $this->getChildHtml('breadcrumbs') ?>
|
53 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
54 |
+
<?php echo $this->getChildHtml('content') ?>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
<div class="col-right sidebar">
|
58 |
+
<div class="span3" data-normal="span3" data-tablet="span12" data-stablet="span12">
|
59 |
+
<?php echo $this->getChildHtml('right') ?>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<?php echo $this->getChildHtml('before_footer') ?>
|
65 |
+
|
66 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
67 |
+
</div>
|
68 |
+
<div class="container ">
|
69 |
+
<div class="row">
|
70 |
+
<div class="copy-right span12">
|
71 |
+
<?php echo $this->getChildHtml('footer') ?>
|
72 |
+
</div>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
|
77 |
+
</div>
|
78 |
+
<div id="bg_footer_bottom"> </div>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
82 |
+
</body>
|
83 |
+
</html>
|
app/design/frontend/default/sm_glasses_free/template/page/3columns.phtml
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
global $var_yttheme;
|
32 |
+
?>
|
33 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
34 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
35 |
+
|
36 |
+
<head>
|
37 |
+
<?php echo $this->getChildHtml('head') ?>
|
38 |
+
</head>
|
39 |
+
|
40 |
+
<body id="bd" class="free-edition <?php echo $var_yttheme->template ?> <?php echo $this->getBodyClass();?>">
|
41 |
+
<div id="yt_wrapper">
|
42 |
+
<!-- BEGIN: Header -->
|
43 |
+
<div id="yt_header" class="wrap">
|
44 |
+
<?php echo $this->getChildHtml('header') ?>
|
45 |
+
<!-- END: Header -->
|
46 |
+
<?php if ($this->getChildHtml('slideshow')) : ?>
|
47 |
+
<!-- BEGIN: SlideShow -->
|
48 |
+
<div id="yt_slideshow" class="wrap"><div class="wrap-inner">
|
49 |
+
<div class="main clearfix">
|
50 |
+
<?php echo $this->getChildHtml('slideshow') ?>
|
51 |
+
</div></div>
|
52 |
+
</div>
|
53 |
+
<!--[if IE 7]>
|
54 |
+
<br class="clear" />
|
55 |
+
<![endif]-->
|
56 |
+
<!-- END: SlideShow -->
|
57 |
+
<?php endif; ?>
|
58 |
+
</div>
|
59 |
+
<?php /*
|
60 |
+
<?php if ($this->getChildHtml('topsl')) : ?>
|
61 |
+
<!-- BEGIN: Top Spotlight -->
|
62 |
+
<div id="yt_topsl" class="wrap">
|
63 |
+
<div class="main">
|
64 |
+
<div class="inner-top clearfix">
|
65 |
+
<?php echo $this->getChildHtml('topsl') ?>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
<!-- END: Top Spotlight -->
|
70 |
+
<?php endif; ?>
|
71 |
+
*/ ?>
|
72 |
+
<!-- BEGIN: Main Content -->
|
73 |
+
<div id="yt_container" class="wrap yt-r">
|
74 |
+
<div class="main clearfix">
|
75 |
+
<div id="yt_mainbody">
|
76 |
+
<div id="yt_main" class="clearfix">
|
77 |
+
<div id="yt_containerwrap" class="clearfix yt-r container">
|
78 |
+
<!-- CONTENT -->
|
79 |
+
<div id="yt_content" class="row">
|
80 |
+
|
81 |
+
<!-- COLUMN -->
|
82 |
+
<div id="yt_left" class="yt-col yt-leftcol">
|
83 |
+
<div class="span2d4" data-normal="span3" data-tablet="span3" data-stablet="span4">
|
84 |
+
<?php echo $this->getChildHtml('left') ?>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
<!-- //COLUMN -->
|
88 |
+
|
89 |
+
<div id="yt_current_content" class="column">
|
90 |
+
<div class="span7d2" data-normal="span7" data-tablet="span7" data-stablet="span6">
|
91 |
+
<!-- global messages -->
|
92 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
93 |
+
<!-- // global messages -->
|
94 |
+
<!-- breadcrumbs -->
|
95 |
+
<?php echo $this->getChildHtml('breadcrumbs') ?>
|
96 |
+
<!-- // breadcrumbs -->
|
97 |
+
<div id="yt_content_top" class="yt-content-top clearfix">
|
98 |
+
<!-- primary content -->
|
99 |
+
<?php echo $this->getChildHtml('content-top') ?>
|
100 |
+
<!-- // primary content -->
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<div id="yt_content_main" class="yt-content-main clearfix" >
|
104 |
+
<!-- primary content -->
|
105 |
+
<?php echo $this->getChildHtml('content') ?>
|
106 |
+
<!-- // primary content -->
|
107 |
+
</div>
|
108 |
+
<div id="yt_content_bottom" class="clearfix">
|
109 |
+
<!-- primary content -->
|
110 |
+
<?php echo $this->getChildHtml('content-bottom') ?>
|
111 |
+
<!-- // primary content -->
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
<!-- COLUMN -->
|
116 |
+
<div id="yt_right" class="yt-col column yt-rightcol">
|
117 |
+
<div class="span2d4" data-normal="span3" data-tablet="span3" data-stablet="span4">
|
118 |
+
<?php echo $this->getChildHtml('right') ?>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
<!-- //COLUMN -->
|
122 |
+
</div>
|
123 |
+
<!-- //CONTENT -->
|
124 |
+
</div>
|
125 |
+
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
<!-- END: Main Content -->
|
131 |
+
|
132 |
+
<!-- BEGIN: Ads -->
|
133 |
+
<div id="yt_ads" class="position-4 fontcolor">
|
134 |
+
<div class="main clearfix">
|
135 |
+
<div class="block-ads bgcolor">
|
136 |
+
<div class="container">
|
137 |
+
<div class="row">
|
138 |
+
<?php //echo $this->getChildHtml('ads') ?>
|
139 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('position-4')->toHtml() ?>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
<!-- END: Ads -->
|
146 |
+
|
147 |
+
<!-- BEGIN: Footerwrap -->
|
148 |
+
<div id="yt_footerwrap">
|
149 |
+
<!-- BEGIN: Bottom product slider -->
|
150 |
+
<?php if ($this->getChildHtml('botproduct')) : ?>
|
151 |
+
<div id="yt_botslider" class="wrap">
|
152 |
+
<div class="main clearfix">
|
153 |
+
<?php echo $this->getChildHtml('botproduct') ?>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
<?php endif; ?>
|
157 |
+
<!-- END: Bottom product slider -->
|
158 |
+
<!-- BEGIN: Bottom spotlight -->
|
159 |
+
<?php if ($this->getChildHtml('botsl')) : ?>
|
160 |
+
<div id="yt_botsl" class="wrap">
|
161 |
+
<div class="main clearfix">
|
162 |
+
<?php echo $this->getChildHtml('botsl') ?>
|
163 |
+
</div>
|
164 |
+
</div>
|
165 |
+
<?php endif; ?>
|
166 |
+
<!-- END: Bottom spotlight -->
|
167 |
+
<!-- BEGIN: Bottom spotlight1 -->
|
168 |
+
<?php if ($this->getChildHtml('botsl1')) : ?>
|
169 |
+
<div id="yt_botsl1" class="wrap">
|
170 |
+
<div class="main clearfix">
|
171 |
+
<?php echo $this->getChildHtml('botsl1') ?>
|
172 |
+
</div>
|
173 |
+
</div>
|
174 |
+
<?php endif; ?>
|
175 |
+
<!-- END: Bottom spotlight1 -->
|
176 |
+
<!-- BEGIN: Footer -->
|
177 |
+
<?php echo $this->getChildHtml('footer') ?>
|
178 |
+
<!-- END: Footer -->
|
179 |
+
</div>
|
180 |
+
<!-- END: Footerwrap -->
|
181 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
182 |
+
|
183 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
184 |
+
</div>
|
185 |
+
</body>
|
186 |
+
</html>
|
app/design/frontend/default/sm_glasses_free/template/page/dashboard.phtml
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
global $var_yttheme;
|
32 |
+
?>
|
33 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
34 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
35 |
+
<head>
|
36 |
+
<?php echo $this->getChildHtml('head') ?>
|
37 |
+
</head>
|
38 |
+
<body id="bd" class="<?php echo $this->getBodyClass();?> fs<?php echo $var_yttheme->getParam(YT_THEME_FONT);?>">
|
39 |
+
<div class="wrapper">
|
40 |
+
<?php /*<p class="demo-notice"><?php echo $this->__('This is a demo store. Any orders placed through this store will not be honored or fulfilled.') ?></p> */ ?>
|
41 |
+
<!-- start header -->
|
42 |
+
<div class="header">
|
43 |
+
<?php echo $this->getChildHtml('header') ?>
|
44 |
+
</div>
|
45 |
+
<!-- end header -->
|
46 |
+
|
47 |
+
<!-- start middle -->
|
48 |
+
<div class="middle-container">
|
49 |
+
<div class="middle col-2-right-layout">
|
50 |
+
<!-- start center -->
|
51 |
+
<div id="main" class="col-main account-main">
|
52 |
+
<!-- start global messages -->
|
53 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
54 |
+
<!-- end global messages -->
|
55 |
+
|
56 |
+
<!-- start content -->
|
57 |
+
<?php echo $this->getChildHtml('content') ?>
|
58 |
+
<!-- end content -->
|
59 |
+
|
60 |
+
</div>
|
61 |
+
<!-- end center -->
|
62 |
+
|
63 |
+
<!-- start right -->
|
64 |
+
<div class="col-right side-col account-side">
|
65 |
+
<?php echo $this->getChildHtml('right') ?>
|
66 |
+
</div>
|
67 |
+
<!-- end]right -->
|
68 |
+
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<!-- end middle -->
|
72 |
+
|
73 |
+
<!-- start footer -->
|
74 |
+
<div class="footer-container">
|
75 |
+
<div class="footer">
|
76 |
+
<?php echo $this->getChildHtml('footer') ?>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
<!-- end footer -->
|
80 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
81 |
+
</div>
|
82 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
83 |
+
</body>
|
84 |
+
</html>
|
app/design/frontend/default/sm_glasses_free/template/page/html/backtotop.phtml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* ------------------------------------------------------------------------
|
4 |
+
* Yt FrameWork for Joomla 2.5
|
5 |
+
* ------------------------------------------------------------------------
|
6 |
+
* Copyright (C) 2009 - 2012 The YouTech JSC. All Rights Reserved.
|
7 |
+
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
|
8 |
+
* Author: The YouTech JSC
|
9 |
+
* Websites: http://www.smartaddons.com - http://www.cmsportal.net
|
10 |
+
* ------------------------------------------------------------------------
|
11 |
+
*/
|
12 |
+
|
13 |
+
// no direct access
|
14 |
+
//defined( '_JEXEC' ) or die( 'Restricted access' );
|
15 |
+
?>
|
16 |
+
<a id="yt-totop" href="#"></a>
|
17 |
+
|
18 |
+
<script type="text/javascript">
|
19 |
+
$jsmart(function($){
|
20 |
+
// back to top
|
21 |
+
$("#yt-totop").hide();
|
22 |
+
$(function () {
|
23 |
+
var wh = $(window).height();
|
24 |
+
var whtml = $(document).height();
|
25 |
+
$(window).scroll(function () {
|
26 |
+
if ($(this).scrollTop() > whtml/10) {
|
27 |
+
$('#yt-totop').fadeIn();
|
28 |
+
} else {
|
29 |
+
$('#yt-totop').fadeOut();
|
30 |
+
}
|
31 |
+
});
|
32 |
+
$('#yt-totop').click(function () {
|
33 |
+
$('body,html').animate({
|
34 |
+
scrollTop: 0
|
35 |
+
}, 800);
|
36 |
+
return false;
|
37 |
+
});
|
38 |
+
});
|
39 |
+
// end back to top
|
40 |
+
});
|
41 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/page/html/before_footer.phtml
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<!-- <div id="sm_footer" class="wrap font2">-->
|
28 |
+
<!-- BEGIN: Slider-->
|
29 |
+
|
30 |
+
|
31 |
+
<!-- BEGIN: Slider -->
|
32 |
+
|
33 |
+
<div class="slider-wrap">
|
34 |
+
|
35 |
+
<div class="main clearfix">
|
36 |
+
|
37 |
+
<div class="container">
|
38 |
+
|
39 |
+
<div class="row">
|
40 |
+
|
41 |
+
<div class="span12" data-normal="span12" data-tablet="span12" data-stablet="span12">
|
42 |
+
|
43 |
+
<div id="yt_slider" class="yt-slider">
|
44 |
+
|
45 |
+
<?php //echo $this->getLayout()->createBlock('cms/block')->setBlockId('position-4')->toHtml() ?>
|
46 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('slider-free-edition')->toHtml() ?>
|
47 |
+
|
48 |
+
</div>
|
49 |
+
|
50 |
+
</div>
|
51 |
+
|
52 |
+
</div>
|
53 |
+
|
54 |
+
</div>
|
55 |
+
|
56 |
+
</div>
|
57 |
+
|
58 |
+
</div>
|
59 |
+
|
60 |
+
<!--[if IE 7]>
|
61 |
+
|
62 |
+
<br class="clear" />
|
63 |
+
|
64 |
+
<![endif]-->
|
65 |
+
|
66 |
+
|
67 |
+
<!-- END: Slider-->
|
68 |
+
|
69 |
+
<div id="yt_footer" class="wrap font2">
|
70 |
+
<?php /*
|
71 |
+
<div class="slider-manufactures">
|
72 |
+
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('manufactures')->toHtml() ?>
|
73 |
+
</div>*/ ?>
|
74 |
+
<div class="top-footer">
|
75 |
+
<div class="row">
|
76 |
+
<div class="span3" data-normal="span4" data-tablet="span4" data-stablet="span4"><div class="sm-glasses"><div class="block-user1 block-item"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block-user1')->toHtml() ?></div></div></div>
|
77 |
+
<div class="span4" data-normal="span3" data-tablet="span3" data-stablet="span3"><div class="contact-us"><div class="block-user2 block-item"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block-user2')->toHtml() ?></div></div></div>
|
78 |
+
<div class="span2" data-normal="span2" data-tablet="span2" data-stablet="span2"><div class="choose-us"><div class="block-user3 block-item"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block-user3')->toHtml() ?></div></div></div>
|
79 |
+
<div class="span3" data-normal="span3" data-tablet="span3" data-stablet="span3"><div class="popular-tags"><div class="block-user6 block-item"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block-user4')->toHtml() ?></div></div></div>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
<div class="bottom-footer">
|
83 |
+
<div class="row">
|
84 |
+
<div class="span5" data-normal="span6" data-tablet="span6" data-stablet="span6"><div class="footer-links"><div class="block-user5 block-item"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block-info-footer')->toHtml() ?></div></div></div>
|
85 |
+
<div class="span5 offset2" data-normal="span6" data-tablet="span6" data-stablet="span6"><div class="newslet"><div class="block-user5 block-item"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block-user5')->toHtml() ?></div></div></div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
<?php
|
90 |
+
//include (dirname(__FILE__).'/new_cpanel.phtml');
|
91 |
+
include (dirname(__FILE__).'/backtotop.phtml');
|
92 |
+
?>
|
app/design/frontend/default/sm_glasses_free/template/page/html/breadcrumbs.phtml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php global $var_yttheme; ?>
|
28 |
+
<?php if(($crumbs && is_array($crumbs)) || $var_yttheme->isHomepage()): ?>
|
29 |
+
<div id="yt_pathway" class="clearfix">
|
30 |
+
<div class="pathway-inner">
|
31 |
+
<!--<h4><?php //echo $this->__("You're currently on:") ?></h4>-->
|
32 |
+
<ul class="breadcrumbs font2">
|
33 |
+
<li><?php if($var_yttheme->isHomepage()) : echo "Home"; endif; ?></li>
|
34 |
+
<?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
|
35 |
+
<li class="<?php echo $_crumbName.(($_crumbInfo['last'])?' last':''); ?>">
|
36 |
+
<?php if($_crumbInfo['link']): ?>
|
37 |
+
<a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->htmlEscape($_crumbInfo['title']) ?>"><?php echo $this->htmlEscape($_crumbInfo['label']) ?></a>
|
38 |
+
<?php elseif($_crumbInfo['last']): ?>
|
39 |
+
<?php echo $this->htmlEscape($_crumbInfo['label']) ?>
|
40 |
+
<?php else: ?>
|
41 |
+
<?php echo $this->htmlEscape($_crumbInfo['label']) ?>
|
42 |
+
<?php endif; ?>
|
43 |
+
<?php if(!$_crumbInfo['last']): ?>
|
44 |
+
<!--<span class="separator"> </span>-->
|
45 |
+
<?php endif; ?>
|
46 |
+
</li>
|
47 |
+
<?php endforeach; ?>
|
48 |
+
</ul>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/page/html/footer.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<p>
|
28 |
+
<?php echo $this->getCopyright() ?> Designed by <a href="http://www.magentech.com/" title="Visit MagenTech.Com!">MagenTech.Com</a>.
|
29 |
+
</p>
|
app/design/frontend/default/sm_glasses_free/template/page/html/head.phtml
ADDED
@@ -0,0 +1,299 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
include (dirname(dirname(__FILE__)).'/smartaddons/yt_prepar.php');
|
27 |
+
global $var_yttheme;
|
28 |
+
?>
|
29 |
+
<title><?php echo $this->getTitle() ?></title>
|
30 |
+
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
|
31 |
+
<meta name="description" content="<?php echo htmlspecialchars($this->getDescription()) ?>" />
|
32 |
+
<meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />
|
33 |
+
<meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
|
34 |
+
|
35 |
+
<?php
|
36 |
+
$browser = new Browser();
|
37 |
+
//if( $browser->isMobile() ) { ?>
|
38 |
+
<meta name="HandheldFriendly" content="true"/>
|
39 |
+
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
40 |
+
<meta http-equiv="cleartype" content="on" />
|
41 |
+
<?php if ($browser->getBrowser()== Browser::BROWSER_IPHONE ){?>
|
42 |
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
43 |
+
<meta name="apple-touch-fullscreen" content="yes" />
|
44 |
+
<?php }
|
45 |
+
//}
|
46 |
+
?>
|
47 |
+
|
48 |
+
<link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
|
49 |
+
<link rel="shortcut icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
|
50 |
+
|
51 |
+
<script type="text/javascript">
|
52 |
+
//<![CDATA[
|
53 |
+
var SKIN_URL = '<?php echo $var_yttheme->skinurl();?>';
|
54 |
+
var TMPL_NAME = '<?php echo $var_yttheme->template;?>';
|
55 |
+
var TMPL_COOKIE = <?php echo json_encode($paramscookie); ?>;
|
56 |
+
document.write('<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('css/css3.css')?>" media="all" \/>');
|
57 |
+
//]]>
|
58 |
+
</script>
|
59 |
+
<?php echo $this->getCssJsHtml() ?>
|
60 |
+
<?php echo $this->getChildHtml() ?>
|
61 |
+
|
62 |
+
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
|
63 |
+
<link media="all" href="<?php echo $this->getSkinUrl('smartaddons/megamenu/css/horizontal/black/megamenu.css');?>" type="text/css" rel="stylesheet" />
|
64 |
+
|
65 |
+
<?php
|
66 |
+
// Google Font & Element use
|
67 |
+
$googleWebFont = $var_yttheme->getParam('googleWebFont');
|
68 |
+
$googleWebFontTargets = $var_yttheme->getParam('googleWebFontTargets');
|
69 |
+
// $fonttoTargets = $var_yttheme->getParam('fonttoTarget');
|
70 |
+
if ($googleWebFont != "" && $googleWebFont != " ") {
|
71 |
+
$googleWebFontFamily = str_replace(" ","+",$googleWebFont); ?>
|
72 |
+
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $googleWebFontFamily; ?>" media="all" />
|
73 |
+
<?php
|
74 |
+
$googleWebFontFamily = strpos($googleWebFontFamily, ':')?substr($googleWebFontFamily, 0, strpos($googleWebFontFamily, ':')):$googleWebFontFamily;
|
75 |
+
|
76 |
+
}
|
77 |
+
?>
|
78 |
+
<style type="text/css">
|
79 |
+
<?php
|
80 |
+
// Body Font size
|
81 |
+
echo '
|
82 |
+
body.'.$var_yttheme->template.'{
|
83 |
+
font-size:'.$var_yttheme->getParam('fontsize').';
|
84 |
+
}';
|
85 |
+
// Body Font family
|
86 |
+
if(trim($var_yttheme->getParam('font_name'))!='')
|
87 |
+
echo '
|
88 |
+
body.'.$var_yttheme->template.'{
|
89 |
+
font-family:'.$var_yttheme->getParam('font_name').',sans-serif;
|
90 |
+
}';
|
91 |
+
if(trim($googleWebFontTargets)!="")
|
92 |
+
echo $googleWebFontTargets.'{
|
93 |
+
font-family:'.$googleWebFont.', serif !important
|
94 |
+
}';
|
95 |
+
// if(trim($fonttoTargets)!="")
|
96 |
+
// echo $fonttoTargets.'{
|
97 |
+
// font-family:'.$var_yttheme->getParam('font_name').', serif !important;
|
98 |
+
// }';
|
99 |
+
echo '
|
100 |
+
body.'.$var_yttheme->template.'{
|
101 |
+
background-color:'.$var_yttheme->getParam('bgcolor').' ;
|
102 |
+
color:'.$var_yttheme->getParam('textcolor').' ;
|
103 |
+
}
|
104 |
+
body.'.$var_yttheme->template.' a{
|
105 |
+
color:'.$var_yttheme->getParam('linkcolor').' ;
|
106 |
+
}
|
107 |
+
.forbgmenu > .inner-border,
|
108 |
+
#bg_menu{
|
109 |
+
background-color:'.$var_yttheme->getParam('header-bgcolor').' ;
|
110 |
+
}
|
111 |
+
#bg_footer_bottom{
|
112 |
+
background-color:'.$var_yttheme->getParam('footer-bgcolor').' ;
|
113 |
+
}';
|
114 |
+
?>
|
115 |
+
</style>
|
116 |
+
|
117 |
+
|
118 |
+
<?php if( $var_yttheme->getParam('showCpanel') ) { ?>
|
119 |
+
<link rel="stylesheet" href="<?php echo $this->getSkinUrl('css/new_cpanel.css'); ?>" type="text/css" />
|
120 |
+
<link rel="stylesheet" href="<?php echo $this->getSkinUrl('css/minicolors/jquery.miniColors.css'); ?>" type="text/css" />
|
121 |
+
<?php } ?>
|
122 |
+
|
123 |
+
|
124 |
+
|
125 |
+
<link rel="stylesheet" href="<?php echo $this->getSkinUrl('css/colors/'.$var_yttheme->getParam('sitestyle').'.css') ?>" type="text/css" />
|
126 |
+
<?php
|
127 |
+
if($var_yttheme->isChrome()){
|
128 |
+
?>
|
129 |
+
<link rel="stylesheet" href="<?php echo $this->getSkinUrl('css/chrome.css'); ?>" type="text/css" />
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
?>
|
133 |
+
<link rel="stylesheet" href="<?php echo $this->getSkinUrl('css/cloudzoom.css'); ?>" type="text/css" />
|
134 |
+
<?php
|
135 |
+
if (null == Mage::registry('jsmart.jquery')){
|
136 |
+
// if module allowed jquery.
|
137 |
+
Mage::register('jsmart.jquery', 1);
|
138 |
+
?>
|
139 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery-1.7.2.min.js') ?>"></script>
|
140 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jsmart.noconflict.js') ?>"></script>
|
141 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.pajinate.js') ?>"></script>
|
142 |
+
<?php
|
143 |
+
}
|
144 |
+
?>
|
145 |
+
|
146 |
+
<script type="text/javascript">
|
147 |
+
//<![CDATA[
|
148 |
+
$jsmart(document).ready(function($){
|
149 |
+
/* Begin: add class pattern for element */
|
150 |
+
var bodybgimage = '<?php echo $var_yttheme->getParam('body-bgimage');?>';
|
151 |
+
var headerbgimage = '<?php echo $var_yttheme->getParam('header-bgimage');?>';
|
152 |
+
var footerbgimage = '<?php echo $var_yttheme->getParam('footer-bgimage');?>';
|
153 |
+
if(bodybgimage){
|
154 |
+
<?php /* $('#yt_container').addClass(bodybgimage); */ ?>
|
155 |
+
<?php /* $('#yt_topsl').addClass(bodybgimage); */ ?>
|
156 |
+
$('#bd').addClass(bodybgimage);
|
157 |
+
}
|
158 |
+
if(headerbgimage){
|
159 |
+
$('#bg_menu').addClass(headerbgimage);
|
160 |
+
$('.forbgmenu').addClass(headerbgimage);
|
161 |
+
}
|
162 |
+
if(footerbgimage){
|
163 |
+
$('#bg_footer_bottom').addClass(footerbgimage);
|
164 |
+
}
|
165 |
+
/* End: add class pattern for element */
|
166 |
+
// $(".shop-access li:eq(0)").addClass("item-li0");
|
167 |
+
// $(".shop-access li:eq(1)").addClass("item-li1");
|
168 |
+
// $(".shop-access li:eq(2)").addClass("item-li2");
|
169 |
+
// $(".shop-access li:eq(3)").addClass("item-li3");
|
170 |
+
// $(".shop-access li:eq(4)").addClass("item-li4");
|
171 |
+
|
172 |
+
|
173 |
+
|
174 |
+
$('.plus-button').click(function(e) {
|
175 |
+
|
176 |
+
var $this = $(this);
|
177 |
+
if( $this.is('.active') ) {
|
178 |
+
$this.removeClass('active');
|
179 |
+
}
|
180 |
+
else {
|
181 |
+
$this.addClass('active');
|
182 |
+
}
|
183 |
+
$('.header-top .mega-menu').slideToggle();
|
184 |
+
return false;
|
185 |
+
});
|
186 |
+
|
187 |
+
$('body, .header-top .mega-menu span').click(function() {
|
188 |
+
$('.header-top .mega-menu').hide();
|
189 |
+
$('.plus-button').removeClass('active');
|
190 |
+
});
|
191 |
+
|
192 |
+
$(".login-quick").hide();
|
193 |
+
|
194 |
+
$('.li-add li a').click(function(){
|
195 |
+
$(".login-quick").slideToggle("fast");
|
196 |
+
$(".shop-access .li-add li").toggleClass("active");
|
197 |
+
});
|
198 |
+
|
199 |
+
$('.slider-manufactures .manu-items a:last').addClass("last");
|
200 |
+
$('.sm_megamenu_drop div.sm_megamenu_col_1:last').addClass("last");
|
201 |
+
$('.sm_megamenu_menu li:last').addClass("last-item");
|
202 |
+
|
203 |
+
|
204 |
+
$("div.product-image").hover(
|
205 |
+
function () {
|
206 |
+
// $(this).find(".new-item").hide();
|
207 |
+
// $(this).find(".sale-item").hide();
|
208 |
+
// $(this).find(".popup-box").show();
|
209 |
+
// $(this).find(".product-image").css("opacity","0.3");
|
210 |
+
// $(this).find(".link-image-new").css("opacity","0.3");
|
211 |
+
// $(this).find(".product-imgs").css("opacity","0.3");
|
212 |
+
$(this).parent().find(".product-box").after('<span class="li-select"></span>');
|
213 |
+
|
214 |
+
},
|
215 |
+
function () {
|
216 |
+
// $(this).find(".new-item").show();
|
217 |
+
// $(this).find(".sale-item").show();
|
218 |
+
// $(this).find(".popup-box").hide();
|
219 |
+
// $(this).find(".product-image").css("opacity","1");
|
220 |
+
// $(this).find(".link-image-new").css("opacity","1");
|
221 |
+
// $(this).find(".product-imgs").css("opacity","1");
|
222 |
+
$(this).parent().find('.li-select').remove();
|
223 |
+
}
|
224 |
+
);
|
225 |
+
$(".image-list").hover(
|
226 |
+
function () {
|
227 |
+
// $(this).find(".new-item").hide();
|
228 |
+
// $(this).find(".sale-item").hide();
|
229 |
+
// $(this).find(".popup-box").show();
|
230 |
+
// $(this).find(".product-image").css("opacity","0.3");
|
231 |
+
// $(this).find(".product-imgs").css("opacity","0.3");
|
232 |
+
// $(this).parent().find(".product-shop").after('<span class="li-select-list"></span>');
|
233 |
+
},
|
234 |
+
function () {
|
235 |
+
// $(this).find(".new-item").show();
|
236 |
+
// $(this).find(".sale-item").show();
|
237 |
+
// $(this).find(".popup-box").hide();
|
238 |
+
// $(this).find(".product-image").css("opacity","1");
|
239 |
+
// $(this).find(".product-imgs").css("opacity","1");
|
240 |
+
// $(this).parent().find('.li-select-list').remove();
|
241 |
+
}
|
242 |
+
);
|
243 |
+
|
244 |
+
|
245 |
+
});
|
246 |
+
|
247 |
+
Image1 = new Image(1,573)
|
248 |
+
Image1.src = "<?php echo $this->getSkinUrl("images/bg_menu.png") ?>"
|
249 |
+
Image2 = new Image(250,29)
|
250 |
+
Image2.src = "<?php echo $this->getSkinUrl("images/username.png") ?>"
|
251 |
+
Image3 = new Image(250,29)
|
252 |
+
Image3.src = "<?php echo $this->getSkinUrl("images/pass.png") ?>"
|
253 |
+
// Image4 = new Image(80,28)
|
254 |
+
// Image4.src = "<?php echo $this->getSkinUrl("images/login.jpg") ?>"
|
255 |
+
Image5 = new Image(80,28)
|
256 |
+
Image5.src = "<?php echo $this->getSkinUrl("images/login-h.jpg") ?>"
|
257 |
+
|
258 |
+
Image6 = new Image(14,14)
|
259 |
+
Image6.src = "<?php echo $this->getSkinUrl("images/grid-h.png") ?>"
|
260 |
+
Image7 = new Image(14,14)
|
261 |
+
Image7.src = "<?php echo $this->getSkinUrl("images/grid.png") ?>"
|
262 |
+
Image8 = new Image(14,14)
|
263 |
+
Image8.src = "<?php echo $this->getSkinUrl("images/list-h.png") ?>"
|
264 |
+
Image9 = new Image(14,14)
|
265 |
+
Image9.src = "<?php echo $this->getSkinUrl("images/list.png") ?>"
|
266 |
+
|
267 |
+
ImageA = new Image(26,25)
|
268 |
+
ImageA.src = "<?php echo $this->getSkinUrl("images/prevh-h.png") ?>"
|
269 |
+
ImageB = new Image(26,25)
|
270 |
+
ImageB.src = "<?php echo $this->getSkinUrl("images/prevh.png") ?>"
|
271 |
+
ImageC = new Image(26,25)
|
272 |
+
ImageC.src = "<?php echo $this->getSkinUrl("images/nexth-h.png") ?>"
|
273 |
+
ImageD = new Image(26,25)
|
274 |
+
ImageD.src = "<?php echo $this->getSkinUrl("images/nexth.png") ?>"
|
275 |
+
//]]>
|
276 |
+
</script>
|
277 |
+
|
278 |
+
<script type="text/javascript">
|
279 |
+
//<![CDATA[
|
280 |
+
// $jsmart(function($){ $(".block-poll .radio").uniform(); });
|
281 |
+
$jsmart(function($){
|
282 |
+
$("#yt_tabitem_reviewform .data-table .radio").uniform();
|
283 |
+
$("#chk_remember").uniform();
|
284 |
+
});
|
285 |
+
//]]>
|
286 |
+
</script>
|
287 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.uniform.min.js') ?>"></script>
|
288 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('bootstrap/js/bootstrap.min.js') ?>"></script>
|
289 |
+
|
290 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/cloud-zoom.1.0.2.js') ?>"></script>
|
291 |
+
|
292 |
+
|
293 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jcarousellite_1.0.1.js') ?>"></script>
|
294 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.easing.js') ?>"></script>
|
295 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.colorbox-min.js') ?>"></script>
|
296 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/yt-script.js') ?>"></script>
|
297 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.cookie.min.js') ?>"></script>
|
298 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.accordion_snyderplace.js') ?>"></script>
|
299 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/yt-extend.js') ?>"></script>
|
app/design/frontend/default/sm_glasses_free/template/page/html/header.phtml
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
global $var_yttheme;
|
27 |
+
//$var_yttheme->renderToolList(2, 'gif');
|
28 |
+
?>
|
29 |
+
<?php /*
|
30 |
+
<div id="yt_header" class="wrap">*/ ?>
|
31 |
+
<div class="main clearfix main-top">
|
32 |
+
<div class="header-mobi">
|
33 |
+
<div class="navbar navbar-inverse navbar-fixed-top">
|
34 |
+
<div class="container">
|
35 |
+
<div class="navbar-inner">
|
36 |
+
<button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar" type="button">
|
37 |
+
<span class="icon-bar"></span>
|
38 |
+
<span class="icon-bar"></span>
|
39 |
+
<span class="icon-bar"></span>
|
40 |
+
</button>
|
41 |
+
<div class="nav-collapse collapse">
|
42 |
+
<?php echo $this->getChildHtml('topLinks') ?>
|
43 |
+
<!--<strong><?php //echo $this->getWelcome() ?></strong>-->
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<div class="header-top">
|
50 |
+
<div class="container">
|
51 |
+
<div class="row">
|
52 |
+
<div class="header-logomenu span3" data-normal="span4" data-tablet="span4" data-stablet="span4" >
|
53 |
+
<h1 id="logo" class="font1">
|
54 |
+
<a href="<?php echo $this->getUrl('') ?>"><span>Lorem ipsum dolor sit met consectetuer</span></a>
|
55 |
+
<div class="plus-button"> </div>
|
56 |
+
</h1>
|
57 |
+
<div class="mega-menu" style="display:none">
|
58 |
+
<?php
|
59 |
+
if($var_yttheme->getParam('menustyle')=='mega'){
|
60 |
+
echo $this->getChildHtml('megaMenu');
|
61 |
+
}else{
|
62 |
+
echo $this->getChildHtml('topMenu');
|
63 |
+
}
|
64 |
+
?>
|
65 |
+
<div class="social">
|
66 |
+
<h4>Social With Us </h4>
|
67 |
+
<div class="social-items">
|
68 |
+
<ul>
|
69 |
+
<li class="facebook"> <a href="#"> facebook </a></li>
|
70 |
+
<li class="boubledot"> <a href="#"> boubledot </a></li>
|
71 |
+
<li class="googleplus"> <a href="#"> googleplus </a></li>
|
72 |
+
<li class="twitter"> <a href="#"> twitter </a></li>
|
73 |
+
<li class="versi"> <a href="#"> versi </a></li>
|
74 |
+
<li class="balls"> <a href="#"> balls </a></li>
|
75 |
+
</ul>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
<div id="bg_menu" class="inner-border"></div>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
<div class="span9 offset3" data-normal="span8" data-tablet="span8" data-stablet="span8" >
|
82 |
+
<div class="yt-quick-access" >
|
83 |
+
<div class="quick-access">
|
84 |
+
<div class="shop-access <?php echo (!$this->helper('customer')->isLoggedIn() )?'notlogin':'islogin' ?> ">
|
85 |
+
<?php echo $this->getChildHtml('topLinks') ?>
|
86 |
+
<!--<strong><?php //echo $this->getWelcome() ?></strong>-->
|
87 |
+
|
88 |
+
<?php if(!$this->helper('customer')->isLoggedIn() ): ?>
|
89 |
+
<ul class="li-add">
|
90 |
+
<li class="last item-li4">
|
91 |
+
<a title="Log In" href="javascript:void(0)">Log In</a>
|
92 |
+
<div class="login-quick" style="display:none">
|
93 |
+
<?php echo $this->getChildHtml('customer_form_mini_login') ?>
|
94 |
+
</div>
|
95 |
+
</li>
|
96 |
+
</ul>
|
97 |
+
<?php endif; ?>
|
98 |
+
|
99 |
+
</div>
|
100 |
+
|
101 |
+
<!-- BEGIN: Search -->
|
102 |
+
<div class="top-search">
|
103 |
+
<?php echo $this->getChildHtml('topSearch') ?>
|
104 |
+
</div>
|
105 |
+
<!-- END: Search -->
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
|
113 |
+
<!-- BEGIN: Main Navigation -->
|
114 |
+
<!-- <div class="navbar navbar-inverse navbar-fixed-top"> -->
|
115 |
+
<div class="header-nav">
|
116 |
+
<!-- <div class="navbar-inner"> -->
|
117 |
+
<div class="container">
|
118 |
+
<div class="header-nav-inner">
|
119 |
+
<div class="row">
|
120 |
+
<div class="span12" data-normal="span12" data-tablet="span12" data-stablet="span12">
|
121 |
+
<div id="yt_mainnav" class="clearfix">
|
122 |
+
<?php echo $this->getChildHtml('mobinav') ?>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
<!-- </div> -->
|
129 |
+
</div>
|
130 |
+
<!-- END: Main Navigation -->
|
131 |
+
</div>
|
132 |
+
<!--
|
133 |
+
<div id="yt_mainnav" class="clearfix">
|
134 |
+
<?php
|
135 |
+
if($var_yttheme->getParam('menustyle')=='mega'){
|
136 |
+
// echo $this->getChildHtml('megaMenu');
|
137 |
+
}else{
|
138 |
+
// echo $this->getChildHtml('topMenu');
|
139 |
+
}
|
140 |
+
?>
|
141 |
+
<?php // echo $this->getChildHtml('mobinav') ?>
|
142 |
+
</div>
|
143 |
+
-->
|
app/design/frontend/default/sm_glasses_free/template/page/html/new_cpanel.phtml
ADDED
@@ -0,0 +1,421 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php global $var_yttheme;
|
2 |
+
// Include cpanel
|
3 |
+
if( $var_yttheme->getParam('showCpanel') ) {
|
4 |
+
?>
|
5 |
+
<div id="cpanel_wrapper" style="direction:ltr">
|
6 |
+
<div class="cpanel-head">Template Settings</div>
|
7 |
+
<div class="cpanel-theme-color">
|
8 |
+
<span class="theme-color-heading">Select color sample for all params</span>
|
9 |
+
<div class="inner clearfix">
|
10 |
+
<span title="Yellow" class="theme-color yellow<?php echo ($var_yttheme->getParam('sitestyle')=='yellow')?' active':'';?>">Yellow</span>
|
11 |
+
<span title="Pink" class="theme-color pink<?php echo ($var_yttheme->getParam('sitestyle')=='pink')?' active':'';?>">Pink</span>
|
12 |
+
<span title="Green" class="theme-color green<?php echo ($var_yttheme->getParam('sitestyle')=='green')?' active':'';?>">Green</span>
|
13 |
+
<span title="Purple" class="theme-color purple<?php echo ($var_yttheme->getParam('sitestyle')=='purple')?' active':'';?>">Purple</span>
|
14 |
+
<span title="Cyan" class="theme-color cyan<?php echo ($var_yttheme->getParam('sitestyle')=='cyan')?' active':'';?>">Cyan</span>
|
15 |
+
</div>
|
16 |
+
</div>
|
17 |
+
<div class="accordion" id="ytcpanel_accordion">
|
18 |
+
<!--Body-->
|
19 |
+
<div class="accordion-group cpnel-body">
|
20 |
+
<div class="accordion-heading">
|
21 |
+
<a class="accordion-toggle" data-toggle="collapse" data-parent="#ytcpanel_accordion" href="#ytitem_1">
|
22 |
+
Body
|
23 |
+
</a>
|
24 |
+
</div>
|
25 |
+
<div id="ytitem_1" class="accordion-body collapse in">
|
26 |
+
<div class="accordion-inner clearfix">
|
27 |
+
<!-- Body Background color -->
|
28 |
+
<div class="cp-item body-background-color">
|
29 |
+
<span>Background color</span>
|
30 |
+
<div class="inner">
|
31 |
+
<input type="text" value="<?php echo $var_yttheme->getParam('bgcolor');?>" autocomplete="off" size="7" class="color-picker miniColors" name="ytcpanel_bgcolor" maxlength="7"/>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
<!-- Link color-->
|
35 |
+
<div class="cp-item link-color">
|
36 |
+
<span>Link color</span>
|
37 |
+
<div class="inner">
|
38 |
+
<input type="text" value="<?php echo $var_yttheme->getParam('linkcolor');?>" autocomplete="off" size="7" class="color-picker miniColors" name="ytcpanel_linkcolor" maxlength="7"/>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
<!-- Text color-->
|
42 |
+
<div class="cp-item text-color">
|
43 |
+
<span>Text color</span>
|
44 |
+
<div class="inner">
|
45 |
+
<input type="text" value="<?php echo $var_yttheme->getParam('textcolor'); ?>" autocomplete="off" size="7" class="color-picker miniColors" name="ytcpanel_textcolor" maxlength="7"/>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
<!-- Background image-->
|
49 |
+
<div class="cp-item body-background-image">
|
50 |
+
<span>Background image</span>
|
51 |
+
<div class="inner">
|
52 |
+
<input type="hidden" name="ytcpanel_body-bgimage" value="<?php echo $var_yttheme->getParam('body-bgimage'); ?>"/>
|
53 |
+
<a href="#bd" title="pattern1" class="pattern pattern1<?php echo ($var_yttheme->getParam('body-bgimage')=='pattern1')?' active':''?>">pattern1</a>
|
54 |
+
<a href="#bd" title="pattern2" class="pattern pattern2<?php echo ($var_yttheme->getParam('body-bgimage')=='pattern2')?' active':''?>">pattern2</a>
|
55 |
+
<a href="#bd" title="pattern3" class="pattern pattern3<?php echo ($var_yttheme->getParam('body-bgimage')=='pattern3')?' active':''?>">pattern3</a>
|
56 |
+
<a href="#bd" title="pattern4" class="pattern pattern4<?php echo ($var_yttheme->getParam('body-bgimage')=='pattern4')?' active':''?>">pattern4</a>
|
57 |
+
<a href="#bd" title="pattern5" class="pattern pattern5<?php echo ($var_yttheme->getParam('body-bgimage')=='pattern5')?' active':''?>">pattern5</a>
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
<!-- Header-->
|
64 |
+
|
65 |
+
<div class="accordion-group cpanel-header">
|
66 |
+
<div class="accordion-heading">
|
67 |
+
<a class="accordion-toggle" data-toggle="collapse" data-parent="#ytcpanel_accordion" href="#ytitem_2">
|
68 |
+
Header
|
69 |
+
</a>
|
70 |
+
</div>
|
71 |
+
<div id="ytitem_2" class="accordion-body collapse">
|
72 |
+
<div class="accordion-inner clearfix">
|
73 |
+
<!-- Background color -->
|
74 |
+
<div class="cp-item header-background-color">
|
75 |
+
<span>Background color</span>
|
76 |
+
<div class="inner">
|
77 |
+
<input type="text" value="<?php echo $var_yttheme->getParam('header-bgcolor');?>" autocomplete="off" size="7" class="color-picker miniColors" name="ytcpanel_header-bgcolor" maxlength="7"/>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<!-- Background image-->
|
81 |
+
<div class="cp-item header-background-image">
|
82 |
+
<span>Background image</span>
|
83 |
+
<div class="inner">
|
84 |
+
<input type="hidden" name="ytcpanel_header-bgimage" value="<?php echo $var_yttheme->getParam('header-bgimage'); ?>"/>
|
85 |
+
<a href="#bg_menu" title="hpattern1" class="pattern hpattern1<?php echo ($var_yttheme->getParam('header-bgimage')=='hpattern1')?' active':''?>">hpattern1</a>
|
86 |
+
<a href="#bg_menu" title="hpattern2" class="pattern hpattern2<?php echo ($var_yttheme->getParam('header-bgimage')=='hpattern2')?' active':''?>">hpattern2</a>
|
87 |
+
<a href="#bg_menu" title="hpattern3" class="pattern hpattern3<?php echo ($var_yttheme->getParam('header-bgimage')=='hpattern3')?' active':''?>">hpattern3</a>
|
88 |
+
<a href="#bg_menu" title="hpattern4" class="pattern hpattern4<?php echo ($var_yttheme->getParam('header-bgimage')=='hpattern4')?' active':''?>">hpattern4</a>
|
89 |
+
<a href="#bg_menu" title="hpattern5" class="pattern hpattern5<?php echo ($var_yttheme->getParam('header-bgimage')=='hpattern5')?' active':''?>">hpattern5</a>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
|
96 |
+
<!-- Footer-->
|
97 |
+
<div class="accordion-group cpanel-footer">
|
98 |
+
<div class="accordion-heading">
|
99 |
+
<a class="accordion-toggle" data-toggle="collapse" data-parent="#ytcpanel_accordion" href="#ytitem_3">
|
100 |
+
Footer
|
101 |
+
</a>
|
102 |
+
</div>
|
103 |
+
<div id="ytitem_3" class="accordion-body collapse">
|
104 |
+
<div class="accordion-inner clearfix">
|
105 |
+
<!-- Background color -->
|
106 |
+
<div class="cp-item footer-background-color">
|
107 |
+
<span>Background color</span>
|
108 |
+
<div class="inner">
|
109 |
+
<input type="text" value="<?php echo $var_yttheme->getParam('footer-bgcolor');?>" autocomplete="off" size="7" class="color-picker miniColors" name="ytcpanel_footer-bgcolor" maxlength="7"/>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
<!-- Background image-->
|
113 |
+
<div class="cp-item footer-background-image">
|
114 |
+
<span>Background image</span>
|
115 |
+
<div class="inner">
|
116 |
+
<input type="hidden" value="<?php echo $var_yttheme->getParam('footer-bgimage');?>" name="ytcpanel_footer-bgimage" />
|
117 |
+
<a href="<?php /* #yt_footerwrap */ ?>#bg_footer_bottom" title="fpattern1" class="pattern fpattern1<?php echo ($var_yttheme->getParam('footer-bgimage')=='fpattern1')?' active':''?>">fpattern1</a>
|
118 |
+
<a href="<?php /* #yt_footerwrap */ ?>#bg_footer_bottom" title="fpattern2" class="pattern fpattern2<?php echo ($var_yttheme->getParam('footer-bgimage')=='fpattern2')?' active':''?>">fpattern2</a>
|
119 |
+
<a href="<?php /* #yt_footerwrap */ ?>#bg_footer_bottom" title="fpattern3" class="pattern fpattern3<?php echo ($var_yttheme->getParam('footer-bgimage')=='fpattern3')?' active':''?>">fpattern3</a>
|
120 |
+
<a href="<?php /* #yt_footerwrap */ ?>#bg_footer_bottom" title="fpattern4" class="pattern fpattern4<?php echo ($var_yttheme->getParam('footer-bgimage')=='fpattern4')?' active':''?>">fpattern4</a>
|
121 |
+
<a href="<?php /* #yt_footerwrap */ ?>#bg_footer_bottom" title="fpattern5" class="pattern fpattern5<?php echo ($var_yttheme->getParam('footer-bgimage')=='fpattern5')?' active':''?>">fpattern5</a>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
<!-- Menu -->
|
128 |
+
<div class="accordion-group cpanel-footer">
|
129 |
+
<div class="accordion-heading">
|
130 |
+
<a class="accordion-toggle" data-toggle="collapse" data-parent="#ytcpanel_accordion" href="#ytitem_6">
|
131 |
+
Menu style
|
132 |
+
</a>
|
133 |
+
</div>
|
134 |
+
<div id="ytitem_6" class="accordion-body collapse">
|
135 |
+
<div class="accordion-inner clearfix">
|
136 |
+
<!-- Styles -->
|
137 |
+
<div class="cp-item footer-background-color">
|
138 |
+
<span>Styles</span>
|
139 |
+
<div class="inner">
|
140 |
+
<select onchange="javascript: onCPApply();" name="ytcpanel_menustyle" class="cp_select">
|
141 |
+
<option value="mega"<?php echo ($var_yttheme->getParam('menustyle')=='mega')?' selected="selected"':'';?>>Mega</option>
|
142 |
+
<option value="css"<?php echo ($var_yttheme->getParam('menustyle')=='css')?' selected="selected"':'';?>>Css</option>
|
143 |
+
<option value="split"<?php echo ($var_yttheme->getParam('menustyle')=='split')?' selected="selected"':'';?>>Split</option>
|
144 |
+
</select>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
<!-- Typography -->
|
151 |
+
<div class="accordion-group cpanel-typography">
|
152 |
+
<div class="accordion-heading">
|
153 |
+
<a class="accordion-toggle" data-toggle="collapse" data-parent="#ytcpanel_accordion" href="#ytitem_4">
|
154 |
+
Typography
|
155 |
+
</a>
|
156 |
+
</div>
|
157 |
+
<div id="ytitem_4" class="accordion-typo collapse">
|
158 |
+
<div class="accordion-inner clearfix">
|
159 |
+
<!-- Google font -->
|
160 |
+
<div class="cp-item">
|
161 |
+
<span>Google font</span>
|
162 |
+
<div class="inner">
|
163 |
+
<?php
|
164 |
+
$googleFont = array(
|
165 |
+
'Archivo Narrow' =>'Archivo Narrow',
|
166 |
+
'Oswald' =>'Oswald',
|
167 |
+
'Open Sans' =>'Open Sans',
|
168 |
+
'BenchNine' =>'BenchNine',
|
169 |
+
'Droid Sans' =>'Droid Sans',
|
170 |
+
'Droid Serif' =>'Droid Serif',
|
171 |
+
'PT Sans' =>'PT Sans',
|
172 |
+
'Vollkorn' =>'Vollkorn',
|
173 |
+
'Ubuntu' =>'Ubuntu',
|
174 |
+
'Neucha' =>'Neucha',
|
175 |
+
'Cuprum' =>'Cuprum'
|
176 |
+
);
|
177 |
+
?>
|
178 |
+
<select onchange="javascript: onCPApply();" name="ytcpanel_googleWebFont" class="cp_select">
|
179 |
+
<?php foreach($googleFont as $k=>$v):?>
|
180 |
+
<option value="<?php echo $v; ?>"<?php echo ($var_yttheme->getParam('googleWebFont')==$v)?' selected="selected"':'';?>><?php echo $k; ?></option>
|
181 |
+
<?php endforeach; ?>
|
182 |
+
</select>
|
183 |
+
</div>
|
184 |
+
</div>
|
185 |
+
<!-- Body font-size -->
|
186 |
+
<div class="cp-item">
|
187 |
+
<span>Body font-size</span>
|
188 |
+
<div class="inner">
|
189 |
+
<?php
|
190 |
+
$fontfamily = array(
|
191 |
+
'10px'=>'10px',
|
192 |
+
'11px'=>'11px',
|
193 |
+
'12px'=>'12px',
|
194 |
+
'13px'=>'13px',
|
195 |
+
'14px'=>'14px',
|
196 |
+
'15px'=>'15px',
|
197 |
+
'16px'=>'16px',
|
198 |
+
'17px'=>'17px',
|
199 |
+
'18px'=>'18px'
|
200 |
+
);
|
201 |
+
?>
|
202 |
+
<select onchange="javascript: onCPApply();" name="ytcpanel_fontsize" class="cp_select">
|
203 |
+
<?php foreach($fontfamily as $k=>$v):?>
|
204 |
+
<option value="<?php echo $v; ?>"<?php echo ($var_yttheme->getParam('fontsize')==$v)?' selected="selected"':'';?>><?php echo $k; ?></option>
|
205 |
+
<?php endforeach; ?>
|
206 |
+
</select>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
<!-- Body font-family -->
|
210 |
+
<div class="cp-item body-fontfamily">
|
211 |
+
<span>Body font-family</span>
|
212 |
+
<div class="inner">
|
213 |
+
<?php
|
214 |
+
$fontfamily = array(
|
215 |
+
'Arial'=>'arial',
|
216 |
+
'Arial Black'=>'arial-black',
|
217 |
+
'Courier New'=>'courier',
|
218 |
+
'Georgia'=>'georgia',
|
219 |
+
'Impact'=>'impact',
|
220 |
+
'Lucida Console'=>'lucida-console',
|
221 |
+
'Lucida Grande'=>'lucida-grande',
|
222 |
+
'Palatino'=>'palatino',
|
223 |
+
'Tahoma'=>'tahoma',
|
224 |
+
'Times New Roman'=>'times',
|
225 |
+
'Trebuchet'=>'trebuchet',
|
226 |
+
'Verdana'=>'verdana'
|
227 |
+
);
|
228 |
+
?>
|
229 |
+
<select onchange="javascript: onCPApply();" name="ytcpanel_font_name" class="cp_select">
|
230 |
+
<?php foreach($fontfamily as $k=>$v):?>
|
231 |
+
<option value="<?php echo $v; ?>"<?php echo ($var_yttheme->getParam('font_name')==$v)?' selected="selected"':'';?>><?php echo $k; ?></option>
|
232 |
+
<?php endforeach; ?>
|
233 |
+
</select>
|
234 |
+
</div>
|
235 |
+
</div>
|
236 |
+
|
237 |
+
</div>
|
238 |
+
|
239 |
+
</div>
|
240 |
+
</div>
|
241 |
+
|
242 |
+
</div>
|
243 |
+
<!-- Action button -->
|
244 |
+
<div class="action">
|
245 |
+
<!--<input id="yt_button_cpanel" class="btn btn-info" type="button" onclick="javascript: onCPApply();" value="Apply" class="button" />-->
|
246 |
+
<a class="btn btn-info reset" href="#" onclick="javascript: onCPResetDefault(TMPL_COOKIE);">Reset</a>
|
247 |
+
</div>
|
248 |
+
<div id="cpanel_btn" class="normal">
|
249 |
+
<i class="icon-hand-right"></i>
|
250 |
+
</div>
|
251 |
+
</div>
|
252 |
+
|
253 |
+
<script type="text/javascript">
|
254 |
+
// <![CDATA[
|
255 |
+
$jsmart(document).ready(function($){
|
256 |
+
/* Begin: Enabling miniColors */
|
257 |
+
//$('.color-picker').miniColors();
|
258 |
+
$('.body-background-color .color-picker').miniColors({
|
259 |
+
|
260 |
+
change: function(hex, rgb) {
|
261 |
+
$('body').css('background-color', hex);
|
262 |
+
createCookie(TMPL_NAME+'_'+($(this).attr('name').match(/^ytcpanel_(.*)$/))[1], hex, 365);
|
263 |
+
}
|
264 |
+
});
|
265 |
+
$('.link-color .color-picker').miniColors({
|
266 |
+
change: function(hex, rgb) {
|
267 |
+
$('body a').css('color', hex);
|
268 |
+
createCookie(TMPL_NAME+'_'+($(this).attr('name').match(/^ytcpanel_(.*)$/))[1], hex, 365);
|
269 |
+
}
|
270 |
+
});
|
271 |
+
$('.text-color .color-picker').miniColors({
|
272 |
+
change: function(hex, rgb) {
|
273 |
+
$('.yt-col .label').css('color', hex);
|
274 |
+
$('.contacts-index-index .subtitle').css('color', hex);
|
275 |
+
$('.ytc_background_theme1 .price-label').css('color', hex);
|
276 |
+
$('#yt_slideshow .block-description span').css('color', hex);
|
277 |
+
$('#yt_tabitem_reviewform th').css('color', hex);
|
278 |
+
$('.block-wishlist .price-label').css('color', hex);
|
279 |
+
$('.product-essential .ratings .rating-links a').css('color', hex);
|
280 |
+
$('.product-essential .price-label').css('color', hex);
|
281 |
+
$('.products-list .price-label').css('color', hex);
|
282 |
+
$('.products-grid .price-label').css('color', hex);
|
283 |
+
$('#crosssell-products-list .add-to-links a').css('color', hex);
|
284 |
+
$('.product-essential .add-to-links a').css('color', hex);
|
285 |
+
$('.product-essential .stock-status').css('color', hex);
|
286 |
+
$('.products-list .stock-status').css('color', hex);
|
287 |
+
$('#yt_tab_products .yt-tab-content .box-tags').css('color', hex);
|
288 |
+
$('.toolbar').css('color', hex);
|
289 |
+
$('.price-title').css('color', hex);
|
290 |
+
$('.compare-table, .compare-table .price-label').css('color', hex);
|
291 |
+
$('#crosssell-products-list .price-label').css('color', hex);
|
292 |
+
$('body').css('color', hex);
|
293 |
+
createCookie(TMPL_NAME+'_'+($(this).attr('name').match(/^ytcpanel_(.*)$/))[1], hex, 365);
|
294 |
+
}
|
295 |
+
});
|
296 |
+
$('.header-background-color .color-picker').miniColors({
|
297 |
+
change: function(hex, rgb) {
|
298 |
+
$('#bg_menu').css('background-color', hex);
|
299 |
+
$('.forbgmenu').css('background-color', hex);
|
300 |
+
createCookie(TMPL_NAME+'_'+($(this).attr('name').match(/^ytcpanel_(.*)$/))[1], hex, 365);
|
301 |
+
}
|
302 |
+
});
|
303 |
+
$('.footer-background-color .color-picker').miniColors({
|
304 |
+
change: function(hex, rgb) {
|
305 |
+
/* $('#yt_spotlight2').css('background-color', hex); */
|
306 |
+
/* $('#yt_footer').css('background-color', hex); */
|
307 |
+
$('#bg_footer_bottom').css('background-color', hex);
|
308 |
+
createCookie(TMPL_NAME+'_'+($(this).attr('name').match(/^ytcpanel_(.*)$/))[1], hex, 365);
|
309 |
+
}
|
310 |
+
});
|
311 |
+
/* End: Enabling miniColors */
|
312 |
+
/* Begin: Set click pattern */
|
313 |
+
function patternClick(el, paramCookie, assign){
|
314 |
+
$(el).click(function(){
|
315 |
+
oldvalue = $(this).parent().find('.active').html();
|
316 |
+
$(el).removeClass('active');
|
317 |
+
$(this).addClass('active');
|
318 |
+
value = $(this).html();
|
319 |
+
if(assign.length > 0){
|
320 |
+
for($i=0; $i < assign.length; $i++){
|
321 |
+
$(assign[$i]).removeClass(oldvalue);
|
322 |
+
$(assign[$i]).addClass(value);
|
323 |
+
}
|
324 |
+
}
|
325 |
+
if(paramCookie){
|
326 |
+
$('input[name$="ytcpanel_'+paramCookie+'"]').attr('value', value);
|
327 |
+
createCookie(TMPL_NAME+'_'+paramCookie, value, 365);
|
328 |
+
|
329 |
+
}
|
330 |
+
});
|
331 |
+
|
332 |
+
}
|
333 |
+
patternClick('.header-background-image .pattern', 'header-bgimage', Array('#bg_menu','.forbgmenu'));
|
334 |
+
patternClick('.body-background-image .pattern', 'body-bgimage', Array('#bd', ''));
|
335 |
+
patternClick('.footer-background-image .pattern', 'footer-bgimage', Array('#bg_footer_bottom', '' /* '#yt_copyright' */ ));
|
336 |
+
/* End: Set click pattern */
|
337 |
+
function templateSetting(array){
|
338 |
+
if(array['0']){
|
339 |
+
$('.body-background-color input.miniColors').attr('value', array['0']);
|
340 |
+
$('.body-background-color a.miniColors-trigger').css('background-color', array['0']);
|
341 |
+
$('input.ytcpanel_bgcolor').attr('value', array['0']);
|
342 |
+
}
|
343 |
+
if(array['1']){
|
344 |
+
$('.link-color input.miniColors').attr('value', array['1']);
|
345 |
+
$('.link-color a.miniColors-trigger').css('background-color', array['1']);
|
346 |
+
$('input.ytcpanel_linkcolor').attr('value', array['1']);
|
347 |
+
}
|
348 |
+
if(array['2']){
|
349 |
+
$('.text-color input.miniColors').attr('value', array['2']);
|
350 |
+
$('.text-color a.miniColors-trigger').css('background-color', array['2']);
|
351 |
+
$('input.ytcpanel_textcolor').attr('value', array['2']);
|
352 |
+
}
|
353 |
+
if(array['3']){
|
354 |
+
$('.header-background-color input.miniColors').attr('value', array['3']);
|
355 |
+
$('.header-background-color a.miniColors-trigger').css('background-color', array['3']);
|
356 |
+
$('input.ytcpanel_header-bgcolor').attr('value', array['3']);
|
357 |
+
}
|
358 |
+
if(array['4']){
|
359 |
+
$('.header-background-image .pattern').removeClass('active');
|
360 |
+
$('.header-background-image .pattern.'+array['4']).addClass('active');
|
361 |
+
$('input[name$="ytcpanel_header-bgimage"]').attr('value', array['4']);
|
362 |
+
}
|
363 |
+
if(array['5']){
|
364 |
+
$('.footer-background-color input.miniColors').attr('value', array['5']);
|
365 |
+
$('.footer-background-color a.miniColors-trigger').css('background-color', array['5']);
|
366 |
+
$('input.ytcpanel_footer-bgcolor').attr('value', array['5']);
|
367 |
+
}
|
368 |
+
if(array['6']){
|
369 |
+
$('.footer-background-image .pattern').removeClass('active');
|
370 |
+
$('.footer-background-image .pattern.'+array['6']).addClass('active');
|
371 |
+
$('input[name$="ytcpanel_footer-bgimage"]').attr('value', array['6']);
|
372 |
+
}
|
373 |
+
if(array['7']){
|
374 |
+
$('.body-background-image .pattern').removeClass('active');
|
375 |
+
$('.body-background-image .pattern.'+array['7']).addClass('active');
|
376 |
+
$('input[name$="ytcpanel_body-bgimage"]').attr('value', array['7']);
|
377 |
+
}
|
378 |
+
}
|
379 |
+
var array = Array('bgcolor' , 'linkcolor' ,'textcolor' ,'header-bgcolor' ,'header-bgimage' ,'footer-bgcolor' ,'footer-bgimage', 'body-bgimage' );
|
380 |
+
var array_yellow = Array('#222' , '#EDAA00' ,'#686868' ,'#000' ,'hpattern' ,'#000' ,'fpattern', 'pattern1' );
|
381 |
+
var array_pink = Array('#222' , '#EF5BDC' ,'#686868' ,'#000' ,'hpattern' ,'#000' ,'fpattern', 'pattern1' );
|
382 |
+
var array_green = Array('#222' , '#9BC02B' ,'#686868' ,'#000' ,'hpattern' ,'#000' ,'fpattern', 'pattern1' );
|
383 |
+
var array_purple = Array('#222' , '#8E4AFF' ,'#686868' ,'#000' ,'hpattern' ,'#000' ,'fpattern', 'pattern1' );
|
384 |
+
var array_cyan = Array('#222' , '#3FC7CC' ,'#686868' ,'#000' ,'hpattern' ,'#000' ,'fpattern', 'pattern1' );
|
385 |
+
|
386 |
+
$('.theme-color.yellow').click(function(){
|
387 |
+
$($(this).parent().find('.active')).removeClass('active'); $(this).addClass('active');
|
388 |
+
createCookie(TMPL_NAME+'_'+'sitestyle', $(this).html().toLowerCase(), 365);
|
389 |
+
templateSetting(array_yellow);
|
390 |
+
onCPApply();
|
391 |
+
});
|
392 |
+
$('.theme-color.pink').click(function(){
|
393 |
+
$($(this).parent().find('.active')).removeClass('active'); $(this).addClass('active');
|
394 |
+
createCookie(TMPL_NAME+'_'+'sitestyle', $(this).html().toLowerCase(), 365);
|
395 |
+
templateSetting(array_pink);
|
396 |
+
onCPApply();
|
397 |
+
});
|
398 |
+
$('.theme-color.green').click(function(){
|
399 |
+
$($(this).parent().find('.active')).removeClass('active'); $(this).addClass('active');
|
400 |
+
createCookie(TMPL_NAME+'_'+'sitestyle', $(this).html().toLowerCase(), 365);
|
401 |
+
templateSetting(array_green);
|
402 |
+
onCPApply();
|
403 |
+
});
|
404 |
+
$('.theme-color.purple').click(function(){
|
405 |
+
$($(this).parent().find('.active')).removeClass('active'); $(this).addClass('active');
|
406 |
+
createCookie(TMPL_NAME+'_'+'sitestyle', $(this).html().toLowerCase(), 365);
|
407 |
+
templateSetting(array_purple);
|
408 |
+
onCPApply();
|
409 |
+
});
|
410 |
+
$('.theme-color.cyan').click(function(){
|
411 |
+
$($(this).parent().find('.active')).removeClass('active'); $(this).addClass('active');
|
412 |
+
createCookie(TMPL_NAME+'_'+'sitestyle', $(this).html().toLowerCase(), 365);
|
413 |
+
templateSetting(array_cyan);
|
414 |
+
onCPApply();
|
415 |
+
});
|
416 |
+
});
|
417 |
+
// ]]>
|
418 |
+
</script>
|
419 |
+
<?php
|
420 |
+
}
|
421 |
+
?>
|
app/design/frontend/default/sm_glasses_free/template/page/html/pager.phtml
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Pager template
|
30 |
+
*
|
31 |
+
* @see Mage_Page_Block_Html_Pager
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php if($this->getCollection()->getSize()): ?>
|
35 |
+
|
36 |
+
<?php if($this->getUseContainer()): ?>
|
37 |
+
<div class="pager">
|
38 |
+
<?php endif ?>
|
39 |
+
|
40 |
+
<?php if($this->getShowAmounts()): ?>
|
41 |
+
<p class="amount">
|
42 |
+
<?php if($this->getLastPageNum()>1): ?>
|
43 |
+
<?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
|
44 |
+
<?php else: ?>
|
45 |
+
<strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
|
46 |
+
<?php endif; ?>
|
47 |
+
</p>
|
48 |
+
<?php endif ?>
|
49 |
+
|
50 |
+
<?php if($this->getShowPerPage()): ?>
|
51 |
+
<div class="limiter">
|
52 |
+
<label><?php echo $this->__('Show') ?></label>
|
53 |
+
<select onchange="setLocation(this.value)">
|
54 |
+
<?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
|
55 |
+
<option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
|
56 |
+
<?php echo $_limit ?>
|
57 |
+
</option>
|
58 |
+
<?php endforeach; ?>
|
59 |
+
</select> <?php echo $this->__('per page') ?>
|
60 |
+
</div>
|
61 |
+
<?php endif ?>
|
62 |
+
|
63 |
+
<?php if($this->getLastPageNum()>1): ?>
|
64 |
+
<div class="pages">
|
65 |
+
<strong><?php echo $this->__('Page:') ?></strong>
|
66 |
+
<ol>
|
67 |
+
<?php if (!$this->isFirstPage()): ?>
|
68 |
+
<li>
|
69 |
+
<a class="previous<?php if(!$this->getAnchorTextForPrevious()): ?> i-previous<?php endif;?>" href="<?php echo $this->getPreviousPageUrl() ?>" title="<?php echo $this->__('Previous') ?>">
|
70 |
+
<?php if(!$this->getAnchorTextForPrevious()): ?>
|
71 |
+
<img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous') ?>" class="v-middle" />
|
72 |
+
<?php else: ?>
|
73 |
+
<?php echo $this->getAnchorTextForPrevious() ?>
|
74 |
+
<?php endif;?>
|
75 |
+
</a>
|
76 |
+
</li>
|
77 |
+
<?php endif;?>
|
78 |
+
|
79 |
+
<?php if ($this->canShowFirst()): ?>
|
80 |
+
<li><a class="first" href="<?php echo $this->getFirstPageUrl() ?>">1</a></li>
|
81 |
+
<?php endif;?>
|
82 |
+
|
83 |
+
<?php if ($this->canShowPreviousJump()): ?>
|
84 |
+
<li><a class="previous_jump" title="" href="<?php echo $this->getPreviousJumpUrl() ?>">...</a></li>
|
85 |
+
<?php endif;?>
|
86 |
+
|
87 |
+
<?php foreach ($this->getFramePages() as $_page): ?>
|
88 |
+
<?php if ($this->isPageCurrent($_page)): ?>
|
89 |
+
<li class="current"><a href="#" onclick="javascript:void(0);"><?php echo $_page ?></a></li>
|
90 |
+
<?php else: ?>
|
91 |
+
<li class=""><a href="<?php echo $this->getPageUrl($_page) ?>"><?php echo $_page ?></a></li>
|
92 |
+
<?php endif;?>
|
93 |
+
<?php endforeach;?>
|
94 |
+
|
95 |
+
|
96 |
+
<?php if ($this->canShowNextJump()): ?>
|
97 |
+
<li><a class="next_jump" title="" href="<?php echo $this->getNextJumpUrl() ?>">...</a></li>
|
98 |
+
<?php endif;?>
|
99 |
+
|
100 |
+
<?php if ($this->canShowLast()): ?>
|
101 |
+
<li><a class="last" href="<?php echo $this->getLastPageUrl() ?>"><?php echo $this->getLastPageNum() ?></a></li>
|
102 |
+
<?php endif;?>
|
103 |
+
|
104 |
+
<?php if (!$this->isLastPage()): ?>
|
105 |
+
<li>
|
106 |
+
<a class="next<?php if(!$this->getAnchorTextForNext()): ?> <?php endif; ?>" href="<?php echo $this->getNextPageUrl() ?>" title="<?php echo $this->__('Next') ?>">
|
107 |
+
<?php if(!$this->getAnchorTextForNext()): ?>
|
108 |
+
<img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next') ?>" class="v-middle" />
|
109 |
+
<?php else: ?>
|
110 |
+
<?php echo $this->getAnchorTextForNext() ?>
|
111 |
+
<?php endif;?>
|
112 |
+
</a>
|
113 |
+
</li>
|
114 |
+
<?php endif;?>
|
115 |
+
</ol>
|
116 |
+
|
117 |
+
</div>
|
118 |
+
<?php endif; ?>
|
119 |
+
|
120 |
+
<?php if($this->getUseContainer()): ?>
|
121 |
+
</div>
|
122 |
+
<?php endif ?>
|
123 |
+
|
124 |
+
<?php endif ?>
|
app/design/frontend/default/sm_glasses_free/template/page/html/tool.links.phtml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
global $var_yttheme;
|
27 |
+
?>
|
28 |
+
<?php echo $this->getChildHtml() ?>
|
app/design/frontend/default/sm_glasses_free/template/page/html/top.links.phtml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if($toplinks && is_array($toplinks)): ?>
|
28 |
+
<ul>
|
29 |
+
<?php echo $this->getChildHtml() ?>
|
30 |
+
<?php foreach($toplinks as $_toplink): ?>
|
31 |
+
<li<?php if($_toplink['first']||$_toplink['last']): ?> class="<?php if($_toplink['first']): ?>first <?php endif; ?><?php if($_toplink['last']): ?>last <?php endif; ?>"<?php endif; ?> <?php echo $_toplink['liParams'] ?>> <?php echo $_toplink['beforeText'] ?><a <?php echo $_toplink['aParams'] ?>><?php echo $_toplink['innerText'] ?></a><?php echo $_toplink['afterText'] ?></li>
|
32 |
+
<?php endforeach; ?>
|
33 |
+
</ul>
|
34 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/page/html/wrapper.phtml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @deprecated after 1.4.0.0-alpha3
|
30 |
+
*/
|
31 |
+
|
32 |
+
/**
|
33 |
+
* This template is for generic wrapper purposes, including ajax.updater loaded blocks
|
34 |
+
*
|
35 |
+
* Usage in layout xml files:
|
36 |
+
* <block type="core/template" template="page/html/wrapper.phtml">
|
37 |
+
* <action method="setId"><id>some-custom-identificator</id></action>
|
38 |
+
*
|
39 |
+
* <!-- optional -->
|
40 |
+
* <action method="setTag"><tag>span</tag></action> <!-- div is used if not specified -->
|
41 |
+
* <action method="setParams"><params>class="custom-class"</params></action>
|
42 |
+
*
|
43 |
+
* <!-- insert wrapped blocks here -->
|
44 |
+
* </block>
|
45 |
+
*/
|
46 |
+
?>
|
47 |
+
<?php $_tag = $this->hasTag() ? $this->getTag() : "div" ?>
|
48 |
+
<<?php echo $_tag?> id="<?php echo $this->getId()?>" <?php echo $this->getParams()?>>
|
49 |
+
<?php echo $this->getChildHtml()?>
|
50 |
+
</<?php echo $_tag?>>
|
app/design/frontend/default/sm_glasses_free/template/page/one-column.phtml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
global $var_yttheme;
|
32 |
+
?>
|
33 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
34 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
35 |
+
<head>
|
36 |
+
<?php echo $this->getChildHtml('head') ?>
|
37 |
+
</head>
|
38 |
+
<body id="bd" class="<?php echo $this->getBodyClass();?> fs<?php echo $var_yttheme->getParam(YT_THEME_FONT);?>">
|
39 |
+
<?php echo $this->getChildHtml('content') ?>
|
40 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
41 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
42 |
+
</body>
|
43 |
+
</html>
|
app/design/frontend/default/sm_glasses_free/template/page/print.phtml
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
global $var_yttheme;
|
32 |
+
?>
|
33 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
34 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
35 |
+
<head>
|
36 |
+
<?php echo $this->getChildHtml('head') ?>
|
37 |
+
</head>
|
38 |
+
<body id="bd" class="<?php echo $this->getBodyClass();?> fs<?php echo $var_yttheme->getParam(YT_THEME_FONT);?>">
|
39 |
+
<div>
|
40 |
+
<div class="print-head">
|
41 |
+
<img src="<?php echo $this->getPrintLogoUrl() ? $this->getPrintLogoUrl() : $this->getSkinUrl('images/logo_print.gif') ?>" alt="" />
|
42 |
+
<?php if ($this->getPrintLogoText()):?>
|
43 |
+
<address><?php echo nl2br($this->htmlEscape($this->getPrintLogoText())) ?></address>
|
44 |
+
<?php endif;?>
|
45 |
+
</div>
|
46 |
+
<?php echo $this->getChildHtml('content') ?>
|
47 |
+
<div class="button-set">
|
48 |
+
<button onclick="window.close();" class="form-button"><span><?php echo $this->__('Close Window') ?></span></button>
|
49 |
+
</div>
|
50 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
51 |
+
</div>
|
52 |
+
</body>
|
53 |
+
</html>
|
app/design/frontend/default/sm_glasses_free/template/page/redirect.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage_Page
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-head">
|
28 |
+
<h3><?php echo $this->__('Redirecting...') ?></h3>
|
29 |
+
</div>
|
30 |
+
|
31 |
+
<?php if($this->getMessage()): ?>
|
32 |
+
<p><?php echo $this->getMessage() ?></p>
|
33 |
+
<?php endif; ?>
|
34 |
+
|
35 |
+
<?php echo $this->getRedirectOutput() ?>
|
36 |
+
|
37 |
+
<?php if(!$this->isHtmlFormRedirect()): ?>
|
38 |
+
<p><?php echo $this->__('Click <a href="%s">here</a> if nothing has happened', $this->getTargetURL()) ?></p>
|
39 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/page/smartaddons/includes/browser.php
ADDED
@@ -0,0 +1,1053 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// No direct access
|
4 |
+
/**
|
5 |
+
* File: Browser.php
|
6 |
+
* Author: Chris Schuld (http://chrisschuld.com/)
|
7 |
+
* Last Modified: August 20th, 2010
|
8 |
+
* @version 1.9
|
9 |
+
* @package PegasusPHP
|
10 |
+
*
|
11 |
+
* Copyright (C) 2008-2010 Chris Schuld (chris@chrisschuld.com)
|
12 |
+
*
|
13 |
+
* This program is free software; you can redistribute it and/or
|
14 |
+
* modify it under the terms of the GNU General Public License as
|
15 |
+
* published by the Free Software Foundation; either version 2 of
|
16 |
+
* the License, or (at your option) any later version.
|
17 |
+
*
|
18 |
+
* This program is distributed in the hope that it will be useful,
|
19 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
+
* GNU General Public License for more details at:
|
22 |
+
* http://www.gnu.org/copyleft/gpl.html
|
23 |
+
*
|
24 |
+
*
|
25 |
+
* Typical Usage:
|
26 |
+
*
|
27 |
+
* $browser = new Browser();
|
28 |
+
* if( $browser->getBrowser() == Browser::BROWSER_FIREFOX && $browser->getVersion() >= 2 ) {
|
29 |
+
* echo 'You have FireFox version 2 or greater';
|
30 |
+
* }
|
31 |
+
*
|
32 |
+
* User Agents Sampled from: http://www.useragentstring.com/
|
33 |
+
*
|
34 |
+
* This implementation is based on the original work from Gary White
|
35 |
+
* http://apptools.com/phptools/browser/
|
36 |
+
*
|
37 |
+
* UPDATES:
|
38 |
+
*
|
39 |
+
* 2010-08-20 (v1.9):
|
40 |
+
* + Added MSN Explorer Browser (legacy)
|
41 |
+
* + Added Bing/MSN Robot (Thanks Rob MacDonald)
|
42 |
+
* + Added the Android Platform (PLATFORM_ANDROID)
|
43 |
+
* + Fixed issue with Android 1.6/2.2 (Thanks Tom Hirashima)
|
44 |
+
*
|
45 |
+
* 2010-04-27 (v1.8):
|
46 |
+
* + Added iPad Support
|
47 |
+
*
|
48 |
+
* 2010-03-07 (v1.7):
|
49 |
+
* + *MAJOR* Rebuild (preg_match and other "slow" routine removal(s))
|
50 |
+
* + Almost allof Gary's original code has been replaced
|
51 |
+
* + Large PHPUNIT testing environment created to validate new releases and additions
|
52 |
+
* + Added FreeBSD Platform
|
53 |
+
* + Added OpenBSD Platform
|
54 |
+
* + Added NetBSD Platform
|
55 |
+
* + Added SunOS Platform
|
56 |
+
* + Added OpenSolaris Platform
|
57 |
+
* + Added support of the Iceweazel Browser
|
58 |
+
* + Added isChromeFrame() call to check if chromeframe is in use
|
59 |
+
* + Moved the Opera check in front of the Firefox check due to legacy Opera User Agents
|
60 |
+
* + Added the __toString() method (Thanks Deano)
|
61 |
+
*
|
62 |
+
* 2009-11-15:
|
63 |
+
* + Updated the checkes for Firefox
|
64 |
+
* + Added the NOKIA platform
|
65 |
+
* + Added Checks for the NOKIA brower(s)
|
66 |
+
*
|
67 |
+
* 2009-11-08:
|
68 |
+
* + PHP 5.3 Support
|
69 |
+
* + Added support for BlackBerry OS and BlackBerry browser
|
70 |
+
* + Added support for the Opera Mini browser
|
71 |
+
* + Added additional documenation
|
72 |
+
* + Added support for isRobot() and isMobile()
|
73 |
+
* + Added support for Opera version 10
|
74 |
+
* + Added support for deprecated Netscape Navigator version 9
|
75 |
+
* + Added support for IceCat
|
76 |
+
* + Added support for Shiretoko
|
77 |
+
*
|
78 |
+
* 2010-04-27 (v1.8):
|
79 |
+
* + Added iPad Support
|
80 |
+
*
|
81 |
+
* 2009-08-18:
|
82 |
+
* + Updated to support PHP 5.3 - removed all deprecated function calls
|
83 |
+
* + Updated to remove all double quotes (") -- converted to single quotes (')
|
84 |
+
*
|
85 |
+
* 2009-04-27:
|
86 |
+
* + Updated the IE check to remove a typo and bug (thanks John)
|
87 |
+
*
|
88 |
+
* 2009-04-22:
|
89 |
+
* + Added detection for GoogleBot
|
90 |
+
* + Added detection for the W3C Validator.
|
91 |
+
* + Added detection for Yahoo! Slurp
|
92 |
+
*
|
93 |
+
* 2009-03-14:
|
94 |
+
* + Added detection for iPods.
|
95 |
+
* + Added Platform detection for iPhones
|
96 |
+
* + Added Platform detection for iPods
|
97 |
+
*
|
98 |
+
* 2009-02-16: (Rick Hale)
|
99 |
+
* + Added version detection for Android phones.
|
100 |
+
*
|
101 |
+
* 2008-12-09:
|
102 |
+
* + Removed unused constant
|
103 |
+
*
|
104 |
+
* 2008-11-07:
|
105 |
+
* + Added Google's Chrome to the detection list
|
106 |
+
* + Added isBrowser(string) to the list of functions special thanks to
|
107 |
+
* Daniel 'mavrick' Lang for the function concept (http://mavrick.id.au)
|
108 |
+
*
|
109 |
+
*
|
110 |
+
* Gary White noted: "Since browser detection is so unreliable, I am
|
111 |
+
* no longer maintaining this script. You are free to use and or
|
112 |
+
* modify/update it as you want, however the author assumes no
|
113 |
+
* responsibility for the accuracy of the detected values."
|
114 |
+
*
|
115 |
+
* Anyone experienced with Gary's script might be interested in these notes:
|
116 |
+
*
|
117 |
+
* Added class constants
|
118 |
+
* Added detection and version detection for Google's Chrome
|
119 |
+
* Updated the version detection for Amaya
|
120 |
+
* Updated the version detection for Firefox
|
121 |
+
* Updated the version detection for Lynx
|
122 |
+
* Updated the version detection for WebTV
|
123 |
+
* Updated the version detection for NetPositive
|
124 |
+
* Updated the version detection for IE
|
125 |
+
* Updated the version detection for OmniWeb
|
126 |
+
* Updated the version detection for iCab
|
127 |
+
* Updated the version detection for Safari
|
128 |
+
* Updated Safari to remove mobile devices (iPhone)
|
129 |
+
* Added detection for iPhone
|
130 |
+
* Added detection for robots
|
131 |
+
* Added detection for mobile devices
|
132 |
+
* Added detection for BlackBerry
|
133 |
+
* Removed Netscape checks (matches heavily with firefox & mozilla)
|
134 |
+
*
|
135 |
+
*/
|
136 |
+
|
137 |
+
class Browser {
|
138 |
+
private $_agent = '';
|
139 |
+
private $_browser_name = '';
|
140 |
+
private $_version = '';
|
141 |
+
private $_platform = '';
|
142 |
+
private $_os = '';
|
143 |
+
private $_is_aol = false;
|
144 |
+
private $_is_mobile = false;
|
145 |
+
private $_is_robot = false;
|
146 |
+
private $_aol_version = '';
|
147 |
+
|
148 |
+
const BROWSER_UNKNOWN = 'unknown';
|
149 |
+
const VERSION_UNKNOWN = 'unknown';
|
150 |
+
|
151 |
+
const BROWSER_OPERA = 'Opera'; // http://www.opera.com/
|
152 |
+
const BROWSER_OPERA_MINI = 'Opera Mini'; // http://www.opera.com/mini/
|
153 |
+
const BROWSER_WEBTV = 'WebTV'; // http://www.webtv.net/pc/
|
154 |
+
const BROWSER_IE = 'Internet Explorer'; // http://www.microsoft.com/ie/
|
155 |
+
const BROWSER_POCKET_IE = 'Pocket Internet Explorer'; // http://en.wikipedia.org/wiki/Internet_Explorer_Mobile
|
156 |
+
const BROWSER_KONQUEROR = 'Konqueror'; // http://www.konqueror.org/
|
157 |
+
const BROWSER_ICAB = 'iCab'; // http://www.icab.de/
|
158 |
+
const BROWSER_OMNIWEB = 'OmniWeb'; // http://www.omnigroup.com/applications/omniweb/
|
159 |
+
const BROWSER_FIREBIRD = 'Firebird'; // http://www.ibphoenix.com/
|
160 |
+
const BROWSER_FIREFOX = 'Firefox'; // http://www.mozilla.com/en-US/firefox/firefox.html
|
161 |
+
const BROWSER_ICEWEASEL = 'Iceweasel'; // http://www.geticeweasel.org/
|
162 |
+
const BROWSER_SHIRETOKO = 'Shiretoko'; // http://wiki.mozilla.org/Projects/shiretoko
|
163 |
+
const BROWSER_MOZILLA = 'Mozilla'; // http://www.mozilla.com/en-US/
|
164 |
+
const BROWSER_AMAYA = 'Amaya'; // http://www.w3.org/Amaya/
|
165 |
+
const BROWSER_LYNX = 'Lynx'; // http://en.wikipedia.org/wiki/Lynx
|
166 |
+
const BROWSER_SAFARI = 'Safari'; // http://apple.com
|
167 |
+
const BROWSER_IPHONE = 'iPhone'; // http://apple.com
|
168 |
+
const BROWSER_IPOD = 'iPod'; // http://apple.com
|
169 |
+
const BROWSER_IPAD = 'iPad'; // http://apple.com
|
170 |
+
const BROWSER_CHROME = 'Chrome'; // http://www.google.com/chrome
|
171 |
+
const BROWSER_ANDROID = 'Android'; // http://www.android.com/
|
172 |
+
const BROWSER_GOOGLEBOT = 'GoogleBot'; // http://en.wikipedia.org/wiki/Googlebot
|
173 |
+
const BROWSER_SLURP = 'Yahoo! Slurp'; // http://en.wikipedia.org/wiki/Yahoo!_Slurp
|
174 |
+
const BROWSER_W3CVALIDATOR = 'W3C Validator'; // http://validator.w3.org/
|
175 |
+
const BROWSER_BLACKBERRY = 'BlackBerry'; // http://www.blackberry.com/
|
176 |
+
const BROWSER_ICECAT = 'IceCat'; // http://en.wikipedia.org/wiki/GNU_IceCat
|
177 |
+
const BROWSER_NOKIA_S60 = 'Nokia S60 OSS Browser'; // http://en.wikipedia.org/wiki/Web_Browser_for_S60
|
178 |
+
const BROWSER_NOKIA = 'Nokia Browser'; // * all other WAP-based browsers on the Nokia Platform
|
179 |
+
const BROWSER_MSN = 'MSN Browser'; // http://explorer.msn.com/
|
180 |
+
const BROWSER_MSNBOT = 'MSN Bot'; // http://search.msn.com/msnbot.htm
|
181 |
+
// http://en.wikipedia.org/wiki/Msnbot (used for Bing as well)
|
182 |
+
|
183 |
+
const BROWSER_NETSCAPE_NAVIGATOR = 'Netscape Navigator'; // http://browser.netscape.com/ (DEPRECATED)
|
184 |
+
const BROWSER_GALEON = 'Galeon'; // http://galeon.sourceforge.net/ (DEPRECATED)
|
185 |
+
const BROWSER_NETPOSITIVE = 'NetPositive'; // http://en.wikipedia.org/wiki/NetPositive (DEPRECATED)
|
186 |
+
const BROWSER_PHOENIX = 'Phoenix'; // http://en.wikipedia.org/wiki/History_of_Mozilla_Firefox (DEPRECATED)
|
187 |
+
|
188 |
+
const PLATFORM_UNKNOWN = 'unknown';
|
189 |
+
const PLATFORM_WINDOWS = 'Windows';
|
190 |
+
const PLATFORM_WINDOWS_CE = 'Windows CE';
|
191 |
+
const PLATFORM_APPLE = 'Apple';
|
192 |
+
const PLATFORM_LINUX = 'Linux';
|
193 |
+
const PLATFORM_OS2 = 'OS/2';
|
194 |
+
const PLATFORM_BEOS = 'BeOS';
|
195 |
+
const PLATFORM_IPHONE = 'iPhone';
|
196 |
+
const PLATFORM_IPOD = 'iPod';
|
197 |
+
const PLATFORM_IPAD = 'iPad';
|
198 |
+
const PLATFORM_BLACKBERRY = 'BlackBerry';
|
199 |
+
const PLATFORM_NOKIA = 'Nokia';
|
200 |
+
const PLATFORM_FREEBSD = 'FreeBSD';
|
201 |
+
const PLATFORM_OPENBSD = 'OpenBSD';
|
202 |
+
const PLATFORM_NETBSD = 'NetBSD';
|
203 |
+
const PLATFORM_SUNOS = 'SunOS';
|
204 |
+
const PLATFORM_OPENSOLARIS = 'OpenSolaris';
|
205 |
+
const PLATFORM_ANDROID = 'Android';
|
206 |
+
|
207 |
+
const OPERATING_SYSTEM_UNKNOWN = 'unknown';
|
208 |
+
|
209 |
+
public function Browser($useragent="") {
|
210 |
+
$this->reset();
|
211 |
+
if( $useragent != "" ) {
|
212 |
+
$this->setUserAgent($useragent);
|
213 |
+
}
|
214 |
+
else {
|
215 |
+
$this->determine();
|
216 |
+
}
|
217 |
+
}
|
218 |
+
|
219 |
+
/**
|
220 |
+
* Reset all properties
|
221 |
+
*/
|
222 |
+
public function reset() {
|
223 |
+
$this->_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";
|
224 |
+
$this->_browser_name = self::BROWSER_UNKNOWN;
|
225 |
+
$this->_version = self::VERSION_UNKNOWN;
|
226 |
+
$this->_platform = self::PLATFORM_UNKNOWN;
|
227 |
+
$this->_os = self::OPERATING_SYSTEM_UNKNOWN;
|
228 |
+
$this->_is_aol = false;
|
229 |
+
$this->_is_mobile = false;
|
230 |
+
$this->_is_robot = false;
|
231 |
+
$this->_aol_version = self::VERSION_UNKNOWN;
|
232 |
+
}
|
233 |
+
|
234 |
+
/**
|
235 |
+
* Check to see if the specific browser is valid
|
236 |
+
* @param string $browserName
|
237 |
+
* @return True if the browser is the specified browser
|
238 |
+
*/
|
239 |
+
function isBrowser($browserName) { return( 0 == strcasecmp($this->_browser_name, trim($browserName))); }
|
240 |
+
|
241 |
+
/**
|
242 |
+
* The name of the browser. All return types are from the class contants
|
243 |
+
* @return string Name of the browser
|
244 |
+
*/
|
245 |
+
public function getBrowser() { return $this->_browser_name; }
|
246 |
+
/**
|
247 |
+
* Set the name of the browser
|
248 |
+
* @param $browser The name of the Browser
|
249 |
+
*/
|
250 |
+
public function setBrowser($browser) { return $this->_browser_name = $browser; }
|
251 |
+
/**
|
252 |
+
* The name of the platform. All return types are from the class contants
|
253 |
+
* @return string Name of the browser
|
254 |
+
*/
|
255 |
+
public function getPlatform() { return $this->_platform; }
|
256 |
+
/**
|
257 |
+
* Set the name of the platform
|
258 |
+
* @param $platform The name of the Platform
|
259 |
+
*/
|
260 |
+
public function setPlatform($platform) { return $this->_platform = $platform; }
|
261 |
+
/**
|
262 |
+
* The version of the browser.
|
263 |
+
* @return string Version of the browser (will only contain alpha-numeric characters and a period)
|
264 |
+
*/
|
265 |
+
public function getVersion() { return $this->_version; }
|
266 |
+
/**
|
267 |
+
* Set the version of the browser
|
268 |
+
* @param $version The version of the Browser
|
269 |
+
*/
|
270 |
+
public function setVersion($version) { $this->_version = preg_replace('/[^0-9,.,a-z,A-Z-]/','',$version); }
|
271 |
+
/**
|
272 |
+
* The version of AOL.
|
273 |
+
* @return string Version of AOL (will only contain alpha-numeric characters and a period)
|
274 |
+
*/
|
275 |
+
public function getAolVersion() { return $this->_aol_version; }
|
276 |
+
/**
|
277 |
+
* Set the version of AOL
|
278 |
+
* @param $version The version of AOL
|
279 |
+
*/
|
280 |
+
public function setAolVersion($version) { $this->_aol_version = preg_replace('/[^0-9,.,a-z,A-Z]/','',$version); }
|
281 |
+
/**
|
282 |
+
* Is the browser from AOL?
|
283 |
+
* @return boolean True if the browser is from AOL otherwise false
|
284 |
+
*/
|
285 |
+
public function isAol() { return $this->_is_aol; }
|
286 |
+
/**
|
287 |
+
* Is the browser from a mobile device?
|
288 |
+
* @return boolean True if the browser is from a mobile device otherwise false
|
289 |
+
*/
|
290 |
+
public function isMobile() { return $this->_is_mobile; }
|
291 |
+
/**
|
292 |
+
* Is the browser from a robot (ex Slurp,GoogleBot)?
|
293 |
+
* @return boolean True if the browser is from a robot otherwise false
|
294 |
+
*/
|
295 |
+
public function isRobot() { return $this->_is_robot; }
|
296 |
+
/**
|
297 |
+
* Set the browser to be from AOL
|
298 |
+
* @param $isAol
|
299 |
+
*/
|
300 |
+
public function setAol($isAol) { $this->_is_aol = $isAol; }
|
301 |
+
/**
|
302 |
+
* Set the Browser to be mobile
|
303 |
+
* @param boolean $value is the browser a mobile brower or not
|
304 |
+
*/
|
305 |
+
protected function setMobile($value=true) { $this->_is_mobile = $value; }
|
306 |
+
/**
|
307 |
+
* Set the Browser to be a robot
|
308 |
+
* @param boolean $value is the browser a robot or not
|
309 |
+
*/
|
310 |
+
protected function setRobot($value=true) { $this->_is_robot = $value; }
|
311 |
+
/**
|
312 |
+
* Get the user agent value in use to determine the browser
|
313 |
+
* @return string The user agent from the HTTP header
|
314 |
+
*/
|
315 |
+
public function getUserAgent() { return $this->_agent; }
|
316 |
+
/**
|
317 |
+
* Set the user agent value (the construction will use the HTTP header value - this will overwrite it)
|
318 |
+
* @param $agent_string The value for the User Agent
|
319 |
+
*/
|
320 |
+
public function setUserAgent($agent_string) {
|
321 |
+
$this->reset();
|
322 |
+
$this->_agent = $agent_string;
|
323 |
+
$this->determine();
|
324 |
+
}
|
325 |
+
/**
|
326 |
+
* Used to determine if the browser is actually "chromeframe"
|
327 |
+
* @since 1.7
|
328 |
+
* @return boolean True if the browser is using chromeframe
|
329 |
+
*/
|
330 |
+
public function isChromeFrame() {
|
331 |
+
return( strpos($this->_agent,"chromeframe") !== false );
|
332 |
+
}
|
333 |
+
/**
|
334 |
+
* Returns a formatted string with a summary of the details of the browser.
|
335 |
+
* @return string formatted string with a summary of the browser
|
336 |
+
*/
|
337 |
+
public function __toString() {
|
338 |
+
return "<strong>Browser Name:</strong>{$this->getBrowser()}<br/>\n" .
|
339 |
+
"<strong>Browser Version:</strong>{$this->getVersion()}<br/>\n" .
|
340 |
+
"<strong>Browser User Agent String:</strong>{$this->getUserAgent()}<br/>\n" .
|
341 |
+
"<strong>Platform:</strong>{$this->getPlatform()}<br/>";
|
342 |
+
}
|
343 |
+
/**
|
344 |
+
* Protected routine to calculate and determine what the browser is in use (including platform)
|
345 |
+
*/
|
346 |
+
protected function determine() {
|
347 |
+
$this->checkPlatform();
|
348 |
+
$this->checkBrowsers();
|
349 |
+
$this->checkForAol();
|
350 |
+
}
|
351 |
+
/**
|
352 |
+
* Protected routine to determine the browser type
|
353 |
+
* @return boolean True if the browser was detected otherwise false
|
354 |
+
*/
|
355 |
+
protected function checkBrowsers() {
|
356 |
+
return (
|
357 |
+
// well-known, well-used
|
358 |
+
// Special Notes:
|
359 |
+
// (1) Opera must be checked before FireFox due to the odd
|
360 |
+
// user agents used in some older versions of Opera
|
361 |
+
// (2) WebTV is strapped onto Internet Explorer so we must
|
362 |
+
// check for WebTV before IE
|
363 |
+
// (3) (deprecated) Galeon is based on Firefox and needs to be
|
364 |
+
// tested before Firefox is tested
|
365 |
+
// (4) OmniWeb is based on Safari so OmniWeb check must occur
|
366 |
+
// before Safari
|
367 |
+
// (5) Netscape 9+ is based on Firefox so Netscape checks
|
368 |
+
// before FireFox are necessary
|
369 |
+
$this->checkBrowserWebTv() ||
|
370 |
+
$this->checkBrowserInternetExplorer() ||
|
371 |
+
$this->checkBrowserOpera() ||
|
372 |
+
$this->checkBrowserGaleon() ||
|
373 |
+
$this->checkBrowserNetscapeNavigator9Plus() ||
|
374 |
+
$this->checkBrowserFirefox() ||
|
375 |
+
$this->checkBrowserChrome() ||
|
376 |
+
$this->checkBrowserOmniWeb() ||
|
377 |
+
|
378 |
+
// common mobile
|
379 |
+
$this->checkBrowserAndroid() ||
|
380 |
+
$this->checkBrowseriPad() ||
|
381 |
+
$this->checkBrowseriPod() ||
|
382 |
+
$this->checkBrowseriPhone() ||
|
383 |
+
$this->checkBrowserBlackBerry() ||
|
384 |
+
$this->checkBrowserNokia() ||
|
385 |
+
|
386 |
+
// common bots
|
387 |
+
$this->checkBrowserGoogleBot() ||
|
388 |
+
$this->checkBrowserMSNBot() ||
|
389 |
+
$this->checkBrowserSlurp() ||
|
390 |
+
|
391 |
+
// WebKit base check (post mobile and others)
|
392 |
+
$this->checkBrowserSafari() ||
|
393 |
+
|
394 |
+
// everyone else
|
395 |
+
$this->checkBrowserNetPositive() ||
|
396 |
+
$this->checkBrowserFirebird() ||
|
397 |
+
$this->checkBrowserKonqueror() ||
|
398 |
+
$this->checkBrowserIcab() ||
|
399 |
+
$this->checkBrowserPhoenix() ||
|
400 |
+
$this->checkBrowserAmaya() ||
|
401 |
+
$this->checkBrowserLynx() ||
|
402 |
+
$this->checkBrowserShiretoko() ||
|
403 |
+
$this->checkBrowserIceCat() ||
|
404 |
+
$this->checkBrowserW3CValidator() ||
|
405 |
+
$this->checkBrowserMozilla() /* Mozilla is such an open standard that you must check it last */
|
406 |
+
);
|
407 |
+
}
|
408 |
+
|
409 |
+
/**
|
410 |
+
* Determine if the user is using a BlackBerry (last updated 1.7)
|
411 |
+
* @return boolean True if the browser is the BlackBerry browser otherwise false
|
412 |
+
*/
|
413 |
+
protected function checkBrowserBlackBerry() {
|
414 |
+
if( stripos($this->_agent,'blackberry') !== false ) {
|
415 |
+
$aresult = explode("/",stristr($this->_agent,"BlackBerry"));
|
416 |
+
$aversion = explode(' ',$aresult[1]);
|
417 |
+
$this->setVersion($aversion[0]);
|
418 |
+
$this->_browser_name = self::BROWSER_BLACKBERRY;
|
419 |
+
$this->setMobile(true);
|
420 |
+
return true;
|
421 |
+
}
|
422 |
+
return false;
|
423 |
+
}
|
424 |
+
|
425 |
+
/**
|
426 |
+
* Determine if the user is using an AOL User Agent (last updated 1.7)
|
427 |
+
* @return boolean True if the browser is from AOL otherwise false
|
428 |
+
*/
|
429 |
+
protected function checkForAol() {
|
430 |
+
$this->setAol(false);
|
431 |
+
$this->setAolVersion(self::VERSION_UNKNOWN);
|
432 |
+
|
433 |
+
if( stripos($this->_agent,'aol') !== false ) {
|
434 |
+
$aversion = explode(' ',stristr($this->_agent, 'AOL'));
|
435 |
+
$this->setAol(true);
|
436 |
+
$this->setAolVersion(preg_replace('/[^0-9\.a-z]/i', '', $aversion[1]));
|
437 |
+
return true;
|
438 |
+
}
|
439 |
+
return false;
|
440 |
+
}
|
441 |
+
|
442 |
+
/**
|
443 |
+
* Determine if the browser is the GoogleBot or not (last updated 1.7)
|
444 |
+
* @return boolean True if the browser is the GoogletBot otherwise false
|
445 |
+
*/
|
446 |
+
protected function checkBrowserGoogleBot() {
|
447 |
+
if( stripos($this->_agent,'googlebot') !== false ) {
|
448 |
+
$aresult = explode('/',stristr($this->_agent,'googlebot'));
|
449 |
+
$aversion = isset($aresult[1]) ? explode(' ',$aresult[1]) : array(0);
|
450 |
+
$this->setVersion(str_replace(';','',$aversion[0]));
|
451 |
+
$this->_browser_name = self::BROWSER_GOOGLEBOT;
|
452 |
+
$this->setRobot(true);
|
453 |
+
return true;
|
454 |
+
}
|
455 |
+
return false;
|
456 |
+
}
|
457 |
+
|
458 |
+
/**
|
459 |
+
* Determine if the browser is the MSNBot or not (last updated 1.9)
|
460 |
+
* @return boolean True if the browser is the MSNBot otherwise false
|
461 |
+
*/
|
462 |
+
protected function checkBrowserMSNBot() {
|
463 |
+
if( stripos($this->_agent,"msnbot") !== false ) {
|
464 |
+
$aresult = explode("/",stristr($this->_agent,"msnbot"));
|
465 |
+
$aversion = isset($aresult[1]) ? explode(' ',$aresult[1]) : array(0);
|
466 |
+
$this->setVersion(str_replace(";","",$aversion[0]));
|
467 |
+
$this->_browser_name = self::BROWSER_MSNBOT;
|
468 |
+
$this->setRobot(true);
|
469 |
+
return true;
|
470 |
+
}
|
471 |
+
return false;
|
472 |
+
}
|
473 |
+
|
474 |
+
/**
|
475 |
+
* Determine if the browser is the W3C Validator or not (last updated 1.7)
|
476 |
+
* @return boolean True if the browser is the W3C Validator otherwise false
|
477 |
+
*/
|
478 |
+
protected function checkBrowserW3CValidator() {
|
479 |
+
if( stripos($this->_agent,'W3C-checklink') !== false ) {
|
480 |
+
$aresult = explode('/',stristr($this->_agent,'W3C-checklink'));
|
481 |
+
$aversion = explode(' ',$aresult[1]);
|
482 |
+
$this->setVersion($aversion[0]);
|
483 |
+
$this->_browser_name = self::BROWSER_W3CVALIDATOR;
|
484 |
+
return true;
|
485 |
+
}
|
486 |
+
else if( stripos($this->_agent,'W3C_Validator') !== false ) {
|
487 |
+
// Some of the Validator versions do not delineate w/ a slash - add it back in
|
488 |
+
$ua = str_replace("W3C_Validator ", "W3C_Validator/", $this->_agent);
|
489 |
+
$aresult = explode('/',stristr($ua,'W3C_Validator'));
|
490 |
+
$aversion = explode(' ',$aresult[1]);
|
491 |
+
$this->setVersion($aversion[0]);
|
492 |
+
$this->_browser_name = self::BROWSER_W3CVALIDATOR;
|
493 |
+
return true;
|
494 |
+
}
|
495 |
+
return false;
|
496 |
+
}
|
497 |
+
|
498 |
+
/**
|
499 |
+
* Determine if the browser is the Yahoo! Slurp Robot or not (last updated 1.7)
|
500 |
+
* @return boolean True if the browser is the Yahoo! Slurp Robot otherwise false
|
501 |
+
*/
|
502 |
+
protected function checkBrowserSlurp() {
|
503 |
+
if( stripos($this->_agent,'slurp') !== false ) {
|
504 |
+
$aresult = explode('/',stristr($this->_agent,'Slurp'));
|
505 |
+
$aversion = explode(' ',$aresult[1]);
|
506 |
+
$this->setVersion($aversion[0]);
|
507 |
+
$this->_browser_name = self::BROWSER_SLURP;
|
508 |
+
$this->setRobot(true);
|
509 |
+
$this->setMobile(false);
|
510 |
+
return true;
|
511 |
+
}
|
512 |
+
return false;
|
513 |
+
}
|
514 |
+
|
515 |
+
/**
|
516 |
+
* Determine if the browser is Internet Explorer or not (last updated 1.7)
|
517 |
+
* @return boolean True if the browser is Internet Explorer otherwise false
|
518 |
+
*/
|
519 |
+
protected function checkBrowserInternetExplorer() {
|
520 |
+
|
521 |
+
// Test for v1 - v1.5 IE
|
522 |
+
if( stripos($this->_agent,'microsoft internet explorer') !== false ) {
|
523 |
+
$this->setBrowser(self::BROWSER_IE);
|
524 |
+
$this->setVersion('1.0');
|
525 |
+
$aresult = stristr($this->_agent, '/');
|
526 |
+
if( preg_match('/308|425|426|474|0b1/i', $aresult) ) {
|
527 |
+
$this->setVersion('1.5');
|
528 |
+
}
|
529 |
+
return true;
|
530 |
+
}
|
531 |
+
// Test for versions > 1.5
|
532 |
+
else if( stripos($this->_agent,'msie') !== false && stripos($this->_agent,'opera') === false ) {
|
533 |
+
// See if the browser is the odd MSN Explorer
|
534 |
+
if( stripos($this->_agent,'msnb') !== false ) {
|
535 |
+
$aresult = explode(' ',stristr(str_replace(';','; ',$this->_agent),'MSN'));
|
536 |
+
$this->setBrowser( self::BROWSER_MSN );
|
537 |
+
$this->setVersion(str_replace(array('(',')',';'),'',$aresult[1]));
|
538 |
+
return true;
|
539 |
+
}
|
540 |
+
$aresult = explode(' ',stristr(str_replace(';','; ',$this->_agent),'msie'));
|
541 |
+
$this->setBrowser( self::BROWSER_IE );
|
542 |
+
$this->setVersion(str_replace(array('(',')',';'),'',$aresult[1]));
|
543 |
+
return true;
|
544 |
+
}
|
545 |
+
// Test for Pocket IE
|
546 |
+
else if( stripos($this->_agent,'mspie') !== false || stripos($this->_agent,'pocket') !== false ) {
|
547 |
+
$aresult = explode(' ',stristr($this->_agent,'mspie'));
|
548 |
+
$this->setPlatform( self::PLATFORM_WINDOWS_CE );
|
549 |
+
$this->setBrowser( self::BROWSER_POCKET_IE );
|
550 |
+
$this->setMobile(true);
|
551 |
+
|
552 |
+
if( stripos($this->_agent,'mspie') !== false ) {
|
553 |
+
$this->setVersion($aresult[1]);
|
554 |
+
}
|
555 |
+
else {
|
556 |
+
$aversion = explode('/',$this->_agent);
|
557 |
+
$this->setVersion($aversion[1]);
|
558 |
+
}
|
559 |
+
return true;
|
560 |
+
}
|
561 |
+
return false;
|
562 |
+
}
|
563 |
+
|
564 |
+
/**
|
565 |
+
* Determine if the browser is Opera or not (last updated 1.7)
|
566 |
+
* @return boolean True if the browser is Opera otherwise false
|
567 |
+
*/
|
568 |
+
protected function checkBrowserOpera() {
|
569 |
+
if( stripos($this->_agent,'opera mini') !== false ) {
|
570 |
+
$resultant = stristr($this->_agent, 'opera mini');
|
571 |
+
if( preg_match('/\//',$resultant) ) {
|
572 |
+
$aresult = explode('/',$resultant);
|
573 |
+
$aversion = explode(' ',$aresult[1]);
|
574 |
+
$this->setVersion($aversion[0]);
|
575 |
+
}
|
576 |
+
else {
|
577 |
+
$aversion = explode(' ',stristr($resultant,'opera mini'));
|
578 |
+
$this->setVersion($aversion[1]);
|
579 |
+
}
|
580 |
+
$this->_browser_name = self::BROWSER_OPERA_MINI;
|
581 |
+
$this->setMobile(true);
|
582 |
+
return true;
|
583 |
+
}
|
584 |
+
else if( stripos($this->_agent,'opera') !== false ) {
|
585 |
+
$resultant = stristr($this->_agent, 'opera');
|
586 |
+
if( preg_match('/Version\/(10.*)$/',$resultant,$matches) ) {
|
587 |
+
$this->setVersion($matches[1]);
|
588 |
+
}
|
589 |
+
else if( preg_match('/\//',$resultant) ) {
|
590 |
+
$aresult = explode('/',str_replace("("," ",$resultant));
|
591 |
+
$aversion = explode(' ',$aresult[1]);
|
592 |
+
$this->setVersion($aversion[0]);
|
593 |
+
}
|
594 |
+
else {
|
595 |
+
$aversion = explode(' ',stristr($resultant,'opera'));
|
596 |
+
$this->setVersion(isset($aversion[1])?$aversion[1]:"");
|
597 |
+
}
|
598 |
+
$this->_browser_name = self::BROWSER_OPERA;
|
599 |
+
return true;
|
600 |
+
}
|
601 |
+
return false;
|
602 |
+
}
|
603 |
+
|
604 |
+
/**
|
605 |
+
* Determine if the browser is Chrome or not (last updated 1.7)
|
606 |
+
* @return boolean True if the browser is Chrome otherwise false
|
607 |
+
*/
|
608 |
+
protected function checkBrowserChrome() {
|
609 |
+
if( stripos($this->_agent,'Chrome') !== false ) {
|
610 |
+
$aresult = explode('/',stristr($this->_agent,'Chrome'));
|
611 |
+
$aversion = explode(' ',$aresult[1]);
|
612 |
+
$this->setVersion($aversion[0]);
|
613 |
+
$this->setBrowser(self::BROWSER_CHROME);
|
614 |
+
return true;
|
615 |
+
}
|
616 |
+
return false;
|
617 |
+
}
|
618 |
+
|
619 |
+
|
620 |
+
/**
|
621 |
+
* Determine if the browser is WebTv or not (last updated 1.7)
|
622 |
+
* @return boolean True if the browser is WebTv otherwise false
|
623 |
+
*/
|
624 |
+
protected function checkBrowserWebTv() {
|
625 |
+
if( stripos($this->_agent,'webtv') !== false ) {
|
626 |
+
$aresult = explode('/',stristr($this->_agent,'webtv'));
|
627 |
+
$aversion = explode(' ',$aresult[1]);
|
628 |
+
$this->setVersion($aversion[0]);
|
629 |
+
$this->setBrowser(self::BROWSER_WEBTV);
|
630 |
+
return true;
|
631 |
+
}
|
632 |
+
return false;
|
633 |
+
}
|
634 |
+
|
635 |
+
/**
|
636 |
+
* Determine if the browser is NetPositive or not (last updated 1.7)
|
637 |
+
* @return boolean True if the browser is NetPositive otherwise false
|
638 |
+
*/
|
639 |
+
protected function checkBrowserNetPositive() {
|
640 |
+
if( stripos($this->_agent,'NetPositive') !== false ) {
|
641 |
+
$aresult = explode('/',stristr($this->_agent,'NetPositive'));
|
642 |
+
$aversion = explode(' ',$aresult[1]);
|
643 |
+
$this->setVersion(str_replace(array('(',')',';'),'',$aversion[0]));
|
644 |
+
$this->setBrowser(self::BROWSER_NETPOSITIVE);
|
645 |
+
return true;
|
646 |
+
}
|
647 |
+
return false;
|
648 |
+
}
|
649 |
+
|
650 |
+
/**
|
651 |
+
* Determine if the browser is Galeon or not (last updated 1.7)
|
652 |
+
* @return boolean True if the browser is Galeon otherwise false
|
653 |
+
*/
|
654 |
+
protected function checkBrowserGaleon() {
|
655 |
+
if( stripos($this->_agent,'galeon') !== false ) {
|
656 |
+
$aresult = explode(' ',stristr($this->_agent,'galeon'));
|
657 |
+
$aversion = explode('/',$aresult[0]);
|
658 |
+
$this->setVersion($aversion[1]);
|
659 |
+
$this->setBrowser(self::BROWSER_GALEON);
|
660 |
+
return true;
|
661 |
+
}
|
662 |
+
return false;
|
663 |
+
}
|
664 |
+
|
665 |
+
/**
|
666 |
+
* Determine if the browser is Konqueror or not (last updated 1.7)
|
667 |
+
* @return boolean True if the browser is Konqueror otherwise false
|
668 |
+
*/
|
669 |
+
protected function checkBrowserKonqueror() {
|
670 |
+
if( stripos($this->_agent,'Konqueror') !== false ) {
|
671 |
+
$aresult = explode(' ',stristr($this->_agent,'Konqueror'));
|
672 |
+
$aversion = explode('/',$aresult[0]);
|
673 |
+
$this->setVersion($aversion[1]);
|
674 |
+
$this->setBrowser(self::BROWSER_KONQUEROR);
|
675 |
+
return true;
|
676 |
+
}
|
677 |
+
return false;
|
678 |
+
}
|
679 |
+
|
680 |
+
/**
|
681 |
+
* Determine if the browser is iCab or not (last updated 1.7)
|
682 |
+
* @return boolean True if the browser is iCab otherwise false
|
683 |
+
*/
|
684 |
+
protected function checkBrowserIcab() {
|
685 |
+
if( stripos($this->_agent,'icab') !== false ) {
|
686 |
+
$aversion = explode(' ',stristr(str_replace('/',' ',$this->_agent),'icab'));
|
687 |
+
$this->setVersion($aversion[1]);
|
688 |
+
$this->setBrowser(self::BROWSER_ICAB);
|
689 |
+
return true;
|
690 |
+
}
|
691 |
+
return false;
|
692 |
+
}
|
693 |
+
|
694 |
+
/**
|
695 |
+
* Determine if the browser is OmniWeb or not (last updated 1.7)
|
696 |
+
* @return boolean True if the browser is OmniWeb otherwise false
|
697 |
+
*/
|
698 |
+
protected function checkBrowserOmniWeb() {
|
699 |
+
if( stripos($this->_agent,'omniweb') !== false ) {
|
700 |
+
$aresult = explode('/',stristr($this->_agent,'omniweb'));
|
701 |
+
$aversion = explode(' ',isset($aresult[1])?$aresult[1]:"");
|
702 |
+
$this->setVersion($aversion[0]);
|
703 |
+
$this->setBrowser(self::BROWSER_OMNIWEB);
|
704 |
+
return true;
|
705 |
+
}
|
706 |
+
return false;
|
707 |
+
}
|
708 |
+
|
709 |
+
/**
|
710 |
+
* Determine if the browser is Phoenix or not (last updated 1.7)
|
711 |
+
* @return boolean True if the browser is Phoenix otherwise false
|
712 |
+
*/
|
713 |
+
protected function checkBrowserPhoenix() {
|
714 |
+
if( stripos($this->_agent,'Phoenix') !== false ) {
|
715 |
+
$aversion = explode('/',stristr($this->_agent,'Phoenix'));
|
716 |
+
$this->setVersion($aversion[1]);
|
717 |
+
$this->setBrowser(self::BROWSER_PHOENIX);
|
718 |
+
return true;
|
719 |
+
}
|
720 |
+
return false;
|
721 |
+
}
|
722 |
+
|
723 |
+
/**
|
724 |
+
* Determine if the browser is Firebird or not (last updated 1.7)
|
725 |
+
* @return boolean True if the browser is Firebird otherwise false
|
726 |
+
*/
|
727 |
+
protected function checkBrowserFirebird() {
|
728 |
+
if( stripos($this->_agent,'Firebird') !== false ) {
|
729 |
+
$aversion = explode('/',stristr($this->_agent,'Firebird'));
|
730 |
+
$this->setVersion($aversion[1]);
|
731 |
+
$this->setBrowser(self::BROWSER_FIREBIRD);
|
732 |
+
return true;
|
733 |
+
}
|
734 |
+
return false;
|
735 |
+
}
|
736 |
+
|
737 |
+
/**
|
738 |
+
* Determine if the browser is Netscape Navigator 9+ or not (last updated 1.7)
|
739 |
+
* NOTE: (http://browser.netscape.com/ - Official support ended on March 1st, 2008)
|
740 |
+
* @return boolean True if the browser is Netscape Navigator 9+ otherwise false
|
741 |
+
*/
|
742 |
+
protected function checkBrowserNetscapeNavigator9Plus() {
|
743 |
+
if( stripos($this->_agent,'Firefox') !== false && preg_match('/Navigator\/([^ ]*)/i',$this->_agent,$matches) ) {
|
744 |
+
$this->setVersion($matches[1]);
|
745 |
+
$this->setBrowser(self::BROWSER_NETSCAPE_NAVIGATOR);
|
746 |
+
return true;
|
747 |
+
}
|
748 |
+
else if( stripos($this->_agent,'Firefox') === false && preg_match('/Netscape6?\/([^ ]*)/i',$this->_agent,$matches) ) {
|
749 |
+
$this->setVersion($matches[1]);
|
750 |
+
$this->setBrowser(self::BROWSER_NETSCAPE_NAVIGATOR);
|
751 |
+
return true;
|
752 |
+
}
|
753 |
+
return false;
|
754 |
+
}
|
755 |
+
|
756 |
+
/**
|
757 |
+
* Determine if the browser is Shiretoko or not (https://wiki.mozilla.org/Projects/shiretoko) (last updated 1.7)
|
758 |
+
* @return boolean True if the browser is Shiretoko otherwise false
|
759 |
+
*/
|
760 |
+
protected function checkBrowserShiretoko() {
|
761 |
+
if( stripos($this->_agent,'Mozilla') !== false && preg_match('/Shiretoko\/([^ ]*)/i',$this->_agent,$matches) ) {
|
762 |
+
$this->setVersion($matches[1]);
|
763 |
+
$this->setBrowser(self::BROWSER_SHIRETOKO);
|
764 |
+
return true;
|
765 |
+
}
|
766 |
+
return false;
|
767 |
+
}
|
768 |
+
|
769 |
+
/**
|
770 |
+
* Determine if the browser is Ice Cat or not (http://en.wikipedia.org/wiki/GNU_IceCat) (last updated 1.7)
|
771 |
+
* @return boolean True if the browser is Ice Cat otherwise false
|
772 |
+
*/
|
773 |
+
protected function checkBrowserIceCat() {
|
774 |
+
if( stripos($this->_agent,'Mozilla') !== false && preg_match('/IceCat\/([^ ]*)/i',$this->_agent,$matches) ) {
|
775 |
+
$this->setVersion($matches[1]);
|
776 |
+
$this->setBrowser(self::BROWSER_ICECAT);
|
777 |
+
return true;
|
778 |
+
}
|
779 |
+
return false;
|
780 |
+
}
|
781 |
+
|
782 |
+
/**
|
783 |
+
* Determine if the browser is Nokia or not (last updated 1.7)
|
784 |
+
* @return boolean True if the browser is Nokia otherwise false
|
785 |
+
*/
|
786 |
+
protected function checkBrowserNokia() {
|
787 |
+
if( preg_match("/Nokia([^\/]+)\/([^ SP]+)/i",$this->_agent,$matches) ) {
|
788 |
+
$this->setVersion($matches[2]);
|
789 |
+
if( stripos($this->_agent,'Series60') !== false || strpos($this->_agent,'S60') !== false ) {
|
790 |
+
$this->setBrowser(self::BROWSER_NOKIA_S60);
|
791 |
+
}
|
792 |
+
else {
|
793 |
+
$this->setBrowser( self::BROWSER_NOKIA );
|
794 |
+
}
|
795 |
+
$this->setMobile(true);
|
796 |
+
return true;
|
797 |
+
}
|
798 |
+
return false;
|
799 |
+
}
|
800 |
+
|
801 |
+
/**
|
802 |
+
* Determine if the browser is Firefox or not (last updated 1.7)
|
803 |
+
* @return boolean True if the browser is Firefox otherwise false
|
804 |
+
*/
|
805 |
+
protected function checkBrowserFirefox() {
|
806 |
+
if( stripos($this->_agent,'safari') === false ) {
|
807 |
+
if( preg_match("/Firefox[\/ \(]([^ ;\)]+)/i",$this->_agent,$matches) ) {
|
808 |
+
$this->setVersion($matches[1]);
|
809 |
+
$this->setBrowser(self::BROWSER_FIREFOX);
|
810 |
+
return true;
|
811 |
+
}
|
812 |
+
else if( preg_match("/Firefox$/i",$this->_agent,$matches) ) {
|
813 |
+
$this->setVersion("");
|
814 |
+
$this->setBrowser(self::BROWSER_FIREFOX);
|
815 |
+
return true;
|
816 |
+
}
|
817 |
+
}
|
818 |
+
return false;
|
819 |
+
}
|
820 |
+
|
821 |
+
/**
|
822 |
+
* Determine if the browser is Firefox or not (last updated 1.7)
|
823 |
+
* @return boolean True if the browser is Firefox otherwise false
|
824 |
+
*/
|
825 |
+
protected function checkBrowserIceweasel() {
|
826 |
+
if( stripos($this->_agent,'Iceweasel') !== false ) {
|
827 |
+
$aresult = explode('/',stristr($this->_agent,'Iceweasel'));
|
828 |
+
$aversion = explode(' ',$aresult[1]);
|
829 |
+
$this->setVersion($aversion[0]);
|
830 |
+
$this->setBrowser(self::BROWSER_ICEWEASEL);
|
831 |
+
return true;
|
832 |
+
}
|
833 |
+
return false;
|
834 |
+
}
|
835 |
+
/**
|
836 |
+
* Determine if the browser is Mozilla or not (last updated 1.7)
|
837 |
+
* @return boolean True if the browser is Mozilla otherwise false
|
838 |
+
*/
|
839 |
+
protected function checkBrowserMozilla() {
|
840 |
+
if( stripos($this->_agent,'mozilla') !== false && preg_match('/rv:[0-9].[0-9][a-b]?/i',$this->_agent) && stripos($this->_agent,'netscape') === false) {
|
841 |
+
$aversion = explode(' ',stristr($this->_agent,'rv:'));
|
842 |
+
preg_match('/rv:[0-9].[0-9][a-b]?/i',$this->_agent,$aversion);
|
843 |
+
$this->setVersion(str_replace('rv:','',$aversion[0]));
|
844 |
+
$this->setBrowser(self::BROWSER_MOZILLA);
|
845 |
+
return true;
|
846 |
+
}
|
847 |
+
else if( stripos($this->_agent,'mozilla') !== false && preg_match('/rv:[0-9]\.[0-9]/i',$this->_agent) && stripos($this->_agent,'netscape') === false ) {
|
848 |
+
$aversion = explode('',stristr($this->_agent,'rv:'));
|
849 |
+
$this->setVersion(str_replace('rv:','',$aversion[0]));
|
850 |
+
$this->setBrowser(self::BROWSER_MOZILLA);
|
851 |
+
return true;
|
852 |
+
}
|
853 |
+
else if( stripos($this->_agent,'mozilla') !== false && preg_match('/mozilla\/([^ ]*)/i',$this->_agent,$matches) && stripos($this->_agent,'netscape') === false ) {
|
854 |
+
$this->setVersion($matches[1]);
|
855 |
+
$this->setBrowser(self::BROWSER_MOZILLA);
|
856 |
+
return true;
|
857 |
+
}
|
858 |
+
return false;
|
859 |
+
}
|
860 |
+
|
861 |
+
/**
|
862 |
+
* Determine if the browser is Lynx or not (last updated 1.7)
|
863 |
+
* @return boolean True if the browser is Lynx otherwise false
|
864 |
+
*/
|
865 |
+
protected function checkBrowserLynx() {
|
866 |
+
if( stripos($this->_agent,'lynx') !== false ) {
|
867 |
+
$aresult = explode('/',stristr($this->_agent,'Lynx'));
|
868 |
+
$aversion = explode(' ',(isset($aresult[1])?$aresult[1]:""));
|
869 |
+
$this->setVersion($aversion[0]);
|
870 |
+
$this->setBrowser(self::BROWSER_LYNX);
|
871 |
+
return true;
|
872 |
+
}
|
873 |
+
return false;
|
874 |
+
}
|
875 |
+
|
876 |
+
/**
|
877 |
+
* Determine if the browser is Amaya or not (last updated 1.7)
|
878 |
+
* @return boolean True if the browser is Amaya otherwise false
|
879 |
+
*/
|
880 |
+
protected function checkBrowserAmaya() {
|
881 |
+
if( stripos($this->_agent,'amaya') !== false ) {
|
882 |
+
$aresult = explode('/',stristr($this->_agent,'Amaya'));
|
883 |
+
$aversion = explode(' ',$aresult[1]);
|
884 |
+
$this->setVersion($aversion[0]);
|
885 |
+
$this->setBrowser(self::BROWSER_AMAYA);
|
886 |
+
return true;
|
887 |
+
}
|
888 |
+
return false;
|
889 |
+
}
|
890 |
+
|
891 |
+
/**
|
892 |
+
* Determine if the browser is Safari or not (last updated 1.7)
|
893 |
+
* @return boolean True if the browser is Safari otherwise false
|
894 |
+
*/
|
895 |
+
protected function checkBrowserSafari() {
|
896 |
+
if( stripos($this->_agent,'Safari') !== false && stripos($this->_agent,'iPhone') === false && stripos($this->_agent,'iPod') === false ) {
|
897 |
+
$aresult = explode('/',stristr($this->_agent,'Version'));
|
898 |
+
if( isset($aresult[1]) ) {
|
899 |
+
$aversion = explode(' ',$aresult[1]);
|
900 |
+
$this->setVersion($aversion[0]);
|
901 |
+
}
|
902 |
+
else {
|
903 |
+
$this->setVersion(self::VERSION_UNKNOWN);
|
904 |
+
}
|
905 |
+
$this->setBrowser(self::BROWSER_SAFARI);
|
906 |
+
return true;
|
907 |
+
}
|
908 |
+
return false;
|
909 |
+
}
|
910 |
+
|
911 |
+
/**
|
912 |
+
* Determine if the browser is iPhone or not (last updated 1.7)
|
913 |
+
* @return boolean True if the browser is iPhone otherwise false
|
914 |
+
*/
|
915 |
+
protected function checkBrowseriPhone() {
|
916 |
+
if( stripos($this->_agent,'iPhone') !== false ) {
|
917 |
+
$aresult = explode('/',stristr($this->_agent,'Version'));
|
918 |
+
if( isset($aresult[1]) ) {
|
919 |
+
$aversion = explode(' ',$aresult[1]);
|
920 |
+
$this->setVersion($aversion[0]);
|
921 |
+
}
|
922 |
+
else {
|
923 |
+
$this->setVersion(self::VERSION_UNKNOWN);
|
924 |
+
}
|
925 |
+
$this->setMobile(true);
|
926 |
+
$this->setBrowser(self::BROWSER_IPHONE);
|
927 |
+
return true;
|
928 |
+
}
|
929 |
+
return false;
|
930 |
+
}
|
931 |
+
|
932 |
+
/**
|
933 |
+
* Determine if the browser is iPod or not (last updated 1.7)
|
934 |
+
* @return boolean True if the browser is iPod otherwise false
|
935 |
+
*/
|
936 |
+
protected function checkBrowseriPad() {
|
937 |
+
if( stripos($this->_agent,'iPad') !== false ) {
|
938 |
+
$aresult = explode('/',stristr($this->_agent,'Version'));
|
939 |
+
if( isset($aresult[1]) ) {
|
940 |
+
$aversion = explode(' ',$aresult[1]);
|
941 |
+
$this->setVersion($aversion[0]);
|
942 |
+
}
|
943 |
+
else {
|
944 |
+
$this->setVersion(self::VERSION_UNKNOWN);
|
945 |
+
}
|
946 |
+
$this->setMobile(true);
|
947 |
+
$this->setBrowser(self::BROWSER_IPAD);
|
948 |
+
return true;
|
949 |
+
}
|
950 |
+
return false;
|
951 |
+
}
|
952 |
+
|
953 |
+
/**
|
954 |
+
* Determine if the browser is iPod or not (last updated 1.7)
|
955 |
+
* @return boolean True if the browser is iPod otherwise false
|
956 |
+
*/
|
957 |
+
protected function checkBrowseriPod() {
|
958 |
+
if( stripos($this->_agent,'iPod') !== false ) {
|
959 |
+
$aresult = explode('/',stristr($this->_agent,'Version'));
|
960 |
+
if( isset($aresult[1]) ) {
|
961 |
+
$aversion = explode(' ',$aresult[1]);
|
962 |
+
$this->setVersion($aversion[0]);
|
963 |
+
}
|
964 |
+
else {
|
965 |
+
$this->setVersion(self::VERSION_UNKNOWN);
|
966 |
+
}
|
967 |
+
$this->setMobile(true);
|
968 |
+
$this->setBrowser(self::BROWSER_IPOD);
|
969 |
+
return true;
|
970 |
+
}
|
971 |
+
return false;
|
972 |
+
}
|
973 |
+
|
974 |
+
/**
|
975 |
+
* Determine if the browser is Android or not (last updated 1.7)
|
976 |
+
* @return boolean True if the browser is Android otherwise false
|
977 |
+
*/
|
978 |
+
protected function checkBrowserAndroid() {
|
979 |
+
if( stripos($this->_agent,'Android') !== false ) {
|
980 |
+
$aresult = explode(' ',stristr($this->_agent,'Android'));
|
981 |
+
if( isset($aresult[1]) ) {
|
982 |
+
$aversion = explode(' ',$aresult[1]);
|
983 |
+
$this->setVersion($aversion[0]);
|
984 |
+
}
|
985 |
+
else {
|
986 |
+
$this->setVersion(self::VERSION_UNKNOWN);
|
987 |
+
}
|
988 |
+
$this->setMobile(true);
|
989 |
+
$this->setBrowser(self::BROWSER_ANDROID);
|
990 |
+
return true;
|
991 |
+
}
|
992 |
+
return false;
|
993 |
+
}
|
994 |
+
|
995 |
+
/**
|
996 |
+
* Determine the user's platform (last updated 1.7)
|
997 |
+
*/
|
998 |
+
protected function checkPlatform() {
|
999 |
+
if( stripos($this->_agent, 'windows') !== false ) {
|
1000 |
+
$this->_platform = self::PLATFORM_WINDOWS;
|
1001 |
+
}
|
1002 |
+
else if( stripos($this->_agent, 'iPad') !== false ) {
|
1003 |
+
$this->_platform = self::PLATFORM_IPAD;
|
1004 |
+
}
|
1005 |
+
else if( stripos($this->_agent, 'iPod') !== false ) {
|
1006 |
+
$this->_platform = self::PLATFORM_IPOD;
|
1007 |
+
}
|
1008 |
+
else if( stripos($this->_agent, 'iPhone') !== false ) {
|
1009 |
+
$this->_platform = self::PLATFORM_IPHONE;
|
1010 |
+
}
|
1011 |
+
elseif( stripos($this->_agent, 'mac') !== false ) {
|
1012 |
+
$this->_platform = self::PLATFORM_APPLE;
|
1013 |
+
}
|
1014 |
+
elseif( stripos($this->_agent, 'android') !== false ) {
|
1015 |
+
$this->_platform = self::PLATFORM_ANDROID;
|
1016 |
+
}
|
1017 |
+
elseif( stripos($this->_agent, 'linux') !== false ) {
|
1018 |
+
$this->_platform = self::PLATFORM_LINUX;
|
1019 |
+
}
|
1020 |
+
else if( stripos($this->_agent, 'Nokia') !== false ) {
|
1021 |
+
$this->_platform = self::PLATFORM_NOKIA;
|
1022 |
+
}
|
1023 |
+
else if( stripos($this->_agent, 'BlackBerry') !== false ) {
|
1024 |
+
$this->_platform = self::PLATFORM_BLACKBERRY;
|
1025 |
+
}
|
1026 |
+
elseif( stripos($this->_agent,'FreeBSD') !== false ) {
|
1027 |
+
$this->_platform = self::PLATFORM_FREEBSD;
|
1028 |
+
}
|
1029 |
+
elseif( stripos($this->_agent,'OpenBSD') !== false ) {
|
1030 |
+
$this->_platform = self::PLATFORM_OPENBSD;
|
1031 |
+
}
|
1032 |
+
elseif( stripos($this->_agent,'NetBSD') !== false ) {
|
1033 |
+
$this->_platform = self::PLATFORM_NETBSD;
|
1034 |
+
}
|
1035 |
+
elseif( stripos($this->_agent, 'OpenSolaris') !== false ) {
|
1036 |
+
$this->_platform = self::PLATFORM_OPENSOLARIS;
|
1037 |
+
}
|
1038 |
+
elseif( stripos($this->_agent, 'SunOS') !== false ) {
|
1039 |
+
$this->_platform = self::PLATFORM_SUNOS;
|
1040 |
+
}
|
1041 |
+
elseif( stripos($this->_agent, 'OS\/2') !== false ) {
|
1042 |
+
$this->_platform = self::PLATFORM_OS2;
|
1043 |
+
}
|
1044 |
+
elseif( stripos($this->_agent, 'BeOS') !== false ) {
|
1045 |
+
$this->_platform = self::PLATFORM_BEOS;
|
1046 |
+
}
|
1047 |
+
elseif( stripos($this->_agent, 'win') !== false ) {
|
1048 |
+
$this->_platform = self::PLATFORM_WINDOWS;
|
1049 |
+
}
|
1050 |
+
|
1051 |
+
}
|
1052 |
+
}
|
1053 |
+
?>
|
app/design/frontend/default/sm_glasses_free/template/page/smartaddons/includes/mobile_device_detect.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
|
5 |
+
This code is from http://detectmobilebrowsers.mobi/ - please do not republish it without due credit and hyperlink to http://detectmobilebrowsers.mobi
|
6 |
+
|
7 |
+
For help generating the function call visit http://detectmobilebrowsers.mobi/ and use the function generator.
|
8 |
+
|
9 |
+
Published by Andy Moore - .mobi certified mobile web developer - http://andymoore.info/
|
10 |
+
|
11 |
+
This code is free to download and use on non-profit websites, if your website makes a profit or you require support using this code please upgrade.
|
12 |
+
|
13 |
+
Please pgrade for use on commercial websites http://detectmobilebrowsers.mobi/#upgrade1064282
|
14 |
+
|
15 |
+
To submit a support request please forward your PayPal receipt with your questions to the email address you sent the money to and I will endeavour to get back to you. It might take me a few days but I reply to all support issues with as much helpful info as I can provide. Though really everything is published on the site.
|
16 |
+
|
17 |
+
The function has eight parameters that can be passed to it which define the way it handles different scenarios. These paramaters are:
|
18 |
+
|
19 |
+
* iPhone - Set to true to treat iPhones as mobiles, false to treat them like full browsers or set a URL (including http://) to redirect iPhones and iPods to.
|
20 |
+
* Android - Set to true to treat Android handsets as mobiles, false to treat them like full browsers or set a URL (including http://) to redirect Android and Google mobile users to.
|
21 |
+
* Opera Mini - Set to true to treat Opera Mini like a mobile, false to treat it like full browser or set a URL (including http://) to redirect Opera Mini users to.
|
22 |
+
* Blackberry - Set to true to treat Blackberry like a mobile, false to treat it like full browser or set a URL (including http://) to redirect Blackberry users to.
|
23 |
+
* Palm - Set to true to treat Palm OS like a mobile, false to treat it like full browser or set a URL (including http://) to redirect Palm OS users to.
|
24 |
+
* Windows - Set to true to treat Windows Mobiles like a mobile, false to treat it like full browser or set a URL (including http://) to redirect Windows Mobile users to.
|
25 |
+
* Mobile Redirect URL - This should be full web address (including http://) of the site (or page) you want to send mobile visitors to. Leaving this blank will make the script return true when it detects a mobile.
|
26 |
+
* Desktop Redirect URL - This should be full web address (including http://) of the site (or page) you want to send non-mobile visitors to. Leaving this blank will make the script return false when it fails to detect a mobile.
|
27 |
+
|
28 |
+
Change Log
|
29 |
+
|
30 |
+
* 25.11.08 - Added Amazon's Kindle to the pipe seperated array
|
31 |
+
* 27.11.08 - Added support for Blackberry options
|
32 |
+
* 27.01.09 - Added usage samples & help with PHP in HTML
|
33 |
+
* 09.03.09 - Added support for Windows Mobile options
|
34 |
+
* 09.03.09 - Removed 'ppc;'=>'ppc;', from array to reduce false positives
|
35 |
+
* 09.03.09 - Added support for Palm OS options
|
36 |
+
* 09.03.09 - Added sample .htaccess html.html and help.html files to download
|
37 |
+
* 16.03.09 - Edited sample .htaccess file - now work with GoDaddy
|
38 |
+
|
39 |
+
1. Mac OS X Safari Version 4.0 (5530.17) matches on "tosh" due to:
|
40 |
+
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17
|
41 |
+
|
42 |
+
1b. Must add "hiba" to be inclusive of "Toshiba"
|
43 |
+
|
44 |
+
2. IE 8.0 Matches on "comp" due to:
|
45 |
+
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)
|
46 |
+
|
47 |
+
2b. Must add "mpal" to support "Compal"
|
48 |
+
|
49 |
+
2. Palm Pre is not supported. You need to add "pre/" to your list:
|
50 |
+
Mozilla/5.0 (webOS/1.0; U; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/1.0 Safari/525.27.1 Pre/1.0
|
51 |
+
|
52 |
+
FYI: "Pre" matches to "Presto", so make sure you use "Pre/":
|
53 |
+
Opera/9.64 (Macintosh; Intel Mac OS X; U; en) Presto/2.1.1
|
54 |
+
|
55 |
+
3. LG Voyager is not supoorted. You need to add "lge " and/or "vx10" to your list:
|
56 |
+
Mozilla/4.1 (compatible; MSIE 6.0; ) 400x240 LGE VX10000
|
57 |
+
|
58 |
+
^^^^^^^^^^^^^^^^^^^^ MUCH credit to http://www.punchkickinteractive.com/ - thanks Ryan!
|
59 |
+
|
60 |
+
EI 8 bug fixed - removed pda from pipe array
|
61 |
+
|
62 |
+
*/
|
63 |
+
|
64 |
+
|
65 |
+
function mobile_device_detect($iphone=true,$android=true,$opera=true,$blackberry=true,$palm=true,$windows=true,$mobileredirect=false,$desktopredirect=false){
|
66 |
+
|
67 |
+
$mobile_browser = false; // set mobile browser as false till we can prove otherwise
|
68 |
+
$user_agent = $_SERVER['HTTP_USER_AGENT']; // get the user agent value - this should be cleaned to ensure no nefarious input gets executed
|
69 |
+
$accept = $_SERVER['HTTP_ACCEPT']; // get the content accept value - this should be cleaned to ensure no nefarious input gets executed
|
70 |
+
|
71 |
+
switch(true){ // using a switch against the following statements which could return true is more efficient than the previous method of using if statements
|
72 |
+
|
73 |
+
case (preg_match('/ipod/i',$user_agent)||preg_match('/iphone/i',$user_agent)); // we find the words iphone or ipod in the user agent
|
74 |
+
$mobile_browser = $iphone; // mobile browser is either true or false depending on the setting of iphone when calling the function
|
75 |
+
$status = 'Apple';
|
76 |
+
if(substr($iphone,0,4)=='http'){ // does the value of iphone resemble a url
|
77 |
+
$mobileredirect = $iphone; // set the mobile redirect url to the url value stored in the iphone value
|
78 |
+
} // ends the if for iphone being a url
|
79 |
+
break; // break out and skip the rest if we've had a match on the iphone or ipod
|
80 |
+
|
81 |
+
case (preg_match('/android/i',$user_agent)); // we find android in the user agent
|
82 |
+
$mobile_browser = $android; // mobile browser is either true or false depending on the setting of android when calling the function
|
83 |
+
$status = 'Android';
|
84 |
+
if(substr($android,0,4)=='http'){ // does the value of android resemble a url
|
85 |
+
$mobileredirect = $android; // set the mobile redirect url to the url value stored in the android value
|
86 |
+
} // ends the if for android being a url
|
87 |
+
break; // break out and skip the rest if we've had a match on android
|
88 |
+
|
89 |
+
case (preg_match('/opera mini/i',$user_agent)); // we find opera mini in the user agent
|
90 |
+
$mobile_browser = $opera; // mobile browser is either true or false depending on the setting of opera when calling the function
|
91 |
+
$status = 'Opera';
|
92 |
+
if(substr($opera,0,4)=='http'){ // does the value of opera resemble a rul
|
93 |
+
$mobileredirect = $opera; // set the mobile redirect url to the url value stored in the opera value
|
94 |
+
} // ends the if for opera being a url
|
95 |
+
break; // break out and skip the rest if we've had a match on opera
|
96 |
+
|
97 |
+
case (preg_match('/blackberry/i',$user_agent)); // we find blackberry in the user agent
|
98 |
+
$mobile_browser = $blackberry; // mobile browser is either true or false depending on the setting of blackberry when calling the function
|
99 |
+
$status = 'Blackberry';
|
100 |
+
if(substr($blackberry,0,4)=='http'){ // does the value of blackberry resemble a rul
|
101 |
+
$mobileredirect = $blackberry; // set the mobile redirect url to the url value stored in the blackberry value
|
102 |
+
} // ends the if for blackberry being a url
|
103 |
+
break; // break out and skip the rest if we've had a match on blackberry
|
104 |
+
|
105 |
+
case (preg_match('/(pre\/|palm os|palm|hiptop|avantgo|fennec|plucker|xiino|blazer|elaine)/i',$user_agent)); // we find palm os in the user agent - the i at the end makes it case insensitive
|
106 |
+
$mobile_browser = $palm; // mobile browser is either true or false depending on the setting of palm when calling the function
|
107 |
+
$status = 'Palm';
|
108 |
+
if(substr($palm,0,4)=='http'){ // does the value of palm resemble a rul
|
109 |
+
$mobileredirect = $palm; // set the mobile redirect url to the url value stored in the palm value
|
110 |
+
} // ends the if for palm being a url
|
111 |
+
break; // break out and skip the rest if we've had a match on palm os
|
112 |
+
|
113 |
+
case (preg_match('/(iris|3g_t|windows ce|opera mobi|windows ce; smartphone;|windows ce; iemobile)/i',$user_agent)); // we find windows mobile in the user agent - the i at the end makes it case insensitive
|
114 |
+
$mobile_browser = $windows; // mobile browser is either true or false depending on the setting of windows when calling the function
|
115 |
+
$status = 'Windows Smartphone';
|
116 |
+
if(substr($windows,0,4)=='http'){ // does the value of windows resemble a rul
|
117 |
+
$mobileredirect = $windows; // set the mobile redirect url to the url value stored in the windows value
|
118 |
+
} // ends the if for windows being a url
|
119 |
+
break; // break out and skip the rest if we've had a match on windows
|
120 |
+
|
121 |
+
case (preg_match('/(mini 9.5|vx1000|lge |m800|e860|u940|ux840|compal|wireless| mobi|ahong|lg380|lgku|lgu900|lg210|lg47|lg920|lg840|lg370|sam-r|mg50|s55|g83|t66|vx400|mk99|d615|d763|el370|sl900|mp500|samu3|samu4|vx10|xda_|samu5|samu6|samu7|samu9|a615|b832|m881|s920|n210|s700|c-810|_h797|mob-x|sk16d|848b|mowser|s580|r800|471x|v120|rim8|c500foma:|160x|x160|480x|x640|t503|w839|i250|sprint|w398samr810|m5252|c7100|mt126|x225|s5330|s820|htil-g1|fly v71|s302|-x113|novarra|k610i|-three|8325rc|8352rc|sanyo|vx54|c888|nx250|n120|mtk |c5588|s710|t880|c5005|i;458x|p404i|s210|c5100|teleca|s940|c500|s590|foma|samsu|vx8|vx9|a1000|_mms|myx|a700|gu1100|bc831|e300|ems100|me701|me702m-three|sd588|s800|8325rc|ac831|mw200|brew |d88|htc\/|htc_touch|355x|m50|km100|d736|p-9521|telco|sl74|ktouch|m4u\/|me702|8325rc|kddi|phone|lg |sonyericsson|samsung|240x|x320vx10|nokia|sony cmd|motorola|up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|psp|treo)/i',$user_agent)); // check if any of the values listed create a match on the user agent - these are some of the most common terms used in agents to identify them as being mobile devices - the i at the end makes it case insensitive
|
122 |
+
$mobile_browser = true; // set mobile browser to true
|
123 |
+
$status = 'Mobile matched on piped preg_match';
|
124 |
+
break; // break out and skip the rest if we've preg_match on the user agent returned true
|
125 |
+
|
126 |
+
case ((strpos($accept,'text/vnd.wap.wml')>0)||(strpos($accept,'application/vnd.wap.xhtml+xml')>0)); // is the device showing signs of support for text/vnd.wap.wml or application/vnd.wap.xhtml+xml
|
127 |
+
$mobile_browser = true; // set mobile browser to true
|
128 |
+
$status = 'Mobile matched on content accept header';
|
129 |
+
break; // break out and skip the rest if we've had a match on the content accept headers
|
130 |
+
|
131 |
+
case (isset($_SERVER['HTTP_X_WAP_PROFILE'])||isset($_SERVER['HTTP_PROFILE'])); // is the device giving us a HTTP_X_WAP_PROFILE or HTTP_PROFILE header - only mobile devices would do this
|
132 |
+
$mobile_browser = true; // set mobile browser to true
|
133 |
+
$status = 'Mobile matched on profile headers being set';
|
134 |
+
break; // break out and skip the final step if we've had a return true on the mobile specfic headers
|
135 |
+
|
136 |
+
case (in_array(strtolower(substr($user_agent,0,4)),array('1207'=>'1207','3gso'=>'3gso','4thp'=>'4thp','501i'=>'501i','502i'=>'502i','503i'=>'503i','504i'=>'504i','505i'=>'505i','506i'=>'506i','6310'=>'6310','6590'=>'6590','770s'=>'770s','802s'=>'802s','a wa'=>'a wa','acer'=>'acer','acs-'=>'acs-','airn'=>'airn','alav'=>'alav','asus'=>'asus','attw'=>'attw','au-m'=>'au-m','aur '=>'aur ','aus '=>'aus ','abac'=>'abac','acoo'=>'acoo','aiko'=>'aiko','alco'=>'alco','alca'=>'alca','amoi'=>'amoi','anex'=>'anex','anny'=>'anny','anyw'=>'anyw','aptu'=>'aptu','arch'=>'arch','argo'=>'argo','bell'=>'bell','bird'=>'bird','bw-n'=>'bw-n','bw-u'=>'bw-u','beck'=>'beck','benq'=>'benq','bilb'=>'bilb','blac'=>'blac','c55/'=>'c55/','cdm-'=>'cdm-','chtm'=>'chtm','capi'=>'capi','cond'=>'cond','craw'=>'craw','dall'=>'dall','dbte'=>'dbte','dc-s'=>'dc-s','dica'=>'dica','ds-d'=>'ds-d','ds12'=>'ds12','dait'=>'dait','devi'=>'devi','dmob'=>'dmob','doco'=>'doco','dopo'=>'dopo','el49'=>'el49','erk0'=>'erk0','esl8'=>'esl8','ez40'=>'ez40','ez60'=>'ez60','ez70'=>'ez70','ezos'=>'ezos','ezze'=>'ezze','elai'=>'elai','emul'=>'emul','eric'=>'eric','ezwa'=>'ezwa','fake'=>'fake','fly-'=>'fly-','fly_'=>'fly_','g-mo'=>'g-mo','g1 u'=>'g1 u','g560'=>'g560','gf-5'=>'gf-5','grun'=>'grun','gene'=>'gene','go.w'=>'go.w','good'=>'good','grad'=>'grad','hcit'=>'hcit','hd-m'=>'hd-m','hd-p'=>'hd-p','hd-t'=>'hd-t','hei-'=>'hei-','hp i'=>'hp i','hpip'=>'hpip','hs-c'=>'hs-c','htc '=>'htc ','htc-'=>'htc-','htca'=>'htca','htcg'=>'htcg','htcp'=>'htcp','htcs'=>'htcs','htct'=>'htct','htc_'=>'htc_','haie'=>'haie','hita'=>'hita','huaw'=>'huaw','hutc'=>'hutc','i-20'=>'i-20','i-go'=>'i-go','i-ma'=>'i-ma','i230'=>'i230','iac'=>'iac','iac-'=>'iac-','iac/'=>'iac/','ig01'=>'ig01','im1k'=>'im1k','inno'=>'inno','iris'=>'iris','jata'=>'jata','java'=>'java','kddi'=>'kddi','kgt'=>'kgt','kgt/'=>'kgt/','kpt '=>'kpt ','kwc-'=>'kwc-','klon'=>'klon','lexi'=>'lexi','lg g'=>'lg g','lg-a'=>'lg-a','lg-b'=>'lg-b','lg-c'=>'lg-c','lg-d'=>'lg-d','lg-f'=>'lg-f','lg-g'=>'lg-g','lg-k'=>'lg-k','lg-l'=>'lg-l','lg-m'=>'lg-m','lg-o'=>'lg-o','lg-p'=>'lg-p','lg-s'=>'lg-s','lg-t'=>'lg-t','lg-u'=>'lg-u','lg-w'=>'lg-w','lg/k'=>'lg/k','lg/l'=>'lg/l','lg/u'=>'lg/u','lg50'=>'lg50','lg54'=>'lg54','lge-'=>'lge-','lge/'=>'lge/','lynx'=>'lynx','leno'=>'leno','m1-w'=>'m1-w','m3ga'=>'m3ga','m50/'=>'m50/','maui'=>'maui','mc01'=>'mc01','mc21'=>'mc21','mcca'=>'mcca','medi'=>'medi','meri'=>'meri','mio8'=>'mio8','mioa'=>'mioa','mo01'=>'mo01','mo02'=>'mo02','mode'=>'mode','modo'=>'modo','mot '=>'mot ','mot-'=>'mot-','mt50'=>'mt50','mtp1'=>'mtp1','mtv '=>'mtv ','mate'=>'mate','maxo'=>'maxo','merc'=>'merc','mits'=>'mits','mobi'=>'mobi','motv'=>'motv','mozz'=>'mozz','n100'=>'n100','n101'=>'n101','n102'=>'n102','n202'=>'n202','n203'=>'n203','n300'=>'n300','n302'=>'n302','n500'=>'n500','n502'=>'n502','n505'=>'n505','n700'=>'n700','n701'=>'n701','n710'=>'n710','nec-'=>'nec-','nem-'=>'nem-','newg'=>'newg','neon'=>'neon','netf'=>'netf','noki'=>'noki','nzph'=>'nzph','o2 x'=>'o2 x','o2-x'=>'o2-x','opwv'=>'opwv','owg1'=>'owg1','opti'=>'opti','oran'=>'oran','p800'=>'p800','pand'=>'pand','pg-1'=>'pg-1','pg-2'=>'pg-2','pg-3'=>'pg-3','pg-6'=>'pg-6','pg-8'=>'pg-8','pg-c'=>'pg-c','pg13'=>'pg13','phil'=>'phil','pn-2'=>'pn-2','pt-g'=>'pt-g','palm'=>'palm','pana'=>'pana','pire'=>'pire','pock'=>'pock','pose'=>'pose','psio'=>'psio','qa-a'=>'qa-a','qc-2'=>'qc-2','qc-3'=>'qc-3','qc-5'=>'qc-5','qc-7'=>'qc-7','qc07'=>'qc07','qc12'=>'qc12','qc21'=>'qc21','qc32'=>'qc32','qc60'=>'qc60','qci-'=>'qci-','qwap'=>'qwap','qtek'=>'qtek','r380'=>'r380','r600'=>'r600','raks'=>'raks','rim9'=>'rim9','rove'=>'rove','s55/'=>'s55/','sage'=>'sage','sams'=>'sams','sc01'=>'sc01','sch-'=>'sch-','scp-'=>'scp-','sdk/'=>'sdk/','se47'=>'se47','sec-'=>'sec-','sec0'=>'sec0','sec1'=>'sec1','semc'=>'semc','sgh-'=>'sgh-','shar'=>'shar','sie-'=>'sie-','sk-0'=>'sk-0','sl45'=>'sl45','slid'=>'slid','smb3'=>'smb3','smt5'=>'smt5','sp01'=>'sp01','sph-'=>'sph-','spv '=>'spv ','spv-'=>'spv-','sy01'=>'sy01','samm'=>'samm','sany'=>'sany','sava'=>'sava','scoo'=>'scoo','send'=>'send','siem'=>'siem','smar'=>'smar','smit'=>'smit','soft'=>'soft','sony'=>'sony','t-mo'=>'t-mo','t218'=>'t218','t250'=>'t250','t600'=>'t600','t610'=>'t610','t618'=>'t618','tcl-'=>'tcl-','tdg-'=>'tdg-','telm'=>'telm','tim-'=>'tim-','ts70'=>'ts70','tsm-'=>'tsm-','tsm3'=>'tsm3','tsm5'=>'tsm5','tx-9'=>'tx-9','tagt'=>'tagt','talk'=>'talk','teli'=>'teli','topl'=>'topl','hiba'=>'hiba','up.b'=>'up.b','upg1'=>'upg1','utst'=>'utst','v400'=>'v400','v750'=>'v750','veri'=>'veri','vk-v'=>'vk-v','vk40'=>'vk40','vk50'=>'vk50','vk52'=>'vk52','vk53'=>'vk53','vm40'=>'vm40','vx98'=>'vx98','virg'=>'virg','vite'=>'vite','voda'=>'voda','vulc'=>'vulc','w3c '=>'w3c ','w3c-'=>'w3c-','wapj'=>'wapj','wapp'=>'wapp','wapu'=>'wapu','wapm'=>'wapm','wig '=>'wig ','wapi'=>'wapi','wapr'=>'wapr','wapv'=>'wapv','wapy'=>'wapy','wapa'=>'wapa','waps'=>'waps','wapt'=>'wapt','winc'=>'winc','winw'=>'winw','wonu'=>'wonu','x700'=>'x700','xda2'=>'xda2','xdag'=>'xdag','yas-'=>'yas-','your'=>'your','zte-'=>'zte-','zeto'=>'zeto','acs-'=>'acs-','alav'=>'alav','alca'=>'alca','amoi'=>'amoi','aste'=>'aste','audi'=>'audi','avan'=>'avan','benq'=>'benq','bird'=>'bird','blac'=>'blac','blaz'=>'blaz','brew'=>'brew','brvw'=>'brvw','bumb'=>'bumb','ccwa'=>'ccwa','cell'=>'cell','cldc'=>'cldc','cmd-'=>'cmd-','dang'=>'dang','doco'=>'doco','eml2'=>'eml2','eric'=>'eric','fetc'=>'fetc','hipt'=>'hipt','http'=>'http','ibro'=>'ibro','idea'=>'idea','ikom'=>'ikom','inno'=>'inno','ipaq'=>'ipaq','jbro'=>'jbro','jemu'=>'jemu','java'=>'java','jigs'=>'jigs','kddi'=>'kddi','keji'=>'keji','kyoc'=>'kyoc','kyok'=>'kyok','leno'=>'leno','lg-c'=>'lg-c','lg-d'=>'lg-d','lg-g'=>'lg-g','lge-'=>'lge-','libw'=>'libw','m-cr'=>'m-cr','maui'=>'maui','maxo'=>'maxo','midp'=>'midp','mits'=>'mits','mmef'=>'mmef','mobi'=>'mobi','mot-'=>'mot-','moto'=>'moto','mwbp'=>'mwbp','mywa'=>'mywa','nec-'=>'nec-','newt'=>'newt','nok6'=>'nok6','noki'=>'noki','o2im'=>'o2im','opwv'=>'opwv','palm'=>'palm','pana'=>'pana','pant'=>'pant','pdxg'=>'pdxg','phil'=>'phil','play'=>'play','pluc'=>'pluc','port'=>'port','prox'=>'prox','qtek'=>'qtek','qwap'=>'qwap','rozo'=>'rozo','sage'=>'sage','sama'=>'sama','sams'=>'sams','sany'=>'sany','sch-'=>'sch-','sec-'=>'sec-','send'=>'send','seri'=>'seri','sgh-'=>'sgh-','shar'=>'shar','sie-'=>'sie-','siem'=>'siem','smal'=>'smal','smar'=>'smar','sony'=>'sony','sph-'=>'sph-','symb'=>'symb','t-mo'=>'t-mo','teli'=>'teli','tim-'=>'tim-','tosh'=>'tosh','treo'=>'treo','tsm-'=>'tsm-','upg1'=>'upg1','upsi'=>'upsi','vk-v'=>'vk-v','voda'=>'voda','vx52'=>'vx52','vx53'=>'vx53','vx60'=>'vx60','vx61'=>'vx61','vx70'=>'vx70','vx80'=>'vx80','vx81'=>'vx81','vx83'=>'vx83','vx85'=>'vx85','wap-'=>'wap-','wapa'=>'wapa','wapi'=>'wapi','wapp'=>'wapp','wapr'=>'wapr','webc'=>'webc','whit'=>'whit','winw'=>'winw','wmlb'=>'wmlb','xda-'=>'xda-',))); // check against a list of trimmed user agents to see if we find a match
|
137 |
+
$mobile_browser = true; // set mobile browser to true
|
138 |
+
$status = 'Mobile matched on in_array';
|
139 |
+
break; // break even though it's the last statement in the switch so there's nothing to break away from but it seems better to include it than exclude it
|
140 |
+
|
141 |
+
default;
|
142 |
+
$mobile_browser = false; // set mobile browser to false
|
143 |
+
$status = 'Desktop / full capability browser';
|
144 |
+
break; // break even though it's the last statement in the switch so there's nothing to break away from but it seems better to include it than exclude it
|
145 |
+
|
146 |
+
} // ends the switch
|
147 |
+
|
148 |
+
// tell adaptation services (transcoders and proxies) to not alter the content based on user agent as it's already being managed by this script
|
149 |
+
// header('Cache-Control: no-transform'); // http://mobiforge.com/developing/story/setting-http-headers-advise-transcoding-proxies
|
150 |
+
// header('Vary: User-Agent, Accept'); // http://mobiforge.com/developing/story/setting-http-headers-advise-transcoding-proxies
|
151 |
+
|
152 |
+
// if redirect (either the value of the mobile or desktop redirect depending on the value of $mobile_browser) is true redirect else we return the status of $mobile_browser
|
153 |
+
if($redirect = ($mobile_browser==true) ? $mobileredirect : $desktopredirect){
|
154 |
+
header('Location: '.$redirect); // redirect to the right url for this device
|
155 |
+
exit;
|
156 |
+
}else{
|
157 |
+
return $mobile_browser; // will return either true or false
|
158 |
+
}
|
159 |
+
|
160 |
+
} // ends function mobile_device_detect
|
161 |
+
|
162 |
+
?>
|
app/design/frontend/default/sm_glasses_free/template/page/smartaddons/includes/yt_theme.class.php
ADDED
@@ -0,0 +1,247 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*------------------------------------------------------------------------
|
3 |
+
* Copyright (C) 2009 - 2012 The YouTech JSC. All Rights Reserved.
|
4 |
+
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
|
5 |
+
* Author: The YouTech JSC
|
6 |
+
* Websites: http://www.smartaddons.com - http://www.cmsportal.net
|
7 |
+
-------------------------------------------------------------------------*/
|
8 |
+
class YtTheme {
|
9 |
+
//Params will store in cookie for user select. Default: store all params
|
10 |
+
var $_params_cookie = array();
|
11 |
+
//Params will store in cookie for user select. Default: store all params
|
12 |
+
var $_params = null;
|
13 |
+
var $template = '';
|
14 |
+
|
15 |
+
function YtTheme ($template, $_param, $_params_cookie=null) {
|
16 |
+
$this->template = $template;
|
17 |
+
$this->_params = $_param;
|
18 |
+
if(!$_params_cookie){
|
19 |
+
$_params_cookie =array(
|
20 |
+
'direction',
|
21 |
+
'fontsize',
|
22 |
+
'font_name',
|
23 |
+
'sitestyle',
|
24 |
+
'bgcolor',
|
25 |
+
'body-bgimage',
|
26 |
+
'linkcolor',
|
27 |
+
'textcolor',
|
28 |
+
'header-bgimage',
|
29 |
+
'header-bgcolor',
|
30 |
+
'footer-bgcolor',
|
31 |
+
'footer-bgimage',
|
32 |
+
'menustyle',
|
33 |
+
'shownotice',
|
34 |
+
'googleWebFont'
|
35 |
+
);
|
36 |
+
}
|
37 |
+
if($_params_cookie){
|
38 |
+
foreach ($_params_cookie as $k) {
|
39 |
+
$this->_params_cookie[$k] = $this->_params->get($k);
|
40 |
+
}
|
41 |
+
}
|
42 |
+
$this->getUserSetting();
|
43 |
+
}
|
44 |
+
|
45 |
+
function getUserSetting(){
|
46 |
+
$exp = time() + 60*60*24*355;
|
47 |
+
if (isset($_COOKIE[$this->template.'_tpl']) && $_COOKIE[$this->template.'_tpl'] == $this->template){
|
48 |
+
foreach($this->_params_cookie as $k=>$v) {
|
49 |
+
$kc = $this->template."_".$k;
|
50 |
+
if (isset($_GET[$k])){
|
51 |
+
$v = $_GET[$k];
|
52 |
+
setcookie ($kc, $v, $exp, '/');
|
53 |
+
}else{
|
54 |
+
if (isset($_COOKIE[$kc])){
|
55 |
+
$v = $_COOKIE[$kc];
|
56 |
+
}
|
57 |
+
}
|
58 |
+
$this->setParam($k, $v);
|
59 |
+
}
|
60 |
+
|
61 |
+
}else{
|
62 |
+
@setcookie ($this->template.'_tpl', $this->template, $exp, '/');
|
63 |
+
}
|
64 |
+
//var_dump($this->_params_cookie); die();
|
65 |
+
return $this;
|
66 |
+
}
|
67 |
+
|
68 |
+
function getParam ($param, $default='') {
|
69 |
+
if (isset($this->_params_cookie[$param])) {
|
70 |
+
return $this->_params_cookie[$param];
|
71 |
+
}
|
72 |
+
return $this->_params->get($param, $default);
|
73 |
+
}
|
74 |
+
|
75 |
+
function setParam ($param, $value) {
|
76 |
+
$this->_params_cookie[$param] = $value;
|
77 |
+
}
|
78 |
+
|
79 |
+
function isOP () {
|
80 |
+
return isset($_SERVER['HTTP_USER_AGENT']) &&
|
81 |
+
preg_match('/opera/i',$_SERVER['HTTP_USER_AGENT']);
|
82 |
+
}
|
83 |
+
function isChrome () {
|
84 |
+
return isset($_SERVER['HTTP_USER_AGENT']) &&
|
85 |
+
preg_match('/chrome/i',$_SERVER['HTTP_USER_AGENT']);
|
86 |
+
}
|
87 |
+
function mobile_device_detect () {
|
88 |
+
require_once ('mobile_device_detect.php');
|
89 |
+
//bypass special browser:
|
90 |
+
$special = array('jigs', 'w3c ', 'w3c-', 'w3c_');
|
91 |
+
if (in_array(strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4)), $special)) return false;
|
92 |
+
return mobile_device_detect('iphone','android','opera','blackberry','palm','windows');
|
93 |
+
}
|
94 |
+
|
95 |
+
function mobile_device_detect_layout () {
|
96 |
+
$ui = $this->getParam('ui');
|
97 |
+
return $ui=='desktop'?false:(($ui=='mobile' && !$this->mobile_device_detect())?'iphone':$this->mobile_device_detect());
|
98 |
+
}
|
99 |
+
|
100 |
+
function baseurl(){
|
101 |
+
return $this->getBaseURL();
|
102 |
+
}
|
103 |
+
function getBaseURL() {
|
104 |
+
static $_baseURL = '';
|
105 |
+
if (!$_baseURL) {
|
106 |
+
// Determine if the request was over SSL (HTTPS)
|
107 |
+
if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) != 'off')) {
|
108 |
+
$https = 's://';
|
109 |
+
} else {
|
110 |
+
$https = '://';
|
111 |
+
}
|
112 |
+
|
113 |
+
/*
|
114 |
+
* Since we are assigning the URI from the server variables, we first need
|
115 |
+
* to determine if we are running on apache or IIS. If PHP_SELF and REQUEST_URI
|
116 |
+
* are present, we will assume we are running on apache.
|
117 |
+
*/
|
118 |
+
if (!empty ($_SERVER['PHP_SELF']) && !empty ($_SERVER['REQUEST_URI'])) {
|
119 |
+
|
120 |
+
/*
|
121 |
+
* To build the entire URI we need to prepend the protocol, and the http host
|
122 |
+
* to the URI string.
|
123 |
+
*/
|
124 |
+
$theURI = 'http' . $https . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
125 |
+
|
126 |
+
/*
|
127 |
+
* Since we do not have REQUEST_URI to work with, we will assume we are
|
128 |
+
* running on IIS and will therefore need to work some magic with the SCRIPT_NAME and
|
129 |
+
* QUERY_STRING environment variables.
|
130 |
+
*/
|
131 |
+
}
|
132 |
+
else
|
133 |
+
{
|
134 |
+
// IIS uses the SCRIPT_NAME variable instead of a REQUEST_URI variable... thanks, MS
|
135 |
+
$theURI = 'http' . $https . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
|
136 |
+
|
137 |
+
// If the query string exists append it to the URI string
|
138 |
+
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
|
139 |
+
$theURI .= '?' . $_SERVER['QUERY_STRING'];
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
// Now we need to clean what we got since we can't trust the server var
|
144 |
+
$theURI = urldecode($theURI);
|
145 |
+
$theURI = str_replace('"', '"',$theURI);
|
146 |
+
$theURI = str_replace('<', '<',$theURI);
|
147 |
+
$theURI = str_replace('>', '>',$theURI);
|
148 |
+
$theURI = preg_replace('/eval\((.*)\)/', '', $theURI);
|
149 |
+
$theURI = preg_replace('/[\\\"\\\'][\\s]*javascript:(.*)[\\\"\\\']/', '""', $theURI);
|
150 |
+
|
151 |
+
//Parse theURL
|
152 |
+
$_parts = $this->_parseURL ($theURI);
|
153 |
+
$_baseURL = '';
|
154 |
+
$_baseURL .= (!empty($_parts['scheme']) ? $_parts['scheme'].'://' : '');
|
155 |
+
$_baseURL .= (!empty($_parts['host']) ? $_parts['host'] : '');
|
156 |
+
$_baseURL .= (!empty($_parts['port']) && $_parts['port']!=80 ? ':'.$_parts['port'] : '');
|
157 |
+
|
158 |
+
if (strpos(php_sapi_name(), 'cgi') !== false && !empty($_SERVER['REQUEST_URI'])) {
|
159 |
+
//Apache CGI
|
160 |
+
$_path = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
|
161 |
+
} else {
|
162 |
+
//Others
|
163 |
+
$_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
|
164 |
+
}
|
165 |
+
|
166 |
+
$_baseURL .= $_path;
|
167 |
+
}
|
168 |
+
return $_baseURL;
|
169 |
+
}
|
170 |
+
|
171 |
+
function _parseURL($uri)
|
172 |
+
{
|
173 |
+
$parts = array();
|
174 |
+
if (version_compare( phpversion(), '4.4' ) < 0)
|
175 |
+
{
|
176 |
+
$regex = "<^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?>";
|
177 |
+
$matches = array();
|
178 |
+
preg_match($regex, $uri, $matches, PREG_OFFSET_CAPTURE);
|
179 |
+
|
180 |
+
$authority = @$matches[4][0];
|
181 |
+
if (strpos($authority, '@') !== false) {
|
182 |
+
$authority = explode('@', $authority);
|
183 |
+
@list($parts['user'], $parts['pass']) = explode(':', $authority[0]);
|
184 |
+
$authority = $authority[1];
|
185 |
+
}
|
186 |
+
|
187 |
+
if (strpos($authority, ':') !== false) {
|
188 |
+
$authority = explode(':', $authority);
|
189 |
+
$parts['host'] = $authority[0];
|
190 |
+
$parts['port'] = $authority[1];
|
191 |
+
} else {
|
192 |
+
$parts['host'] = $authority;
|
193 |
+
}
|
194 |
+
|
195 |
+
$parts['scheme'] = @$matches[2][0];
|
196 |
+
$parts['path'] = @$matches[5][0];
|
197 |
+
$parts['query'] = @$matches[7][0];
|
198 |
+
$parts['fragment'] = @$matches[9][0];
|
199 |
+
}
|
200 |
+
else
|
201 |
+
{
|
202 |
+
$parts = @parse_url($uri);
|
203 |
+
}
|
204 |
+
return $parts;
|
205 |
+
}
|
206 |
+
|
207 |
+
function templateurl(){
|
208 |
+
return Mage::getBaseDir('app')."/design/frontend/default/".$this->template;
|
209 |
+
}
|
210 |
+
|
211 |
+
function skinurl(){
|
212 |
+
return Mage::getBaseUrl('skin')."frontend/default/".$this->template;
|
213 |
+
}
|
214 |
+
|
215 |
+
function isHomepage () {
|
216 |
+
if (strpos(php_sapi_name(), 'cgi') !== false && !empty($_SERVER['REQUEST_URI'])) {
|
217 |
+
//Apache CGI
|
218 |
+
$_path = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
|
219 |
+
} else {
|
220 |
+
//Others
|
221 |
+
$_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
|
222 |
+
}
|
223 |
+
$uri = $_SERVER['REQUEST_URI'];
|
224 |
+
if ($uri && $_path && strpos ($uri, $_path) === 0) {
|
225 |
+
$uri = substr($uri, strlen ($_path));
|
226 |
+
}
|
227 |
+
$uri = strtolower($uri);
|
228 |
+
if (in_array($uri, array('', '/', '/index.php','/index.php/', '/home', '/home/', '/default', '/default/', '/default/home', '/default/home/'))) return $uri;
|
229 |
+
if (strpos($uri, '/home-')===0) return $uri;
|
230 |
+
return FALSE;
|
231 |
+
}
|
232 |
+
|
233 |
+
}
|
234 |
+
|
235 |
+
class ThemeParameter {
|
236 |
+
var $_params;
|
237 |
+
function ThemeParameter () {
|
238 |
+
$this->_params = array();
|
239 |
+
}
|
240 |
+
function get ($key, $default = '') {
|
241 |
+
return isset($this->_params[$key])?$this->_params[$key]:$default;
|
242 |
+
}
|
243 |
+
function set ($key, $value = '') {
|
244 |
+
$this->_params[$key] = $value;
|
245 |
+
}
|
246 |
+
}
|
247 |
+
?>
|
app/design/frontend/default/sm_glasses_free/template/page/smartaddons/yt_config_inc.php
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*------------------------------------------------------------------------
|
3 |
+
* Copyright (C) 2009 - 2012 The YouTech JSC. All Rights Reserved.
|
4 |
+
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
|
5 |
+
* Author: The YouTech JSC
|
6 |
+
* Websites: http://www.smartaddons.com - http://www.cmsportal.net
|
7 |
+
-------------------------------------------------------------------------*/
|
8 |
+
/*--- BEGIN: Theme param config ---*/
|
9 |
+
$_params = new ThemeParameter();
|
10 |
+
$_config = array(
|
11 |
+
'showcpanel' =>'',
|
12 |
+
'show_notice' =>'1',
|
13 |
+
'body_font_size' =>'14px',
|
14 |
+
'body_font_family' =>'Arial',
|
15 |
+
'google_font' =>'Archivo Narrow',
|
16 |
+
'google_font_targets' =>'
|
17 |
+
.header-nav-container-home ul#nav li a,
|
18 |
+
#yt_tab_products .yt-tab-navi li a:hover,
|
19 |
+
#yt_tab_products .yt-tab-navi li.active,
|
20 |
+
li.selected a.subhead,
|
21 |
+
#review-form h4,
|
22 |
+
.col-left .block-subtitle,
|
23 |
+
.social h4,
|
24 |
+
.newslet label,
|
25 |
+
.des-block,
|
26 |
+
.promotions p,
|
27 |
+
#yt_sidenav li a.subhead,
|
28 |
+
#yt_sidenav li li a,
|
29 |
+
#yt_sidenav li.selected li a,
|
30 |
+
#yt_sidenav li.active li a,
|
31 |
+
#yt_sidenav li li.active li a,
|
32 |
+
.header-nav-container ul#nav li a,
|
33 |
+
h1#logo a span ,
|
34 |
+
ul.yt-tab-navi li a ,
|
35 |
+
ul.yt-tab-navi li.active a,
|
36 |
+
.yt-product-detail .product-name,
|
37 |
+
.product-name a,
|
38 |
+
.popup-box a.link-wishlist,
|
39 |
+
.header-nav-container-home ul#nav li ul li a,
|
40 |
+
.sm_megamenu_wrapper_vertical_menu ul.sm_megamenu_menu li div div.sm_megamenu_title a ,
|
41 |
+
.sm_megamenu_lv1 .sm_megamenu_nodesc .sm_megamenu_title ,
|
42 |
+
.sm_megamenu_content h2.product-name a,
|
43 |
+
.login-quick .more-actions a,
|
44 |
+
.ytc_background_theme1 .ytc-content-slickslider .content-box .block-description .sub-content,
|
45 |
+
.f-base',
|
46 |
+
'color' =>'yellow',
|
47 |
+
'menu_styles' =>'2',
|
48 |
+
'body_background_color' =>'#222',
|
49 |
+
'body_background_image' =>'1',
|
50 |
+
'body_link_color' =>'#EDAA00',
|
51 |
+
'body_text_color' =>'#686868',
|
52 |
+
'header_background_color' =>'#000',
|
53 |
+
'header_background_image' =>'',
|
54 |
+
'footer_background_color' =>'#000',
|
55 |
+
'footer_background_image' =>'',
|
56 |
+
);
|
57 |
+
// if(Mage::getConfig()->getNode('modules/Smartaddons_Glasses')){
|
58 |
+
// $_config = Mage::helper('glasses/data')->get($attributes);
|
59 |
+
// }
|
60 |
+
// enable Cpanel
|
61 |
+
$_params->set('showCpanel',$_config['showcpanel']);//image: Image; text: Text
|
62 |
+
// show custom box notice
|
63 |
+
$_params->set('shownotice',$_config['show_notice']);//image: Image; text: Text
|
64 |
+
// Logo type
|
65 |
+
$_params->set('logoType','Text');//image: Image; text: Text
|
66 |
+
// Logo text desx
|
67 |
+
$_params->set('logoText','Logo Text');
|
68 |
+
// Slogan text
|
69 |
+
$_params->set('sloganText','Slogan');
|
70 |
+
// Fontsize
|
71 |
+
$_params->set('fontsize',$_config['body_font_size']);//value from 1 to 6
|
72 |
+
// font family
|
73 |
+
$_params->set('font_name',$_config['body_font_family']);
|
74 |
+
// Google web font
|
75 |
+
$_params->set('googleWebFont',$_config['google_font']);
|
76 |
+
// Google WebFont Targets
|
77 |
+
$_params->set('googleWebFontTargets',$_config['google_font_targets']);
|
78 |
+
// Theme color
|
79 |
+
$_params->set('sitestyle',$_config['color']);//'black','blue','brown','cyan';
|
80 |
+
// Theme menu
|
81 |
+
if($_config['menu_styles'] ==1) { $menu_style='mega';}
|
82 |
+
if($_config['menu_styles'] ==2) { $menu_style='css';}
|
83 |
+
if($_config['menu_styles'] ==3) { $menu_style='split';}
|
84 |
+
$_params->set('menustyle',$menu_style);//css:CSS Menu; split: Split Menu; mega: Mega Menu
|
85 |
+
// Body background-color
|
86 |
+
$_params->set('bgcolor', $_config['body_background_color']);
|
87 |
+
// Body background-image
|
88 |
+
$_params->set('body-bgimage', 'pattern'.$_config['body_background_image']);
|
89 |
+
// Body link color
|
90 |
+
$_params->set('linkcolor', $_config['body_link_color']);
|
91 |
+
// Body text color
|
92 |
+
$_params->set('textcolor', $_config['body_text_color']);
|
93 |
+
// Header background-color
|
94 |
+
$_params->set('header-bgcolor', $_config['header_background_color']);
|
95 |
+
// Header background-image
|
96 |
+
$_params->set('header-bgimage', 'hpattern'.$_config['header_background_image']);
|
97 |
+
// Footer background-color
|
98 |
+
$_params->set('footer-bgcolor', $_config['footer_background_color']);
|
99 |
+
// Footer background-image
|
100 |
+
$_params->set('footer-bgimage', 'fpattern'.$_config['footer_background_image']);
|
101 |
+
|
102 |
+
// CategoryID array of displays 2nd image when hover - Catalog list
|
103 |
+
$_params->set('yt_arraydisplaylist', array('4','5','16','17','18'));
|
104 |
+
/*--- END: Theme param config ---*/
|
105 |
+
|
106 |
+
// Zend_Debug::dump($_params);die;
|
107 |
+
// Array param for cookie
|
108 |
+
$paramscookie =array(
|
109 |
+
'direction',
|
110 |
+
'fontsize',
|
111 |
+
'font_name',
|
112 |
+
'sitestyle',
|
113 |
+
'bgcolor',
|
114 |
+
'body-bgimage',
|
115 |
+
'linkcolor',
|
116 |
+
'textcolor',
|
117 |
+
'header-bgimage',
|
118 |
+
'header-bgcolor',
|
119 |
+
'footer-bgcolor',
|
120 |
+
'footer-bgimage',
|
121 |
+
'menustyle',
|
122 |
+
'shownotice',
|
123 |
+
'googleWebFont'
|
124 |
+
);
|
125 |
+
// Global var
|
126 |
+
global $var_yttheme;
|
127 |
+
$var_yttheme = new YtTheme('sm_glasses_free', $_params, $paramscookie);
|
128 |
+
// Zend_Debug::dump($_params);die;
|
129 |
+
?>
|
130 |
+
|
131 |
+
|
app/design/frontend/default/sm_glasses_free/template/page/smartaddons/yt_prepar.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*------------------------------------------------------------------------
|
3 |
+
* Copyright (C) 2009 - 2012 The YouTech JSC. All Rights Reserved.
|
4 |
+
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
|
5 |
+
* Author: The YouTech JSC
|
6 |
+
* Websites: http://www.smartaddons.com - http://www.cmsportal.net
|
7 |
+
-------------------------------------------------------------------------*/
|
8 |
+
// Incude class ThemeParameter, YtTheme
|
9 |
+
include_once (dirname(__FILE__).DS.'/includes/yt_theme.class.php');
|
10 |
+
// Include config
|
11 |
+
include_once (dirname(__FILE__).DS.'/yt_config_inc.php');
|
12 |
+
// Include Browser detect
|
13 |
+
include_once (dirname(__FILE__).DS.'/includes/browser.php');
|
app/design/frontend/default/sm_glasses_free/template/page/switch/flags.phtml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if(count($this->getStores())>1): ?>
|
28 |
+
<div class="language-switcher">
|
29 |
+
<label for="select-language"><?php echo $this->__('Your Language') ?>: </label>
|
30 |
+
<select id="select-language" class="flag" onchange="window.location.href=this.value">
|
31 |
+
<?php foreach ($this->getStores() as $_lang): ?>
|
32 |
+
<?php $_selected = ($_lang->getId() == $this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
|
33 |
+
<option style="background-image:url('<?php echo $this->getSkinUrl('images/flag_'.$_lang->getCode().'.gif') ?>');" value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>>
|
34 |
+
<?php echo $this->htmlEscape($_lang->getName()) ?></option>
|
35 |
+
<?php endforeach; ?>
|
36 |
+
</select>
|
37 |
+
</div>
|
38 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/page/switch/languages.phtml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Language switcher template
|
30 |
+
*
|
31 |
+
* @see Mage_Page_Block_Switch
|
32 |
+
*/
|
33 |
+
|
34 |
+
?>
|
35 |
+
<?php if(count($this->getStores())>1): ?>
|
36 |
+
<div class="language-switcher">
|
37 |
+
<label for="select-language"><?php echo $this->__('Your Language:') ?> </label>
|
38 |
+
<select id="select-language" onchange="window.location.href=this.value">
|
39 |
+
<?php foreach ($this->getStores() as $_lang): ?>
|
40 |
+
<?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
|
41 |
+
<option value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
|
42 |
+
<?php endforeach; ?>
|
43 |
+
</select>
|
44 |
+
</div>
|
45 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/page/switch/stores.phtml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Store switcher template
|
30 |
+
*
|
31 |
+
* @see Mage_Core_Block_Store_Switcher
|
32 |
+
*/
|
33 |
+
|
34 |
+
?>
|
35 |
+
<?php if(count($this->getGroups())>1): ?>
|
36 |
+
<div class="store-switcher">
|
37 |
+
<label for="select-store"><?php echo $this->__('Select Store') ?>: </label>
|
38 |
+
<select id="select-store" onchange="location.href=this.value">
|
39 |
+
<?php /*foreach ($this->getStores() as $_store): ?>
|
40 |
+
<option value="<?php echo $_store->getUrl('') ?>"<?php if($_store->getId()==$this->getCurrentStoreId()): ?> selected="selected"<?php endif; ?>><?php echo $_store->getName() ?></option>
|
41 |
+
<?php endforeach;*/ ?>
|
42 |
+
<?php foreach ($this->getGroups() as $_group): ?>
|
43 |
+
<?php $_selected = ($_group->getId()==$this->getCurrentGroupId()) ? 'selected="selected"' : '' ?>
|
44 |
+
<option value="<?php echo $_group->getHomeUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_group->getName()) ?></option>
|
45 |
+
<?php endforeach; ?>
|
46 |
+
</select>
|
47 |
+
</div>
|
48 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/page/template/container.phtml
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Page_Block_Template_Container
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<div class="page-head">
|
33 |
+
<h3><?php echo $this->getTitle() ?></h3>
|
34 |
+
</div>
|
35 |
+
<?php echo $this->getChildHtml() ?>
|
app/design/frontend/default/sm_glasses_free/template/page/template/links.phtml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design_default
|
22 |
+
* @package Mage
|
23 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Page_Block_Template_Links
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php $_links = $this->getLinks(); ?>
|
33 |
+
<?php if(count($_links)>0): ?>
|
34 |
+
<ul class="links nav"<?php if($this->getName()): ?> id="<?php echo $this->getName() ?>"<?php endif;?>>
|
35 |
+
<?php foreach($_links as $_link): ?>
|
36 |
+
<?php if ($_link instanceof Mage_Core_Block_Abstract):?>
|
37 |
+
<?php echo $_link->toHtml() ?>
|
38 |
+
<?php else: ?>
|
39 |
+
<li<?php if($_link->getIsFirst()||$_link->getIsLast()): ?> class="<?php if($_link->getIsFirst()): ?>first<?php endif; ?><?php if($_link->getIsLast()): ?> last<?php endif; ?>"<?php endif; ?> <?php echo $_link->getLiParams() ?>><?php echo $_link->getBeforeText() ?><a href="<?php echo $_link->getUrl() ?>" title="<?php echo $_link->getTitle() ?>" <?php echo $_link->getAParams() ?>><?php echo $_link->getLabel() ?></a><?php echo $_link->getAfterText() ?></li>
|
40 |
+
<?php endif;?>
|
41 |
+
<?php endforeach; ?>
|
42 |
+
</ul>
|
43 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/persistent/checkout/onepage/billing.phtml
ADDED
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/** @var Mage_Checkout_Block_Onepage_Billing $this */
|
27 |
+
?>
|
28 |
+
<form id="co-billing-form" action="">
|
29 |
+
<fieldset>
|
30 |
+
<ul class="form-list">
|
31 |
+
<?php if ($this->customerHasAddresses()): ?>
|
32 |
+
<li class="wide">
|
33 |
+
<label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
|
34 |
+
<div class="input-box">
|
35 |
+
<?php echo $this->getAddressesHtmlSelect('billing') ?>
|
36 |
+
</div>
|
37 |
+
</li>
|
38 |
+
<?php endif; ?>
|
39 |
+
<li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
|
40 |
+
<fieldset>
|
41 |
+
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
42 |
+
<ul>
|
43 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getQuote()->getCustomer())->setForceUseCustomerRequiredAttributes(!$this->isCustomerLoggedIn())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
|
44 |
+
<li class="fields">
|
45 |
+
<div class="field">
|
46 |
+
<label for="billing:company"><?php echo $this->__('Company') ?></label>
|
47 |
+
<div class="input-box">
|
48 |
+
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
52 |
+
<div class="field">
|
53 |
+
<label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
54 |
+
<div class="input-box">
|
55 |
+
<input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->escapeHtml($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
56 |
+
</div>
|
57 |
+
</div>
|
58 |
+
<?php endif; ?>
|
59 |
+
</li>
|
60 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
61 |
+
<li class="wide">
|
62 |
+
<label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
63 |
+
<div class="input-box">
|
64 |
+
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
65 |
+
</div>
|
66 |
+
</li>
|
67 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
68 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
69 |
+
<li class="wide">
|
70 |
+
<div class="input-box">
|
71 |
+
<input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
72 |
+
</div>
|
73 |
+
</li>
|
74 |
+
<?php endfor; ?>
|
75 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
76 |
+
<li class="wide">
|
77 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number') ?></label>
|
78 |
+
<div class="input-box">
|
79 |
+
<input type="text" id="billing:vat_id" name="billing[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo $this->__('VAT Number') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
80 |
+
</div>
|
81 |
+
</li>
|
82 |
+
<?php endif; ?>
|
83 |
+
<li class="fields">
|
84 |
+
<div class="field">
|
85 |
+
<label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
86 |
+
<div class="input-box">
|
87 |
+
<input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="billing:city" />
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="field">
|
91 |
+
<label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
92 |
+
<div class="input-box">
|
93 |
+
<select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
94 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
95 |
+
</select>
|
96 |
+
<script type="text/javascript">
|
97 |
+
//<![CDATA[
|
98 |
+
$('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
99 |
+
//]]>
|
100 |
+
</script>
|
101 |
+
<input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</li>
|
105 |
+
<li class="fields">
|
106 |
+
<div class="field">
|
107 |
+
<label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
108 |
+
<div class="input-box">
|
109 |
+
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
<div class="field">
|
113 |
+
<label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
114 |
+
<div class="input-box">
|
115 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
</li>
|
119 |
+
<li class="fields">
|
120 |
+
<div class="field">
|
121 |
+
<label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
122 |
+
<div class="input-box">
|
123 |
+
<input type="text" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
<div class="field">
|
127 |
+
<label for="billing:fax"><?php echo $this->__('Fax') ?></label>
|
128 |
+
<div class="input-box">
|
129 |
+
<input type="text" name="billing[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="billing:fax" />
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
</li>
|
133 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
134 |
+
|
135 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
136 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
137 |
+
<?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
|
138 |
+
<li class="fields">
|
139 |
+
<?php if ($_dob->isEnabled()): ?>
|
140 |
+
<div class="field">
|
141 |
+
<?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
142 |
+
</div>
|
143 |
+
<?php endif; ?>
|
144 |
+
<?php if ($_gender->isEnabled()): ?>
|
145 |
+
<div class="field">
|
146 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
147 |
+
</div>
|
148 |
+
<?php endif ?>
|
149 |
+
</li>
|
150 |
+
<?php endif ?>
|
151 |
+
|
152 |
+
<?php if ($this->isTaxvatEnabled()):?>
|
153 |
+
<li><?php echo $this->getTaxvatHtml() ?></li>
|
154 |
+
<?php endif; ?>
|
155 |
+
|
156 |
+
<li class="fields" id="register-customer-password">
|
157 |
+
<div class="field">
|
158 |
+
<label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
159 |
+
<div class="input-box">
|
160 |
+
<input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
<div class="field">
|
164 |
+
<label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
165 |
+
<div class="input-box">
|
166 |
+
<input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
|
167 |
+
</div>
|
168 |
+
</div>
|
169 |
+
</li>
|
170 |
+
<?php echo $this->getChildHtml('persistent.remember.me'); ?>
|
171 |
+
<?php endif; ?>
|
172 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
173 |
+
<li class="control">
|
174 |
+
<input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
|
175 |
+
</li>
|
176 |
+
<?php else:?>
|
177 |
+
<li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
|
178 |
+
<?php endif; ?>
|
179 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
180 |
+
</ul>
|
181 |
+
<?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
|
182 |
+
</fieldset>
|
183 |
+
</li>
|
184 |
+
<?php if ($this->canShip()): ?>
|
185 |
+
<li class="control">
|
186 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to this address') ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
|
187 |
+
<li class="control">
|
188 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to different address') ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
|
189 |
+
</li>
|
190 |
+
<?php endif; ?>
|
191 |
+
</ul>
|
192 |
+
<?php if (!$this->canShip()): ?>
|
193 |
+
<input type="hidden" name="billing[use_for_shipping]" value="1" />
|
194 |
+
<?php endif; ?>
|
195 |
+
<div class="buttons-set" id="billing-buttons-container">
|
196 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
197 |
+
<button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
198 |
+
<span class="please-wait" id="billing-please-wait" style="display:none;">
|
199 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
200 |
+
</span>
|
201 |
+
</div>
|
202 |
+
</fieldset>
|
203 |
+
</form>
|
204 |
+
<script type="text/javascript">
|
205 |
+
//<![CDATA[
|
206 |
+
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
|
207 |
+
var billingForm = new VarienForm('co-billing-form');
|
208 |
+
|
209 |
+
//billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
210 |
+
$('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
|
211 |
+
|
212 |
+
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
|
213 |
+
if ($('onepage-guest-register-button')) {
|
214 |
+
Event.observe($('onepage-guest-register-button'), 'click', function(event) {
|
215 |
+
var billingRememberMe = $('co-billing-form').select('#remember-me-box');
|
216 |
+
if (billingRememberMe.length > 0) {
|
217 |
+
if ($('login:guest') && $('login:guest').checked) {
|
218 |
+
billingRememberMe[0].hide();
|
219 |
+
} else if ($('login:register') && ($('login:register').checked || $('login:register').type == 'hidden')) {
|
220 |
+
billingRememberMe[0].show();
|
221 |
+
}
|
222 |
+
}
|
223 |
+
});
|
224 |
+
}
|
225 |
+
//]]>
|
226 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/persistent/checkout/onepage/login.phtml
ADDED
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Customer onepage checkout login form template
|
30 |
+
*
|
31 |
+
* @see app/design/frontend/base/default/template/checkout/onepage/login.phtml
|
32 |
+
*/
|
33 |
+
/** @var $this Mage_Checkout_Block_Onepage_Login */
|
34 |
+
?>
|
35 |
+
|
36 |
+
<div class="col2-set">
|
37 |
+
<div class="row-fluid">
|
38 |
+
<?php echo $this->getChildHtml('login_before')?>
|
39 |
+
<div class="span6">
|
40 |
+
<div class="col-1">
|
41 |
+
<h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3>
|
42 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
43 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
44 |
+
<?php else: ?>
|
45 |
+
<p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
|
46 |
+
<?php echo $this->__('Register with us for future convenience:') ?></p>
|
47 |
+
<ul>
|
48 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
49 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
50 |
+
</ul>
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
53 |
+
<ul class="form-list">
|
54 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
55 |
+
<li class="control">
|
56 |
+
<input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
|
57 |
+
</li>
|
58 |
+
<?php endif; ?>
|
59 |
+
<li class="control">
|
60 |
+
<input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label>
|
61 |
+
</li>
|
62 |
+
</ul>
|
63 |
+
<h4><?php echo $this->__('Register and save time!') ?></h4>
|
64 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
65 |
+
<ul class="ul">
|
66 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
67 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
68 |
+
</ul>
|
69 |
+
<?php else: ?>
|
70 |
+
<input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
|
71 |
+
<?php endif; ?>
|
72 |
+
|
73 |
+
<div class="buttons-set">
|
74 |
+
<p class="required"> </p>
|
75 |
+
<?php if ($this->getQuote()->isAllowedGuestCheckout()): ?>
|
76 |
+
<button id="onepage-guest-register-button" type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
77 |
+
<?php elseif ($this->helper('checkout')->isCustomerMustBeLogged()): ?>
|
78 |
+
<button id="onepage-guest-register-button" type="button" class="button" onclick="window.location='<?php echo $this->helper('checkout/url')->getRegistrationUrl();?>'"><span><span><?php echo $this->__('Register') ?></span></span></button>
|
79 |
+
<?php else: ?>
|
80 |
+
<form action="<?php echo $this->getUrl('persistent/index/saveMethod'); ?>">
|
81 |
+
<button id="onepage-guest-register-button" type="submit" class="button"><span><span><?php echo $this->__('Register') ?></span></span></button>
|
82 |
+
</form>
|
83 |
+
<?php endif; ?>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
<div class="span6">
|
88 |
+
<div class="col-2">
|
89 |
+
<h3><?php echo $this->__('Login') ?></h3>
|
90 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
91 |
+
<form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
|
92 |
+
<fieldset>
|
93 |
+
<h4><?php echo $this->__('Already registered?') ?></h4>
|
94 |
+
<p><?php echo $this->__('Please log in below:') ?></p>
|
95 |
+
<ul class="form-list">
|
96 |
+
<li>
|
97 |
+
<label for="login-email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
98 |
+
<div class="input-box">
|
99 |
+
<input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
|
100 |
+
</div>
|
101 |
+
</li>
|
102 |
+
<li>
|
103 |
+
<label for="login-password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
104 |
+
<div class="input-box">
|
105 |
+
<input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
|
106 |
+
</div>
|
107 |
+
</li>
|
108 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
109 |
+
<?php echo $this->getChildHtml('persistent.remember.me'); ?>
|
110 |
+
</ul>
|
111 |
+
<input name="context" type="hidden" value="checkout" />
|
112 |
+
</fieldset>
|
113 |
+
</form>
|
114 |
+
<div class="buttons-set">
|
115 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
116 |
+
<a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo $this->__('Forgot your password?') ?></a>
|
117 |
+
<button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo $this->__('Login') ?></span></span></button>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
<?php /* <div class="col2-set">
|
124 |
+
<div class="row-fluid">
|
125 |
+
<div class="span6">
|
126 |
+
<div class="col-1">
|
127 |
+
<div class="buttons-set">
|
128 |
+
<p class="required"> </p>
|
129 |
+
<?php if ($this->getQuote()->isAllowedGuestCheckout()): ?>
|
130 |
+
<button id="onepage-guest-register-button" type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
131 |
+
<?php elseif ($this->helper('checkout')->isCustomerMustBeLogged()): ?>
|
132 |
+
<button id="onepage-guest-register-button" type="button" class="button" onclick="window.location='<?php echo $this->helper('checkout/url')->getRegistrationUrl();?>'"><span><span><?php echo $this->__('Register') ?></span></span></button>
|
133 |
+
<?php else: ?>
|
134 |
+
<form action="<?php echo $this->getUrl('persistent/index/saveMethod'); ?>">
|
135 |
+
<button id="onepage-guest-register-button" type="submit" class="button"><span><span><?php echo $this->__('Register') ?></span></span></button>
|
136 |
+
</form>
|
137 |
+
<?php endif; ?>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
<div class="span6">
|
142 |
+
<div class="col-2">
|
143 |
+
<div class="buttons-set">
|
144 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
145 |
+
<a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo $this->__('Forgot your password?') ?></a>
|
146 |
+
<button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo $this->__('Login') ?></span></span></button>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
</div> */ ?>
|
152 |
+
<script type="text/javascript">
|
153 |
+
//<![CDATA[
|
154 |
+
var loginForm = new VarienForm('login-form', true);
|
155 |
+
$('login-email').observe('keypress', bindLoginPost);
|
156 |
+
$('login-password').observe('keypress', bindLoginPost);
|
157 |
+
function bindLoginPost(evt){
|
158 |
+
if (evt.keyCode == Event.KEY_RETURN) {
|
159 |
+
loginForm.submit();
|
160 |
+
}
|
161 |
+
}
|
162 |
+
function onepageLogin(button)
|
163 |
+
{
|
164 |
+
if(loginForm.validator && loginForm.validator.validate()){
|
165 |
+
button.disabled = true;
|
166 |
+
loginForm.submit();
|
167 |
+
}
|
168 |
+
}
|
169 |
+
//]]>
|
170 |
+
</script>
|
171 |
+
<?php
|
172 |
+
$registerParam = $this->getRequest()->getParam('register');
|
173 |
+
if ($registerParam || $registerParam === ''):
|
174 |
+
?>
|
175 |
+
<script type="text/javascript">
|
176 |
+
//<![CDATA[
|
177 |
+
document.observe("dom:loaded", function() {
|
178 |
+
if($('login:register')) {
|
179 |
+
$('login:register').checked = true;
|
180 |
+
checkout.setMethod();
|
181 |
+
}
|
182 |
+
})
|
183 |
+
//]]>
|
184 |
+
</script>
|
185 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/persistent/customer/form/login.phtml
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Customer login form template
|
30 |
+
*
|
31 |
+
* @see app/design/frontend/base/default/template/customer/form/login.phtml
|
32 |
+
*/
|
33 |
+
/** @var $this Mage_Customer_Block_Form_Login */
|
34 |
+
?>
|
35 |
+
<div class="account-login">
|
36 |
+
<div class="page-title">
|
37 |
+
<h1><?php echo $this->__('Login or Create an Account') ?></h1>
|
38 |
+
</div>
|
39 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
40 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
|
41 |
+
<div class="col2-set">
|
42 |
+
<div class="row-fluid">
|
43 |
+
<div class="span6">
|
44 |
+
<div class="col-1 new-users">
|
45 |
+
<div class="content">
|
46 |
+
<h2><?php echo $this->__('New Customers') ?></h2>
|
47 |
+
<p><?php echo $this->__('By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.') ?></p>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<div class="span6">
|
52 |
+
<div class="col-2 registered-users">
|
53 |
+
<div class="content">
|
54 |
+
<h2><?php echo $this->__('Registered Customers') ?></h2>
|
55 |
+
<p><?php echo $this->__('If you have an account with us, please log in.') ?></p>
|
56 |
+
<ul class="form-list">
|
57 |
+
<li>
|
58 |
+
<label for="email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
59 |
+
<div class="input-box">
|
60 |
+
<input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" />
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
<li>
|
64 |
+
<label for="pass" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
65 |
+
<div class="input-box">
|
66 |
+
<input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />
|
67 |
+
</div>
|
68 |
+
</li>
|
69 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
70 |
+
<?php echo $this->getChildHtml('persistent.remember.me'); ?>
|
71 |
+
</ul>
|
72 |
+
<?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
|
73 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
<div class="col2-set">
|
80 |
+
<div class="row-fluid">
|
81 |
+
<div class="span6">
|
82 |
+
<div class="col-1 new-users">
|
83 |
+
<div class="buttons-set">
|
84 |
+
<button type="button" title="<?php echo $this->__('Create an Account') ?>" class="button" onclick="window.location='<?php echo Mage::helper('persistent')->getCreateAccountUrl($this->getCreateAccountUrl()) ?>';"><span><span><?php echo $this->__('Create an Account') ?></span></span></button>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<div class="span6">
|
89 |
+
<div class="col-2 registered-users">
|
90 |
+
<div class="buttons-set">
|
91 |
+
<a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo $this->__('Forgot Your Password?') ?></a>
|
92 |
+
<button type="submit" class="button" title="<?php echo $this->__('Login') ?>" name="send" id="send2"><span><span><?php echo $this->__('Login') ?></span></span></button>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
<?php if (Mage::helper('checkout')->isContextCheckout()): ?>
|
99 |
+
<input name="context" type="hidden" value="checkout" />
|
100 |
+
<?php endif; ?>
|
101 |
+
</form>
|
102 |
+
<script type="text/javascript">
|
103 |
+
//<![CDATA[
|
104 |
+
var dataForm = new VarienForm('login-form', true);
|
105 |
+
//]]>
|
106 |
+
</script>
|
107 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/persistent/customer/form/register.phtml
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Create account form template
|
30 |
+
*
|
31 |
+
* @see app/design/frontend/base/default/template/customer/form/register.phtml
|
32 |
+
*/
|
33 |
+
/** @var $this Mage_Customer_Block_Form_Register */
|
34 |
+
?>
|
35 |
+
<div class="account-create">
|
36 |
+
<div class="page-title">
|
37 |
+
<h1><?php echo $this->__('Register') ?></h1>
|
38 |
+
</div>
|
39 |
+
<?php echo $this->getChildHtml('form_fields_before')?>
|
40 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
41 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate" class="register-form">
|
42 |
+
<div class="fieldset">
|
43 |
+
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
44 |
+
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
45 |
+
<h2 class="legend"><?php echo $this->__('Personal Information') ?></h2>
|
46 |
+
<ul class="form-list">
|
47 |
+
<li class="fields">
|
48 |
+
<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
|
49 |
+
</li>
|
50 |
+
<li>
|
51 |
+
<label for="email_address" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
52 |
+
<div class="input-box">
|
53 |
+
<input type="text" name="email" id="email_address" value="<?php echo $this->escapeHtml($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
54 |
+
</div>
|
55 |
+
</li>
|
56 |
+
<?php if ($this->isNewsletterEnabled()): ?>
|
57 |
+
<li class="control">
|
58 |
+
<div class="input-box">
|
59 |
+
<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed"<?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" />
|
60 |
+
</div>
|
61 |
+
<label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
|
62 |
+
</li>
|
63 |
+
<?php endif ?>
|
64 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
65 |
+
<?php if ($_dob->isEnabled()): ?>
|
66 |
+
<li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
|
67 |
+
<?php endif ?>
|
68 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
69 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
70 |
+
<li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
|
71 |
+
<?php endif ?>
|
72 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
73 |
+
<?php if ($_gender->isEnabled()): ?>
|
74 |
+
<li><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
|
75 |
+
<?php endif ?>
|
76 |
+
</ul>
|
77 |
+
</div>
|
78 |
+
<?php if($this->getShowAddressFields()): ?>
|
79 |
+
<div class="fieldset">
|
80 |
+
<input type="hidden" name="create_address" value="1" />
|
81 |
+
<h2 class="legend"><?php echo $this->__('Address Information') ?></h2>
|
82 |
+
<ul class="form-list">
|
83 |
+
<li class="fields">
|
84 |
+
<div class="field">
|
85 |
+
<label for="company"><?php echo $this->__('Company') ?></label>
|
86 |
+
<div class="input-box">
|
87 |
+
<input type="text" name="company" id="company" value="<?php echo $this->escapeHtml($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="field">
|
91 |
+
<label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
92 |
+
<div class="input-box">
|
93 |
+
<input type="text" name="telephone" id="telephone" value="<?php echo $this->escapeHtml($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" />
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</li>
|
97 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
98 |
+
<li class="wide">
|
99 |
+
<label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
|
100 |
+
<div class="input-box">
|
101 |
+
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text <?php echo $_streetValidationClass ?>" />
|
102 |
+
</div>
|
103 |
+
</li>
|
104 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
105 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
106 |
+
<li class="wide">
|
107 |
+
<div class="input-box">
|
108 |
+
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address %s', $_i) ?>" id="street_<?php echo $_i ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
109 |
+
</div>
|
110 |
+
</li>
|
111 |
+
<?php endfor; ?>
|
112 |
+
<li class="fields">
|
113 |
+
<div class="field">
|
114 |
+
<label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
115 |
+
<div class="input-box">
|
116 |
+
<input type="text" name="city" value="<?php echo $this->escapeHtml($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
<div class="field">
|
120 |
+
<label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
121 |
+
<div class="input-box">
|
122 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
123 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
124 |
+
</select>
|
125 |
+
<script type="text/javascript">
|
126 |
+
//<![CDATA[
|
127 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
|
128 |
+
//]]>
|
129 |
+
</script>
|
130 |
+
<input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
</li>
|
134 |
+
<li class="fields">
|
135 |
+
<div class="field">
|
136 |
+
<label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
137 |
+
<div class="input-box">
|
138 |
+
<input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
<div class="field">
|
142 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
143 |
+
<div class="input-box">
|
144 |
+
<?php echo $this->getCountryHtmlSelect() ?>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
</li>
|
148 |
+
</ul>
|
149 |
+
<input type="hidden" name="default_billing" value="1" />
|
150 |
+
<input type="hidden" name="default_shipping" value="1" />
|
151 |
+
</div>
|
152 |
+
<?php endif; ?>
|
153 |
+
<div class="fieldset">
|
154 |
+
<h2 class="legend"><?php echo $this->__('Login Information') ?></h2>
|
155 |
+
<ul class="form-list">
|
156 |
+
<li class="fields">
|
157 |
+
<div class="field password-field">
|
158 |
+
<label for="password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
159 |
+
<div class="input-box">
|
160 |
+
<input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
<div class="field">
|
164 |
+
<label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
165 |
+
<div class="input-box">
|
166 |
+
<input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="input-text required-entry validate-cpassword" />
|
167 |
+
</div>
|
168 |
+
</div>
|
169 |
+
</li>
|
170 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
171 |
+
<?php echo $this->getChildHtml('persistent.remember.me'); ?>
|
172 |
+
</ul>
|
173 |
+
<?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
|
174 |
+
</div>
|
175 |
+
<div class="buttons-set">
|
176 |
+
<button type="submit" title="<?php echo $this->__('Register') ?>" class="button register-button"><span ><?php echo $this->__('Register') ?></span></button>
|
177 |
+
<!-- <p class="required"><?php // echo $this->__('* Required Fields') ?></p> -->
|
178 |
+
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>" class="back-link"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
179 |
+
</div>
|
180 |
+
<?php if (Mage::helper('checkout')->isContextCheckout()): ?>
|
181 |
+
<input name="context" type="hidden" value="checkout" />
|
182 |
+
<?php endif; ?>
|
183 |
+
</form>
|
184 |
+
<script type="text/javascript">
|
185 |
+
//<![CDATA[
|
186 |
+
var dataForm = new VarienForm('form-validate', true);
|
187 |
+
<?php if($this->getShowAddressFields()): ?>
|
188 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
|
189 |
+
<?php endif; ?>
|
190 |
+
//]]>
|
191 |
+
</script>
|
192 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/persistent/remember_me.phtml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Customer "Remember Me" template
|
30 |
+
*
|
31 |
+
* @var $this Mage_Persistent_Block_Form_Remember
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<li id="remember-me-box" class="control">
|
35 |
+
<?php $rememberMeId = 'remember_me' . Mage::helper('core')->getRandomString(10); ?>
|
36 |
+
<div class="input-box">
|
37 |
+
<input type="checkbox" name="persistent_remember_me" class="checkbox" id="<?php echo $rememberMeId; ?>"<?php if ($this->isRememberMeChecked()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Remember Me') ?>" />
|
38 |
+
</div>
|
39 |
+
<label for="<?php echo $rememberMeId; ?>"><?php echo $this->__('Remember Me') ?></label>
|
40 |
+
<a class="link-tip" href="#"><?php echo $this->__('What\'s this?') ?></a>
|
41 |
+
</li>
|
app/design/frontend/default/sm_glasses_free/template/persistent/remember_me_tooltip.phtml
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* "Remember Me" popup template (when click on "What's this?")
|
30 |
+
*
|
31 |
+
*/
|
32 |
+
/** @var $this Mage_Core_Block_Template */
|
33 |
+
?>
|
34 |
+
<div id="window-overlay" class="window-overlay" style="display:none;"></div>
|
35 |
+
<div id="remember-me-popup" class="remember-me-popup" style="display:none;">
|
36 |
+
<div class="remember-me-popup-head">
|
37 |
+
<h3>What's this?</h3>
|
38 |
+
<a href="#" class="remember-me-popup-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a>
|
39 |
+
</div>
|
40 |
+
<div class="remember-me-popup-body">
|
41 |
+
<p>Checking "Remember Me" will let you access your shopping cart on this computer when you are logged out</p>
|
42 |
+
<div class="remember-me-popup-close-button a-right">
|
43 |
+
<a href="#" class="remember-me-popup-close button" title="<?php echo $this->__('Close') ?>"><span><?php echo $this->__('Close') ?></span></a>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
<script type="text/javascript">
|
48 |
+
//<![CDATA[
|
49 |
+
function toggleRememberMepopup(event){
|
50 |
+
if($('remember-me-popup')){
|
51 |
+
var viewportHeight = document.viewport.getHeight(),
|
52 |
+
docHeight = $$('body')[0].getHeight(),
|
53 |
+
height = docHeight > viewportHeight ? docHeight : viewportHeight;
|
54 |
+
$('remember-me-popup').toggle();
|
55 |
+
$('window-overlay').setStyle({ height: height + 'px' }).toggle();
|
56 |
+
}
|
57 |
+
Event.stop(event);
|
58 |
+
}
|
59 |
+
|
60 |
+
document.observe("dom:loaded", function() {
|
61 |
+
new Insertion.Bottom($$('body')[0], $('window-overlay'));
|
62 |
+
new Insertion.Bottom($$('body')[0], $('remember-me-popup'));
|
63 |
+
|
64 |
+
$$('.remember-me-popup-close').each(function(element){
|
65 |
+
Event.observe(element, 'click', toggleRememberMepopup);
|
66 |
+
})
|
67 |
+
$$('#remember-me-box a').each(function(element) {
|
68 |
+
Event.observe(element, 'click', toggleRememberMepopup);
|
69 |
+
});
|
70 |
+
});
|
71 |
+
//]]>
|
72 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/poll/active.phtml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if(isset($poll)) : ?>
|
28 |
+
<script type="text/javascript">
|
29 |
+
//<![CDATA[
|
30 |
+
function validatePollAnswerIsSelected()
|
31 |
+
{
|
32 |
+
var options = $$('input.poll_vote');
|
33 |
+
for( i in options ) {
|
34 |
+
if( options[i].checked == true ) {
|
35 |
+
return true;
|
36 |
+
}
|
37 |
+
}
|
38 |
+
return false;
|
39 |
+
}
|
40 |
+
//]]>
|
41 |
+
</script>
|
42 |
+
<div class="block block-poll">
|
43 |
+
<div class="block-title">
|
44 |
+
<strong><?php echo $this->__('Community') ?> <span><?php echo $this->__('Poll') ?></span></strong>
|
45 |
+
</div>
|
46 |
+
<form id="pollForm" action="<?php echo $action ?>" method="post" onsubmit="return validatePollAnswerIsSelected();">
|
47 |
+
<div class="block-content">
|
48 |
+
<p class="block-subtitle"><?php echo $this->htmlEscape($poll->getPollTitle()); ?></p>
|
49 |
+
<?php if( $poll_answers ): ?>
|
50 |
+
<ul id="poll-answers">
|
51 |
+
<?php foreach( $poll_answers as $answer ): ?>
|
52 |
+
<li>
|
53 |
+
<input type="radio" name="vote" class="radio poll_vote" id="vote_<?php echo $answer->getId() ?>" value="<?php echo $answer->getAnswerId() ?>" />
|
54 |
+
<span class="label"><label for="vote_<?php echo $answer->getId() ?>"><?php echo $this->htmlEscape($answer->getAnswerTitle()) ?></label></span>
|
55 |
+
</li>
|
56 |
+
<?php endforeach; ?>
|
57 |
+
</ul>
|
58 |
+
<script type="text/javascript">decorateList('poll-answers');</script>
|
59 |
+
<?php endif; ?>
|
60 |
+
<div class="actions">
|
61 |
+
<button type="submit" title="<?php echo $this->__('Vote') ?>" class="button"><span><span><?php echo $this->__('Vote') ?></span></span></button>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
</form>
|
65 |
+
</div>
|
66 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/poll/result.phtml
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if(isset($poll)) : ?>
|
28 |
+
<div class="block block-poll">
|
29 |
+
<div class="block-title">
|
30 |
+
<strong><?php echo $this->__('Community') ?> <span><?php echo $this->__('Poll') ?></span></strong>
|
31 |
+
</div>
|
32 |
+
<div class="block-content">
|
33 |
+
<p class="block-subtitle"><?php echo $this->htmlEscape($poll->getPollTitle()); ?></p>
|
34 |
+
<?php if( $poll_answers ): ?>
|
35 |
+
<ol id="poll-answers" class="poll-resutl">
|
36 |
+
<?php foreach( $poll_answers as $answer ): ?>
|
37 |
+
<li>
|
38 |
+
<span class="votes"><?php echo $answer->getVotesCount() ?> (<?php echo $answer->getPercent() ?>%)</span>
|
39 |
+
<span class="answer"><?php echo $this->htmlEscape($answer->getAnswerTitle()) ?>:</span>
|
40 |
+
</li>
|
41 |
+
<?php endforeach; ?>
|
42 |
+
</ol>
|
43 |
+
<script type="text/javascript">decorateList('poll-answers');</script>
|
44 |
+
<?php endif; ?>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/home_product_compared.phtml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Reports_Block_Product_Compared */
|
27 |
+
?>
|
28 |
+
<?php if ($_products = $this->getRecentlyComparedProducts()): ?>
|
29 |
+
<h2 class="subtitle"><?php echo $this->__('Your Recently Compared') ?></h2>
|
30 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
31 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
32 |
+
<?php if ($i++%$_columnCount==0): ?>
|
33 |
+
<ul class="products-grid">
|
34 |
+
<?php endif; ?>
|
35 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
36 |
+
<a href="<?php echo $this->getProductUrl($_product) ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135) ?>" width="135" height="135" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
37 |
+
<h3 class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
|
38 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
39 |
+
<?php echo $this->getPriceHtml($_product, true, '-home-compared') ?>
|
40 |
+
<div class="actions">
|
41 |
+
<?php if($_product->isSaleable()): ?>
|
42 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
43 |
+
<?php else: ?>
|
44 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
45 |
+
<?php endif; ?>
|
46 |
+
<ul class="add-to-links">
|
47 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
48 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
49 |
+
<?php endif; ?>
|
50 |
+
<?php if ($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
51 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
52 |
+
<?php endif; ?>
|
53 |
+
</ul>
|
54 |
+
</div>
|
55 |
+
</li>
|
56 |
+
<?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
|
57 |
+
</ul>
|
58 |
+
<?php endif; ?>
|
59 |
+
<?php endforeach; ?>
|
60 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/home_product_viewed.phtml
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Reports_Block_Product_Viewed */
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/**
|
30 |
+
* @see Mage_Reports_Block_Product_Viewed
|
31 |
+
*/
|
32 |
+
?>
|
33 |
+
<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
|
34 |
+
<h2 class="subtitle"><?php echo $this->__('Your Recently Viewed') ?></h2>
|
35 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
36 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
37 |
+
<?php if ($i++%$_columnCount==0): ?>
|
38 |
+
<ul class="products-grid">
|
39 |
+
<?php endif; ?>
|
40 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
41 |
+
<a href="<?php echo $this->getProductUrl($_product) ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135) ?>" width="135" height="135" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
42 |
+
<h3 class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
|
43 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
44 |
+
<?php echo $this->getPriceHtml($_product, true, '-home-viewed') ?>
|
45 |
+
<div class="actions">
|
46 |
+
<?php if($_product->isSaleable()): ?>
|
47 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
48 |
+
<?php else: ?>
|
49 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
50 |
+
<?php endif; ?>
|
51 |
+
<ul class="add-to-links">
|
52 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
53 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
54 |
+
<?php endif; ?>
|
55 |
+
<?php if ($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
56 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
57 |
+
<?php endif; ?>
|
58 |
+
</ul>
|
59 |
+
</div>
|
60 |
+
</li>
|
61 |
+
<?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
|
62 |
+
</ul>
|
63 |
+
<?php endif; ?>
|
64 |
+
<?php endforeach; ?>
|
65 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/product_compared.phtml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Reports_Block_Product_Compared */
|
27 |
+
?>
|
28 |
+
<?php if ($_products = $this->getRecentlyComparedProducts()): ?>
|
29 |
+
<div class="block block-list block-compared">
|
30 |
+
<div class="block-title">
|
31 |
+
<strong><?php echo $this->__('Recently')?> <span><?php echo $this->__('Compared Products') ?></span></strong>
|
32 |
+
</div>
|
33 |
+
<div class="block-content">
|
34 |
+
<ol id="recently-compared-items">
|
35 |
+
<?php foreach ($_products as $_item): ?>
|
36 |
+
<li class="item">
|
37 |
+
<p class="product-name"><a href="<?php echo $this->getProductUrl($_item) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName() , 'name') ?></a></p>
|
38 |
+
</li>
|
39 |
+
<?php endforeach; ?>
|
40 |
+
</ol>
|
41 |
+
<script type="text/javascript">decorateList('recently-compared-items');</script>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/product_viewed.phtml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Reports_Block_Product_Viewed */
|
27 |
+
?>
|
28 |
+
<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
|
29 |
+
<div class="block block-list block-viewed">
|
30 |
+
<div class="block-title">
|
31 |
+
<strong><span title="<?php echo $this->__('Recently Viewed Products') ?>"><?php echo $this->__('Recently Viewed ...') ?></span></strong>
|
32 |
+
</div>
|
33 |
+
<div class="block-content">
|
34 |
+
<ol id="recently-viewed-items">
|
35 |
+
<?php foreach ($_products as $_item): ?>
|
36 |
+
<li class="item">
|
37 |
+
<p class="product-name"><a href="<?php echo $this->getProductUrl($_item) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName() , 'name') ?></a></p>
|
38 |
+
</li>
|
39 |
+
<?php endforeach; ?>
|
40 |
+
</ol>
|
41 |
+
<script type="text/javascript">decorateList('recently-viewed-items');</script>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/column/compared_default_list.phtml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($_products = $this->getRecentlyComparedProducts()): ?>
|
28 |
+
<div class="widget widget-compared">
|
29 |
+
<div class="block block-products">
|
30 |
+
<div class="block-title">
|
31 |
+
<strong><span><?php echo $this->__('Recently Compared') ?></span></strong>
|
32 |
+
</div>
|
33 |
+
<div class="block-content">
|
34 |
+
<?php $suffix = $this->getNameInLayout(); ?>
|
35 |
+
<ol class="mini-products-list" id="widget-compared-<?php echo $suffix; ?>">
|
36 |
+
<?php foreach ($_products as $_product): ?>
|
37 |
+
<li class="item">
|
38 |
+
<a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
39 |
+
<div class="product-details">
|
40 |
+
<p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
|
41 |
+
<?php echo $this->getPriceHtml($_product, true, '-widget-compared-'.$suffix) ?>
|
42 |
+
<?php if($_product->isSaleable()): ?>
|
43 |
+
<a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="link-cart"><?php echo $this->__('Add to Cart') ?></a>
|
44 |
+
<?php else: ?>
|
45 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
46 |
+
<?php endif; ?>
|
47 |
+
</div>
|
48 |
+
</li>
|
49 |
+
<?php endforeach; ?>
|
50 |
+
</ol>
|
51 |
+
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/column/compared_images_list.phtml
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($_products = $this->getRecentlyComparedProducts()): ?>
|
28 |
+
<div class="widget widget-compared">
|
29 |
+
<div class="block block-list">
|
30 |
+
<div class="block-title">
|
31 |
+
<strong><span><?php echo $this->__('Recently Compared') ?></span></strong>
|
32 |
+
</div>
|
33 |
+
<div class="block-content">
|
34 |
+
<?php $suffix = $this->getNameInLayout(); ?>
|
35 |
+
<ol class="mini-products-images-list" id="widget-compared-<?php echo $suffix; ?>">
|
36 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
37 |
+
<li class="item">
|
38 |
+
<a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(76) ?>" width="76" height="76" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
39 |
+
</li>
|
40 |
+
<?php endforeach; ?>
|
41 |
+
</ol>
|
42 |
+
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/column/compared_names_list.phtml
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($_products = $this->getRecentlyComparedProducts()): ?>
|
28 |
+
<div class="widget widget-compared">
|
29 |
+
<div class="block block-list">
|
30 |
+
<div class="block-title">
|
31 |
+
<strong><span><?php echo $this->__('Recently Compared') ?></span></strong>
|
32 |
+
</div>
|
33 |
+
<div class="block-content">
|
34 |
+
<?php $suffix = $this->getNameInLayout(); ?>
|
35 |
+
<ol id="widget-compared-<?php echo $suffix; ?>">
|
36 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
37 |
+
<li class="item">
|
38 |
+
<p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
|
39 |
+
</li>
|
40 |
+
<?php endforeach; ?>
|
41 |
+
</ol>
|
42 |
+
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/content/compared_grid.phtml
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($_products = $this->getRecentlyComparedProducts()): ?>
|
28 |
+
<div class="widget widget-compared">
|
29 |
+
<div class="widget-title">
|
30 |
+
<h2><?php echo $this->__('Recently Compared') ?></h2>
|
31 |
+
</div>
|
32 |
+
<div class="widget-products">
|
33 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
34 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
35 |
+
<?php if ($i++%$_columnCount==0): ?>
|
36 |
+
<ul class="products-grid">
|
37 |
+
<?php endif; ?>
|
38 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
39 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
40 |
+
<h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
|
41 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
42 |
+
<?php echo $this->getPriceHtml($_product, true, '-widget-compared-grid') ?>
|
43 |
+
<div class="actions">
|
44 |
+
<?php if($_product->isSaleable()): ?>
|
45 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
46 |
+
<?php else: ?>
|
47 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
48 |
+
<?php endif; ?>
|
49 |
+
<ul class="add-to-links">
|
50 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
51 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
52 |
+
<?php endif; ?>
|
53 |
+
<?php if($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
54 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
55 |
+
<?php endif; ?>
|
56 |
+
</ul>
|
57 |
+
</div>
|
58 |
+
</li>
|
59 |
+
<?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
|
60 |
+
</ul>
|
61 |
+
<?php endif; ?>
|
62 |
+
<?php endforeach; ?>
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/compared/content/compared_list.phtml
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($_products = $this->getRecentlyComparedProducts()): ?>
|
28 |
+
<div class="widget widget-compared">
|
29 |
+
<div class="widget-title">
|
30 |
+
<h2><?php echo $this->__('Recently Compared') ?></h2>
|
31 |
+
</div>
|
32 |
+
<div class="widget-products">
|
33 |
+
<ol class="products-list">
|
34 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
35 |
+
<li class="item<?php echo (++$i == count($_products))?' last':''; ?>">
|
36 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
37 |
+
<div class="product-shop">
|
38 |
+
<div class="f-fix">
|
39 |
+
<h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
|
40 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
41 |
+
<?php echo $this->getPriceHtml($_product, true, '-widget-compared-list') ?>
|
42 |
+
<?php if($_product->isSaleable()): ?>
|
43 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
44 |
+
<?php else: ?>
|
45 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
46 |
+
<?php endif; ?>
|
47 |
+
<ul class="add-to-links">
|
48 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
49 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
50 |
+
<?php endif; ?>
|
51 |
+
<?php if($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
52 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
53 |
+
<?php endif; ?>
|
54 |
+
</ul>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
</li>
|
58 |
+
<?php endforeach; ?>
|
59 |
+
</ol>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/column/viewed_default_list.phtml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Reports_Block_Product_Viewed
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
|
33 |
+
<div class="widget widget-viewed">
|
34 |
+
<div class="block block-products">
|
35 |
+
<div class="block-title">
|
36 |
+
<strong><span><?php echo $this->__('Recently Viewed') ?></span></strong>
|
37 |
+
</div>
|
38 |
+
<div class="block-content">
|
39 |
+
<?php $suffix = $this->getNameInLayout(); ?>
|
40 |
+
<ol class="mini-products-list" id="widget-viewed-<?php echo $suffix; ?>">
|
41 |
+
<?php foreach ($_products as $_product): ?>
|
42 |
+
<li class="item">
|
43 |
+
<a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
44 |
+
<div class="product-details">
|
45 |
+
<p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
|
46 |
+
<?php echo $this->getPriceHtml($_product, true, '-widget-viewed-'.$suffix) ?>
|
47 |
+
<?php if($_product->isSaleable()): ?>
|
48 |
+
<a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="link-cart"><?php echo $this->__('Add to Cart') ?></a>
|
49 |
+
<?php else: ?>
|
50 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
51 |
+
<?php endif; ?>
|
52 |
+
</div>
|
53 |
+
</li>
|
54 |
+
<?php endforeach; ?>
|
55 |
+
</ol>
|
56 |
+
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/column/viewed_images_list.phtml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Reports_Block_Product_Viewed
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
|
33 |
+
<div class="widget widget-viewed">
|
34 |
+
<div class="block block-list">
|
35 |
+
<div class="block-title">
|
36 |
+
<strong><span><?php echo $this->__('Recently Viewed') ?></span></strong>
|
37 |
+
</div>
|
38 |
+
<div class="block-content">
|
39 |
+
<?php $suffix = $this->getNameInLayout(); ?>
|
40 |
+
<ol class="mini-products-images-list" id="widget-viewed-<?php echo $suffix; ?>">
|
41 |
+
<?php foreach ($_products as $_product): ?>
|
42 |
+
<li class="item">
|
43 |
+
<a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(76) ?>" width="76" height="76" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
44 |
+
</li>
|
45 |
+
<?php endforeach; ?>
|
46 |
+
</ol>
|
47 |
+
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/column/viewed_names_list.phtml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Reports_Block_Product_Viewed
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
|
33 |
+
<div class="widget widget-viewed">
|
34 |
+
<div class="block block-list">
|
35 |
+
<div class="block-title">
|
36 |
+
<strong><span><?php echo $this->__('Recently Viewed') ?></span></strong>
|
37 |
+
</div>
|
38 |
+
<div class="block-content">
|
39 |
+
<?php $suffix = $this->getNameInLayout(); ?>
|
40 |
+
<ol id="widget-viewed-<?php echo $suffix; ?>">
|
41 |
+
<?php foreach ($_products as $_product): ?>
|
42 |
+
<li class="item">
|
43 |
+
<p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
|
44 |
+
</li>
|
45 |
+
<?php endforeach; ?>
|
46 |
+
</ol>
|
47 |
+
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/content/viewed_grid.phtml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Reports_Block_Product_Viewed
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
|
33 |
+
<div class="widget widget-viewed">
|
34 |
+
<div class="widget-title">
|
35 |
+
<h2><?php echo $this->__('Recently Viewed') ?></h2>
|
36 |
+
</div>
|
37 |
+
<div class="widget-products">
|
38 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
39 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
40 |
+
<?php if ($i++%$_columnCount==0): ?>
|
41 |
+
<ul class="products-grid">
|
42 |
+
<?php endif; ?>
|
43 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
44 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
45 |
+
<h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
|
46 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
47 |
+
<?php echo $this->getPriceHtml($_product, true, '-widget-viewed-grid') ?>
|
48 |
+
<div class="actions">
|
49 |
+
<?php if($_product->isSaleable()): ?>
|
50 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
51 |
+
<?php else: ?>
|
52 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
53 |
+
<?php endif; ?>
|
54 |
+
<ul class="add-to-links">
|
55 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
56 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
57 |
+
<?php endif; ?>
|
58 |
+
<?php if($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
59 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
60 |
+
<?php endif; ?>
|
61 |
+
</ul>
|
62 |
+
</div>
|
63 |
+
</li>
|
64 |
+
<?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
|
65 |
+
</ul>
|
66 |
+
<?php endif; ?>
|
67 |
+
<?php endforeach; ?>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/reports/widget/viewed/content/viewed_list.phtml
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Reports_Block_Product_Viewed
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php if ($_products = $this->getRecentlyViewedProducts()): ?>
|
33 |
+
<div class="widget widget-viewed">
|
34 |
+
<div class="widget-title">
|
35 |
+
<h2><?php echo $this->__('Recently Viewed') ?></h2>
|
36 |
+
</div>
|
37 |
+
<div class="widget-products">
|
38 |
+
<ol class="products-list">
|
39 |
+
<?php $i=0; foreach ($_products as $_product): ?>
|
40 |
+
<li class="item<?php echo (++$i == count($_products))?' last':''; ?>">
|
41 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
|
42 |
+
<div class="product-shop">
|
43 |
+
<div class="f-fix">
|
44 |
+
<h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
|
45 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
46 |
+
<?php echo $this->getPriceHtml($_product, true, '-widget-viewed-list') ?>
|
47 |
+
<?php if($_product->isSaleable()): ?>
|
48 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
49 |
+
<?php else: ?>
|
50 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
51 |
+
<?php endif; ?>
|
52 |
+
<ul class="add-to-links">
|
53 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
54 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php if($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
57 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
58 |
+
<?php endif; ?>
|
59 |
+
</ul>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
<?php endforeach; ?>
|
64 |
+
</ol>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/review/form.phtml
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="form-add">
|
28 |
+
<?php /*<h2><?php echo $this->__('Write Your Own Review') ?></h2>*/ ?>
|
29 |
+
<?php if ($this->getAllowWriteReviewFlag()): ?>
|
30 |
+
<form action="<?php echo $this->getAction() ?>" method="post" id="review-form">
|
31 |
+
<fieldset>
|
32 |
+
<?php echo $this->getChildHtml('form_fields_before')?>
|
33 |
+
<h3><?php echo $this->__("You're reviewing:"); ?> <span><?php echo $this->htmlEscape($this->getProductInfo()->getName()) ?></span></h3>
|
34 |
+
<ul class="form-list">
|
35 |
+
<li>
|
36 |
+
<div class="input-box">
|
37 |
+
<input type="text" name="nickname" id="nickname_field" class="input-text required-entry" value="Nick Name" onFocus="if(this.value != '') {this.value = '';}"onBlur="if (this.value == '') {this.value = 'Nick Name';}" />
|
38 |
+
</div>
|
39 |
+
</li>
|
40 |
+
<li>
|
41 |
+
<div class="input-box">
|
42 |
+
<input type="text" name="title" id="summary_field" class="input-text required-entry" value="Subject" onFocus="if(this.value != '') {this.value = '';}"onBlur="if (this.value == '') {this.value = 'Subject';}" />
|
43 |
+
</div>
|
44 |
+
</li>
|
45 |
+
<li>
|
46 |
+
<div class="input-box">
|
47 |
+
<textarea name="detail" id="review_field" cols="5" rows="3" class="required-entry" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">Comment</textarea>
|
48 |
+
</div>
|
49 |
+
</li>
|
50 |
+
</ul>
|
51 |
+
<?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
|
52 |
+
|
53 |
+
<span id="input-message-box"></span>
|
54 |
+
<div class="right-part">
|
55 |
+
<h4><?php echo $this->__('How do you rate this product?') ?> <em class="required">*</em></h4>
|
56 |
+
<table class="data-table" id="product-review-table">
|
57 |
+
<col />
|
58 |
+
<?php /*
|
59 |
+
<col width="1" />
|
60 |
+
<col width="1" />
|
61 |
+
<col width="1" />
|
62 |
+
<col width="1" />
|
63 |
+
<col width="1" />*/ ?>
|
64 |
+
<thead>
|
65 |
+
<tr>
|
66 |
+
<th> </th>
|
67 |
+
<th><span class="nobr"><?php echo $this->__('1 star') ?></span></th>
|
68 |
+
<th><span class="nobr"><?php echo $this->__('2 stars') ?></span></th>
|
69 |
+
<th><span class="nobr"><?php echo $this->__('3 stars') ?></span></th>
|
70 |
+
<th><span class="nobr"><?php echo $this->__('4 stars') ?></span></th>
|
71 |
+
<th><span class="nobr"><?php echo $this->__('5 stars') ?></span></th>
|
72 |
+
</tr>
|
73 |
+
</thead>
|
74 |
+
<tbody>
|
75 |
+
<?php foreach ($this->getRatings() as $_rating): ?>
|
76 |
+
<tr>
|
77 |
+
<th><?php echo $this->escapeHtml($_rating->getRatingCode()) ?></th>
|
78 |
+
<?php foreach ($_rating->getOptions() as $_option): ?>
|
79 |
+
<td class="value"><input type="radio" name="ratings[<?php echo $_rating->getId() ?>]" id="<?php echo $this->escapeHtml($_rating->getRatingCode()) ?>_<?php echo $_option->getValue() ?>" value="<?php echo $_option->getId() ?>" class="radio" /></td>
|
80 |
+
<?php endforeach; ?>
|
81 |
+
</tr>
|
82 |
+
<?php endforeach; ?>
|
83 |
+
</tbody>
|
84 |
+
</table>
|
85 |
+
<input type="hidden" name="validate_rating" class="validate-rating" value="" />
|
86 |
+
<script type="text/javascript">decorateTable('product-review-table')</script>
|
87 |
+
</div>
|
88 |
+
<?php endif; ?>
|
89 |
+
|
90 |
+
</fieldset>
|
91 |
+
<div class="buttons-set add-review">
|
92 |
+
<button type="submit" title="<?php echo $this->__('Submit Review') ?>" class="button"><span><span><?php echo $this->__('Submit Review') ?></span></span></button>
|
93 |
+
</div>
|
94 |
+
</form>
|
95 |
+
<script type="text/javascript">
|
96 |
+
//<![CDATA[
|
97 |
+
var dataForm = new VarienForm('review-form');
|
98 |
+
Validation.addAllThese(
|
99 |
+
[
|
100 |
+
['validate-rating', '<?php echo $this->__('Please select one of each of the ratings above') ?>', function(v) {
|
101 |
+
var trs = $('product-review-table').select('tr');
|
102 |
+
var inputs;
|
103 |
+
var error = 1;
|
104 |
+
|
105 |
+
for( var j=0; j < trs.length; j++ ) {
|
106 |
+
var tr = trs[j];
|
107 |
+
if( j > 0 ) {
|
108 |
+
inputs = tr.select('input');
|
109 |
+
|
110 |
+
for( i in inputs ) {
|
111 |
+
if( inputs[i].checked == true ) {
|
112 |
+
error = 0;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
|
116 |
+
if( error == 1 ) {
|
117 |
+
return false;
|
118 |
+
} else {
|
119 |
+
error = 1;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
}
|
123 |
+
return true;
|
124 |
+
}]
|
125 |
+
]
|
126 |
+
);
|
127 |
+
//]]>
|
128 |
+
</script>
|
129 |
+
<?php else: ?>
|
130 |
+
<p class="review-nologged" id="review-form">
|
131 |
+
<?php echo $this->__('Only registered users can write reviews. Please, <a href="%s">log in</a> or <a href="%s">register</a>', $this->getLoginLink(), Mage::helper('customer')->getRegisterUrl()) ?>
|
132 |
+
</p>
|
133 |
+
<?php endif ?>
|
134 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/review/helper/summary.phtml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php if ($this->getReviewsCount()): ?>
|
28 |
+
<div class="ratings">
|
29 |
+
<?php if ($this->getRatingSummary()):?>
|
30 |
+
<div class="rating-box">
|
31 |
+
<div class="rating" style="width:<?php echo $this->getRatingSummary() ?>%"></div>
|
32 |
+
</div>
|
33 |
+
<?php endif;?>
|
34 |
+
<p class="rating-links">
|
35 |
+
<a class="review-num" href="<?php echo $this->getReviewsUrl() ?>"><?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?></a>
|
36 |
+
<a class="add-your-review" href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Add Review') ?></a>
|
37 |
+
</p>
|
38 |
+
</div>
|
39 |
+
<?php elseif ($this->getDisplayIfEmpty()): ?>
|
40 |
+
<p class="no-rating"><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
|
41 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/sales/reorder/sidebar.phtml
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Last order sidebar
|
30 |
+
*
|
31 |
+
* @see Mage_Sale_Block_Reorder_Sidebar
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php $_items = $this->getItems()?>
|
35 |
+
<?php if($_items): ?>
|
36 |
+
<div class="block block-reorder">
|
37 |
+
<div class="block-title">
|
38 |
+
<strong><?php echo $this->__('My')?> <span><?php echo $this->__('Orders') ?></span></strong>
|
39 |
+
</div>
|
40 |
+
<form method="post" action="<?php echo $this->getFormActionUrl() ?>" id="reorder-validate-detail">
|
41 |
+
<div class="block-content">
|
42 |
+
<p class="block-subtitle"><?php echo $this->__('Last Ordered Items') ?></p>
|
43 |
+
<ol id="cart-sidebar-reorder">
|
44 |
+
<?php $_showAddButtonFlag = false ?>
|
45 |
+
<?php foreach ($_items as $_item): ?>
|
46 |
+
<li class="item">
|
47 |
+
<?php if ($this->isItemAvailableForReorder($_item)): ?>
|
48 |
+
<?php $_showAddButtonFlag = true ?>
|
49 |
+
<input type="checkbox" name="order_items[]" id="reorder-item-<?php echo $_item->getId() ?>" value="<?php echo $_item->getId() ?>" title="<?php echo $this->__('Add to Cart') ?>" class="checkbox validate-one-required-by-name" />
|
50 |
+
<script type="text/javascript">
|
51 |
+
//<![CDATA[
|
52 |
+
$('reorder-item-<?php echo $_item->getId() ?>').advaiceContainer = 'cart-sidebar-reorder-advice-container';
|
53 |
+
//]]>
|
54 |
+
</script>
|
55 |
+
<?php endif; ?>
|
56 |
+
<p class="product-name"><a href="<?php echo $_item->getProduct()->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></p>
|
57 |
+
</li>
|
58 |
+
<?php endforeach; ?>
|
59 |
+
</ol>
|
60 |
+
<script type="text/javascript">decorateList('cart-sidebar-reorder')</script>
|
61 |
+
<div id="cart-sidebar-reorder-advice-container"></div>
|
62 |
+
<div class="actions">
|
63 |
+
<?php if ($_showAddButtonFlag): ?>
|
64 |
+
<button type="submit" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
65 |
+
<?php endif; ?>
|
66 |
+
<a href="<?php echo $this->getUrl('customer/account') ?>"><?php echo $this->__('View All'); ?></a>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</form>
|
70 |
+
</div>
|
71 |
+
<?php echo $this->getPagerHtml(); ?>
|
72 |
+
<script type="text/javascript">
|
73 |
+
//<![CDATA[
|
74 |
+
var reorderFormDetail = new VarienForm('reorder-validate-detail');
|
75 |
+
//]]>
|
76 |
+
</script>
|
77 |
+
<?php endif ?>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/bestseller.phtml
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="block block-bestseller">
|
12 |
+
<?php if ($this->title): ?>
|
13 |
+
<?php
|
14 |
+
$arr_word = $this->title ? explode(' ',$this->title) : "";
|
15 |
+
$join_word = array_shift($arr_word).' <span>'.implode(' ',$arr_word).'</span>';
|
16 |
+
?>
|
17 |
+
<div class="block-title"><strong><?php echo $join_word; ?></strong></div>
|
18 |
+
<?php endif; ?>
|
19 |
+
<div class="block-content">
|
20 |
+
<?php if(!$_productCollection->count()): ?>
|
21 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
22 |
+
<?php else:
|
23 |
+
$row = 0;
|
24 |
+
$col= 0;
|
25 |
+
$count = 1;
|
26 |
+
foreach($_productCollection as $_product):
|
27 |
+
$now = date("Y-m-d");
|
28 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
29 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
30 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
31 |
+
|
32 |
+
if( ($count==1) || (($count-1)%$this->getNumColumns()== 0) ){
|
33 |
+
$row++;
|
34 |
+
?>
|
35 |
+
<ul class="products list cols-<?php echo $this->getNumColumns().' row-'.$row ; ?>">
|
36 |
+
<?php
|
37 |
+
}?>
|
38 |
+
<li class="item <?php echo ( ($count == $_productCollection->count()) || ($count%$this->getNumColumns()==0) )?"last":""; ?>">
|
39 |
+
<div class="item-inner">
|
40 |
+
<div class="item-box">
|
41 |
+
<?php
|
42 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
43 |
+
echo "<span class='newproduct-grid'>new</span>";
|
44 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
45 |
+
}
|
46 |
+
if ($specialprice){
|
47 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
48 |
+
}
|
49 |
+
?>
|
50 |
+
<?php if ($this->product_image_disp): ?>
|
51 |
+
<div class="product-image">
|
52 |
+
<?php if($_product->getData('sale_item') == '1'): ?>
|
53 |
+
<div class='sale-item'><img src="<?php echo $this->getSkinUrl('images/sale-i.png') ?>" alt=""/> </div>
|
54 |
+
<?php endif; ?>
|
55 |
+
<?php if($_product->getData('new_item') == '1'): ?>
|
56 |
+
<div class='new-item'><img src="<?php echo $this->getSkinUrl('images/new-i.png') ?>" alt=""/></div>
|
57 |
+
<?php endif; ?>
|
58 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgWidth, $imgHeight); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
59 |
+
</div>
|
60 |
+
<?php endif; ?>
|
61 |
+
<div class="product-box">
|
62 |
+
<?php if ($this->product_title_disp): ?>
|
63 |
+
<div class="product-name">
|
64 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
65 |
+
<?php
|
66 |
+
if ( $this->product_title_max_length > 0){
|
67 |
+
$_productNameTruncated = Mage::helper('core/string')->truncate($_productNameStripped, $this->product_title_max_length);
|
68 |
+
}
|
69 |
+
?>
|
70 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo isset($_productNameTruncated) ? $_productNameTruncated : $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a>
|
71 |
+
</div>
|
72 |
+
<?php endif; ?>
|
73 |
+
<?php if ($this->product_description_disp): ?>
|
74 |
+
<div class="item-description">
|
75 |
+
<?php
|
76 |
+
$product_description_src = in_array($this->product_description_src, array('short_description', 'description')) ? $this->product_description_src : 'short_description';
|
77 |
+
$product_description = $_helper->productAttribute($_product, $_product->$product_description_src, $product_description_src);
|
78 |
+
|
79 |
+
if ( $this->product_description_strip_tags ){
|
80 |
+
$allow_tags = $this->product_description_keep_tags ? $this->product_description_keep_tags : null;
|
81 |
+
$product_description = $this->stripTags( $product_description, $allow_tags, true);
|
82 |
+
}
|
83 |
+
|
84 |
+
if ( $this->product_description_max_length > 0){
|
85 |
+
$product_description = Mage::helper('core/string')->truncate($product_description, (int)$this->product_description_max_length);
|
86 |
+
}
|
87 |
+
|
88 |
+
echo $product_description;
|
89 |
+
?>
|
90 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
91 |
+
</div>
|
92 |
+
<?php endif; ?>
|
93 |
+
<?php
|
94 |
+
if( $this->product_rating_summary ){
|
95 |
+
Mage::getModel('review/review')->getEntitySummary($_product, Mage::app()->getStore()->getId());
|
96 |
+
if ( $_product->getRatingSummary() ){
|
97 |
+
echo $this->getReviewsSummaryHtml($_product, 'short', false);
|
98 |
+
}
|
99 |
+
}
|
100 |
+
?>
|
101 |
+
<?php if ($this->product_price_disp): ?>
|
102 |
+
<?php echo $this->getPriceHtml($_product, true, false) ?>
|
103 |
+
<?php endif; ?>
|
104 |
+
<?php /*
|
105 |
+
<div class="item_readmore">
|
106 |
+
<a title="<?php ?>" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('read more') ?></a>
|
107 |
+
</div>
|
108 |
+
*/ ?>
|
109 |
+
|
110 |
+
<?php if ($this->product_cart_or_status): ?>
|
111 |
+
<?php if($_product->isSaleable()): ?>
|
112 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a>
|
113 |
+
<?php else: ?>
|
114 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
115 |
+
<?php endif; ?>
|
116 |
+
<?php endif; ?>
|
117 |
+
<?php if($this->product_addtowishlist OR $this->product_addtocompare){ ?>
|
118 |
+
<div class="actions">
|
119 |
+
<ul class="add-to-links">
|
120 |
+
<?php if ($this->helper('wishlist')->isAllow() AND $this->product_addtowishlist) : ?>
|
121 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
122 |
+
<?php endif; ?>
|
123 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product) ): ?>
|
124 |
+
<?php if($this->product_addtocompare){ ?>
|
125 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
126 |
+
<?php } ?>
|
127 |
+
<?php endif; ?>
|
128 |
+
</ul>
|
129 |
+
</div>
|
130 |
+
<?php } ?>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
|
134 |
+
</div>
|
135 |
+
</li>
|
136 |
+
<?php
|
137 |
+
//echo $count.' '.$_productCollection->count().' '.$this->getNumColumns();
|
138 |
+
if( ($count == $_productCollection->count()) || ($count%$this->getNumColumns()==0) ){
|
139 |
+
?>
|
140 |
+
</ul>
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
$count = $count+1;
|
144 |
+
?>
|
145 |
+
<?php endforeach; ?>
|
146 |
+
<?php endif; ?>
|
147 |
+
</div>
|
148 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/feature.phtml
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="block-feature-products block">
|
12 |
+
<div class="block-title"><h3 style=""><?php echo $this->__('Feature Products'); ?></h3></div>
|
13 |
+
<div class="des-block">Forem ipsum dolor sit amet consectetur adipiscing elit</div>
|
14 |
+
<div class="block-content">
|
15 |
+
<?php if(!$_productCollection->count()): ?>
|
16 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
17 |
+
<?php else:
|
18 |
+
$row = 0;
|
19 |
+
$col= 0;
|
20 |
+
$count = 1;
|
21 |
+
$i=0;
|
22 |
+
$_collectionSize = $_productCollection->count();
|
23 |
+
foreach($_productCollection as $_product):
|
24 |
+
$now = date("Y-m-d");
|
25 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
26 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
27 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
28 |
+
$this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper'); ?>
|
29 |
+
<?php if ($i++==0): ?>
|
30 |
+
<div class="products-grid category-products">
|
31 |
+
<div class="row">
|
32 |
+
<?php endif ?>
|
33 |
+
<div class="span2d4" data-normal="span3" data-tablet="span4" data-stablet="span6">
|
34 |
+
<div class="item">
|
35 |
+
<div class="item-inner">
|
36 |
+
<div class="item-box">
|
37 |
+
<?php
|
38 |
+
// if ($now>=$newsFrom && $now<=$newsTo){
|
39 |
+
// echo "<span class='newproduct-grid'>new</span>";
|
40 |
+
// }
|
41 |
+
// if ($specialprice){
|
42 |
+
// echo "<span class='saleoff-grid'>sale off</span>";
|
43 |
+
// }
|
44 |
+
?>
|
45 |
+
|
46 |
+
<?php if ($this->product_image_disp): ?>
|
47 |
+
<div class="product-image">
|
48 |
+
<?php if($_product->getData('sale_item') == '1'): ?>
|
49 |
+
<div class='sale-item'><img src="<?php echo $this->getSkinUrl('images/sale-i.png') ?>" alt=""/> </div>
|
50 |
+
<?php endif; ?>
|
51 |
+
<?php if($_product->getData('new_item') == '1'): ?>
|
52 |
+
<div class='new-item'><img src="<?php echo $this->getSkinUrl('images/new-i.png') ?>" alt=""/></div>
|
53 |
+
<?php endif; ?>
|
54 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-imgs"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(280,186); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
55 |
+
<div class="popup-box">
|
56 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><img src="<?php echo $this->getSkinUrl('images/heart.png') ?>" alt="" /></a></p>
|
57 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></p>
|
58 |
+
<?php $product = Mage::getModel('catalog/product')->load($_product->getId());
|
59 |
+
if($this->_reviewsHelperBlock->getSummaryHtml($product, false, false)):
|
60 |
+
echo $this->_reviewsHelperBlock->getSummaryHtml($product, false, false);
|
61 |
+
else:
|
62 |
+
?>
|
63 |
+
<?php /* <p> <a href="<?php echo Mage::getBaseUrl(); ?>/review/product/list/id/<?php echo $_product->getId(); ?>/#review-form">Add Review</a> </p> */ ?>
|
64 |
+
<?php endif; ?>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
<?php endif; ?>
|
68 |
+
<div class="product-box">
|
69 |
+
<?php if ($this->product_title_disp): ?>
|
70 |
+
<div class="product-name">
|
71 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
72 |
+
<?php
|
73 |
+
if ( $this->product_title_max_length > 0){
|
74 |
+
$_productNameTruncated = Mage::helper('core/string')->truncate($_productNameStripped, $this->product_title_max_length);
|
75 |
+
}
|
76 |
+
?>
|
77 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo isset($_productNameTruncated) ? $_productNameTruncated : $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a>
|
78 |
+
</div>
|
79 |
+
<?php endif; ?>
|
80 |
+
|
81 |
+
<?php if ($this->product_description_disp): ?>
|
82 |
+
<div class="item-description">
|
83 |
+
<?php
|
84 |
+
$product_description_src = in_array($this->product_description_src, array('short_description', 'description')) ? $this->product_description_src : 'short_description';
|
85 |
+
$product_description = $_helper->productAttribute($_product, $_product->$product_description_src, $product_description_src);
|
86 |
+
|
87 |
+
if ( $this->product_description_strip_tags ){
|
88 |
+
$allow_tags = $this->product_description_keep_tags ? $this->product_description_keep_tags : null;
|
89 |
+
$product_description = $this->stripTags( $product_description, $allow_tags, true);
|
90 |
+
}
|
91 |
+
|
92 |
+
if ( $this->product_description_max_length > 0){
|
93 |
+
$product_description = Mage::helper('core/string')->truncate($product_description, (int)$this->product_description_max_length);
|
94 |
+
}
|
95 |
+
|
96 |
+
echo $product_description;
|
97 |
+
?>
|
98 |
+
</div>
|
99 |
+
<?php endif; ?>
|
100 |
+
<?php if ($this->product_price_disp): ?>
|
101 |
+
<div class="price-block"><?php echo '<span>Price: </span>'.$this->getPriceHtml($_product, true, false) ?></div>
|
102 |
+
<?php endif; ?>
|
103 |
+
<?php
|
104 |
+
if( $this->product_rating_summary ){
|
105 |
+
Mage::getModel('review/review')->getEntitySummary($_product, Mage::app()->getStore()->getId());
|
106 |
+
if ( $_product->getRatingSummary() ){
|
107 |
+
echo $this->getReviewsSummaryHtml($_product, 'short', false);
|
108 |
+
}
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
|
112 |
+
<?php /*
|
113 |
+
<div class="item_readmore">
|
114 |
+
<a title="<?php ?>" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('read more') ?></a>
|
115 |
+
</div>
|
116 |
+
*/ ?>
|
117 |
+
|
118 |
+
<?php if ($this->product_cart_or_status): ?>
|
119 |
+
<?php if($_product->isSaleable()): ?>
|
120 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a>
|
121 |
+
<?php else: ?>
|
122 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
123 |
+
<?php endif; ?>
|
124 |
+
<?php endif; ?>
|
125 |
+
|
126 |
+
<?php if($this->product_addtowishlist OR $this->product_addtocompare){ ?>
|
127 |
+
<div class="actions">
|
128 |
+
<ul class="add-to-links">
|
129 |
+
<?php if ($this->helper('wishlist')->isAllow() AND $this->product_addtowishlist) : ?>
|
130 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
131 |
+
<?php endif; ?>
|
132 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product) ): ?>
|
133 |
+
<?php if($this->product_addtocompare){ ?>
|
134 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
135 |
+
<?php } ?>
|
136 |
+
<?php endif; ?>
|
137 |
+
</ul>
|
138 |
+
</div>
|
139 |
+
<?php } ?>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
</div> <?php //[end] item ?>
|
144 |
+
</div> <?php //[end] span2d4 ?>
|
145 |
+
<?php if ($i==$_collectionSize): ?>
|
146 |
+
</div>
|
147 |
+
</div> <?php //[end] products-grid ?>
|
148 |
+
<?php endif ?>
|
149 |
+
<?php endforeach; ?>
|
150 |
+
<?php endif; ?>
|
151 |
+
</div>
|
152 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/for-menu.phtml
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="block for-menu">
|
12 |
+
<div class="yt-products-container-menu">
|
13 |
+
<?php if(!$_productCollection->count()): ?>
|
14 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
15 |
+
<?php else:
|
16 |
+
$row = 0;
|
17 |
+
$col= 0;
|
18 |
+
$count = 1;
|
19 |
+
foreach($_productCollection as $_product):
|
20 |
+
$now = date("Y-m-d");
|
21 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
22 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
23 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
24 |
+
|
25 |
+
if( ($count==1) || (($count-1)%$this->getNumColumns()== 0) ){
|
26 |
+
$row++;
|
27 |
+
?>
|
28 |
+
<ul class="products-grid products cols-<?php echo $this->getNumColumns().' row-'.$row ; ?>">
|
29 |
+
<?php
|
30 |
+
}?>
|
31 |
+
<li class="item">
|
32 |
+
<div class="item-inner">
|
33 |
+
<div class="item-box">
|
34 |
+
<?php
|
35 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
36 |
+
echo "<span class='newproduct-grid'>new</span>";
|
37 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
38 |
+
}
|
39 |
+
if ($specialprice){
|
40 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
41 |
+
}
|
42 |
+
?>
|
43 |
+
<?php if ($this->product_image_disp): ?>
|
44 |
+
<div class="product-image">
|
45 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgWidth, $imgHeight); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
46 |
+
</div>
|
47 |
+
<?php endif; ?>
|
48 |
+
<?php if ($this->product_price_disp): ?>
|
49 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
50 |
+
<?php endif; ?>
|
51 |
+
</div>
|
52 |
+
|
53 |
+
<div class="item-box-hover">
|
54 |
+
<?php if ($this->product_cart_or_status): ?>
|
55 |
+
<?php if($_product->isSaleable()): ?>
|
56 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></a>
|
57 |
+
<?php else: ?>
|
58 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
59 |
+
<?php endif; ?>
|
60 |
+
<?php endif; ?>
|
61 |
+
<div class="actions">
|
62 |
+
<ul class="add-to-links">
|
63 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
64 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
65 |
+
<?php endif; ?>
|
66 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
67 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
68 |
+
<?php endif; ?>
|
69 |
+
</ul>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
|
73 |
+
|
74 |
+
<?php if ($this->product_title_disp): ?>
|
75 |
+
<h2 class="product-name">
|
76 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
77 |
+
<?php
|
78 |
+
if ( $this->product_title_max_length > 0){
|
79 |
+
$_productNameTruncated = Mage::helper('core/string')->truncate($_productNameStripped, $this->product_title_max_length);
|
80 |
+
}
|
81 |
+
?>
|
82 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo isset($_productNameTruncated) ? $_productNameTruncated : $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a>
|
83 |
+
</h2>
|
84 |
+
<?php endif; ?>
|
85 |
+
<?php
|
86 |
+
if( $this->product_rating_summary ){
|
87 |
+
Mage::getModel('review/review')->getEntitySummary($_product, Mage::app()->getStore()->getId());
|
88 |
+
if ( $_product->getRatingSummary() ){
|
89 |
+
echo $this->getReviewsSummaryHtml($_product);
|
90 |
+
}
|
91 |
+
}
|
92 |
+
?>
|
93 |
+
<?php if ($this->product_description_disp): ?>
|
94 |
+
<div class="item-description">
|
95 |
+
<?php
|
96 |
+
$product_description_src = in_array($this->product_description_src, array('short_description', 'description')) ? $this->product_description_src : 'short_description';
|
97 |
+
$product_description = $_helper->productAttribute($_product, $_product->$product_description_src, $product_description_src);
|
98 |
+
|
99 |
+
if ( $this->product_description_strip_tags ){
|
100 |
+
$allow_tags = $this->product_description_keep_tags ? $this->product_description_keep_tags : null;
|
101 |
+
$product_description = $this->stripTags( $product_description, $allow_tags, true);
|
102 |
+
}
|
103 |
+
|
104 |
+
if ( $this->product_description_max_length > 0){
|
105 |
+
$product_description = Mage::helper('core/string')->truncate($product_description, (int)$this->product_description_max_length);
|
106 |
+
}
|
107 |
+
|
108 |
+
echo $product_description;
|
109 |
+
?>
|
110 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
111 |
+
</div>
|
112 |
+
<?php endif; ?>
|
113 |
+
</div>
|
114 |
+
</li>
|
115 |
+
<?php
|
116 |
+
//echo $count.' '.$_productCollection->count().' '.$this->getNumColumns();
|
117 |
+
if( ($count == $_productCollection->count()) || ($count%$this->getNumColumns()==0) ){
|
118 |
+
?>
|
119 |
+
</ul>
|
120 |
+
<?php
|
121 |
+
}
|
122 |
+
$count = $count+1;
|
123 |
+
?>
|
124 |
+
<?php endforeach; ?>
|
125 |
+
<?php endif; ?>
|
126 |
+
</div>
|
127 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/for-menu2.phtml
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="block for-menu">
|
12 |
+
<?php if ($this->title): ?>
|
13 |
+
<div class="block-title"><?php echo $this->title; ?></div>
|
14 |
+
<?php endif; ?>
|
15 |
+
<div class="yt-products-container-menu">
|
16 |
+
<?php if(!$_productCollection->count()): ?>
|
17 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
18 |
+
<?php else:
|
19 |
+
$row = 0;
|
20 |
+
$col= 0;
|
21 |
+
$count = 1;
|
22 |
+
foreach($_productCollection as $_product):
|
23 |
+
$now = date("Y-m-d");
|
24 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
25 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
26 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
27 |
+
|
28 |
+
if( ($count==1) || (($count-1)%$this->getNumColumns()== 0) ){
|
29 |
+
$row++;
|
30 |
+
?>
|
31 |
+
<ul class="products-grid products cols-<?php echo $this->getNumColumns().' row-'.$row ; ?>">
|
32 |
+
<?php
|
33 |
+
}?>
|
34 |
+
<li class="item">
|
35 |
+
<div class="item-inner">
|
36 |
+
<div class="item-box">
|
37 |
+
<?php
|
38 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
39 |
+
echo "<span class='newproduct-grid'>new</span>";
|
40 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
41 |
+
}
|
42 |
+
if ($specialprice){
|
43 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
44 |
+
}
|
45 |
+
?>
|
46 |
+
<?php if ($this->product_image_disp): ?>
|
47 |
+
<div class="product-image">
|
48 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgWidth, $imgHeight); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
49 |
+
</div>
|
50 |
+
<?php endif; ?>
|
51 |
+
<?php if ($this->product_price_disp): ?>
|
52 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
53 |
+
<?php endif; ?>
|
54 |
+
</div>
|
55 |
+
|
56 |
+
<div class="item-box-hover">
|
57 |
+
<?php if ($this->product_cart_or_status): ?>
|
58 |
+
<?php if($_product->isSaleable()): ?>
|
59 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></a>
|
60 |
+
<?php else: ?>
|
61 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
62 |
+
<?php endif; ?>
|
63 |
+
<?php endif; ?>
|
64 |
+
<div class="actions">
|
65 |
+
<ul class="add-to-links">
|
66 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
67 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
68 |
+
<?php endif; ?>
|
69 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
70 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
71 |
+
<?php endif; ?>
|
72 |
+
</ul>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
|
76 |
+
<?php if ($this->product_title_disp): ?>
|
77 |
+
<h2 class="product-name">
|
78 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
79 |
+
<?php
|
80 |
+
if ( $this->product_title_max_length > 0){
|
81 |
+
$_productNameTruncated = Mage::helper('core/string')->truncate($_productNameStripped, $this->product_title_max_length);
|
82 |
+
}
|
83 |
+
?>
|
84 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo isset($_productNameTruncated) ? $_productNameTruncated : $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a>
|
85 |
+
</h2>
|
86 |
+
<?php endif; ?>
|
87 |
+
<?php
|
88 |
+
if( $this->product_rating_summary ){
|
89 |
+
Mage::getModel('review/review')->getEntitySummary($_product, Mage::app()->getStore()->getId());
|
90 |
+
if ( $_product->getRatingSummary() ){
|
91 |
+
echo $this->getReviewsSummaryHtml($_product);
|
92 |
+
}
|
93 |
+
}
|
94 |
+
?>
|
95 |
+
</div>
|
96 |
+
</li>
|
97 |
+
<?php
|
98 |
+
//echo $count.' '.$_productCollection->count().' '.$this->getNumColumns();
|
99 |
+
if( ($count == $_productCollection->count()) || ($count%$this->getNumColumns()==0) ){
|
100 |
+
?>
|
101 |
+
</ul>
|
102 |
+
<?php
|
103 |
+
}
|
104 |
+
$count = $count+1;
|
105 |
+
?>
|
106 |
+
<?php endforeach; ?>
|
107 |
+
<?php endif; ?>
|
108 |
+
</div>
|
109 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/home.phtml
ADDED
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
<script type="text/javascript">
|
11 |
+
//<![CDATA[
|
12 |
+
$jsmart(document).ready(function($){
|
13 |
+
function getItemPerPage(){ //get width by class class_width, return number px
|
14 |
+
json_class_width = {
|
15 |
+
'wide' : '3',
|
16 |
+
'normal' : '2',
|
17 |
+
'tablet' : '2',
|
18 |
+
'stablet' : '2',
|
19 |
+
'mobile' : '1',
|
20 |
+
};
|
21 |
+
for(var key in json_class_width){
|
22 |
+
if ( json_class_width.hasOwnProperty ( key ) ){
|
23 |
+
// alert( key '=>' json_class_width [ key ] );
|
24 |
+
device = $.fn.detectDevice();
|
25 |
+
if(device){
|
26 |
+
return json_class_width[ device ];
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
30 |
+
return json_class_width['wide'];
|
31 |
+
}
|
32 |
+
function init(){
|
33 |
+
item_per_page = parseInt(getItemPerPage());
|
34 |
+
device = $.fn.detectDevice();
|
35 |
+
// console.log("basic:"+item_per_page+":"+device);
|
36 |
+
$('#bestsale').pajinate({
|
37 |
+
start_page : 0,
|
38 |
+
items_per_page : item_per_page
|
39 |
+
});
|
40 |
+
}
|
41 |
+
// $('#bestsale ul li:eq(2)').addClass("last");
|
42 |
+
// $('#bestsale ul li:eq(5)').addClass("last");
|
43 |
+
// $('#bestsale ul li:eq(8)').addClass("last");
|
44 |
+
// $('#bestsale ul li:eq(8)').addClass("last");
|
45 |
+
s = $(".page_navigation"),shtml=s.html(),sid2='';
|
46 |
+
// console.log(shtml);
|
47 |
+
init();
|
48 |
+
$(window).resize(function(){
|
49 |
+
|
50 |
+
if (sid2) clearTimeout(sid2);
|
51 |
+
|
52 |
+
sid2 = setTimeout(function(){//console.log($('body').width()+"-"+$('body').height());
|
53 |
+
s.children().empty().remove(),s.html(shtml);
|
54 |
+
init();
|
55 |
+
}, 200);
|
56 |
+
})
|
57 |
+
});
|
58 |
+
//]]>
|
59 |
+
</script>
|
60 |
+
<div id="bestsale" class="block-bestsale block">
|
61 |
+
<?php if ($this->title): ?>
|
62 |
+
<?php
|
63 |
+
//$arr_word = $this->title ? explode(' ',$this->title) : "";
|
64 |
+
//$join_word = array_shift($arr_word).' <span>'.implode(' ',$arr_word).'</span>';
|
65 |
+
?>
|
66 |
+
<div class="block-title"><h3><?php echo $this->title; ?></h3></div>
|
67 |
+
<div class="des-block">Forem ipsum dolor sit amet consectetur adipiscing elit </div>
|
68 |
+
<div class="page_navigation"></div>
|
69 |
+
<?php endif; ?>
|
70 |
+
<div class="block-content">
|
71 |
+
<?php if(!$_productCollection->count()): ?>
|
72 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
73 |
+
<?php else:
|
74 |
+
$row = 0;
|
75 |
+
$col= 0;
|
76 |
+
$count = 1;
|
77 |
+
$i=0;
|
78 |
+
$_collectionSize = $_productCollection->count();
|
79 |
+
foreach($_productCollection as $_product):
|
80 |
+
$now = date("Y-m-d");
|
81 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
82 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
83 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
84 |
+
|
85 |
+
if( ($count==1) || (($count-1)%$this->getNumColumns()== 0) ){
|
86 |
+
$row++;
|
87 |
+
?>
|
88 |
+
<div class="products-grid ">
|
89 |
+
<ul class="row products cols-<?php echo $this->getNumColumns().' row-'.$row ; ?> content">
|
90 |
+
<?php
|
91 |
+
}?>
|
92 |
+
<li class="span2d4" data-normal="span4" data-tablet="span4" data-stablet="span6" data-mobile="span12">
|
93 |
+
<div class="item">
|
94 |
+
<div class="item-inner">
|
95 |
+
<div class="item-box">
|
96 |
+
<?php
|
97 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
98 |
+
echo "<span class='newproduct-grid'>new</span>";
|
99 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
100 |
+
}
|
101 |
+
if ($specialprice){
|
102 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
103 |
+
}
|
104 |
+
?>
|
105 |
+
<?php if ($this->product_image_disp): ?>
|
106 |
+
<div class="product-image">
|
107 |
+
<?php if($_product->getData('sale_item') == '1'): ?>
|
108 |
+
<div class='sale-item'><img src="<?php echo $this->getSkinUrl('images/sale-i.png') ?>" alt=""/> </div>
|
109 |
+
<?php endif; ?>
|
110 |
+
<?php if($_product->getData('new_item') == '1'): ?>
|
111 |
+
<div class='new-item'><img src="<?php echo $this->getSkinUrl('images/new-i.png') ?>" alt=""/></div>
|
112 |
+
<?php endif; ?>
|
113 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-imgs"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(280,186); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
114 |
+
<div class="popup-box">
|
115 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><img src="<?php echo $this->getSkinUrl('images/heart.png') ?>" alt="" /></a></p>
|
116 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></p>
|
117 |
+
<?php /* <p> <a href="<?php echo Mage::getBaseUrl(); ?>/review/product/list/id/<?php echo $_product->getId(); ?>/#review-form">Add Review</a> </p> */ ?>
|
118 |
+
<p><a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a></p>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
<?php endif; ?>
|
122 |
+
<div class="product-box">
|
123 |
+
<?php if ($this->product_title_disp): ?>
|
124 |
+
<div class="product-name">
|
125 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
126 |
+
<?php
|
127 |
+
if ( $this->product_title_max_length > 0){
|
128 |
+
$_productNameTruncated = Mage::helper('core/string')->truncate($_productNameStripped, $this->product_title_max_length);
|
129 |
+
}
|
130 |
+
?>
|
131 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo isset($_productNameTruncated) ? $_productNameTruncated : $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a>
|
132 |
+
</div>
|
133 |
+
<?php endif; ?>
|
134 |
+
<?php if ($this->product_price_disp): ?>
|
135 |
+
<div class="price-block"><?php echo '<span>Price: </span>'.$this->getPriceHtml($_product, true, false) ?></div>
|
136 |
+
<?php endif; ?>
|
137 |
+
<?php if ($this->product_description_disp): ?>
|
138 |
+
<div class="item-description">
|
139 |
+
<?php
|
140 |
+
$product_description_src = in_array($this->product_description_src, array('short_description', 'description')) ? $this->product_description_src : 'short_description';
|
141 |
+
$product_description = $_helper->productAttribute($_product, $_product->$product_description_src, $product_description_src);
|
142 |
+
|
143 |
+
if ( $this->product_description_strip_tags ){
|
144 |
+
$allow_tags = $this->product_description_keep_tags ? $this->product_description_keep_tags : null;
|
145 |
+
$product_description = $this->stripTags( $product_description, $allow_tags, true);
|
146 |
+
}
|
147 |
+
|
148 |
+
if ( $this->product_description_max_length > 0){
|
149 |
+
$product_description = Mage::helper('core/string')->truncate($product_description, (int)$this->product_description_max_length);
|
150 |
+
}
|
151 |
+
|
152 |
+
echo $product_description;
|
153 |
+
?>
|
154 |
+
</div>
|
155 |
+
<?php endif; ?>
|
156 |
+
<?php
|
157 |
+
if( $this->product_rating_summary ){
|
158 |
+
Mage::getModel('review/review')->getEntitySummary($_product, Mage::app()->getStore()->getId());
|
159 |
+
if ( $_product->getRatingSummary() ){
|
160 |
+
echo $this->getReviewsSummaryHtml($_product, 'short', false);
|
161 |
+
}
|
162 |
+
}
|
163 |
+
?>
|
164 |
+
<?php /*
|
165 |
+
<div class="item_readmore">
|
166 |
+
<a title="<?php ?>" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('read more') ?></a>
|
167 |
+
</div>
|
168 |
+
*/ ?>
|
169 |
+
|
170 |
+
<?php if ($this->product_cart_or_status): ?>
|
171 |
+
<?php if($_product->isSaleable()): ?>
|
172 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a>
|
173 |
+
<?php else: ?>
|
174 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
175 |
+
<?php endif; ?>
|
176 |
+
<?php endif; ?>
|
177 |
+
<?php if($this->product_addtowishlist OR $this->product_addtocompare){ ?>
|
178 |
+
<div class="actions">
|
179 |
+
<ul class="add-to-links">
|
180 |
+
<?php if ($this->helper('wishlist')->isAllow() AND $this->product_addtowishlist) : ?>
|
181 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
182 |
+
<?php endif; ?>
|
183 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product) ): ?>
|
184 |
+
<?php if($this->product_addtocompare){ ?>
|
185 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
186 |
+
<?php } ?>
|
187 |
+
<?php endif; ?>
|
188 |
+
</ul>
|
189 |
+
</div>
|
190 |
+
<?php } ?>
|
191 |
+
</div>
|
192 |
+
</div>
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
</li>
|
196 |
+
<?php
|
197 |
+
//echo $count.' '.$_productCollection->count().' '.$this->getNumColumns();
|
198 |
+
if( ($count == $_productCollection->count()) || ($count%$this->getNumColumns()==0) ){
|
199 |
+
?>
|
200 |
+
</ul>
|
201 |
+
</div>
|
202 |
+
<?php
|
203 |
+
}
|
204 |
+
$count = $count+1;
|
205 |
+
?>
|
206 |
+
<?php endforeach; ?>
|
207 |
+
<?php endif; ?>
|
208 |
+
</div>
|
209 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/home.phtml_
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="block">
|
12 |
+
<?php if ($this->title): ?>
|
13 |
+
<div class="block-title"><?php echo $this->title; ?></div>
|
14 |
+
<?php endif; ?>
|
15 |
+
<div class="yt-products-container">
|
16 |
+
<?php if(!$_productCollection->count()): ?>
|
17 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
18 |
+
<?php else:
|
19 |
+
$row = 0;
|
20 |
+
$col= 0;
|
21 |
+
$count = 1;
|
22 |
+
foreach($_productCollection as $_product):
|
23 |
+
$now = date("Y-m-d");
|
24 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
25 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
26 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
27 |
+
|
28 |
+
if( ($count==1) || (($count-1)%$this->getNumColumns()== 0) ){
|
29 |
+
$row++;
|
30 |
+
?>
|
31 |
+
<ul class="products-grid products cols-<?php echo $this->getNumColumns().' row-'.$row ; ?>">
|
32 |
+
<?php
|
33 |
+
}?>
|
34 |
+
<li class="item">
|
35 |
+
<div class="item-inner">
|
36 |
+
<div class="item-box">
|
37 |
+
<?php
|
38 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
39 |
+
echo "<span class='newproduct-grid'>new</span>";
|
40 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
41 |
+
}
|
42 |
+
if ($specialprice){
|
43 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
44 |
+
}
|
45 |
+
?>
|
46 |
+
<?php if ($this->product_image_disp): ?>
|
47 |
+
<div class="product-image">
|
48 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgWidth, $imgHeight); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
49 |
+
</div>
|
50 |
+
<?php endif; ?>
|
51 |
+
<?php if ($this->product_price_disp): ?>
|
52 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
53 |
+
<?php endif; ?>
|
54 |
+
</div>
|
55 |
+
|
56 |
+
<div class="item-box-hover">
|
57 |
+
<?php if ($this->product_price_disp): ?>
|
58 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
59 |
+
<?php endif; ?>
|
60 |
+
|
61 |
+
<?php
|
62 |
+
if( $this->product_rating_summary ){
|
63 |
+
Mage::getModel('review/review')->getEntitySummary($_product, Mage::app()->getStore()->getId());
|
64 |
+
if ( $_product->getRatingSummary() ){
|
65 |
+
echo $this->getReviewsSummaryHtml($_product);
|
66 |
+
}
|
67 |
+
} ?>
|
68 |
+
<?php if ($this->product_cart_or_status): ?>
|
69 |
+
<?php if($_product->isSaleable()): ?>
|
70 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></a>
|
71 |
+
<?php else: ?>
|
72 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
73 |
+
<?php endif; ?>
|
74 |
+
<?php endif; ?>
|
75 |
+
<div class="actions">
|
76 |
+
<ul class="add-to-links">
|
77 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
78 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
79 |
+
<?php endif; ?>
|
80 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
81 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
82 |
+
<?php endif; ?>
|
83 |
+
</ul>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
|
87 |
+
|
88 |
+
<?php if ($this->product_title_disp): ?>
|
89 |
+
<h2 class="product-name">
|
90 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
91 |
+
<?php
|
92 |
+
if ( $this->product_title_max_length > 0){
|
93 |
+
$_productNameTruncated = Mage::helper('core/string')->truncate($_productNameStripped, $this->product_title_max_length);
|
94 |
+
}
|
95 |
+
?>
|
96 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo isset($_productNameTruncated) ? $_productNameTruncated : $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a>
|
97 |
+
</h2>
|
98 |
+
<?php endif; ?>
|
99 |
+
<?php if ($this->product_description_disp): ?>
|
100 |
+
<div class="item-description">
|
101 |
+
<?php
|
102 |
+
$product_description_src = in_array($this->product_description_src, array('short_description', 'description')) ? $this->product_description_src : 'short_description';
|
103 |
+
$product_description = $_helper->productAttribute($_product, $_product->$product_description_src, $product_description_src);
|
104 |
+
|
105 |
+
if ( $this->product_description_strip_tags ){
|
106 |
+
$allow_tags = $this->product_description_keep_tags ? $this->product_description_keep_tags : null;
|
107 |
+
$product_description = $this->stripTags( $product_description, $allow_tags, true);
|
108 |
+
}
|
109 |
+
|
110 |
+
if ( $this->product_description_max_length > 0){
|
111 |
+
$product_description = Mage::helper('core/string')->truncate($product_description, (int)$this->product_description_max_length);
|
112 |
+
}
|
113 |
+
|
114 |
+
echo $product_description;
|
115 |
+
?>
|
116 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
117 |
+
</div>
|
118 |
+
<?php endif; ?>
|
119 |
+
|
120 |
+
</div>
|
121 |
+
</li>
|
122 |
+
<?php
|
123 |
+
//echo $count.' '.$_productCollection->count().' '.$this->getNumColumns();
|
124 |
+
if( ($count == $_productCollection->count()) || ($count%$this->getNumColumns()==0) ){
|
125 |
+
?>
|
126 |
+
</ul>
|
127 |
+
<?php
|
128 |
+
}
|
129 |
+
$count = $count+1;
|
130 |
+
?>
|
131 |
+
<?php endforeach; ?>
|
132 |
+
<?php endif; ?>
|
133 |
+
</div>
|
134 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/home2.phtml
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="category-products">
|
12 |
+
<?php if ($this->title){ ?>
|
13 |
+
<?php
|
14 |
+
//$arr_word = $this->title ? explode(' ',$this->title) : "";
|
15 |
+
//$join_word = array_shift($arr_word).' <span>'.implode(' ',$arr_word).'</span>';
|
16 |
+
?>
|
17 |
+
<div class="block-title"><strong><?php //echo $join_word; ?><?php echo $this->title ?></strong></div>
|
18 |
+
<?php } ?>
|
19 |
+
<div class="yt-products-container">
|
20 |
+
<?php
|
21 |
+
if(!$_productCollection->count()){ ?>
|
22 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
23 |
+
<?php
|
24 |
+
}else{
|
25 |
+
$row = 0;
|
26 |
+
$col= 0;
|
27 |
+
$count = 1;
|
28 |
+
$i=0;
|
29 |
+
$_collectionSize = $_productCollection->count();
|
30 |
+
foreach($_productCollection as $_product){
|
31 |
+
$now = date("Y-m-d");
|
32 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
33 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
34 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
35 |
+
|
36 |
+
?>
|
37 |
+
<?php if ($i++==0){ ?>
|
38 |
+
<div class="products-grid">
|
39 |
+
<div class="row">
|
40 |
+
<?php } ?>
|
41 |
+
<div class="span3<?php /* if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; */?>" data-normal="span3" data-tablet="span4" data-stablet="span4">
|
42 |
+
<div class="item">
|
43 |
+
<div class="item-inner <?php /*bgcolor2-hover */ ?>font2">
|
44 |
+
|
45 |
+
<div class="item-box">
|
46 |
+
<?php
|
47 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
48 |
+
echo "<span class='newproduct-grid'>new</span>";
|
49 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
50 |
+
}
|
51 |
+
if ($specialprice){
|
52 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
53 |
+
}
|
54 |
+
?>
|
55 |
+
<div class="product-image">
|
56 |
+
<a class="" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" ><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300,215); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
57 |
+
<div class="item-box-hover ">
|
58 |
+
<?php if($_product->isSaleable()): ?>
|
59 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart fontcolor" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></a>
|
60 |
+
<?php else: ?>
|
61 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
62 |
+
<?php endif; ?>
|
63 |
+
<a class="readmore fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><?php echo $this->__('More Detail') ?></a>
|
64 |
+
<?php /*
|
65 |
+
<a class="readmore fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><i class="icon-plus-circle"></i><span class="bgmask"></span></a>
|
66 |
+
<?php //if($_product->getRatingSummary()): ?>
|
67 |
+
<?php //echo $this->getReviewsSummaryHtml($_product, 'short', true) ?>
|
68 |
+
<?php //endif; ?>
|
69 |
+
<div class="actions">
|
70 |
+
<ul class="add-to-links">
|
71 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
72 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
73 |
+
<?php endif; ?>
|
74 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
75 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
76 |
+
<?php endif; ?>
|
77 |
+
</ul>
|
78 |
+
</div>
|
79 |
+
*/ ?>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
<?php //echo $this->getPriceHtml($_product, true) ?>
|
83 |
+
</div>
|
84 |
+
<div class="item-box-footer">
|
85 |
+
<h2 class="product-name">
|
86 |
+
<a class="fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>">
|
87 |
+
<?php
|
88 |
+
if(strlen($_helper->productAttribute($_product, $_product->getName(), 'name')) > 100){
|
89 |
+
echo substr($_helper->productAttribute($_product, $_product->getName(), 'name'), 0, 100) .' ...';
|
90 |
+
}else{
|
91 |
+
echo $_helper->productAttribute($_product, $_product->getName(), 'name');
|
92 |
+
}
|
93 |
+
?>
|
94 |
+
</a>
|
95 |
+
</h2>
|
96 |
+
|
97 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
98 |
+
<?php /*
|
99 |
+
<?php if($_product->isSaleable()): ?>
|
100 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart bgcolor fontcolor" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span class="icon-plus"><?php echo $this->__('Add to Cart') ?></span></span></a>
|
101 |
+
<?php else: ?>
|
102 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
103 |
+
<?php endif; ?>
|
104 |
+
*/ ?>
|
105 |
+
</div>
|
106 |
+
<?php /*<span class="inner-border border-hover"></span>*/ ?>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
<?php // if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
111 |
+
<?php if ($i==$_collectionSize){ ?>
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
<?php
|
115 |
+
} ?>
|
116 |
+
<?php
|
117 |
+
} ?>
|
118 |
+
<?php
|
119 |
+
} ?>
|
120 |
+
</div>
|
121 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/list.phtml
ADDED
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Product list template
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Product_List
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php
|
35 |
+
$_productCollection=$this->getLoadedProductCollection();
|
36 |
+
// Zend_Debug::dump($_productCollection->getData());die;
|
37 |
+
$_helper = $this->helper('catalog/output');
|
38 |
+
?>
|
39 |
+
<?php if(!$_productCollection->count()): ?>
|
40 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
41 |
+
<?php else: ?>
|
42 |
+
<div class="category-products">
|
43 |
+
<?php echo $this->getToolbarHtml() ?>
|
44 |
+
<?php // List mode ?>
|
45 |
+
<div class="yt-products-container">
|
46 |
+
<?php if($this->getMode()!='grid'): ?>
|
47 |
+
<?php $_iterator = 0; ?>
|
48 |
+
<ol class="products-list font2" id="products-list">
|
49 |
+
<?php foreach ($_productCollection as $_product): ?>
|
50 |
+
<?php
|
51 |
+
$count_input_qty++;
|
52 |
+
$now = date("Y-m-d");
|
53 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
54 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
55 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
56 |
+
|
57 |
+
?>
|
58 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
59 |
+
<?php // Product Image ?>
|
60 |
+
|
61 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
62 |
+
<?php
|
63 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
64 |
+
echo "<span class='newproduct-list'>new</span>";
|
65 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
66 |
+
}
|
67 |
+
if ($specialprice){
|
68 |
+
echo "<span class='saleoff-list'>sale off</span>";
|
69 |
+
}
|
70 |
+
?>
|
71 |
+
<span class="item-inner">
|
72 |
+
<img class="image-main" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300,200); ?>" width="300" height="200" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
73 |
+
<?php
|
74 |
+
$_gallery = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
75 |
+
$i_im = 0;
|
76 |
+
foreach ($_gallery as $_image ):
|
77 |
+
$i_im++;
|
78 |
+
if($i_im == 1){ ?>
|
79 |
+
<img class="image-hover" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_image->getFile())->resize(300, 200); ?>" width="300" height="200" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
|
80 |
+
<?php
|
81 |
+
break;
|
82 |
+
}
|
83 |
+
?>
|
84 |
+
<?php endforeach; ?>
|
85 |
+
</span></a>
|
86 |
+
<?php // Product description ?>
|
87 |
+
<?php /*
|
88 |
+
<div class="product-shop">
|
89 |
+
<div class="f-fix">
|
90 |
+
*/ ?>
|
91 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
92 |
+
<h2 class="product-name "><a class="fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
93 |
+
<?php if($_product->getRatingSummary()): ?>
|
94 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
95 |
+
<?php endif; ?>
|
96 |
+
<div class="desc std">
|
97 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
98 |
+
</div>
|
99 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
100 |
+
<?php /*<div class="price-box"> <?php echo $this->getPriceHtml($_product, true) ?> </div> */ ?>
|
101 |
+
<div class="box-main">
|
102 |
+
<div class="box-price-review">
|
103 |
+
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
|
104 |
+
<?php echo $this->getPriceHtml($_product) ?>
|
105 |
+
</div>
|
106 |
+
<div class="add-to-holder">
|
107 |
+
<div class="addtocart-box add-to-cart">
|
108 |
+
<?php if($_product->isSaleable()): ?>
|
109 |
+
<form action="<?php echo $this->getAddToCartUrl($_product);?>" method="post" id="product_addtocart_form_<?php echo $_product->getId();?>" <?php if($_product->getOptions()){?> enctype="multipart/form-data"<?php } ?> >
|
110 |
+
<?php if(!$_product->isGrouped()){?>
|
111 |
+
<div class="wrap-qty">
|
112 |
+
<div class="qty-title"><span><?php echo $this->__('Quantity') ?>:</span></div>
|
113 |
+
<div class="qty-set">
|
114 |
+
<span class="quantity-box">
|
115 |
+
<input type="text" class="quantity-input qty" name="qty" id="qty<?php echo $count_input_qty ?>"maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1);?>" />
|
116 |
+
</span>
|
117 |
+
<span class="quantity-controls ">
|
118 |
+
<input value="+" type="button" class="quantity-controls quantity-plus" onclick="$('qty<?php echo $count_input_qty?>').value=Number($('qty<?php echo $count_input_qty?>').value)+1">
|
119 |
+
<input value="-" type="button" class="quantity-controls quantity-minus" onclick="if(Number($('qty<?php echo $count_input_qty?>').value)>1){$('qty<?php echo $count_input_qty?>').value=Number($('qty<?php echo $count_input_qty?>').value)-1;}">
|
120 |
+
</span>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
<?php } ?>
|
124 |
+
|
125 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="this.form.submit()"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
126 |
+
</form>
|
127 |
+
<?php /*
|
128 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
129 |
+
*/ ?>
|
130 |
+
<?php else: ?>
|
131 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
132 |
+
<?php endif; ?>
|
133 |
+
</div>
|
134 |
+
<ul class="add-to-links">
|
135 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
136 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
137 |
+
<?php endif; ?>
|
138 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
139 |
+
<li><?php /*<span class="separator">|</span> */ ?><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
140 |
+
<?php endif; ?>
|
141 |
+
</ul>
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
<?php /*
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
*/ ?>
|
148 |
+
</li>
|
149 |
+
<?php endforeach; ?>
|
150 |
+
</ol>
|
151 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
152 |
+
|
153 |
+
<?php else: ?>
|
154 |
+
|
155 |
+
<?php // Grid Mode ?>
|
156 |
+
|
157 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
158 |
+
<?php
|
159 |
+
// $_columnCount = $this->getColumnCount();
|
160 |
+
$_columnCount = 4;
|
161 |
+
?>
|
162 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
163 |
+
<?php
|
164 |
+
$now = date("Y-m-d");
|
165 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
166 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
167 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
168 |
+
?>
|
169 |
+
<?php //if ($i++%$_columnCount==0): ?>
|
170 |
+
<?php if ($i++==0): ?>
|
171 |
+
<!--<script type="text/javascript">
|
172 |
+
$jsmart(document).ready(function() {
|
173 |
+
$jsmart(".products-grid li.item").hover(
|
174 |
+
function () {
|
175 |
+
$jsmart(this).find("button").fadeIn('fast');
|
176 |
+
},
|
177 |
+
function () {
|
178 |
+
$jsmart(this).find("button").fadeOut('fast');
|
179 |
+
}
|
180 |
+
);});
|
181 |
+
</script>-->
|
182 |
+
|
183 |
+
<div class="products-grid">
|
184 |
+
<div class="row">
|
185 |
+
<?php endif ?>
|
186 |
+
<div class="span2d4<?php /* if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; */?>" data-normal="span3" data-tablet="span4" data-stablet="span4">
|
187 |
+
<div class="item">
|
188 |
+
<div class="item-inner bgcolor2-hover font2">
|
189 |
+
<h2 class="product-name">
|
190 |
+
<a class="fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>">
|
191 |
+
<?php
|
192 |
+
if(strlen($_helper->productAttribute($_product, $_product->getName(), 'name')) > 15){
|
193 |
+
echo substr($_helper->productAttribute($_product, $_product->getName(), 'name'), 0, 15) .' ...';
|
194 |
+
}else{
|
195 |
+
echo $_helper->productAttribute($_product, $_product->getName(), 'name');
|
196 |
+
}
|
197 |
+
|
198 |
+
?>
|
199 |
+
</a>
|
200 |
+
|
201 |
+
</h2>
|
202 |
+
<div class="item-box">
|
203 |
+
<?php
|
204 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
205 |
+
echo "<span class='newproduct-grid'>new</span>";
|
206 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
207 |
+
}
|
208 |
+
if ($specialprice){
|
209 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
210 |
+
}
|
211 |
+
?>
|
212 |
+
<div class="product-image">
|
213 |
+
<a class="" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" ><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(200,135); ?>" width="200" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
214 |
+
<div class="item-box-hover ">
|
215 |
+
<a class="readmore fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><i class="icon-plus-circle"></i><span class="bgmask"></span></a>
|
216 |
+
<?php //if($_product->getRatingSummary()): ?>
|
217 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short', true) ?>
|
218 |
+
<?php //endif; ?>
|
219 |
+
<div class="actions">
|
220 |
+
<ul class="add-to-links">
|
221 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
222 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
223 |
+
<?php endif; ?>
|
224 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
225 |
+
<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
226 |
+
<?php endif; ?>
|
227 |
+
</ul>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
</div>
|
231 |
+
<?php //echo $this->getPriceHtml($_product, true) ?>
|
232 |
+
</div>
|
233 |
+
<div class="item-box-footer">
|
234 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
235 |
+
<?php if($_product->isSaleable()): ?>
|
236 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart bgcolor fontcolor" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span class="icon-plus"><?php echo $this->__('Add to Cart') ?></span></span></a>
|
237 |
+
<?php else: ?>
|
238 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
239 |
+
<?php endif; ?>
|
240 |
+
</div>
|
241 |
+
<span class="inner-border border-hover"></span>
|
242 |
+
</div>
|
243 |
+
</div>
|
244 |
+
</div>
|
245 |
+
<?php // if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
246 |
+
<?php if ($i==$_collectionSize): ?>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
<?php endif ?>
|
250 |
+
<?php endforeach ?>
|
251 |
+
<?php /*
|
252 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
253 |
+
*/ ?>
|
254 |
+
<?php endif; ?>
|
255 |
+
</div>
|
256 |
+
<?php /*
|
257 |
+
<div class="pagination">
|
258 |
+
<?php
|
259 |
+
/// if(!$block_show_pagination = Mage::registry('block_show_pagination')){
|
260 |
+
$block_show_pagination = Mage::registry('block_show_pagination');
|
261 |
+
echo $block_show_pagination->getPagerHtml();
|
262 |
+
// }
|
263 |
+
?>
|
264 |
+
</div>
|
265 |
+
*/ ?>
|
266 |
+
<div class="toolbar-bottom">
|
267 |
+
<?php echo $this->getToolbarHtml() ?>
|
268 |
+
</div>
|
269 |
+
|
270 |
+
</div>
|
271 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/smartaddons/basicproducts/mega-products.phtml
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_productCollection = $this->getLoadedProductCollection();
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$imgWidth = $this->product_image_width;
|
5 |
+
$imgHeight = $this->product_image_height;
|
6 |
+
if ($imgWidth <= 0 || $imgHeight <= 0){
|
7 |
+
$this->product_image_disp = false;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="category-products">
|
12 |
+
<?php if ($this->title){ ?>
|
13 |
+
<?php
|
14 |
+
//$arr_word = $this->title ? explode(' ',$this->title) : "";
|
15 |
+
//$join_word = array_shift($arr_word).' <span>'.implode(' ',$arr_word).'</span>';
|
16 |
+
?>
|
17 |
+
<div class="block-title"><strong><?php //echo $join_word; ?><?php echo $this->title ?></strong></div>
|
18 |
+
<?php } ?>
|
19 |
+
<div class="yt-products-container">
|
20 |
+
<?php
|
21 |
+
if(!$_productCollection->count()){ ?>
|
22 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
23 |
+
<?php
|
24 |
+
}else{
|
25 |
+
$row = 0;
|
26 |
+
$col= 0;
|
27 |
+
$count = 1;
|
28 |
+
$i=0;
|
29 |
+
$_collectionSize = $_productCollection->count();
|
30 |
+
foreach($_productCollection as $_product){
|
31 |
+
$now = date("Y-m-d");
|
32 |
+
$newsFrom= substr($_product->getData('news_from_date'),0,10);
|
33 |
+
$newsTo= substr($_product->getData('news_to_date'),0,10);
|
34 |
+
$specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
|
35 |
+
|
36 |
+
?>
|
37 |
+
<?php if ($i++==0){ ?>
|
38 |
+
<div class="products-grid">
|
39 |
+
<div class="row products">
|
40 |
+
<?php } ?>
|
41 |
+
<div class="span2d4" data-normal="span4" data-tablet="span4" data-stablet="span6">
|
42 |
+
<div class="item <?php echo ( ($count == $_productCollection->count()) || ($count%$this->getNumColumns()==0) )?"last":""; ?>">
|
43 |
+
<div class="item-inner <?php /*bgcolor2-hover */ ?>font2">
|
44 |
+
|
45 |
+
<div class="item-box">
|
46 |
+
<?php
|
47 |
+
if ($now>=$newsFrom && $now<=$newsTo){
|
48 |
+
echo "<span class='newproduct-grid'>new</span>";
|
49 |
+
//echo $now.' -- '.$newsFrom.' -- '.$newsTo;
|
50 |
+
}
|
51 |
+
if ($specialprice){
|
52 |
+
echo "<span class='saleoff-grid'>sale off</span>";
|
53 |
+
}
|
54 |
+
?>
|
55 |
+
<div class="product-image">
|
56 |
+
<?php if($_product->getData('sale_item') == '1'): ?>
|
57 |
+
<div class='sale-item'><img src="<?php echo $this->getSkinUrl('images/sale-i.png') ?>" alt=""/> </div>
|
58 |
+
<?php endif; ?>
|
59 |
+
<?php if($_product->getData('new_item') == '1'): ?>
|
60 |
+
<div class='new-item'><img src="<?php echo $this->getSkinUrl('images/new-i.png') ?>" alt=""/></div>
|
61 |
+
<?php endif; ?>
|
62 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-imgs"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(280,186); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
63 |
+
<div class="popup-box">
|
64 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><img src="<?php echo $this->getSkinUrl('images/heart.png') ?>" alt="" /></a></p>
|
65 |
+
<p><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></p>
|
66 |
+
<?php /* <p> <a href="<?php echo Mage::getBaseUrl(); ?>/review/product/list/id/<?php echo $_product->getId(); ?>/#review-form">Add Review</a> </p> */ ?>
|
67 |
+
<p><a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Buy') ?></span></span></a></p>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<?php //echo $this->getPriceHtml($_product, true) ?>
|
71 |
+
</div>
|
72 |
+
<div class="item-box-footer">
|
73 |
+
<h2 class="product-name">
|
74 |
+
<a class="fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>">
|
75 |
+
<?php
|
76 |
+
|
77 |
+
echo $_helper->productAttribute($_product, $_product->getName(), 'name');
|
78 |
+
|
79 |
+
?>
|
80 |
+
</a>
|
81 |
+
</h2>
|
82 |
+
|
83 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
84 |
+
<!-- <a class="readmore fontcolor" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><?php echo $this->__('More Detail') ?></a> -->
|
85 |
+
<div class="desc std" style="color: #909090;margin:0!important">
|
86 |
+
<?php $s_des = $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description'); ?>
|
87 |
+
<?php echo substr($s_des ,0, 50).'...' ; ?>
|
88 |
+
</div>
|
89 |
+
<?php /*
|
90 |
+
<?php if($_product->isSaleable()): ?>
|
91 |
+
<a title="<?php echo $this->__('Add to Cart') ?>" href="<?php echo $this->getAddToCartUrl($_product) ?>" class="btn-cart bgcolor fontcolor" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span class="icon-plus"><?php echo $this->__('Add to Cart') ?></span></span></a>
|
92 |
+
<?php else: ?>
|
93 |
+
<span class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></span>
|
94 |
+
<?php endif; ?>
|
95 |
+
*/ ?>
|
96 |
+
</div>
|
97 |
+
<?php /*<span class="inner-border border-hover"></span>*/ ?>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
<?php // if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
102 |
+
<?php if ($i==$_collectionSize){ ?>
|
103 |
+
</div>
|
104 |
+
</div> <?php /* end div products-grid */ ?>
|
105 |
+
<?php
|
106 |
+
} ?>
|
107 |
+
<?php
|
108 |
+
} ?>
|
109 |
+
<?php
|
110 |
+
} ?>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
|
app/design/frontend/default/sm_glasses_free/template/tag/customer/view.phtml
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('My Tags') ?></h1>
|
29 |
+
</div>
|
30 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
31 |
+
<p class="my-tag-edit">
|
32 |
+
<a href="#" title="<?php echo $this->__('Delete') ?>" onclick="if(confirm('<?php echo $this->__('Are you sure you want to delete this tag?') ?>')) window.location='<?php echo $this->getTagInfo()->getRemoveTagUrl(); ?>'; return false;" class="button btn-remove"><span><?php echo $this->__('Delete') ?></span></a>
|
33 |
+
<?php echo $this->__('<strong>Tag Name:</strong> %s', $this->htmlEscape($this->getTagInfo()->getName())) ?>
|
34 |
+
</p>
|
35 |
+
<div class="clearer"></div>
|
36 |
+
<?php echo $this->getToolbarHtml() ?>
|
37 |
+
<table class="data-table" id="my-tags-table">
|
38 |
+
<?php if( sizeof($this->getMyProducts()) > 0 ): ?>
|
39 |
+
<col width="1" />
|
40 |
+
<col />
|
41 |
+
<col width="1" />
|
42 |
+
<tbody>
|
43 |
+
<?php $iterator = 0 ?>
|
44 |
+
<?php foreach($this->getMyProducts() as $_product): ?>
|
45 |
+
<tr<?php if($iterator % 2 == 0): ?> class="odd"<?php $iterator++;endif; ?>>
|
46 |
+
<td><a href="<?php echo $_product->getProductUrl(); ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(150, 100); ?>" width="150" height="100" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a></td>
|
47 |
+
<td>
|
48 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></h2>
|
49 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
50 |
+
<?php echo $this->getPriceHtml($_product) ?>
|
51 |
+
<?php echo $this->htmlEscape($_product->getDescription()) ?>
|
52 |
+
</td>
|
53 |
+
<td>
|
54 |
+
<?php if($_product->isSaleable()): ?>
|
55 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getUrl('checkout/cart/add',array('product'=>$_product->getId())) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
56 |
+
<?php endif; ?>
|
57 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
58 |
+
<ul class="add-to-links">
|
59 |
+
<li>
|
60 |
+
<a href="<?php echo $this->getUrl('wishlist/index/add',array('product'=>$_product->getId())) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
|
61 |
+
</li>
|
62 |
+
</ul>
|
63 |
+
<?php endif; ?>
|
64 |
+
</td>
|
65 |
+
</tr>
|
66 |
+
<?php endforeach; ?>
|
67 |
+
</tbody>
|
68 |
+
<?php else: ?>
|
69 |
+
<tbody>
|
70 |
+
<tr>
|
71 |
+
<td>
|
72 |
+
<?php echo $this->__("Unable to find any products tagged with '%s' in the current store", $this->htmlEscape($this->getTagInfo()->getName()) ) ?>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
</tbody>
|
76 |
+
<?php endif; ?>
|
77 |
+
</table>
|
78 |
+
<script type="text/javascript">decorateTable('my-tags-table')</script>
|
79 |
+
<?php echo $this->getToolbarHtml() ?>
|
80 |
+
<div class="buttons-set">
|
81 |
+
<p class="back-link"><a href="<?php echo $this->getUrl('*/*/')?>"><small>« </small><?php echo $this->__('Back to Tags List')?></a></p>
|
82 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/tag/popular.phtml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="block block-tags">
|
28 |
+
<div class="block-title">
|
29 |
+
<strong><?php echo $this->__('Popular')?> <span><?php echo $this->__('Tags'); ?></span> <a href="<?php echo $this->getUrl('tag/list') ?>">( <span><?php echo $this->__('more') ?></span> )</a></strong>
|
30 |
+
</div>
|
31 |
+
<div class="block-content">
|
32 |
+
<ul class="tags-list">
|
33 |
+
<?php
|
34 |
+
$i=0;
|
35 |
+
foreach ($this->getTags() as $_tag): ?>
|
36 |
+
<?php if($i==12) break; ?>
|
37 |
+
<li><a href="<?php echo $_tag->getTaggedProductsUrl() ?>" style="font-size:<?php echo ($_tag->getRatio())?$_tag->getRatio()*70+75:rand(0,70)+75;?>%;"><?php echo $this->htmlEscape($_tag->getName()) ?></a></li>
|
38 |
+
<?php $i++; endforeach; ?>
|
39 |
+
</ul>
|
40 |
+
<?php /* <div class="actions"> */ ?>
|
41 |
+
<?php /* <a href="<?php echo $this->getUrl('tag/list') ?>"><span><?php echo $this->__('View All Tags') ?></span></a> */ ?>
|
42 |
+
<?php /* </div> */ ?>
|
43 |
+
</div>
|
44 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/button/share.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php if($this->getWishlist()->getItemsCount()): ?>
|
29 |
+
<button type="submit" name="save_and_share" title="<?php echo $this->__('Share Wishlist') ?>" class="button btn-share"><span><span><?php echo $this->__('Share Wishlist') ?></span></span></button>
|
30 |
+
<?php endif;?>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/button/tocart.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php if($this->getWishlist()->getItemsCount() && $this->getWishlist()->isSalable()): ?>
|
29 |
+
<button type="button" title="<?php echo $this->__('Add All to Cart') ?>" onclick="addAllWItemsToCart()" class="button btn-add"><span><span><?php echo $this->__('Add All to Cart') ?></span></span></button>
|
30 |
+
<?php endif;?>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/button/update.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php if($this->getWishlist()->getItemsCount()): ?>
|
29 |
+
<button type="submit" name="do" title="<?php echo $this->__('Update Wishlist') ?>" class="button btn-update"><span><span><?php echo $this->__('Update Wishlist') ?></span></span></button>
|
30 |
+
<?php endif;?>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/email/items.phtml
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Wishlist_Block_Share_Email_Items */
|
27 |
+
?>
|
28 |
+
<?php $l = $this->getWishlistItemsCount() ?>
|
29 |
+
<div style="border:1px solid #E0E0E0; padding:15px; background:#F9F9F9;">
|
30 |
+
<table cellspacing="0" cellpadding="0" border="0" width="650">
|
31 |
+
<tr>
|
32 |
+
<?php $i = 0; foreach ($this->getWishlistItems() as $item): $i++ ?>
|
33 |
+
<?php /* @var $item Mage_Wishlist_Model_Item */ ?>
|
34 |
+
<?php /* @var $_product Mage_Catalog_Model_Product */ ?>
|
35 |
+
<?php $_product = $item->getProduct(); ?>
|
36 |
+
<td width="32%">
|
37 |
+
<p align="center" style="font-size:12px;"><a href="<?php echo $this->getProductUrl($_product) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" style="border:1px solid #ccc;" width="135" height="135" alt="" /></a></p>
|
38 |
+
<p align="center" style="font-size:12px;"><a href="<?php echo $this->getProductUrl($_product) ?>" style="color:#203548;"><strong><?php echo $this->escapeHtml($_product->getName()) ?></strong></a></p>
|
39 |
+
<?php if($this->hasDescription($item)): ?><p align="center" style="font-size:12px;"><?php echo $this->__('Comment') ?>:<br /><?php echo $this->getEscapedDescription($item) ?></p><?php endif; ?>
|
40 |
+
<p align="center" style="font-size:12px;"><a href="<?php echo $this->getProductUrl($_product) ?>" style="color:#1E7EC8;"><?php echo $this->__('View Product') ?></a> <small>
|
41 |
+
<?php if ($_product->getIsSalable()): ?>|</small> <a href="<?php echo $this->getAddToCartUrl($_product) ?>" style="color:#1E7EC8;"><strong><?php echo $this->__('Add to Cart') ?></strong></a><?php endif;?>
|
42 |
+
</p></td>
|
43 |
+
<?php if ($i%3!=0): ?>
|
44 |
+
<td width="2%"></td>
|
45 |
+
<?php else: ?>
|
46 |
+
</tr>
|
47 |
+
<tr>
|
48 |
+
<td colspan="5"> </td>
|
49 |
+
</tr>
|
50 |
+
<?php if ($i<$l): ?>
|
51 |
+
<tr>
|
52 |
+
<?php endif ?>
|
53 |
+
<?php endif ?>
|
54 |
+
<?php endforeach ?>
|
55 |
+
</table>
|
56 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/email/rss.phtml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<p style="font-size:12px; line-height:16px; margin:0 0 16px;">
|
28 |
+
<?php echo $this->__("RSS link to %s's wishlist",$this->helper('wishlist')->getCustomerName()) ?>
|
29 |
+
<br />
|
30 |
+
<a href="<?php echo $this->helper('wishlist')->getRssUrl($this->getWishlistId()); ?>"><?php echo $this->helper('wishlist')->getRssUrl($this->getWishlistId()); ?></a>
|
31 |
+
</p>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/cart.phtml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/* @var $this Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Cart */
|
28 |
+
/* @var Mage_Wishlist_Model_Item $item */
|
29 |
+
$item = $this->getItem();
|
30 |
+
$product = $item->getProduct();
|
31 |
+
?>
|
32 |
+
<div class="cart-cell">
|
33 |
+
<?php echo $this->getPriceHtml($product);?>
|
34 |
+
<div class="add-to-cart-alt">
|
35 |
+
<?php if ($item->canHaveQty() && $item->getProduct()->isVisibleInSiteVisibility()): ?>
|
36 |
+
<input type="text" class="input-text qty validate-not-negative-number" name="qty[<?php echo $item->getId() ?>]" value="<?php echo $this->getAddToCartQty($item) * 1 ?>" />
|
37 |
+
<?php endif; ?>
|
38 |
+
<?php if ($product->isSaleable()): ?>
|
39 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" onclick="addWItemToCart(<?php echo $item->getId()?>);" class="button btn-cart"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
40 |
+
<?php else: ?>
|
41 |
+
<?php if ($product->getIsSalable()): ?>
|
42 |
+
<p class="availability in-stock"><span><?php echo $this->__('In stock') ?></span></p>
|
43 |
+
<?php else: ?>
|
44 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
45 |
+
<?php endif; ?>
|
46 |
+
<?php endif; ?>
|
47 |
+
</div>
|
48 |
+
<?php foreach($this->getSortedChildren() as $childName):?>
|
49 |
+
<?php echo $this->getChildHtml($childName, false);?>
|
50 |
+
<?php endforeach;?>
|
51 |
+
<?php if ($product->isVisibleInSiteVisibility()): ?>
|
52 |
+
<p><a class="link-edit" href="<?php echo $this->getItemConfigureUrl($item) ?>"><?php echo $this->__('Edit') ?></a></p>
|
53 |
+
<?php endif ?>
|
54 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/image.phtml
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/* @var Mage_Wishlist_Model_Item $item */
|
28 |
+
$item = $this->getItem();
|
29 |
+
$product = $item->getProduct();
|
30 |
+
?>
|
31 |
+
<a class="product-image" href="<?php echo $this->getProductUrl($item) ?>" title="<?php echo $this->escapeHtml($product->getName()) ?>">
|
32 |
+
<img src="<?php echo $this->helper('catalog/image')->init($product, 'small_image')->resize(150, 100); ?>" width="150" height="100" alt="<?php echo $this->escapeHtml($product->getName()) ?>" />
|
33 |
+
</a>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/info.phtml
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/* @var Mage_Wishlist_Model_Item $item */
|
28 |
+
$item = $this->getItem();
|
29 |
+
$product = $item->getProduct();
|
30 |
+
?>
|
31 |
+
<h3 class="product-name"><a href="<?php echo $this->getProductUrl($item) ?>" title="<?php echo $this->escapeHtml($product->getName()) ?>"><?php echo $this->escapeHtml($product->getName()) ?></a></h3>
|
32 |
+
<div class="description std"><div class="inner"><?php echo $this->escapeHtml($this->stripTags($product->getShortDescription()));?></div></div>
|
33 |
+
<textarea name="description[<?php echo $item->getWishlistItemId() ?>]" rows="3" cols="5" onfocus="focusComment(this)" onblur="focusComment(this)" title="<?php echo $this->__('Comment') ?>"><?php echo $this->__("Please, enter your comments..."); ?></textarea>
|
34 |
+
<?php if($this->getSortedChildren()): ?>
|
35 |
+
<div class="item-manage">
|
36 |
+
<?php foreach($this->getSortedChildren() as $childName):?>
|
37 |
+
<?php echo $this->getChildHtml($childName, false);?>
|
38 |
+
<?php endforeach;?>
|
39 |
+
</div>
|
40 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/item/column/remove.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
?>
|
28 |
+
<a href="<?php echo $this->getItemRemoveUrl($this->getItem()); ?>" onclick="return confirmRemoveWishlistItem();" title="<?php echo $this->__('Remove Item') ?>"
|
29 |
+
class="btn-remove btn-remove2"><?php echo $this->__('Remove item');?></a>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/item/configure/addto.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php $_wishlistItem = $this->getWishlistItem(); ?>
|
29 |
+
<?php $_wishlistSubmitUrl = $this->helper('wishlist')->getUpdateUrl($_wishlistItem); ?>
|
30 |
+
<ul class="add-to-links">
|
31 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
32 |
+
<li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, this.href); return false;" class="link-compare"><?php echo $this->__('Update Wishlist') ?></a></li>
|
33 |
+
<?php endif; ?>
|
34 |
+
<?php $_product = $this->getProduct(); ?>
|
35 |
+
<?php $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product); ?>
|
36 |
+
<?php if ($_compareUrl) : ?>
|
37 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
38 |
+
<?php endif; ?>
|
39 |
+
</ul>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/item/list.phtml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$columns = $this->getColumns();
|
29 |
+
?>
|
30 |
+
<table class="data-table" id="wishlist-table">
|
31 |
+
<thead>
|
32 |
+
<tr>
|
33 |
+
<?php foreach ($columns as $column): ?>
|
34 |
+
<th><?php echo $column->getTitle();?></th>
|
35 |
+
<?php endforeach; ?>
|
36 |
+
</tr>
|
37 |
+
</thead>
|
38 |
+
<tbody>
|
39 |
+
<?php if (count($this->getItems())): ?>
|
40 |
+
<?php foreach ($this->getItems() as $item): ?>
|
41 |
+
<?php
|
42 |
+
$count_input_qty++;
|
43 |
+
$item->setCid($count_input_qty); ?>
|
44 |
+
<tr id="item_<?php echo $item->getId();?>">
|
45 |
+
<?php foreach ($columns as $column): ?>
|
46 |
+
<td><?php $column->setItem($item); echo $column->toHtml($item);?></td>
|
47 |
+
<?php endforeach; ?>
|
48 |
+
</tr>
|
49 |
+
<?php endforeach ?>
|
50 |
+
<?php else: ?>
|
51 |
+
<td colspan="<?php echo count($columns);?>" class="wishlist-empty"><?php echo $this->__('This Wishlist has no Items');?></td>
|
52 |
+
<?php endif; ?>
|
53 |
+
</tbody>
|
54 |
+
</table>
|
55 |
+
<?php foreach ($columns as $column): ?>
|
56 |
+
<?php echo $column->getAdditionalHtml();?>
|
57 |
+
<?php endforeach; ?>
|
58 |
+
<script type="text/javascript">
|
59 |
+
//<![CDATA[
|
60 |
+
decorateTable('wishlist-table');
|
61 |
+
|
62 |
+
<?php foreach ($columns as $column): ?>
|
63 |
+
<?php echo $column->getJs();?>
|
64 |
+
<?php endforeach; ?>
|
65 |
+
//]]>
|
66 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/options_list.phtml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Wishlist_Block_Customer_Wishlist_Item_Options */
|
27 |
+
?>
|
28 |
+
|
29 |
+
<?php $options = $this->getOptionList(); ?>
|
30 |
+
<?php if ($options): ?>
|
31 |
+
<div class="truncated">
|
32 |
+
<div class="truncated_full_value">
|
33 |
+
<div class="item-options">
|
34 |
+
<p><?php echo $this->__('Options Details'); ?></p>
|
35 |
+
<dl>
|
36 |
+
<?php foreach ($options as $option): ?>
|
37 |
+
<dt><?php echo $this->escapeHtml($option['label']) ?></dt>
|
38 |
+
<dd>
|
39 |
+
<?php if (is_array($option['value'])): ?>
|
40 |
+
<?php echo nl2br(implode("\n", $option['value'])) ?>
|
41 |
+
<?php else: ?>
|
42 |
+
<?php echo $option['value'] ?>
|
43 |
+
<?php endif; ?>
|
44 |
+
</dd>
|
45 |
+
<?php endforeach; ?>
|
46 |
+
</dl>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<a href="#" onclick="return false;" class="details"><?php echo $this->__('View Details') ?></a>
|
50 |
+
</div>
|
51 |
+
<?php endif ?>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/render/item/price.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Wishlist_Block_Customer_Wishlist_Render_Item_Price */
|
27 |
+
?>
|
28 |
+
|
29 |
+
<?php echo $this->getCleanProductPriceHtml(); ?>
|
30 |
+
|
31 |
+
<?php /* @var $product Mage_Catalog_Model_Product */ ?>
|
32 |
+
<?php $product = $this->getProduct(); ?>
|
33 |
+
<?php $finalPrice = $product->getFinalPrice(1); ?>
|
34 |
+
<?php if ($product->canConfigure()): ?>
|
35 |
+
<p class="configured-price">
|
36 |
+
<span class="price-label"><?php echo Mage::helper('wishlist')->__('Configured Price:') ?></span>
|
37 |
+
<span class="price"><?php echo Mage::helper('core')->currency($finalPrice, true, false); ?></span>
|
38 |
+
</p>
|
39 |
+
<?php endif; ?>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/render/item/price_msrp_item.phtml
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php
|
29 |
+
/**
|
30 |
+
* Template for displaying product price at product view page, gift registry and wishlist
|
31 |
+
*
|
32 |
+
* @var $this Mage_Catalog_Block_Product_Price
|
33 |
+
*/
|
34 |
+
?>
|
35 |
+
<?php
|
36 |
+
/** @var $_coreHelper Mage_Core_Helper_Data */
|
37 |
+
$_coreHelper = $this->helper('core');
|
38 |
+
/** @var $_catalogHelper Mage_Catalog_Helper_Data */
|
39 |
+
$_catalogHelper = $this->helper('catalog');
|
40 |
+
|
41 |
+
/** @var $_product Mage_Catalog_Model_Product */
|
42 |
+
$_product = $this->getProduct();
|
43 |
+
$_id = $_product->getId();
|
44 |
+
$_msrpPrice = '';
|
45 |
+
?>
|
46 |
+
<div class="price-box map-info">
|
47 |
+
<?php $_price = $this->helper('tax')->getPrice($_product, $_product->getMsrp()) ?>
|
48 |
+
<?php if($_product->getMsrp()): ?>
|
49 |
+
<?php $_msrpPrice = $_coreHelper->currency($_product->getMsrp(),true,true) ?>
|
50 |
+
<span class="old-price" ><?php echo $_msrpPrice ?></span>
|
51 |
+
<?php endif; ?>
|
52 |
+
|
53 |
+
<?php if ($_catalogHelper->isShowPriceOnGesture($_product)): ?>
|
54 |
+
<?php $priceElementId = 'product-price-' . $_id . $this->getIdSuffix(); ?>
|
55 |
+
<span id="<?php echo $priceElementId ?>" style="display:none"></span>
|
56 |
+
<?php $popupId = 'msrp-popup-' . $_id . $_coreHelper->getRandomString(20); ?>
|
57 |
+
<a href="#" id="<?php echo($popupId);?>"><?php echo $this->__('Click for price'); ?></a>
|
58 |
+
<script type="text/javascript">
|
59 |
+
Event.observe(window, 'load', function() {
|
60 |
+
var priceElement = $("<?php echo $priceElementId ?>"),
|
61 |
+
realPrice = <?php echo $this->getRealPriceJs($_product) ?>,
|
62 |
+
priceHtml = realPrice.stripScripts();
|
63 |
+
|
64 |
+
priceElement.innerHTML = priceHtml;
|
65 |
+
realPrice.evalScripts();
|
66 |
+
var originalOptionPriceReload;
|
67 |
+
if (typeof(optionsPrice) != 'undefined' && optionsPrice && optionsPrice.reload) {
|
68 |
+
originalOptionPriceReload = optionsPrice.reload;
|
69 |
+
Product.OptionsPrice.prototype.reload = function() {
|
70 |
+
if (originalOptionPriceReload) {
|
71 |
+
originalOptionPriceReload.call(this);
|
72 |
+
}
|
73 |
+
if ($('<?php echo $popupId ?>') == Catalog.Map.active) {
|
74 |
+
Element.update(
|
75 |
+
$('map-popup-price'),
|
76 |
+
$("<?php echo $priceElementId ?>").innerHTML
|
77 |
+
);
|
78 |
+
}
|
79 |
+
}
|
80 |
+
}
|
81 |
+
});
|
82 |
+
|
83 |
+
Catalog.Map.addHelpLink(
|
84 |
+
$('<?php echo $popupId ?>'),
|
85 |
+
"<?php echo $_product->getName() ?>",
|
86 |
+
$("<?php echo $priceElementId ?>"),
|
87 |
+
'<?php echo $_msrpPrice ?>',
|
88 |
+
"<?php echo $_product->isSalable() ? $_product->getAddToCartUrl() : '' ?>"
|
89 |
+
);
|
90 |
+
</script>
|
91 |
+
<?php else: ?>
|
92 |
+
<span class="msrp-price-hide-message">
|
93 |
+
<?php echo $_catalogHelper->getMsrpPriceMessage($_product) ?>
|
94 |
+
</span>
|
95 |
+
<?php endif; ?>
|
96 |
+
|
97 |
+
<?php $helpLinkId = 'msrp-help-' . $_id . $_coreHelper->getRandomString(20); ?>
|
98 |
+
<a href="#" id="<?php echo($helpLinkId);?>"><?php echo $this->__("What's this?"); ?></a>
|
99 |
+
<script type="text/javascript">
|
100 |
+
Catalog.Map.addHelpLink(
|
101 |
+
$('<?php echo $helpLinkId ?>'),
|
102 |
+
"<?php echo $this->__("What's this?"); ?>"
|
103 |
+
);
|
104 |
+
</script>
|
105 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/render/item/price_msrp_rss.phtml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for displaying wishlist item price at rss feeds pages
|
30 |
+
*
|
31 |
+
* @var $this Mage_Catalog_Block_Product_Price
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<div class="price-box map-info">
|
35 |
+
<?php if ($this->helper('catalog')->canApplyMsrp($this->getProduct())): ?>
|
36 |
+
<a href="<?php echo $this->getProduct()->getProductUrl() ?>"><?php echo $this->__('Click for price'); ?></a>
|
37 |
+
<?php endif; ?>
|
38 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/shared.phtml
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Wishlist_Block_Share_Wishlist */
|
27 |
+
?>
|
28 |
+
<div class="my-wishlist">
|
29 |
+
<div class="page-title">
|
30 |
+
<h1><?php echo $this->htmlEscape($this->getHeader()) ?></h1>
|
31 |
+
</div>
|
32 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
33 |
+
<?php if ($this->hasWishlistItems()): ?>
|
34 |
+
<form action="<?php echo $this->getUrl('*/*/update') ?>" method="post">
|
35 |
+
<fieldset>
|
36 |
+
<table class="data-table" id="wishlist-table">
|
37 |
+
<col width="1" />
|
38 |
+
<col />
|
39 |
+
<col width="1" />
|
40 |
+
<thead>
|
41 |
+
<tr>
|
42 |
+
<th><?php echo $this->__('Product') ?></th>
|
43 |
+
<th><?php echo $this->__('Comment') ?></th>
|
44 |
+
<th> </th>
|
45 |
+
</tr>
|
46 |
+
</thead>
|
47 |
+
<tbody>
|
48 |
+
<?php foreach($this->getWishlistItems() as $item): ?>
|
49 |
+
<?php
|
50 |
+
$product = $item->getProduct();
|
51 |
+
$isVisibleProduct = $product->isVisibleInSiteVisibility();
|
52 |
+
?>
|
53 |
+
<tr>
|
54 |
+
<td>
|
55 |
+
<a class="product-image" href="<?php echo $this->getProductUrl($item) ?>" title="<?php echo $this->escapeHtml($product->getName()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($product, 'small_image')->resize(113, 113); ?>" width="113" height="113" alt="<?php echo $this->escapeHtml($product->getName()) ?>" /></a>
|
56 |
+
<h2 class="product-name"><a href="<?php echo $this->getProductUrl($item) ?>"><?php echo $this->escapeHtml($product->getName()) ?></a></h2>
|
57 |
+
<?php echo $this->getPriceHtml($product) ?>
|
58 |
+
<?php echo $this->getDetailsHtml($item) ?>
|
59 |
+
</td>
|
60 |
+
<td><?php echo $this->getEscapedDescription($item) ?></td>
|
61 |
+
<td class="a-center">
|
62 |
+
<?php if ($product->isSaleable()): ?>
|
63 |
+
<?php if ($isVisibleProduct): ?>
|
64 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" onclick="setLocation('<?php echo $this->getSharedItemAddToCartUrl($item) ?>')" class="button btn-cart"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
65 |
+
<?php endif ?>
|
66 |
+
<?php endif; ?>
|
67 |
+
<p><a href="<?php echo $this->getAddToWishlistUrl($item) ?>" onclick="setLocation(this.href); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></p>
|
68 |
+
</td>
|
69 |
+
</tr>
|
70 |
+
<?php endforeach ?>
|
71 |
+
</tbody>
|
72 |
+
</table>
|
73 |
+
<script type="text/javascript">decorateTable('wishlist-table');</script>
|
74 |
+
</fieldset>
|
75 |
+
<div class="buttons-set">
|
76 |
+
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
77 |
+
<?php if($this->isSaleable()):?>
|
78 |
+
<button type="button" title="<?php echo $this->__('Add All to Cart') ?>" onclick="setLocation('<?php echo $this->getUrl('*/*/allcart', array('_current'=>true)) ?>')" class="button"><span><span><?php echo $this->__('Add All to Cart') ?></span></span></button>
|
79 |
+
<?php endif;?>
|
80 |
+
</div>
|
81 |
+
</form>
|
82 |
+
<?php else: ?>
|
83 |
+
<p><?php echo $this->__('Wishlist is empty now.') ?></p>
|
84 |
+
<?php endif ?>
|
85 |
+
</div>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/sharing.phtml
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('Share Your Wishlist') ?></h1>
|
29 |
+
</div>
|
30 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
31 |
+
<form action="<?php echo $this->getSendUrl() ?>" id="form-validate" method="post">
|
32 |
+
<div class="fieldset">
|
33 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
34 |
+
<h2 class="legend"><?php echo $this->__('Sharing Information') ?></h2>
|
35 |
+
<ul class="form-list">
|
36 |
+
<li class="wide">
|
37 |
+
<label for="email_address" class="required"><em>*</em><?php echo $this->__('Email addresses, separated by commas') ?></label>
|
38 |
+
<div class="input-box">
|
39 |
+
<textarea name="emails" cols="60" rows="5" id="email_address" class="validate-emails required-entry"><?php echo $this->getEnteredData('emails') ?></textarea>
|
40 |
+
</div>
|
41 |
+
</li>
|
42 |
+
<li class="wide">
|
43 |
+
<label for="message"><?php echo $this->__('Message') ?></label>
|
44 |
+
<div class="input-box">
|
45 |
+
<textarea id="message" name="message" cols="60" rows="5"><?php echo $this->getEnteredData('message') ?></textarea>
|
46 |
+
</div>
|
47 |
+
</li>
|
48 |
+
<?php if($this->helper('wishlist')->isRssAllow()): ?>
|
49 |
+
<li class="control">
|
50 |
+
<div class="input-box">
|
51 |
+
<input type="checkbox" name="rss_url" id="rss_url" value="1" title="<?php echo $this->__('Check this checkbox if you want to add a link to an rss feed to your wishlist.') ?>" class="checkbox" />
|
52 |
+
</div>
|
53 |
+
<label for="rss_url"><?php echo $this->__('Check this checkbox if you want to add a link to an rss feed to your wishlist.') ?></label>
|
54 |
+
</li>
|
55 |
+
<?php endif; ?>
|
56 |
+
</ul>
|
57 |
+
</div>
|
58 |
+
<div class="buttons-set form-buttons">
|
59 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
60 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl(); ?>"><small>« </small><?php echo $this->__('Back')?></a></p>
|
61 |
+
<button type="submit" title="<?php echo $this->__('Share Wishlist') ?>" class="button"><span><span><?php echo $this->__('Share Wishlist') ?></span></span></button>
|
62 |
+
</div>
|
63 |
+
</form>
|
64 |
+
<script type="text/javascript">
|
65 |
+
//<![CDATA[
|
66 |
+
Validation.addAllThese([
|
67 |
+
['validate-emails', '<?php echo $this->__('Please enter a valid email addresses, separated by commas. For example johndoe@domain.com, johnsmith@domain.com.') ?>', function (v) {
|
68 |
+
if(Validation.get('IsEmpty').test(v)) {
|
69 |
+
return true;
|
70 |
+
}
|
71 |
+
|
72 |
+
var valid_regexp = /^[a-z0-9\._-]{1,30}@([a-z0-9_-]{1,30}\.){1,5}[a-z]{2,4}$/i;
|
73 |
+
var emails = v.split(',');
|
74 |
+
|
75 |
+
for (var i=0; i<emails.length; i++) {
|
76 |
+
if(!valid_regexp.test(emails[i].strip())) {
|
77 |
+
return false;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
return true;
|
82 |
+
}]
|
83 |
+
]);
|
84 |
+
var dataForm = new VarienForm('form-validate', true);
|
85 |
+
//]]>
|
86 |
+
</script>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/sidebar.phtml
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Wishlist_Block_Customer_Sidebar */
|
27 |
+
?>
|
28 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
29 |
+
<div class="block block-wishlist">
|
30 |
+
<div class="block-title">
|
31 |
+
<strong><span><?php echo $this->getTitle(); ?></span></strong>
|
32 |
+
</div>
|
33 |
+
<div class="block-content">
|
34 |
+
<p class="block-subtitle"><?php echo $this->__('Last Added Items') ?></p>
|
35 |
+
<?php if ($this->hasWishlistItems()): ?>
|
36 |
+
<ol class="mini-products-list" id="wishlist-sidebar">
|
37 |
+
<?php foreach ($this->getWishlistItems() as $_item): ?>
|
38 |
+
<?php $product = $_item->getProduct(); ?>
|
39 |
+
<li class="item">
|
40 |
+
<?php if(1==0){?>
|
41 |
+
<a href="<?php echo $this->getProductUrl($_item) ?>" title="<?php echo $this->escapeHtml($product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($product, 'thumbnail')->resize(50); ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($product->getName()) ?>" /></a>
|
42 |
+
<?php } ?>
|
43 |
+
<div class="product-details">
|
44 |
+
<a href="<?php echo $this->getItemRemoveUrl($_item) ?>" title="<?php echo $this->__('Remove This Item') ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the wishlist?') ?>');" class="btn-remove fontcolor"><?php //echo $this->__('Remove This Item') ?></a>
|
45 |
+
<p class="product-name"><a title="<?php echo $this->escapeHtml($product->getName()) ?>" href="<?php echo $this->getProductUrl($_item) ?>">
|
46 |
+
<?php
|
47 |
+
if(strlen($this->escapeHtml($product->getName()))>=22){
|
48 |
+
echo substr($this->escapeHtml($product->getName()), 0, 22).'...';
|
49 |
+
}else{
|
50 |
+
echo $this->escapeHtml($product->getName()) ;
|
51 |
+
}
|
52 |
+
?>
|
53 |
+
</a></p>
|
54 |
+
<?php echo $this->getPriceHtml($product, false, '-wishlist') ?>
|
55 |
+
<?php if ($product->isSaleable() && $product->isVisibleInSiteVisibility()): ?>
|
56 |
+
<a href="<?php echo $this->getItemAddToCartUrl($_item) ?>" class="link-cart button">
|
57 |
+
<span><span>
|
58 |
+
<?php echo $this->__('Add to Cart') ?>
|
59 |
+
</span></span>
|
60 |
+
</a>
|
61 |
+
<?php endif; ?>
|
62 |
+
</div>
|
63 |
+
</li>
|
64 |
+
<?php endforeach; ?>
|
65 |
+
</ol>
|
66 |
+
<script type="text/javascript">decorateList('wishlist-sidebar');</script>
|
67 |
+
<div class="actions">
|
68 |
+
<a href="<?php echo $this->helper('wishlist')->getListUrl() ?>"><?php echo $this->__('Go to Wishlist') ?></a>
|
69 |
+
</div>
|
70 |
+
<?php else: ?>
|
71 |
+
<p class="empty"><?php echo $this->__('You have no items in your wishlist.') ?></p>
|
72 |
+
<?php endif ?>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
<?php endif ?>
|
app/design/frontend/default/sm_glasses_free/template/wishlist/view.phtml
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
/* @var $this Mage_Wishlist_Block_Customer_Wishlist */
|
27 |
+
?>
|
28 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
29 |
+
<div class="my-wishlist">
|
30 |
+
<div class="page-title title-buttons">
|
31 |
+
<?php if ($this->helper('wishlist')->isRssAllow() && $this->hasWishlistItems()): ?>
|
32 |
+
<a href="<?php echo $this->helper('wishlist')->getRssUrl($this->getWishlistInstance()->getId()); ?>" class="link-rss"><?php echo $this->__('RSS Feed') ?></a>
|
33 |
+
<?php endif; ?>
|
34 |
+
<h1><?php echo $this->getTitle(); ?></h1>
|
35 |
+
</div>
|
36 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
37 |
+
|
38 |
+
<form id="wishlist-view-form" action="<?php echo $this->getUrl('*/*/update', array('wishlist_id' => $this->getWishlistInstance()->getId())) ?>" method="post">
|
39 |
+
<?php echo $this->getChildHtml('top'); ?>
|
40 |
+
<fieldset>
|
41 |
+
<?php if ($this->hasWishlistItems()): ?>
|
42 |
+
<?php echo $this->getBlockHtml('formkey');?>
|
43 |
+
<?php $this->getChild('items')->setItems($this->getWishlistItems()); ?>
|
44 |
+
<?php echo $this->getChildHtml('items');?>
|
45 |
+
<script type="text/javascript">decorateTable('wishlist-table')</script>
|
46 |
+
<?php else: ?>
|
47 |
+
<p class="wishlist-empty"><?php echo $this->__('You have no items in your wishlist.') ?></p>
|
48 |
+
<?php endif ?>
|
49 |
+
<div class="buttons-set buttons-set2">
|
50 |
+
<?php echo $this->getChild('control_buttons')->toHtml();?>
|
51 |
+
</div>
|
52 |
+
</fieldset>
|
53 |
+
</form>
|
54 |
+
|
55 |
+
<script type="text/javascript">
|
56 |
+
//<![CDATA[
|
57 |
+
var wishlistForm = new Validation($('wishlist-view-form'));
|
58 |
+
function addAllWItemsToCart() {
|
59 |
+
var url = '<?php echo $this->getUrl('*/*/allcart', array('wishlist_id' => $this->getWishlistInstance()->getId())) ?>';
|
60 |
+
var separator = (url.indexOf('?') >= 0) ? '&' : '?';
|
61 |
+
$$('#wishlist-view-form .qty').each(
|
62 |
+
function (input, index) {
|
63 |
+
url += separator + input.name + '=' + encodeURIComponent(input.value);
|
64 |
+
separator = '&';
|
65 |
+
}
|
66 |
+
);
|
67 |
+
setLocation(url);
|
68 |
+
}
|
69 |
+
//]]>
|
70 |
+
</script>
|
71 |
+
</div>
|
72 |
+
<?php echo $this->getChildHtml('bottom'); ?>
|
73 |
+
<div class="buttons-set">
|
74 |
+
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
75 |
+
</div>
|
76 |
+
<?php endif ?>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>sm_glasses_free</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GNU General Public License (GPL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>sm_glasses_free</summary>
|
10 |
+
<description>sm_glasses_free</description>
|
11 |
+
<notes>Version 1.0.0</notes>
|
12 |
+
<authors><author><name>magentech.com</name><user>smartaddons</user><email>contact@ytcvn.com</email></author></authors>
|
13 |
+
<date>2013-05-08</date>
|
14 |
+
<time>10:16:43</time>
|
15 |
+
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="sm_glasses_free"><dir name="layout"><file name="catalog.xml" hash="326232b236a972545adc1d8e118c9ec8"/><file name="catalogsearch.xml" hash="91c34d22ea4b5ddb094641f8faed7d7c"/><file name="checkout.xml" hash="0be67d289245e5624dfaa8646c333ed7"/><file name="contacts.xml" hash="bd8ce2cbe61c9f84262f35d3f1bf41a3"/><file name="customer.xml" hash="da80541d5fc18addaf175e74de86e5eb"/><file name="developertoolbar.xml" hash="673bde35709ecd737be50c601d11d99e"/><file name="directory.xml" hash="ce45af810f6df3e5cd6b041b779c12a5"/><file name="newsletter.xml" hash="f259546c1498ac54c2416ea86eb8c841"/><file name="page.xml" hash="228ce8d12867280001763a23c093befb"/><file name="paypal.xml" hash="4d8bc811312564f5ba65c7bef7c079bf"/><file name="poll.xml" hash="11161304ff5377ec20c1b341196a0bb9"/><file name="reports.xml" hash="9f13df289cca907e6ce6f1b9e30ebedc"/><file name="review.xml" hash="42346948791aa1df2a9b1c4f947c3500"/><dir name="smartaddons"><file name="basicproducts.xml" hash="14809abb8daa972034fd3241a204c1cb"/></dir><file name="tag.xml" hash="fc8f52657c964e09a6ff9aa1843e1e0c"/><file name="wishlist.xml" hash="6c8b90d54596394e4c400d7c684d65e4"/></dir><dir name="template"><dir name="catalog"><dir name="category"><file name="view.phtml" hash="ae8c3bd991b032a27cc10e201a2e2d75"/></dir><dir name="layer"><file name="filter.phtml" hash="6767d4bac5d1dbe4a8f92c920fefcd6e"/><file name="state.phtml" hash="1d53246b896cb563ecc6ba103a058735"/><file name="view.phtml" hash="5a04acd58b72a71d23998ca12b6df738"/></dir><dir name="navigation"><file name="mobinav.phtml" hash="5b402056c09e0650bc15c7f8c9f72ba7"/><file name="sidenav.phtml" hash="f7bec2acb738cd990263b68ab4269300"/><file name="top.phtml" hash="c76ef21dbdd4eaf57fcbe7fa490bf26c"/><file name="tops.phtml" hash="2ed40b1f36263c13f8b22f0694fd89a9"/></dir><dir name="product"><file name="bestseller.phtml" hash="bbac78042bae77870ea6042cef8e9f63"/><dir name="compare"><file name="sidebar.phtml" hash="3e443371062fedcbe6b77a2bfc1f5ac3"/></dir><file name="feature.phtml" hash="9895631830fbc9afc47334ce45859017"/><dir name="list"><file name="related.phtml" hash="7a7ab7eb95922df4e5637276d03c7421"/><file name="toolbar.phtml" hash="8c480b0dc7817555bfaf8b562ee0deae"/><file name="upsell.phtml" hash="9d2544d2e86141c539a6580e3d3d0bd5"/></dir><file name="list.phtml" hash="d84e06e98cf0f1c4fe9a35cfb46ebeed"/><file name="price.phtml" hash="9c69e8821f3a66465b6a3dc668ab96f1"/><dir name="view"><file name="additional.phtml" hash="a3f170d20473d9cd208d7ac9945bd6ca"/><file name="addtocart.phtml" hash="ee13c0a039f4a805c8d14f267b30689f"/><file name="attributes.phtml" hash="26e36ff5b1ba0b525de356ab93abd55b"/><file name="media.phtml" hash="10b3bc609ef03845199ea96b26af7a17"/><dir name="options"><dir name="wrapper"><file name="bottom.phtml" hash="e458b44f8bc2a6bb94af2c4d009ef4ac"/></dir><file name="wrapper.phtml" hash="e7505372aa4d571ce6e04b4c15bca60e"/></dir><dir name="type"><file name="default.phtml" hash="dd5d4b8859956d79ec7d42522b4f42a8"/></dir></dir><file name="view.phtml" hash="ee9a6f9e4e7b9f78130791642ed4fe42"/></dir></dir><dir name="catalogsearch"><file name="form.mini.phtml" hash="05d39514be90580170680582cc4bc575"/></dir><dir name="checkout"><dir name="cart"><file name="coupon.phtml" hash="cf4f46a74b25d9b5732859ec9b198692"/><file name="crosssell.phtml" hash="560ba35a10a871df11596a4752156092"/><dir name="item"><dir name="configure"><file name="updatecart.phtml" hash="34ddde3d13d4307ae9df605aebb74c0e"/></dir><file name="default.phtml" hash="7ffa8851e69269dffe1d0473568457bc"/></dir><file name="noItems.phtml" hash="85dd62d3046bf22ec8eb3e45989c6f0b"/><dir name="render"><file name="default.phtml" hash="51e2aea1c10d6db04d9b6ee880476c1a"/><file name="simple.phtml" hash="dc0f40db32a1b349ec3037f700cced7f"/></dir><file name="shipping.phtml" hash="a495f5acc9e7e871607e810f758b0724"/><dir name="sidebar"><file name="default.phtml" hash="d8d8512caf658ee83f38df19718c92a3"/></dir><file name="sidebar.phtml" hash="d45b2d9ed13c52abb324e43525b47e54"/><file name="totals.phtml" hash="c942cacb712272bccd142bc1217d479a"/></dir><file name="cart.phtml" hash="9a6be6c7e2358d3fdfd06503201a429b"/><dir name="multishipping"><dir name="address"><file name="select.phtml" hash="ab791c9b73074ae657deb56d7512c4e5"/></dir><file name="addresses.phtml" hash="35b220a8a8facbf7c458ada90f9b7dd7"/><file name="agreements.phtml" hash="26fd8740318e401add70128eaef68713"/><dir name="billing"><file name="items.phtml" hash="01e23f2f062fde7e38f14ccbd9feb526"/></dir><file name="billing.phtml" hash="dab59ccf7a0aff5e0070e8d0db892523"/><dir name="item"><file name="default.phtml" hash="d2c489f8f9ff090a9ce981d839703484"/></dir><file name="link.phtml" hash="1d52dee73ca493a7a4a89cecb28af3c9"/><dir name="overview"><file name="item.phtml" hash="3e0c7b57157458f5cb9b66f8c0ef778a"/></dir><file name="overview.phtml" hash="db9c1332c9c3bd86226554ba5d20ac88"/><file name="shipping.phtml" hash="97cbb043a3e59133743a5f843d805bc8"/><file name="state.phtml" hash="2160e6489d9a3dd42e613f2e0a185025"/><file name="success.phtml" hash="73503e4ac5789769f25ef35e34d5354f"/></dir><dir name="onepage"><file name="agreements.phtml" hash="15dbb2fb7c979e65b7abd9c7aa7cfbca"/><file name="billing.phtml" hash="82ead3fe6a2e73947eb6d2d7aa31c031"/><file name="failure.phtml" hash="715a874b056c0f5f80fb8eddda247170"/><file name="link.phtml" hash="b3f6bfdd6d75ee71b43ad9e948118888"/><file name="login.phtml" hash="0ba508df7d4921348b776b0f962d9894"/><dir name="payment"><file name="methods.phtml" hash="b3fac3fec44bec7f7feaa6c1118391d2"/></dir><file name="payment.phtml" hash="4b2283a884b0a3a7b1bb374cf3a01417"/><file name="progress.phtml" hash="b28bdb8987d261f7cb9b9e99592c7505"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="02af6242925c9d28f2fe5f4518e5a677"/><file name="item.phtml" hash="c53b269b2ea75656a3fd954aff903af9"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="652b5fce417cb50a0158dd5d49f64778"/><file name="shipping.phtml" hash="9e787acc3888ff1620ab295af3ab9078"/><dir name="shipping_method"><file name="additional.phtml" hash="e13cd269e9feb9f0be1c10005bc19801"/><file name="available.phtml" hash="cd1e4a35c2aa344945f3cf2075122393"/></dir><file name="shipping_method.phtml" hash="f912002c2cf6872a0d9bdc689b80163d"/></dir><file name="onepage.phtml" hash="0039fbf105fe77431be0de4cb71dae51"/><file name="success.phtml" hash="008a40eebcb4d7d2fbfc10987da0d17a"/><dir name="total"><file name="default.phtml" hash="f1010ec3fd3dcb503d81f7e8d3ebb206"/><file name="nominal.phtml" hash="8df39c86e037a915d082fa61da9bb1c8"/><file name="tax.phtml" hash="7fe5f21f35b2cb2b0642ddf418917405"/></dir></dir><dir name="contacts"><file name="form-footer.phtml" hash="ac7a64691e99adfa749936d9a63e4c10"/><file name="form.phtml" hash="661a1439637dd5e1a06ceceb9b8327af"/></dir><dir name="customer"><dir name="account"><file name="navigation.phtml" hash="8b727fecf8eecf0667f0653011f08f65"/></dir><dir name="form"><file name="forgotpassword.phtml" hash="9287367830e42f59515c4c46c37b3863"/><file name="mini.login.phtml" hash="0dae83976f66eaff0949ad1544939f30"/></dir></dir><dir name="developertoolbar"><file name="toolbar.phtml" hash="8d29d3d587c46a027522af5aed0514c2"/></dir><dir name="directory"><file name="currency.phtml" hash="965ceeb8a12f02b9e9fc20a66bccf758"/></dir><dir name="newsletter"><file name="subscribe-footer.phtml" hash="eec87725dff4ad646c4b79aee0c94284"/><file name="subscribe.phtml" hash="7f6311673bd7a2b1a63a3f9a9b2ae58d"/></dir><dir name="page"><file name="1column.phtml" hash="88cd46cdc86a7dda581f4f307f2217cf"/><file name="2columns-left.phtml" hash="d7436967ed84ea267d85307d351bfa07"/><file name="2columns-right.phtml" hash="44e1ec7d1c24c26bff8767255656916a"/><file name="3columns.phtml" hash="d5c5917abc560327c3cbdbe2a0235091"/><file name="dashboard.phtml" hash="33182dd66a6a1fe1d329fc2d1d6aa1fe"/><dir name="html"><file name="backtotop.phtml" hash="7489551ccff4f8fe5a89849977486ac7"/><file name="before_footer.phtml" hash="2d305038a770206244d98cac264129c1"/><file name="breadcrumbs.phtml" hash="8938d6cb6ac6aaf5c82138f905ce2fa8"/><file name="footer.phtml" hash="72ea6224cbc7e9e3912a3428ee296b99"/><file name="head.phtml" hash="27eb727398074c15ca115ebd179786a2"/><file name="header.phtml" hash="f7e65d790c84e8c280c7571879602352"/><file name="new_cpanel.phtml" hash="a01eac46e8328a425904353602ca0f9a"/><file name="pager.phtml" hash="c707282ead30380b5a56ab0896ad4358"/><file name="tool.links.phtml" hash="50b3b524a87997c8476c90b82dd52174"/><file name="top.links.phtml" hash="2a0d2259b33c08ca1a043306414372e7"/><file name="wrapper.phtml" hash="f97076c03600233f82db1bd3d7b92906"/></dir><file name="one-column.phtml" hash="2c587fe5e5d4bdf4838565f9b16432c6"/><file name="print.phtml" hash="75c193575b05805971888af8dc54a8a9"/><file name="redirect.phtml" hash="d1171dd29391077d91e18e291d8f46ac"/><dir name="smartaddons"><dir name="includes"><file name="browser.php" hash="aa3457ae76bab00726bb9d2ff7d5672f"/><file name="mobile_device_detect.php" hash="1c2bc50f3533829b490c4465e1885fe4"/><file name="yt_theme.class.php" hash="c2b3af6ad5b6016340c49c9a4f5836a9"/></dir><file name="yt_config_inc.php" hash="5aa29413050b25136ffbb6c42399b17a"/><file name="yt_prepar.php" hash="c2a123249166edf87bd637b0e4d97880"/></dir><dir name="switch"><file name="flags.phtml" hash="750a9ae34ace610acd5ef47cf257eda4"/><file name="languages.phtml" hash="07c1e18fde0e2877e779559c5bff6864"/><file name="stores.phtml" hash="c93647090a0dd0b55c6d4eeccca1048f"/></dir><dir name="template"><file name="container.phtml" hash="3adc7ab205fd10627e33f3962e069c22"/><file name="links.phtml" hash="9057dc29128cc0769d79c59fd55e321e"/></dir></dir><dir name="persistent"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="4777001edc771b44e954502d71065010"/><file name="login.phtml" hash="6754b7fe2be397b3743966eeb7a10275"/></dir></dir><dir name="customer"><dir name="form"><file name="login.phtml" hash="e41dc96c30ffbd7c7a017d4764a13ae2"/><file name="register.phtml" hash="f945aad99d156057944f7a8042888e83"/></dir></dir><file name="remember_me.phtml" hash="49971d7037f260ea813dda47c602d816"/><file name="remember_me_tooltip.phtml" hash="7f1904fa70e1cb1f7f41a70887e913dc"/></dir><dir name="poll"><file name="active.phtml" hash="221b665174316a5e388ffcf0961c2716"/><file name="result.phtml" hash="6fa31d8172d53b53d2214b160048d0b5"/></dir><dir name="reports"><file name="home_product_compared.phtml" hash="da4bd834b7403046f21731b91a32c433"/><file name="home_product_viewed.phtml" hash="539160dbd855cf9d75e1a8ab0687d0fa"/><file name="product_compared.phtml" hash="28ed4671aec9d730dcae91f2ffe3e0c8"/><file name="product_viewed.phtml" hash="e7722533ad545283715b44059b56c7a8"/><dir name="widget"><dir name="compared"><dir name="column"><file name="compared_default_list.phtml" hash="49c115fbf9c0b7ab577ec2f769fc9c66"/><file name="compared_images_list.phtml" hash="f495da64e8403fc39ae5cef5536fd799"/><file name="compared_names_list.phtml" hash="06d95bb36fdb1dc71488d41ab53da12f"/></dir><dir name="content"><file name="compared_grid.phtml" hash="fd91fd41f99841c062fa61f4f2488f9a"/><file name="compared_list.phtml" hash="63e1d17df47234ee896469e4d3c009e6"/></dir></dir><dir name="viewed"><dir name="column"><file name="viewed_default_list.phtml" hash="d8c556f26075c6bd37b7f4dcfaebf727"/><file name="viewed_images_list.phtml" hash="65e4f71aa7107de9eb66a7c078903429"/><file name="viewed_names_list.phtml" hash="b1c80805ae43fad28a910cdd1b7d3ef1"/></dir><dir name="content"><file name="viewed_grid.phtml" hash="d7867e726774a3fdec66d662ee05d4ab"/><file name="viewed_list.phtml" hash="c1898eb1c4310bb6a26d3cc48b8923ef"/></dir></dir></dir></dir><dir name="review"><file name="form.phtml" hash="c75b4d66eae5d8115684e75f7b6690fa"/><dir name="helper"><file name="summary.phtml" hash="9e42dc4e132007787f82bd4a2c20e76e"/></dir></dir><dir name="sales"><dir name="reorder"><file name="sidebar.phtml" hash="302cc11d399688ac6e9824b290e4477b"/></dir></dir><dir name="smartaddons"><dir name="basicproducts"><file name="bestseller.phtml" hash="8777617a49a89aa2fb2ffc05925f648b"/><file name="feature.phtml" hash="6df4a6a394f36b4ad2c8dcf7ecc29a1d"/><file name="for-menu.phtml" hash="1fbf43a6e0ba19deec6782e1a8525f20"/><file name="for-menu2.phtml" hash="be894e1442f4cbe09e486c1a221457f6"/><file name="home.phtml" hash="568da4a6f263c9d06a6579cd2e647242"/><file name="home.phtml_" hash="6699fa091719cc3a00d8c166974a1873"/><file name="home2.phtml" hash="da7cd966458b2bc74c2e220f0136e847"/><file name="list.phtml" hash="ac4acea099f56c4884c9812ee42df8d1"/><file name="mega-products.phtml" hash="18fc55173b0a304bc0097ad6db6d036a"/></dir></dir><dir name="tag"><dir name="customer"><file name="view.phtml" hash="70a51582b69aa921b900e4a776dd6bef"/></dir><file name="popular.phtml" hash="aaf9a4528897b02ab6b1a7e515e77ff0"/></dir><dir name="wishlist"><dir name="button"><file name="share.phtml" hash="bf67012b25d9078cc1bdc3a971e0fa42"/><file name="tocart.phtml" hash="4ed121b0d0ddc27ec8341f9b43b55ea4"/><file name="update.phtml" hash="db71a11edc6569aa3157928f8a8f5e5f"/></dir><dir name="email"><file name="items.phtml" hash="dfd15c562df1ad10a03c7d9f445b8ec2"/><file name="rss.phtml" hash="0093593ffc7f73507afe9dce8a94d04b"/></dir><dir name="item"><dir name="column"><file name="cart.phtml" hash="30b31a6ba6d568f25a828410104f7d6e"/><file name="image.phtml" hash="ce2455fb7e07addf3d644f9cf57a165f"/><file name="info.phtml" hash="42792a07960c2753eebf51856467e03a"/><file name="remove.phtml" hash="54328860de6dc52fb2e4dea2142d4a8b"/></dir><dir name="configure"><file name="addto.phtml" hash="9897e62a637904f305ca2fb1803bbf2c"/></dir><file name="list.phtml" hash="3804721db7a33b649fdec583e87a8d07"/></dir><file name="options_list.phtml" hash="e7444188a84136672d79b8130e533971"/><dir name="render"><dir name="item"><file name="price.phtml" hash="b42da15a8aa285317900d0c5cbc78e97"/><file name="price_msrp_item.phtml" hash="2b6303fd121b88763e2bb52ae19e9de4"/><file name="price_msrp_rss.phtml" hash="1e19860fbaf7a0e228ba41b5e7997312"/></dir></dir><file name="shared.phtml" hash="49eeb9d575c91815124c1d7c73845909"/><file name="sharing.phtml" hash="1981bc96ac9fb3a2ba87e13d1cda7451"/><file name="sidebar.phtml" hash="ba9f20075b5bd6f2a5ae90a6614e5f2d"/><file name="view.phtml" hash="ae07051b2ce4111c186797d8be062720"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="sm_glasses_free"><dir name="bootstrap"><dir name="css"><file name="bootstrap-responsive.css" hash="034fa29d420e7a5de345fa9743a6e0dc"/><file name="bootstrap.css" hash="09edba7da4e565c18c4ff71f74696dbe"/><file name="bootstrap.min.css" hash="3482d0250615efd767811affdae13478"/></dir><dir name="img"><file name="glyphicons-halflings-white.png" hash="9bbc6e9602998a385c2ea13df56470fd"/><file name="glyphicons-halflings.png" hash="2516339970d710819585f90773aebe0a"/></dir><dir name="js"><file name="bootstrap.js" hash="c37968e682cc0dd043799ed029f018f7"/><file name="bootstrap.min.js" hash="2b5027918a32f806ce202a2ad6ce707f"/></dir></dir><dir name="css"><file name="addons.css" hash="fdabcd5591f4e97c545d8442adba2a63"/><file name="animate.css" hash="d3e83044857111cd36a706cd387cf4f1"/><file name="ar-h.png" hash="e6384b2195466ee6afb9d8825ba340c2"/><file name="ar.png" hash="4bb411f1843c0518037d2fc1bb00c031"/><file name="chrome.css" hash="e817b74136b24f9b80079a2a850c1a74"/><file name="cloudzoom.css" hash="3047e567644675973c60acd1f7e29ce7"/><file name="colorbox.css" hash="466c283dfeb36f7e07e4ba4717da43c5"/><dir name="colors"><file name="yellow.css" hash="95ed7c0bf69a411151c94e087d18b7f1"/></dir><file name="css3.css" hash="9d1d2adafed31cbb86c1d4c9d3bf7ab6"/><file name="demo.html" hash="82898ae6bfc1dc7ea99de3cc59e73252"/><dir name="device"><file name="device-mobile-port.css" hash="8372e962e7deafc16c417758b2f2ffa4"/><file name="device-mobile.css" hash="e9dd42dbbaeebb31c133041bd4911843"/><file name="device-normal.css" hash="34836f78239dda1e49d7e363987e4c8e"/><file name="device-tablet.css" hash="b318d9510b2c1cf0e48f1cbf2d3ec3e5"/><file name="device-wide.css" hash="f46ad796116e9ff1a785ac6ebbd25b96"/></dir><file name="docs.css" hash="62d92c01e6e8d8a72bfea05df0a5bcc8"/><dir name="font"><file name="archivonarrow-regular-webfont.eot" hash="74f2a13bcacc793d817e0abdf788e9d8"/><file name="archivonarrow-regular-webfont.svg" hash="cbd02b60f2a68359041efdba4fd027ec"/><file name="archivonarrow-regular-webfont.ttf" hash="589f116c0764c9d6acd79c754c4892f4"/><file name="archivonarrow-regular-webfont.woff" hash="47a6eb4d3184801aef7e359a40d249c3"/><file name="fontello.eot" hash="5698ccc47e215a8618179ce8378f9e2c"/><file name="fontello.svg" hash="63ae788ab6d43745d089e31dc36924f8"/><file name="fontello.ttf" hash="1e2d2dcf03e6d6d33fbfc28ea936a2ec"/><file name="fontello.woff" hash="787594069cc6926140d010b7cc8c7a0d"/><file name="utm_bitsumishi_pro-webfont.eot" hash="a714f05e02a7b964afb601b4c32234f8"/><file name="utm_bitsumishi_pro-webfont.svg" hash="0b3a785b4b3d0fcba8e47ba27379f199"/><file name="utm_bitsumishi_pro-webfont.ttf" hash="b544b4b7912e21f5ecb3af526ffff013"/><file name="utm_bitsumishi_pro-webfont.woff" hash="1918ea135c9dfe07064815fbb8a04af6"/><file name="utm_french_vanilla-webfont.eot" hash="c65363a4918996cd95e1f60af6481e44"/><file name="utm_french_vanilla-webfont.svg" hash="81d9be9fb0865035173be8cd4e309915"/><file name="utm_french_vanilla-webfont.ttf" hash="19e70665a8dad1790cdf69bfdc4330d2"/><file name="utm_french_vanilla-webfont.woff" hash="7d3cfd3d09bc53d7b857175e16045f9d"/></dir><file name="fontello-ie7.css" hash="bca579ec4f3af2e80cdc6046f32643cd"/><file name="fontello.css" hash="470dbb5c8f2b21bd91cb74c37b146610"/><file name="ie.css" hash="eddbcfb9b95066739ec27c157acb3c0b"/><file name="ie8.css" hash="69743abd7ce5ed677a5ef5b49d64916c"/><file name="layout.css" hash="ff2a81142ac148f3d9046ac4695979ec"/><file name="menu.css" hash="9a5d561e65b0179dcce13ae55af7c3d4"/><file name="opera.css" hash="2b5d0e0fc046bf5d070d1a957457b9f5"/><file name="print.css" hash="0b36eb68d4eae296d068962086e015b8"/><file name="theme.css" hash="534ed28f0a0fc9b8cf0e729e832d02c4"/><file name="widgets.css" hash="1f875fe3c07add29a65c31409b1ec5b0"/><file name="ytc-bootstrap-responsive.css" hash="16ec1aa2fc70e969837e200e5352df26"/></dir><dir name="images"><file name="_bkg_rating_list.png" hash="38f8b8529db6edc96480022733bd462b"/><file name="accordion-minus-plus.png" hash="c2cf672b6d2ee45dc499595d7cb8c753"/><file name="accordion-minus-plus2.png" hash="3d7eaf53c494e1c40bda1f329fb439ed"/><file name="account.png" hash="081d2599793c153752a9cbc095839555"/><file name="acti.png" hash="8f7c7068b75f28b39d58867827e27efc"/><file name="add-icon.gif" hash="87c09118ac648e80526906851382098e"/><file name="add-to-links-bg.png" hash="3642278c824a07e216ec748e3a1887bc"/><file name="add_icon.gif" hash="bbaf08c42335e1cc586b55393f8adf10"/><file name="addcart-h.png" hash="d7bd7c91cbaf7b72850ee3817e02a5df"/><file name="addcart.png" hash="07928b9a362fd33e64e5eec36be47911"/><file name="address-contact.png" hash="69760bba6c0c1b550e0e95ec8da5542b"/><file name="addtag-h.png" hash="2f653784d10b13b1af7cf22ef63a7d8f"/><file name="addtag.png" hash="956fa6a367eb7dd54c9780e94574e8ed"/><file name="ar-h.png" hash="e6384b2195466ee6afb9d8825ba340c2"/><file name="ar.png" hash="4bb411f1843c0518037d2fc1bb00c031"/><file name="arrow-01.gif" hash="9faf2e2f0c6b373f6a6975e422665e35"/><file name="arrow-cat-active.gif" hash="d1e66c21f6c705f886e16c611855243a"/><file name="arrow-cat-hover.gif" hash="fed27dc6c258b327bbadc2f99bbf02ef"/><file name="arrow-cat.gif" hash="51534f972acc028cff1542cb931e21c6"/><file name="arrow-down-01-over.gif" hash="e897e478f863228b3bf0164b39147699"/><file name="arrow-down-01.gif" hash="68927fdac3e41735e6c6ffc48c637ed1"/><file name="arrow-down-02.gif" hash="aeb5fd829d1f3a7b2fdf2d731bfbf468"/><file name="arrow-ltr-hover.png" hash="4752ad0cbb7da2f664d0c91bc10c26c4"/><file name="arrow-ltr.png" hash="514ed52104353a930e95f309801a58e4"/><file name="arrow-readon.png" hash="f997248a260bff6ac36d26cd15368b12"/><file name="arrow-tag.png" hash="e2419b6c7431dbeb03469e0538363755"/><file name="arrow-up.gif" hash="a4ee18e0cb0dfa4c068aa19e1f777f30"/><file name="arrow.gif" hash="062600b3648c7942d794dad8ac27495d"/><file name="arrow_d1.gif" hash="8367ca14aeb7c6543d9ddc54fe6fc219"/><file name="arrow_sub_menu.png" hash="543e127dfb672e9a3e36e5f37eaf1d99"/><file name="badge-best.png" hash="f9a747389dccac1e434594b33e97da36"/><file name="badge-feature.png" hash="25a12360f4254405b1f6303b3d36bdba"/><file name="badge-new.png" hash="6a25886efc20325af8fc7e4c3244ef52"/><file name="badge-sales.png" hash="db7ca68029134cf033f847d1921bed00"/><file name="ball.png" hash="d4f2a4c577e3c44f75fdd2c69074e51e"/><file name="bg-01.png" hash="7a4562ebf9a147ea1b28dcf0fa02e358"/><file name="bg-arrow-circle-h.png" hash="960210415936370a4b414f83b77baebd"/><file name="bg-arrow-circle.png" hash="f9cf201baa8d8f52a26b70925c3d352a"/><file name="bg-blur.png" hash="f06f859b2090b101bfe86765bd80753c"/><file name="bg-border.png" hash="60f291a0133ae07eb2854f09a0d22793"/><file name="bg-btn-readmore-hover.png" hash="2ad8c39951069554f363b5efe1b915da"/><file name="bg-btn-readmore.png" hash="2ad8c39951069554f363b5efe1b915da"/><file name="bg-button.png" hash="f6efbc3b9a03519328f4113d4098f14b"/><file name="bg-dashed.png" hash="cc5c01a0bb2a3a6953c144bad562ca3f"/><file name="bg-gradient.png" hash="ed3aaeab8d6ae439bff2e9d0cb8cb93d"/><file name="bg-header-top.png" hash="4b2dc4d214e1f46539c9b0f6632249cf"/><file name="bg-li-item.png" hash="24c25ab52f94800fcbfd22fd45365a7c"/><file name="bg-line-vertical.png" hash="191eaedcafde3fbec704c94067c1ec9c"/><file name="bg-list.png" hash="d5d9932564bbf4a98ab53347a1e3bc27"/><file name="bg-main.jpg" hash="18f6793130f6d11ad833066209b94a93"/><file name="bg-main.png" hash="62b5dd9ae88138dcfdea058990ad7844"/><file name="bg-pattern.png" hash="4e0107f23cd2f383423995b487fb37a8"/><file name="bg-pattern1-hover.png" hash="2b778a582d721848beee573a8349e598"/><file name="bg-pattern1.png" hash="12cbc3c0ab9f2e583c200d4208ae59c8"/><file name="bg-quicksearch.png" hash="d42d94326a8be6db2522c614c3324fbc"/><file name="bg-submenu.png" hash="004e7d73c76e42f876c2a4f278287ad4"/><file name="bg-tabview.png" hash="3c411fdf1b442fec26434fb18a7854c5"/><file name="bg-task.png" hash="caab0d59c6f8fb00c967c1e286c7381e"/><file name="bg-titlebar.png" hash="17dd4ef54127555dbe5598ad2f191b50"/><file name="bg-toptabview.png" hash="d43ec0c8e48d4b6df5046da618d15b02"/><file name="bg-white.png" hash="477af32e7c58d62aebb37226a9ef97f7"/><file name="bg.jpg" hash="60e46c12d972fd21dac7694438f1420f"/><file name="bg_bottom.png" hash="9e3a04363d39d6f65689a86c4ac6755d"/><file name="bg_menu.png" hash="ea7f2014c2a4aa1bde3523d644d4a4b4"/><file name="bg_na-h.png" hash="3891b336d9f910e20651fc241d362587"/><file name="bg_na.png" hash="7d1c4a34813b5115def0ef554d944015"/><file name="bg_product_item.png" hash="ce348f04d529807dee4e3c69ec0bcf0b"/><file name="bg_sidebar_item.png" hash="f7903af26148ef68840c3fb1f766db0c"/><file name="bg_slid.png" hash="886ce6aa0e9259e85bc5fbf9fd43b866"/><file name="bg_title_block.png" hash="909729e04db0e8fc0a6c8610f0b74379"/><file name="bkg_item_menu.gif" hash="2200a1d8513ad5ca706938d7974c7658"/><file name="bkg_nav.gif" hash="cad7af6d09bf1dd2e827ff6b2704f21e"/><file name="bkg_rating-.png" hash="fd1e29c30c3fbfa0f62dea38fe54aa9f"/><file name="bkg_rating.png" hash="5e3da600c09e846130508a1f39db15c3"/><file name="bkg_rating_list.png" hash="a682408239460ef0ea44697f02e429ab"/><file name="bkg_search-home.png" hash="6983eecd3b89330499e5a13a5882b3ae"/><file name="bkg_search.png" hash="bcaf2eeb157c482ba58dfa78a93cef55"/><file name="bkg_search_form.png" hash="8c30b26fb028055ee29180c56a10e138"/><file name="bkg_sub_item.png" hash="12cbc3c0ab9f2e583c200d4208ae59c8"/><file name="bkg_subscribe.gif" hash="624f461c9a9f5050e303dd953c2262fa"/><file name="block-tit-bg.gif" hash="7a98d07df971b54d3088173e5d23edc2"/><file name="block-tit-cart-bg.gif" hash="d3a64bbfa67c4c1182df31d249f1eb9e"/><file name="block-title-bg.png" hash="dbe13e739d8087573dbf8e525b15d35b"/><file name="block-topsl-bg.png" hash="26bf139ccd0591a5fc28ec5a752dc40c"/><file name="border-bg.gif" hash="987f0cec37b1dde4a33e79be8f243736"/><file name="border.gif" hash="09164bf67d8f33d64a094e5418713812"/><file name="box-hover.png" hash="4827977af4aa584e1fd015a00b55eb76"/><file name="breadcrumbs-bg.gif" hash="b34714646d93cdcb849af5ba26c1ec97"/><file name="breadcrumbs-sep.png" hash="d81aea144d980eb62baa4242f05ca295"/><file name="breadcrums-seperator.png" hash="d2fc4c8e9959d3bee0fa6d4a7c31f95c"/><file name="btn-active-bg.gif" hash="ea561cb1999026a2f87c40ca467ceecf"/><file name="btn-bg-white.gif" hash="dfacef455380c577efe20221465209b5"/><file name="btn-bg.gif" hash="d35ac72806bcdbd19f6966107df67f0d"/><file name="btn-inner-bg-white.gif" hash="04ecefd2b8326e88a0958464d79cd17a"/><file name="btn-inner-bg.gif" hash="47a70f2ab43abbe7023533c7a3f56ff8"/><file name="btn-next-prev.png" hash="16f60dd5dc622cf43e76c5b29547e381"/><file name="btn01-active-bg.gif" hash="0d5977fa6b586aa4c65e919ebf8a331f"/><file name="btn01-bg.gif" hash="73665cc84617a93e0e74a2642d576c16"/><file name="btn_edit.gif" hash="61e2415cf96777f817ffd966692cf401"/><file name="btn_edit.png" hash="5203bd7d4d442564eb7c0b9ce8c12880"/><file name="btn_remove.png" hash="d6bbe849dce28df04ac04f6dbe33de87"/><file name="bullet-up-down.png" hash="42a5eaf08dad1fdbf012e62aae94d638"/><file name="bullet1-active.png" hash="72b2931c484a1f6f9030e6af68557fde"/><file name="bullet1-hover.png" hash="22fc399dfe03ba41fd07273f796ebaa5"/><file name="bullet1.png" hash="c9fa25495ad3032bb26f2ba7a65eebba"/><file name="bullet2-active.png" hash="a6d3294720b59e6b16cf386e57c0928a"/><file name="bullet_plus.gif" hash="75c3e3c9cbe5acd592f934e74516506c"/><file name="checkout.png" hash="8cdd5875b90fe188f54fe4e3d1955d07"/><file name="col-bg.gif" hash="0bcc6ff46d2e627f41d7f99a268296be"/><file name="connect-bg-l.png" hash="9fbdea8d8ba3455613e4bf51a188de8c"/><file name="connect-bg-m.png" hash="edc73fa5dd97f8b5fced0ea697e85d6e"/><file name="connect-bg-r.png" hash="1fd738f8a65fc3688c4301fc672ebf2e"/><file name="controls.gif" hash="15cb7d7ff0caaa8ac4254120660147d1"/><file name="currency-select-l-bg.png" hash="32189a925b641d03882f75b6c3ff99d2"/><file name="currency-select-r-bg.png" hash="0990148823d05c170002785d7b1edcdd"/><file name="dash.gif" hash="6e67c018678a41084912f0d148b55048"/><file name="dash.png" hash="9aaf10337376dc473c2e7164b50b4bff"/><file name="dashed.gif" hash="680420bde5555f71eb41b9e45923ef0c"/><file name="dbd.png" hash="13564920f5e3255413c153b025782bbf"/><file name="decre-h.png" hash="bc4442da4cca1c5f9a671bcbd0d352e8"/><file name="decre.png" hash="d81e3630404c52e8c703cb7bd4e23587"/><file name="divli.jpg" hash="281bf6c7d6c406f69bdd668a31d22a90"/><file name="dot-2.png" hash="b1b212d9151b610289770b9ed8d27574"/><file name="dot-3.gif" hash="1ea3ef1259812718c25013dcf6dca3a0"/><file name="dot-horizontal.gif" hash="56e754b9fb06c404fdfeee44eea2a3d3"/><file name="dot-vertical.gif" hash="ed280a0ea3cc38f3cbbc747acfbef47d"/><file name="dot-vertical.png" hash="5a47b925f6505adca61f4a5fc993323e"/><file name="dot.png" hash="2b7084e8ba134e675945944a616e9a99"/><file name="dotted-x-title.png" hash="3b85ecc784a78ce0f07b2c87458a72e3"/><file name="dotted-x.png" hash="bdea656b5a8306c39378345f8722f4f0"/><file name="dotted-y-title.png" hash="37df81c7106cde253c394aa175fc90d3"/><file name="dotted-y.png" hash="928bb9091c973cba86efb939150b5e51"/><file name="dotted.png" hash="f4ef5f95533549e5027101767c043864"/><file name="email-contact.png" hash="df74014c76475e494dfe6c625e55d19f"/><file name="f-line.jpg" hash="9a0e81ea42b540c2a9e2e0b690871d8c"/><file name="face.png" hash="3bab3986f6cc383c48a73607bbc83e90"/><file name="footer-bg.png" hash="b1b50eec167f8f3caad3341bfedb4b47"/><dir name="fpattern"><file name="fpattern1.png" hash="d27cf042b925fbae51a9a4d636110c01"/></dir><file name="glass.png" hash="220860708c2e390e0a1d698c33266779"/><file name="grad-01-home.gif" hash="e4692c58c7580af078f25971433ea5c2"/><file name="grad-01.gif" hash="64d28a8ffa613c5969378a37482ab7be"/><file name="grad-01.png" hash="9d441add6ca035c20d02b81dc8a38dec"/><file name="grad-02.gif" hash="5dc55e97b3b540bf4cb29619cf23a72e"/><file name="grad-03.gif" hash="ee76a7810b2f1bda37e01b8d4cba2e9d"/><file name="grad-03.png" hash="5850ede6bffc0a60209f42b519ac63ae"/><file name="grad-04.gif" hash="a2d3c0c993772e4ec187e8167be56e21"/><file name="grad-white.gif" hash="e3923324ab0253f68b9fd2041a144ba3"/><file name="grid-18px-masked.png" hash="cbad2e1df78c6f97c4502358cb185572"/><file name="grid-h.png" hash="ae344f73e893ef12d5f4306b4407d2ac"/><file name="grid.png" hash="c8bcbf48a9283698c8b27161b522d536"/><file name="header-bg.png" hash="dd91e7844fbf235afcc6fedd65091f4e"/><file name="heart.png" hash="1c078ba73ec911dfde0fd3bbc414bad7"/><file name="home-breadcump.png" hash="bab2e786eb178fbf6aa578f30eb2c48b"/><file name="home.png" hash="c9fc059c834d9982b7aa227560f19b42"/><dir name="hpattern"><file name="hpattern1.png" hash="8ae28d2bba5db2c1996ca55cbea55054"/></dir><file name="i-menu-h.png" hash="1d8b552194e00095e2dfcc1fbf39b663"/><file name="i-menu.png" hash="ef372fecb7ace1bf2ad020d41bd975c1"/><file name="i_arrow-top.gif" hash="d229bc342dbf2502a2b315c565942b8c"/><file name="i_asc_arrow.gif" hash="106d1a851b7f368d5912e2f77c73a10d"/><file name="i_asc_arrow.png" hash="09c0967ee3a22188dbfac431bb61afb4"/><file name="i_desc_arrow.gif" hash="2027c63d18d2dda01419b26740973952"/><file name="i_desc_arrow.png" hash="6388a333aad3d64e4c7873264207a227"/><file name="i_pager-next.gif" hash="806fa17d7d8609f99dc7a98c20b452ac"/><file name="i_pager-prev.gif" hash="ab68af5c3cdf301f493613a6edebbd30"/><file name="i_search_criteria.gif" hash="1c97e63f1ef818c2fde093775fb0b1f0"/><file name="i_tier.gif" hash="24287749e019bfdae4770ba1bf606907"/><file name="ico-add-review.png" hash="cfb726246881102e52ad065bc1746252"/><file name="ico-email.png" hash="39be374b1b8590aeee5fbc3d5ac281f3"/><file name="ico-itembox-hover.png" hash="595cc095996e48e2bf6155b58d1899a1"/><file name="ico-plus.png" hash="104d171e9333416963befd0158f1fe2a"/><file name="ico-tick.png" hash="e2c2c7a2a1a16da35a088155a0223e9a"/><file name="icon-arrow-ltr.png" hash="a91377484cb0c93ef166e3dce7a1b6a6"/><file name="icon-block1.gif" hash="d5bee01189314521abf66917d31aae80"/><file name="icon-botsl.gif" hash="164f6964c9f6c7f8cc8506e4cc4737ff"/><file name="icon-cart-btn.png" hash="528ca0c8e347c43f6fe6ba53c42adf34"/><file name="icon-cart.gif" hash="e2233d0e490979bd3255952d83687569"/><file name="icon-cart.png" hash="75a8b3b74ffb5e6029c22311b3c1ebbf"/><file name="icon-follow.png" hash="9cd11e53bacf66ff0d2e170979a82ce3"/><file name="icon-hot.png" hash="31e3dab6adf693896b317bf1b1300c3d"/><file name="icon-plus.png" hash="bab5b4be4350631843e75945828847e3"/><file name="icon-readmore.png" hash="a2231641730ce98b7c984c1595308162"/><dir name="icon_"><file name="email-hover.png" hash="39a01210d520b3d2bb806688f873e728"/><file name="email.png" hash="bdd52da1d74b7d6e3bf954881b5ff897"/><file name="map.jpg" hash="71708ca9e64e1d8e3be37a62c9399bf6"/><file name="master.png" hash="0005237678a19b187df6912456c1ba41"/><file name="phone-hover.png" hash="041e213160c758fec5fa79eed56662ff"/><file name="phone.png" hash="f135368fb29bb5ca26e582901905ba78"/><file name="shipping.png" hash="11d8b2f2bedf302f790f356fe5273716"/><file name="skype-hover.png" hash="d0a3cec2858687ec221fef474e392f0d"/><file name="skype.png" hash="c643c85a58bc9ce06b07c5e0e23c4904"/><file name="visa.png" hash="12b98c676c9f12e0e4c1f35240405970"/></dir><file name="icon_accept.gif" hash="f9f0d2ab840be561d95b1f5ff4f80fc8"/><file name="icon_accept.png" hash="7e4aa85edbac5398009de845e917fceb"/><file name="icon_add_to_compare.gif" hash="5971794b3b0ec16ee8ac03718a90c940"/><file name="icon_asterick.gif" hash="908d44da90de5e54185764d093bbdb77"/><file name="icon_basket.gif" hash="cc19e21f9c89b70cc10354ff588ca8ab"/><file name="icon_bell.gif" hash="8f8cda89ca20ba4a9b2f8c91f73fdff9"/><file name="icon_big_rss.png" hash="6cf70e7c52a3f3d7b833ccadb041a555"/><file name="icon_cart_item_remove.gif" hash="6aebfb294fa1f98ea6d8a53f438c0173"/><file name="icon_clip.gif" hash="4e277173b6372b1a90b0f19e0388ad54"/><file name="icon_comment.gif" hash="cb1e52a4f2b923af821c60578c24503d"/><file name="icon_currency_switcher.gif" hash="6021ec7588ee57fe7557e7b19c9c9c3f"/><file name="icon_daily_poll.gif" hash="e6d430a51ac1bc4456572928d0353fe0"/><file name="icon_feed.gif" hash="b9c21682978f7008d6beea712527b709"/><file name="icon_feed.png" hash="8537f6f88fcff4aac793247143d14e42"/><file name="icon_folder_table.gif" hash="bf006ddb591d8ac95d2e895bf2fdbc8d"/><file name="icon_group.gif" hash="52d778dddbf48b8d04226bee9370a7ef"/><file name="icon_lock.gif" hash="05a873322664a7bb4f60aecacbdce577"/><file name="icon_lorry.gif" hash="91a0d2cc2eb2391f90ec8a75c04b3183"/><file name="icon_ma_info.gif" hash="91259557447ee80eb1110fe0c85cb3b5"/><file name="icon_ma_reviews.gif" hash="859c97695ec396c0b284a0c3c7c416ad"/><file name="icon_ma_tags.gif" hash="1e83e3b0b677c92b3aa8a252268f7b86"/><file name="icon_mini_cart_heading_bg.gif" hash="ce6ec46e00c68bf7f8689e621acde672"/><file name="icon_newspaper.gif" hash="9e5fee06a543742045118a95f2debcb8"/><file name="icon_opc_back.gif" hash="146b6be9d2900b882a99853338b42fb2"/><file name="icon_page_white.gif" hash="704f7d4eccbdf9cabbad7770f18856ff"/><file name="icon_page_white_text.gif" hash="57a04ca584e05e28dc94c7e68f0af62e"/><file name="icon_pathway.gif" hash="bc6400694af36f92ef14aa1c0c1489d4"/><file name="icon_picture.gif" hash="c27a554be8d858650230f2b1f3200075"/><file name="icon_printer.gif" hash="c54222fa4d9d02451b25ce8364a1017f"/><file name="icon_rss.gif" hash="8b906ffcacb44b9d22b8bd3619f0c1e0"/><file name="icon_special_price.gif" hash="8c192cc00b2df327e27e7c72406a1967"/><file name="icon_table.gif" hash="fe8424127ecbe4b0d893bcf6f253dc1a"/><file name="icon_tag_add.gif" hash="a736baa992aa55b6fb71e8742a04dc82"/><file name="icon_tag_green.gif" hash="67d1255c2c3e9ed1a5c845f8d4e4a3ba"/><file name="icon_world.gif" hash="643024bcae5ece554fdbbc041aeb297c"/><file name="incre-h.png" hash="5d4c87ffa71aef8eaa9331c37abd0146"/><file name="incre.png" hash="8fa100a46f783f9354f2f8d9b85a5f2a"/><file name="input-radio.png" hash="d96a3591f8f524107359c4ced4f64cc8"/><file name="instock.png" hash="4378188f53da6ddd36b14447dc2b3f5a"/><file name="item-box-hover.png" hash="23e4e12e286d074c423d1b387bf8902f"/><file name="item-nav-a.png" hash="797bd70cafbc51cae77e94657237632d"/><file name="item-nav-ac.png" hash="797bd70cafbc51cae77e94657237632d"/><file name="item-nav.png" hash="d337cb16a76ee9af676d94e1916ef118"/><file name="item-readmore-hover.png" hash="2ad8c39951069554f363b5efe1b915da"/><file name="items.png" hash="fdeb2d927810569cfb92625f5f91e7f0"/><file name="li-access.png" hash="0f958f8ab1f2e5c4f5b20a0abc8bb9ec"/><file name="li-bullet-hover.png" hash="8451da500df1af53adcc6a811447f403"/><file name="li-bullet.png" hash="9f219c22e2a896216f938a1fed2bc2ce"/><file name="li-infolink.gif" hash="746f4fc5048e536e8605590faef7239b"/><file name="li-item.png" hash="bbe2e011c59f14a2bd11ed7bf240d58a"/><file name="li-sel-list.png" hash="586eff5589f35229171f80c4aae3e535"/><file name="li-submenu.png" hash="4322f43ba2cf04c29da37adea9cd8a8c"/><file name="lik-nactive.png" hash="f85b0083cf1109ad8960ae6736b09813"/><file name="liks-active.png" hash="edbbf0d90ee9c861605e7044e878037c"/><file name="limiter-bg.png" hash="55f09be1b210c726bce64ba29b78dcc4"/><file name="line-ct.jpg" hash="451a231df8a1c633ac4b852312f8924a"/><file name="line-m.png" hash="77064fea2d042b6a7eec2def09efe0b9"/><file name="linkcontact.png" hash="0765da72c2be24c7db2ec0b7c71a4699"/><file name="list-h.png" hash="31f422b2369132f76cae1fad7bbe9725"/><file name="list.png" hash="6be181313d5be0f51e312e22ba1f631d"/><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="7c96a54b079f79d48db5c29c3a538b83"/><file name="log.png" hash="ca6983969b26c0c919508060398e1759"/><file name="login-h.jpg" hash="562cf28c31f09a3395121ce225a37534"/><file name="login.jpg" hash="2617df4a7773668243afc1f6d1ebfd5a"/><file name="login.png" hash="f8e59fed4ee2e213d3dd2900edf246dd"/><file name="logo-arrow-down-black.png" hash="a569cd8bc0bab112773052aa8fc7b4ee"/><file name="logo-arrow-next-white.png" hash="e107f606a341ff4472b6dba60b3e3f9d"/><file name="logo-arrow-prev-white.png" hash="1bfeae8c458c898bcf88418c6d12e945"/><file name="logo-arrow-white.png" hash="e107f606a341ff4472b6dba60b3e3f9d"/><file name="logo-checkbox.png" hash="104d1c9510c6ba84a5488570171b0693"/><file name="logo-f.png" hash="24a49942723eef92b5ccb19d6430122d"/><file name="logo-paging-next.png" hash="19fd808c59c932d1518c0aff97e8fcd0"/><file name="logo-paging-prev.png" hash="d961d902b6ce88c5d7eac86d3ffb951d"/><file name="logo-payment.png" hash="3192b32bbf2521fcb7f54c9a9e166b98"/><file name="logo-social.png" hash="3887516dde71b370863b012ad784f2ec"/><file name="logo-sortby-d.png" hash="da42da42c9e9c25aede080e220329566"/><file name="logo-sortby-i.png" hash="81b573c994e0a2b83f29c3a5569fc5c4"/><file name="mail.png" hash="b1e6e41e5f4d10353c4c84ae1bb03668"/><file name="mainnav-bg.png" hash="88198536be57d17eeffff2a8cb547646"/><file name="menu-item.png" hash="7ba9f296618224d47a7335ac2a1945d9"/><file name="menu-item.png_" hash="2cd17db138fd4b9c81328890cf959733"/><file name="menu-tem.png" hash="be3bb29b30ce2725fef59f07cb6f01e3"/><file name="mobi-contact.png" hash="f3ec4907c96f028122a5e27b9f29df0b"/><file name="module-ct-bg.png" hash="fda34b9cbc09d919d243353c74116ca3"/><file name="msg_error.png" hash="28743c583a9e4e9fd72c06ef9a5ea86b"/><file name="msg_notice (2).png" hash="41aa51c75beeb66a1eb72fe83be9a7a6"/><file name="msg_notice.png" hash="a5099ca501784128a37c77bd62da0317"/><file name="msg_success.png" hash="cd6b75d08fe6c2fb16f7a5e23d689ac7"/><file name="mycart.png" hash="7dc973b292ee87bd005fbc52833839e3"/><file name="nav-bg.png" hash="f9600ba884d485caf1a4f392c73fe7ba"/><file name="nav-over.gif" hash="071d245174844b54709c7dd355ace4e6"/><file name="navigation.gif" hash="96f63dc14b8456470a88dfa01fc9d1fe"/><file name="new-i.png" hash="48ea3ebec779d40afeed31153dec9e5a"/><file name="new.png" hash="87f59e2069152f6c240207e922d7a37c"/><file name="newsletter-btn.gif" hash="bf751cbf79f881f635c0703321345f37"/><file name="newsletter-btn.png" hash="73960a95326cbc155001cc518db271f9"/><file name="newsletter-h.png" hash="0ac1eae1a03b93807d521c544077f2c1"/><file name="newsletter-input.png" hash="c52f1cb49476c4605aa17bf4ea967102"/><file name="newsletter.jpg" hash="9abe0e4116603e07b5424b8a2b27d24d"/><file name="newsletter.png" hash="a5360c8183f86b89a4fcbb5ec60b14fb"/><file name="next-h.png" hash="76715c7877a70d99f22ee9de2a9824af"/><file name="next-slider.png" hash="7acd12bf120847d69438969004882328"/><file name="next.png" hash="d72a8adf696c6ca88774c939704a3032"/><file name="next_prv.png" hash="51ca6f73cefa2a5d47c2e3abb7abaeff"/><file name="nexth-h.png" hash="03b1a287532e41c3ff18a2debb9749b8"/><file name="nexth.png" hash="a781823b5bfb18005c959345148c9362"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="outstock.png" hash="297f3b05ee5288feeaf9d5201f0e7d0b"/><file name="pager-bg.png" hash="2cd69373512ca9ae6d6241de30152bb8"/><file name="pager_arrow_left.gif" hash="ab68af5c3cdf301f493613a6edebbd30"/><file name="pager_arrow_right.gif" hash="574fc051ad24f6c7cc463cfefcee22bb"/><file name="paging-btn-ac.png" hash="2100cea52554c990aab8001cb37ef857"/><file name="paging-btn.png" hash="fd84eeaf15f68d44c5782e760731780b"/><file name="pass.png" hash="e9fd8e5c10b1adf5737b6133fd70b42e"/><file name="pathway-bg.gif" hash="05560934f57c87a4344c2514ac2de1f2"/><dir name="pattern"><file name="pattern1.png" hash="26bde0cd5007e3a185f3b17c5bff7c6d"/></dir><file name="phone.png" hash="079d78b50807880ff6618bc1b6ca75bb"/><file name="pipe.gif" hash="1e37a59bdda2aa01be8e8e54ce741e5a"/><file name="plus.png" hash="a73ee0c086304701eaa2b7f669830675"/><file name="plusd.png" hash="2d9a5b5802c19f991c0387d9271fe856"/><file name="prev-h.png" hash="de876a7b64f15b660598ae67bfc017c8"/><file name="prev-slider.png" hash="82f37b5ee9e05a3265e1a0bf9de2b667"/><file name="prev.png" hash="a0bb5181eadb3915978da3e497c48e22"/><file name="prevh-h.png" hash="bab5d7cc43c72dafcfac406151cc909a"/><file name="prevh.png" hash="270f7fa60ef9241985ce621293f0befe"/><file name="product-name-bg.png" hash="4471548671fcf5e9559d78f019f3a721"/><file name="quantity-controls.png" hash="1c536ec90bd6b593814d3f0d1e7417f8"/><file name="quantity-input.png" hash="f84a97389bbb5380f1d40e8efad84de5"/><file name="quick-access-bg.png" hash="a342c7a0af0eebe566edff514e15f687"/><file name="quicksearch-btn-h.png" hash="e471625d454cd8027bf2ade1d5f2fba8"/><file name="quicksearch-btn.png" hash="c3dbd5b276719eddd8c825bf966cd73b"/><file name="register-h.png" hash="d1c951ca45ce344c43cf605fb3e7d7b6"/><file name="register.png" hash="e86d07597316b075153a05d5bf165bdb"/><file name="review-h.png" hash="5fb5d8fe8a7ef863666094bf3a14a056"/><file name="review.png" hash="5f6ca2fb072185473abd6654a935a8db"/><file name="sale-i.png" hash="616e411fe19cfc11bf8f6666343b282a"/><file name="sale.png" hash="470281f9147698ead2472d34e447f9ca"/><file name="search-btn.png" hash="cd5d561acce90030c379b1311994b2fe"/><file name="select-l-bg.png" hash="1a314bd104c86e82b50bb33f242d54c1"/><file name="select-r-bg.png" hash="e0391368a5a7bb4baf950657710c4747"/><file name="sendmail-h.png" hash="7d03f3ad0819e6bc59d70bb02404d2dc"/><file name="sendmail.png" hash="5bba44fe34fe0be50beb2deceeac8719"/><file name="sep-hline.png" hash="2457fb580843cdde085b9af4d3841510"/><file name="sep-vline.gif" hash="b30b892106c61a73428a5233b5f2a294"/><file name="shoping-cart-bg.png" hash="6627e2f25f3890785f006928185f7822"/><file name="shoping-cart.png" hash="56dccb095980cd09e35a41105180cb1b"/><file name="slideshow-mask.gif" hash="d1bacaa0c5a06761d510cb987e3f5b4f"/><file name="social-line.png" hash="cf71c6fa4a7966f81318c723edc11ebf"/><file name="social.png" hash="c804f6e1414727a3782a01cfebc4af46"/><file name="street.png" hash="c7f034336181cc0e7873f395bc374212"/><file name="tab-bg.gif" hash="a2d3c0c993772e4ec187e8167be56e21"/><file name="tab-product-l.png" hash="a939f96c7bf9b86e673beec2c8cf3375"/><file name="tab-product-r.png" hash="9e457d09301c6cd9cdcb0aa4bec6e8ce"/><file name="tag-input-mobi.png" hash="6f9c57245639fc9c8cfb6a7a6bdae8d6"/><file name="tag-input.png" hash="f534ca29ce8c61f931ac27b06bc5d049"/><file name="tag.png" hash="19e4606ff7553ab3d7282d10a5fa0b62"/><file name="telephone.png" hash="cdab03f7d39286f2cfc78039237288f4"/><file name="title-bg.png" hash="b42b728090ae559458055504a893238f"/><file name="top-arrow.png" hash="94a3f0fda7f0957d6241338667f7c6ec"/><file name="top-footer-bg.png" hash="04ea6a7478fb3058beed12c77f75892b"/><file name="twit.png" hash="d656b1e9584c5fd671a6ad8c89d7b35b"/><file name="un-plus.png" hash="3cb07024c3e957ade5c0d45677aedbf5"/><file name="underline.png" hash="113e5e263fcd60d47e4bf67630f3f3a5"/><file name="up-arrow.png" hash="17e042138ab5751ae55ddd84c0484879"/><file name="updown-arrow.png" hash="52fb1bfe603b263c076c42f884b8b609"/><file name="username.png" hash="9b22aa1e5eed5c8692cbb8f4ebe78e80"/><file name="validation_advice_bg.gif" hash="146b6be9d2900b882a99853338b42fb2"/><file name="ver.png" hash="11acc0be01a9d0192a8bdf703e1e6c8c"/><file name="wishlish-h.png" hash="5c36839ffc5835a79ab8c7b1000289b6"/><file name="wishlish.png" hash="5cbbe7f53c125a3e5bd365c6ebacddad"/><file name="wishlist.png" hash="a17aef0568b90061ac7a8a0a4f61d059"/><file name="wrap-column.jpg" hash="b9758bd87dc8c2916520a2ca35db8875"/><file name="wraptop-bottom-bg.png" hash="808d6ed7fbe283f78ff3ccf2cd0f6eea"/><file name="wraptop-main-bg.png" hash="a342c7a0af0eebe566edff514e15f687"/><dir name="yellow"><file name="account.png" hash="081d2599793c153752a9cbc095839555"/><file name="ball.png" hash="d4f2a4c577e3c44f75fdd2c69074e51e"/><file name="bg-header-top.png" hash="4b2dc4d214e1f46539c9b0f6632249cf"/><file name="bg_na-h.png" hash="3891b336d9f910e20651fc241d362587"/><file name="bg_na.png" hash="7d1c4a34813b5115def0ef554d944015"/><file name="checkout.png" hash="8cdd5875b90fe188f54fe4e3d1955d07"/><file name="dbd.png" hash="13564920f5e3255413c153b025782bbf"/><file name="face.png" hash="3bab3986f6cc383c48a73607bbc83e90"/><file name="grid-h.png" hash="ae344f73e893ef12d5f4306b4407d2ac"/><file name="grid.png" hash="c8bcbf48a9283698c8b27161b522d536"/><file name="input-radio.png" hash="5a713236c46c029bd3bea28aa6e3dc90"/><file name="list-h.png" hash="31f422b2369132f76cae1fad7bbe9725"/><file name="list-icon--.png" hash="84cdfab1e2f7e7df5618d13189e81866"/><file name="list-icon.png" hash="bd7f6b6618d11fc6be617d6896d708c4"/><file name="list.png" hash="6be181313d5be0f51e312e22ba1f631d"/><file name="login-btn.png" hash="2617df4a7773668243afc1f6d1ebfd5a"/><file name="login.png" hash="f8e59fed4ee2e213d3dd2900edf246dd"/><file name="logo-arrow-down.png" hash="9fe561ba4e7636cdf69ba42490cfe9f8"/><file name="logo-arrow-next.png" hash="060d9fd41790bccf265f10c5e8afeab5"/><file name="logo-arrow-prev.png" hash="9b576616d6196e43b82e595174b004b7"/><file name="logo-close.png" hash="43305d24a397a10d4a2680bc8c7c7c5d"/><file name="logo-f.png" hash="07538e05694bba2784dcb91461848deb"/><file name="logo-home.png" hash="8679d381ae7d2080004c6da1133581a6"/><file name="logo-next-prev.png" hash="a28d290f74358bf79663d55cd44232cf"/><file name="logo-readmore.png" hash="c73e1f295d12b8b5ebba80a715213f7a"/><file name="logo-social.png" hash="1089b0d9cc38fac51d282fb308d37005"/><file name="logo-sortby.png" hash="e1866fdb09d7e60c4aeaf171e80e8d40"/><file name="mycart.png" hash="7dc973b292ee87bd005fbc52833839e3"/><file name="nexth-h.png" hash="cbc24fc11ef0caa568e3c52b7fe1eb81"/><file name="paging-btn-ac.png" hash="2100cea52554c990aab8001cb37ef857"/><file name="paging-btn.png" hash="fd84eeaf15f68d44c5782e760731780b"/><file name="plusd.png" hash="2d9a5b5802c19f991c0387d9271fe856"/><file name="prevh-h.png" hash="e6d5d8ea84f14a8108c2ca1af2484e27"/><file name="register.png" hash="e86d07597316b075153a05d5bf165bdb"/><file name="sendmail.png" hash="5bba44fe34fe0be50beb2deceeac8719"/><file name="twit.png" hash="d656b1e9584c5fd671a6ad8c89d7b35b"/><file name="ver.png" hash="11acc0be01a9d0192a8bdf703e1e6c8c"/><file name="wishlish-h.png" hash="1ae36cc5da4f3aa25280cdbf19869f4b"/><file name="wishlist.png" hash="a17aef0568b90061ac7a8a0a4f61d059"/></dir><file name="zoom-1.png" hash="4f8cb7d85aee451195e3978237d56b75"/><file name="zoom.png" hash="d8bc3c1c6f2ae34692a15d79a861ddd4"/><file name="zoom_img.png" hash="0040b25158f86acb8e112804eeef4079"/></dir><dir name="js"><file name="bootstrap-collapse.js" hash="c8f1c8322bd15bb8ecfeeeec6e706fb4"/><file name="cloud-zoom.1.0.2.js" hash="036be5a272edb052aba8a6076a2135b4"/><file name="cloud-zoom.1.0.2.min.js" hash="428df2fe711dd5e8461d4a5aac20e895"/><file name="cloudzoom.js" hash="e133567e52ff07a5fe1a47d063404e6a"/><file name="colorpicker.js" hash="96e6db8dd2c341f8aee73603eccea3b9"/><file name="jcarousellite_1.0.1.js" hash="e988aa143c589920a539221ca85be493"/><file name="jquery-1.7.2.min.js" hash="b8d64d0bc142b3f670cc0611b0aebcae"/><file name="jquery.accordion.js" hash="a4d73f610b4a25e3bcf5551dd088d238"/><file name="jquery.accordion.min.js" hash="82653c9182b34ddc8827bfa6e392179a"/><file name="jquery.accordion.pack.js" hash="152844235d2000706a7c5d58aac30159"/><file name="jquery.accordion_snyderplace.js" hash="b9c3becb0be7b4964bca525e9a236521"/><file name="jquery.colorbox-min.js" hash="be15649d1dee9fa82b22c8cc17912713"/><file name="jquery.cookie.min.js" hash="67c9d9e0ff3e0509519573f75129241a"/><file name="jquery.easing.js" hash="2b59bb7b4e84e9d75fe3ff43fbf2309e"/><file name="jquery.pajinate.js" hash="402f711cc6509e03cf0022527a616c7f"/><file name="jquery.uniform.min.js" hash="4d8109806ee43c77f0e7c4bf9599d8dd"/><file name="jsmart.noconflict.js" hash="df753c24c7b383e1f0850c6b6bc434eb"/><file name="respond.min.js" hash="6a1cfc04a541e9af29bfce41700ed8c5"/><file name="yt-accordion.js" hash="c567e4fcc1ad0e2696463b79ed597d65"/><file name="yt-extend.js" hash="ba0df4509e81f7d4fd45ea9ff1634293"/><file name="yt-script.js" hash="0ac50e8a840c78c54b4ebb6095e4670c"/></dir><dir name="smartaddons"><dir name="basicproducts"><dir name="js"><file name="jquery-1.5.min.js" hash="eb6eaee7cbe0e4cf0bc6bc1fdecd4749"/><file name="jsmart.noconflict.js" hash="df753c24c7b383e1f0850c6b6bc434eb"/></dir></dir><file name="basicproducts.css" hash="31b1dedbafbd4b321f4a346f94c12f25"/></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|
skin/frontend/default/sm_glasses_free/bootstrap/css/bootstrap-responsive.css
ADDED
@@ -0,0 +1,1040 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap Responsive v2.1.0
|
3 |
+
*
|
4 |
+
* Copyright 2012 Twitter, Inc
|
5 |
+
* Licensed under the Apache License v2.0
|
6 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
*
|
8 |
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9 |
+
*/
|
10 |
+
|
11 |
+
.clearfix {
|
12 |
+
*zoom: 1;
|
13 |
+
}
|
14 |
+
|
15 |
+
.clearfix:before,
|
16 |
+
.clearfix:after {
|
17 |
+
display: table;
|
18 |
+
line-height: 0;
|
19 |
+
content: "";
|
20 |
+
}
|
21 |
+
|
22 |
+
.clearfix:after {
|
23 |
+
clear: both;
|
24 |
+
}
|
25 |
+
|
26 |
+
.hide-text {
|
27 |
+
font: 0/0 a;
|
28 |
+
color: transparent;
|
29 |
+
text-shadow: none;
|
30 |
+
background-color: transparent;
|
31 |
+
border: 0;
|
32 |
+
}
|
33 |
+
|
34 |
+
.input-block-level {
|
35 |
+
display: block;
|
36 |
+
width: 100%;
|
37 |
+
min-height: 30px;
|
38 |
+
-webkit-box-sizing: border-box;
|
39 |
+
-moz-box-sizing: border-box;
|
40 |
+
box-sizing: border-box;
|
41 |
+
}
|
42 |
+
|
43 |
+
.hidden {
|
44 |
+
display: none;
|
45 |
+
visibility: hidden;
|
46 |
+
}
|
47 |
+
|
48 |
+
.visible-phone {
|
49 |
+
display: none !important;
|
50 |
+
}
|
51 |
+
|
52 |
+
.visible-tablet {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
+
|
56 |
+
.hidden-desktop {
|
57 |
+
display: none !important;
|
58 |
+
}
|
59 |
+
|
60 |
+
.visible-desktop {
|
61 |
+
display: inherit !important;
|
62 |
+
}
|
63 |
+
|
64 |
+
@media (min-width: 768px) and (max-width: 979px) {
|
65 |
+
.hidden-desktop {
|
66 |
+
display: inherit !important;
|
67 |
+
}
|
68 |
+
.visible-desktop {
|
69 |
+
display: none !important ;
|
70 |
+
}
|
71 |
+
.visible-tablet {
|
72 |
+
display: inherit !important;
|
73 |
+
}
|
74 |
+
.hidden-tablet {
|
75 |
+
display: none !important;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
@media (max-width: 767px) {
|
80 |
+
.hidden-desktop {
|
81 |
+
display: inherit !important;
|
82 |
+
}
|
83 |
+
.visible-desktop {
|
84 |
+
display: none !important;
|
85 |
+
}
|
86 |
+
.visible-phone {
|
87 |
+
display: inherit !important;
|
88 |
+
}
|
89 |
+
.hidden-phone {
|
90 |
+
display: none !important;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
@media (min-width: 1200px) {
|
95 |
+
.row {
|
96 |
+
margin-left: -30px;
|
97 |
+
*zoom: 1;
|
98 |
+
}
|
99 |
+
.row:before,
|
100 |
+
.row:after {
|
101 |
+
display: table;
|
102 |
+
line-height: 0;
|
103 |
+
content: "";
|
104 |
+
}
|
105 |
+
.row:after {
|
106 |
+
clear: both;
|
107 |
+
}
|
108 |
+
[class*="span"] {
|
109 |
+
float: left;
|
110 |
+
margin-left: 30px;
|
111 |
+
}
|
112 |
+
.container,
|
113 |
+
.navbar-static-top .container,
|
114 |
+
.navbar-fixed-top .container,
|
115 |
+
.navbar-fixed-bottom .container {
|
116 |
+
width: 1170px;
|
117 |
+
}
|
118 |
+
.span12 {
|
119 |
+
width: 1170px;
|
120 |
+
}
|
121 |
+
.span11 {
|
122 |
+
width: 1070px;
|
123 |
+
}
|
124 |
+
.span10 {
|
125 |
+
width: 970px;
|
126 |
+
}
|
127 |
+
.span9 {
|
128 |
+
width: 870px;
|
129 |
+
}
|
130 |
+
.span8 {
|
131 |
+
width: 770px;
|
132 |
+
}
|
133 |
+
.span7 {
|
134 |
+
width: 670px;
|
135 |
+
}
|
136 |
+
.span6 {
|
137 |
+
width: 570px;
|
138 |
+
}
|
139 |
+
.span5 {
|
140 |
+
width: 470px;
|
141 |
+
}
|
142 |
+
.span4 {
|
143 |
+
width: 370px;
|
144 |
+
}
|
145 |
+
.span3 {
|
146 |
+
width: 270px;
|
147 |
+
}
|
148 |
+
.span2 {
|
149 |
+
width: 170px;
|
150 |
+
}
|
151 |
+
.span1 {
|
152 |
+
width: 70px;
|
153 |
+
}
|
154 |
+
.offset12 {
|
155 |
+
margin-left: 1230px;
|
156 |
+
}
|
157 |
+
.offset11 {
|
158 |
+
margin-left: 1130px;
|
159 |
+
}
|
160 |
+
.offset10 {
|
161 |
+
margin-left: 1030px;
|
162 |
+
}
|
163 |
+
.offset9 {
|
164 |
+
margin-left: 930px;
|
165 |
+
}
|
166 |
+
.offset8 {
|
167 |
+
margin-left: 830px;
|
168 |
+
}
|
169 |
+
.offset7 {
|
170 |
+
margin-left: 730px;
|
171 |
+
}
|
172 |
+
.offset6 {
|
173 |
+
margin-left: 630px;
|
174 |
+
}
|
175 |
+
.offset5 {
|
176 |
+
margin-left: 530px;
|
177 |
+
}
|
178 |
+
.offset4 {
|
179 |
+
margin-left: 430px;
|
180 |
+
}
|
181 |
+
.offset3 {
|
182 |
+
margin-left: 330px;
|
183 |
+
}
|
184 |
+
.offset2 {
|
185 |
+
margin-left: 230px;
|
186 |
+
}
|
187 |
+
.offset1 {
|
188 |
+
margin-left: 130px;
|
189 |
+
}
|
190 |
+
.row-fluid {
|
191 |
+
width: 100%;
|
192 |
+
*zoom: 1;
|
193 |
+
}
|
194 |
+
.row-fluid:before,
|
195 |
+
.row-fluid:after {
|
196 |
+
display: table;
|
197 |
+
line-height: 0;
|
198 |
+
content: "";
|
199 |
+
}
|
200 |
+
.row-fluid:after {
|
201 |
+
clear: both;
|
202 |
+
}
|
203 |
+
.row-fluid [class*="span"] {
|
204 |
+
display: block;
|
205 |
+
float: left;
|
206 |
+
width: 100%;
|
207 |
+
min-height: 30px;
|
208 |
+
margin-left: 2.564102564102564%;
|
209 |
+
*margin-left: 2.5109110747408616%;
|
210 |
+
-webkit-box-sizing: border-box;
|
211 |
+
-moz-box-sizing: border-box;
|
212 |
+
box-sizing: border-box;
|
213 |
+
}
|
214 |
+
.row-fluid [class*="span"]:first-child {
|
215 |
+
margin-left: 0;
|
216 |
+
}
|
217 |
+
.row-fluid .span12 {
|
218 |
+
width: 100%;
|
219 |
+
*width: 99.94680851063829%;
|
220 |
+
}
|
221 |
+
.row-fluid .span11 {
|
222 |
+
width: 91.45299145299145%;
|
223 |
+
*width: 91.39979996362975%;
|
224 |
+
}
|
225 |
+
.row-fluid .span10 {
|
226 |
+
width: 82.90598290598291%;
|
227 |
+
*width: 82.8527914166212%;
|
228 |
+
}
|
229 |
+
.row-fluid .span9 {
|
230 |
+
width: 74.35897435897436%;
|
231 |
+
*width: 74.30578286961266%;
|
232 |
+
}
|
233 |
+
.row-fluid .span8 {
|
234 |
+
width: 65.81196581196582%;
|
235 |
+
*width: 65.75877432260411%;
|
236 |
+
}
|
237 |
+
.row-fluid .span7 {
|
238 |
+
width: 57.26495726495726%;
|
239 |
+
*width: 57.21176577559556%;
|
240 |
+
}
|
241 |
+
.row-fluid .span6 {
|
242 |
+
width: 48.717948717948715%;
|
243 |
+
*width: 48.664757228587014%;
|
244 |
+
}
|
245 |
+
.row-fluid .span5 {
|
246 |
+
width: 40.17094017094017%;
|
247 |
+
*width: 40.11774868157847%;
|
248 |
+
}
|
249 |
+
.row-fluid .span4 {
|
250 |
+
width: 31.623931623931625%;
|
251 |
+
*width: 31.570740134569924%;
|
252 |
+
}
|
253 |
+
.row-fluid .span3 {
|
254 |
+
width: 23.076923076923077%;
|
255 |
+
*width: 23.023731587561375%;
|
256 |
+
}
|
257 |
+
.row-fluid .span2 {
|
258 |
+
width: 14.52991452991453%;
|
259 |
+
*width: 14.476723040552828%;
|
260 |
+
}
|
261 |
+
.row-fluid .span1 {
|
262 |
+
width: 5.982905982905983%;
|
263 |
+
*width: 5.929714493544281%;
|
264 |
+
}
|
265 |
+
.row-fluid .offset12 {
|
266 |
+
margin-left: 105.12820512820512%;
|
267 |
+
*margin-left: 105.02182214948171%;
|
268 |
+
}
|
269 |
+
.row-fluid .offset12:first-child {
|
270 |
+
margin-left: 102.56410256410257%;
|
271 |
+
*margin-left: 102.45771958537915%;
|
272 |
+
}
|
273 |
+
.row-fluid .offset11 {
|
274 |
+
margin-left: 96.58119658119658%;
|
275 |
+
*margin-left: 96.47481360247316%;
|
276 |
+
}
|
277 |
+
.row-fluid .offset11:first-child {
|
278 |
+
margin-left: 94.01709401709402%;
|
279 |
+
*margin-left: 93.91071103837061%;
|
280 |
+
}
|
281 |
+
.row-fluid .offset10 {
|
282 |
+
margin-left: 88.03418803418803%;
|
283 |
+
*margin-left: 87.92780505546462%;
|
284 |
+
}
|
285 |
+
.row-fluid .offset10:first-child {
|
286 |
+
margin-left: 85.47008547008548%;
|
287 |
+
*margin-left: 85.36370249136206%;
|
288 |
+
}
|
289 |
+
.row-fluid .offset9 {
|
290 |
+
margin-left: 79.48717948717949%;
|
291 |
+
*margin-left: 79.38079650845607%;
|
292 |
+
}
|
293 |
+
.row-fluid .offset9:first-child {
|
294 |
+
margin-left: 76.92307692307693%;
|
295 |
+
*margin-left: 76.81669394435352%;
|
296 |
+
}
|
297 |
+
.row-fluid .offset8 {
|
298 |
+
margin-left: 70.94017094017094%;
|
299 |
+
*margin-left: 70.83378796144753%;
|
300 |
+
}
|
301 |
+
.row-fluid .offset8:first-child {
|
302 |
+
margin-left: 68.37606837606839%;
|
303 |
+
*margin-left: 68.26968539734497%;
|
304 |
+
}
|
305 |
+
.row-fluid .offset7 {
|
306 |
+
margin-left: 62.393162393162385%;
|
307 |
+
*margin-left: 62.28677941443899%;
|
308 |
+
}
|
309 |
+
.row-fluid .offset7:first-child {
|
310 |
+
margin-left: 59.82905982905982%;
|
311 |
+
*margin-left: 59.72267685033642%;
|
312 |
+
}
|
313 |
+
.row-fluid .offset6 {
|
314 |
+
margin-left: 53.84615384615384%;
|
315 |
+
*margin-left: 53.739770867430444%;
|
316 |
+
}
|
317 |
+
.row-fluid .offset6:first-child {
|
318 |
+
margin-left: 51.28205128205128%;
|
319 |
+
*margin-left: 51.175668303327875%;
|
320 |
+
}
|
321 |
+
.row-fluid .offset5 {
|
322 |
+
margin-left: 45.299145299145295%;
|
323 |
+
*margin-left: 45.1927623204219%;
|
324 |
+
}
|
325 |
+
.row-fluid .offset5:first-child {
|
326 |
+
margin-left: 42.73504273504273%;
|
327 |
+
*margin-left: 42.62865975631933%;
|
328 |
+
}
|
329 |
+
.row-fluid .offset4 {
|
330 |
+
margin-left: 36.75213675213675%;
|
331 |
+
*margin-left: 36.645753773413354%;
|
332 |
+
}
|
333 |
+
.row-fluid .offset4:first-child {
|
334 |
+
margin-left: 34.18803418803419%;
|
335 |
+
*margin-left: 34.081651209310785%;
|
336 |
+
}
|
337 |
+
.row-fluid .offset3 {
|
338 |
+
margin-left: 28.205128205128204%;
|
339 |
+
*margin-left: 28.0987452264048%;
|
340 |
+
}
|
341 |
+
.row-fluid .offset3:first-child {
|
342 |
+
margin-left: 25.641025641025642%;
|
343 |
+
*margin-left: 25.53464266230224%;
|
344 |
+
}
|
345 |
+
.row-fluid .offset2 {
|
346 |
+
margin-left: 19.65811965811966%;
|
347 |
+
*margin-left: 19.551736679396257%;
|
348 |
+
}
|
349 |
+
.row-fluid .offset2:first-child {
|
350 |
+
margin-left: 17.094017094017094%;
|
351 |
+
*margin-left: 16.98763411529369%;
|
352 |
+
}
|
353 |
+
.row-fluid .offset1 {
|
354 |
+
margin-left: 11.11111111111111%;
|
355 |
+
*margin-left: 11.004728132387708%;
|
356 |
+
}
|
357 |
+
.row-fluid .offset1:first-child {
|
358 |
+
margin-left: 8.547008547008547%;
|
359 |
+
*margin-left: 8.440625568285142%;
|
360 |
+
}
|
361 |
+
input,
|
362 |
+
textarea,
|
363 |
+
.uneditable-input {
|
364 |
+
margin-left: 0;
|
365 |
+
}
|
366 |
+
.controls-row [class*="span"] + [class*="span"] {
|
367 |
+
margin-left: 30px;
|
368 |
+
}
|
369 |
+
input.span12,
|
370 |
+
textarea.span12,
|
371 |
+
.uneditable-input.span12 {
|
372 |
+
width: 1156px;
|
373 |
+
}
|
374 |
+
input.span11,
|
375 |
+
textarea.span11,
|
376 |
+
.uneditable-input.span11 {
|
377 |
+
width: 1056px;
|
378 |
+
}
|
379 |
+
input.span10,
|
380 |
+
textarea.span10,
|
381 |
+
.uneditable-input.span10 {
|
382 |
+
width: 956px;
|
383 |
+
}
|
384 |
+
input.span9,
|
385 |
+
textarea.span9,
|
386 |
+
.uneditable-input.span9 {
|
387 |
+
width: 856px;
|
388 |
+
}
|
389 |
+
input.span8,
|
390 |
+
textarea.span8,
|
391 |
+
.uneditable-input.span8 {
|
392 |
+
width: 756px;
|
393 |
+
}
|
394 |
+
input.span7,
|
395 |
+
textarea.span7,
|
396 |
+
.uneditable-input.span7 {
|
397 |
+
width: 656px;
|
398 |
+
}
|
399 |
+
input.span6,
|
400 |
+
textarea.span6,
|
401 |
+
.uneditable-input.span6 {
|
402 |
+
width: 556px;
|
403 |
+
}
|
404 |
+
input.span5,
|
405 |
+
textarea.span5,
|
406 |
+
.uneditable-input.span5 {
|
407 |
+
width: 456px;
|
408 |
+
}
|
409 |
+
input.span4,
|
410 |
+
textarea.span4,
|
411 |
+
.uneditable-input.span4 {
|
412 |
+
width: 356px;
|
413 |
+
}
|
414 |
+
input.span3,
|
415 |
+
textarea.span3,
|
416 |
+
.uneditable-input.span3 {
|
417 |
+
width: 256px;
|
418 |
+
}
|
419 |
+
input.span2,
|
420 |
+
textarea.span2,
|
421 |
+
.uneditable-input.span2 {
|
422 |
+
width: 156px;
|
423 |
+
}
|
424 |
+
input.span1,
|
425 |
+
textarea.span1,
|
426 |
+
.uneditable-input.span1 {
|
427 |
+
width: 56px;
|
428 |
+
}
|
429 |
+
.thumbnails {
|
430 |
+
margin-left: -30px;
|
431 |
+
}
|
432 |
+
.thumbnails > li {
|
433 |
+
margin-left: 30px;
|
434 |
+
}
|
435 |
+
.row-fluid .thumbnails {
|
436 |
+
margin-left: 0;
|
437 |
+
}
|
438 |
+
}
|
439 |
+
|
440 |
+
@media (min-width: 768px) and (max-width: 979px) {
|
441 |
+
.row {
|
442 |
+
margin-left: -20px;
|
443 |
+
*zoom: 1;
|
444 |
+
}
|
445 |
+
.row:before,
|
446 |
+
.row:after {
|
447 |
+
display: table;
|
448 |
+
line-height: 0;
|
449 |
+
content: "";
|
450 |
+
}
|
451 |
+
.row:after {
|
452 |
+
clear: both;
|
453 |
+
}
|
454 |
+
[class*="span"] {
|
455 |
+
float: left;
|
456 |
+
margin-left: 20px;
|
457 |
+
}
|
458 |
+
.container,
|
459 |
+
.navbar-static-top .container,
|
460 |
+
.navbar-fixed-top .container,
|
461 |
+
.navbar-fixed-bottom .container {
|
462 |
+
width: 724px;
|
463 |
+
}
|
464 |
+
.span12 {
|
465 |
+
width: 724px;
|
466 |
+
}
|
467 |
+
.span11 {
|
468 |
+
width: 662px;
|
469 |
+
}
|
470 |
+
.span10 {
|
471 |
+
width: 600px;
|
472 |
+
}
|
473 |
+
.span9 {
|
474 |
+
width: 538px;
|
475 |
+
}
|
476 |
+
.span8 {
|
477 |
+
width: 476px;
|
478 |
+
}
|
479 |
+
.span7 {
|
480 |
+
width: 414px;
|
481 |
+
}
|
482 |
+
.span6 {
|
483 |
+
width: 352px;
|
484 |
+
}
|
485 |
+
.span5 {
|
486 |
+
width: 290px;
|
487 |
+
}
|
488 |
+
.span4 {
|
489 |
+
width: 228px;
|
490 |
+
}
|
491 |
+
.span3 {
|
492 |
+
width: 166px;
|
493 |
+
}
|
494 |
+
.span2 {
|
495 |
+
width: 104px;
|
496 |
+
}
|
497 |
+
.span1 {
|
498 |
+
width: 42px;
|
499 |
+
}
|
500 |
+
.offset12 {
|
501 |
+
margin-left: 764px;
|
502 |
+
}
|
503 |
+
.offset11 {
|
504 |
+
margin-left: 702px;
|
505 |
+
}
|
506 |
+
.offset10 {
|
507 |
+
margin-left: 640px;
|
508 |
+
}
|
509 |
+
.offset9 {
|
510 |
+
margin-left: 578px;
|
511 |
+
}
|
512 |
+
.offset8 {
|
513 |
+
margin-left: 516px;
|
514 |
+
}
|
515 |
+
.offset7 {
|
516 |
+
margin-left: 454px;
|
517 |
+
}
|
518 |
+
.offset6 {
|
519 |
+
margin-left: 392px;
|
520 |
+
}
|
521 |
+
.offset5 {
|
522 |
+
margin-left: 330px;
|
523 |
+
}
|
524 |
+
.offset4 {
|
525 |
+
margin-left: 268px;
|
526 |
+
}
|
527 |
+
.offset3 {
|
528 |
+
margin-left: 206px;
|
529 |
+
}
|
530 |
+
.offset2 {
|
531 |
+
margin-left: 144px;
|
532 |
+
}
|
533 |
+
.offset1 {
|
534 |
+
margin-left: 82px;
|
535 |
+
}
|
536 |
+
.row-fluid {
|
537 |
+
width: 100%;
|
538 |
+
*zoom: 1;
|
539 |
+
}
|
540 |
+
.row-fluid:before,
|
541 |
+
.row-fluid:after {
|
542 |
+
display: table;
|
543 |
+
line-height: 0;
|
544 |
+
content: "";
|
545 |
+
}
|
546 |
+
.row-fluid:after {
|
547 |
+
clear: both;
|
548 |
+
}
|
549 |
+
.row-fluid [class*="span"] {
|
550 |
+
display: block;
|
551 |
+
float: left;
|
552 |
+
width: 100%;
|
553 |
+
min-height: 30px;
|
554 |
+
margin-left: 2.7624309392265194%;
|
555 |
+
*margin-left: 2.709239449864817%;
|
556 |
+
-webkit-box-sizing: border-box;
|
557 |
+
-moz-box-sizing: border-box;
|
558 |
+
box-sizing: border-box;
|
559 |
+
}
|
560 |
+
.row-fluid [class*="span"]:first-child {
|
561 |
+
margin-left: 0;
|
562 |
+
}
|
563 |
+
.row-fluid .span12 {
|
564 |
+
width: 100%;
|
565 |
+
*width: 99.94680851063829%;
|
566 |
+
}
|
567 |
+
.row-fluid .span11 {
|
568 |
+
width: 91.43646408839778%;
|
569 |
+
*width: 91.38327259903608%;
|
570 |
+
}
|
571 |
+
.row-fluid .span10 {
|
572 |
+
width: 82.87292817679558%;
|
573 |
+
*width: 82.81973668743387%;
|
574 |
+
}
|
575 |
+
.row-fluid .span9 {
|
576 |
+
width: 74.30939226519337%;
|
577 |
+
*width: 74.25620077583166%;
|
578 |
+
}
|
579 |
+
.row-fluid .span8 {
|
580 |
+
width: 65.74585635359117%;
|
581 |
+
*width: 65.69266486422946%;
|
582 |
+
}
|
583 |
+
.row-fluid .span7 {
|
584 |
+
width: 57.18232044198895%;
|
585 |
+
*width: 57.12912895262725%;
|
586 |
+
}
|
587 |
+
.row-fluid .span6 {
|
588 |
+
width: 48.61878453038674%;
|
589 |
+
*width: 48.56559304102504%;
|
590 |
+
}
|
591 |
+
.row-fluid .span5 {
|
592 |
+
width: 40.05524861878453%;
|
593 |
+
*width: 40.00205712942283%;
|
594 |
+
}
|
595 |
+
.row-fluid .span4 {
|
596 |
+
width: 31.491712707182323%;
|
597 |
+
*width: 31.43852121782062%;
|
598 |
+
}
|
599 |
+
.row-fluid .span3 {
|
600 |
+
width: 22.92817679558011%;
|
601 |
+
*width: 22.87498530621841%;
|
602 |
+
}
|
603 |
+
.row-fluid .span2 {
|
604 |
+
width: 14.3646408839779%;
|
605 |
+
*width: 14.311449394616199%;
|
606 |
+
}
|
607 |
+
.row-fluid .span1 {
|
608 |
+
width: 5.801104972375691%;
|
609 |
+
*width: 5.747913483013988%;
|
610 |
+
}
|
611 |
+
.row-fluid .offset12 {
|
612 |
+
margin-left: 105.52486187845304%;
|
613 |
+
*margin-left: 105.41847889972962%;
|
614 |
+
}
|
615 |
+
.row-fluid .offset12:first-child {
|
616 |
+
margin-left: 102.76243093922652%;
|
617 |
+
*margin-left: 102.6560479605031%;
|
618 |
+
}
|
619 |
+
.row-fluid .offset11 {
|
620 |
+
margin-left: 96.96132596685082%;
|
621 |
+
*margin-left: 96.8549429881274%;
|
622 |
+
}
|
623 |
+
.row-fluid .offset11:first-child {
|
624 |
+
margin-left: 94.1988950276243%;
|
625 |
+
*margin-left: 94.09251204890089%;
|
626 |
+
}
|
627 |
+
.row-fluid .offset10 {
|
628 |
+
margin-left: 88.39779005524862%;
|
629 |
+
*margin-left: 88.2914070765252%;
|
630 |
+
}
|
631 |
+
.row-fluid .offset10:first-child {
|
632 |
+
margin-left: 85.6353591160221%;
|
633 |
+
*margin-left: 85.52897613729868%;
|
634 |
+
}
|
635 |
+
.row-fluid .offset9 {
|
636 |
+
margin-left: 79.8342541436464%;
|
637 |
+
*margin-left: 79.72787116492299%;
|
638 |
+
}
|
639 |
+
.row-fluid .offset9:first-child {
|
640 |
+
margin-left: 77.07182320441989%;
|
641 |
+
*margin-left: 76.96544022569647%;
|
642 |
+
}
|
643 |
+
.row-fluid .offset8 {
|
644 |
+
margin-left: 71.2707182320442%;
|
645 |
+
*margin-left: 71.16433525332079%;
|
646 |
+
}
|
647 |
+
.row-fluid .offset8:first-child {
|
648 |
+
margin-left: 68.50828729281768%;
|
649 |
+
*margin-left: 68.40190431409427%;
|
650 |
+
}
|
651 |
+
.row-fluid .offset7 {
|
652 |
+
margin-left: 62.70718232044199%;
|
653 |
+
*margin-left: 62.600799341718584%;
|
654 |
+
}
|
655 |
+
.row-fluid .offset7:first-child {
|
656 |
+
margin-left: 59.94475138121547%;
|
657 |
+
*margin-left: 59.838368402492065%;
|
658 |
+
}
|
659 |
+
.row-fluid .offset6 {
|
660 |
+
margin-left: 54.14364640883978%;
|
661 |
+
*margin-left: 54.037263430116376%;
|
662 |
+
}
|
663 |
+
.row-fluid .offset6:first-child {
|
664 |
+
margin-left: 51.38121546961326%;
|
665 |
+
*margin-left: 51.27483249088986%;
|
666 |
+
}
|
667 |
+
.row-fluid .offset5 {
|
668 |
+
margin-left: 45.58011049723757%;
|
669 |
+
*margin-left: 45.47372751851417%;
|
670 |
+
}
|
671 |
+
.row-fluid .offset5:first-child {
|
672 |
+
margin-left: 42.81767955801105%;
|
673 |
+
*margin-left: 42.71129657928765%;
|
674 |
+
}
|
675 |
+
.row-fluid .offset4 {
|
676 |
+
margin-left: 37.01657458563536%;
|
677 |
+
*margin-left: 36.91019160691196%;
|
678 |
+
}
|
679 |
+
.row-fluid .offset4:first-child {
|
680 |
+
margin-left: 34.25414364640884%;
|
681 |
+
*margin-left: 34.14776066768544%;
|
682 |
+
}
|
683 |
+
.row-fluid .offset3 {
|
684 |
+
margin-left: 28.45303867403315%;
|
685 |
+
*margin-left: 28.346655695309746%;
|
686 |
+
}
|
687 |
+
.row-fluid .offset3:first-child {
|
688 |
+
margin-left: 25.69060773480663%;
|
689 |
+
*margin-left: 25.584224756083227%;
|
690 |
+
}
|
691 |
+
.row-fluid .offset2 {
|
692 |
+
margin-left: 19.88950276243094%;
|
693 |
+
*margin-left: 19.783119783707537%;
|
694 |
+
}
|
695 |
+
.row-fluid .offset2:first-child {
|
696 |
+
margin-left: 17.12707182320442%;
|
697 |
+
*margin-left: 17.02068884448102%;
|
698 |
+
}
|
699 |
+
.row-fluid .offset1 {
|
700 |
+
margin-left: 11.32596685082873%;
|
701 |
+
*margin-left: 11.219583872105325%;
|
702 |
+
}
|
703 |
+
.row-fluid .offset1:first-child {
|
704 |
+
margin-left: 8.56353591160221%;
|
705 |
+
*margin-left: 8.457152932878806%;
|
706 |
+
}
|
707 |
+
input,
|
708 |
+
textarea,
|
709 |
+
.uneditable-input {
|
710 |
+
margin-left: 0;
|
711 |
+
}
|
712 |
+
.controls-row [class*="span"] + [class*="span"] {
|
713 |
+
margin-left: 20px;
|
714 |
+
}
|
715 |
+
input.span12,
|
716 |
+
textarea.span12,
|
717 |
+
.uneditable-input.span12 {
|
718 |
+
width: 710px;
|
719 |
+
}
|
720 |
+
input.span11,
|
721 |
+
textarea.span11,
|
722 |
+
.uneditable-input.span11 {
|
723 |
+
width: 648px;
|
724 |
+
}
|
725 |
+
input.span10,
|
726 |
+
textarea.span10,
|
727 |
+
.uneditable-input.span10 {
|
728 |
+
width: 586px;
|
729 |
+
}
|
730 |
+
input.span9,
|
731 |
+
textarea.span9,
|
732 |
+
.uneditable-input.span9 {
|
733 |
+
width: 524px;
|
734 |
+
}
|
735 |
+
input.span8,
|
736 |
+
textarea.span8,
|
737 |
+
.uneditable-input.span8 {
|
738 |
+
width: 462px;
|
739 |
+
}
|
740 |
+
input.span7,
|
741 |
+
textarea.span7,
|
742 |
+
.uneditable-input.span7 {
|
743 |
+
width: 400px;
|
744 |
+
}
|
745 |
+
input.span6,
|
746 |
+
textarea.span6,
|
747 |
+
.uneditable-input.span6 {
|
748 |
+
width: 338px;
|
749 |
+
}
|
750 |
+
input.span5,
|
751 |
+
textarea.span5,
|
752 |
+
.uneditable-input.span5 {
|
753 |
+
width: 276px;
|
754 |
+
}
|
755 |
+
input.span4,
|
756 |
+
textarea.span4,
|
757 |
+
.uneditable-input.span4 {
|
758 |
+
width: 214px;
|
759 |
+
}
|
760 |
+
input.span3,
|
761 |
+
textarea.span3,
|
762 |
+
.uneditable-input.span3 {
|
763 |
+
width: 152px;
|
764 |
+
}
|
765 |
+
input.span2,
|
766 |
+
textarea.span2,
|
767 |
+
.uneditable-input.span2 {
|
768 |
+
width: 90px;
|
769 |
+
}
|
770 |
+
input.span1,
|
771 |
+
textarea.span1,
|
772 |
+
.uneditable-input.span1 {
|
773 |
+
width: 28px;
|
774 |
+
}
|
775 |
+
}
|
776 |
+
|
777 |
+
@media (max-width: 767px) {
|
778 |
+
body {
|
779 |
+
padding-right: 20px;
|
780 |
+
padding-left: 20px;
|
781 |
+
}
|
782 |
+
.navbar-fixed-top,
|
783 |
+
.navbar-fixed-bottom {
|
784 |
+
margin-right: -20px;
|
785 |
+
margin-left: -20px;
|
786 |
+
}
|
787 |
+
.container-fluid {
|
788 |
+
padding: 0;
|
789 |
+
}
|
790 |
+
.dl-horizontal dt {
|
791 |
+
float: none;
|
792 |
+
width: auto;
|
793 |
+
clear: none;
|
794 |
+
text-align: left;
|
795 |
+
}
|
796 |
+
.dl-horizontal dd {
|
797 |
+
margin-left: 0;
|
798 |
+
}
|
799 |
+
.container {
|
800 |
+
width: auto;
|
801 |
+
}
|
802 |
+
.row-fluid {
|
803 |
+
width: 100%;
|
804 |
+
}
|
805 |
+
.row,
|
806 |
+
.thumbnails {
|
807 |
+
margin-left: 0;
|
808 |
+
}
|
809 |
+
.thumbnails > li {
|
810 |
+
float: none;
|
811 |
+
margin-left: 0;
|
812 |
+
}
|
813 |
+
[class*="span"],
|
814 |
+
.row-fluid [class*="span"] {
|
815 |
+
display: block;
|
816 |
+
float: none;
|
817 |
+
width: auto;
|
818 |
+
margin-left: 0;
|
819 |
+
}
|
820 |
+
.span12,
|
821 |
+
.row-fluid .span12 {
|
822 |
+
width: 100%;
|
823 |
+
-webkit-box-sizing: border-box;
|
824 |
+
-moz-box-sizing: border-box;
|
825 |
+
box-sizing: border-box;
|
826 |
+
}
|
827 |
+
.input-large,
|
828 |
+
.input-xlarge,
|
829 |
+
.input-xxlarge,
|
830 |
+
input[class*="span"],
|
831 |
+
select[class*="span"],
|
832 |
+
textarea[class*="span"],
|
833 |
+
.uneditable-input {
|
834 |
+
display: block;
|
835 |
+
width: 100%;
|
836 |
+
min-height: 30px;
|
837 |
+
-webkit-box-sizing: border-box;
|
838 |
+
-moz-box-sizing: border-box;
|
839 |
+
box-sizing: border-box;
|
840 |
+
}
|
841 |
+
.input-prepend input,
|
842 |
+
.input-append input,
|
843 |
+
.input-prepend input[class*="span"],
|
844 |
+
.input-append input[class*="span"] {
|
845 |
+
display: inline-block;
|
846 |
+
width: auto;
|
847 |
+
}
|
848 |
+
.modal {
|
849 |
+
position: fixed;
|
850 |
+
top: 20px;
|
851 |
+
right: 20px;
|
852 |
+
left: 20px;
|
853 |
+
width: auto;
|
854 |
+
margin: 0;
|
855 |
+
}
|
856 |
+
.modal.fade.in {
|
857 |
+
top: auto;
|
858 |
+
}
|
859 |
+
}
|
860 |
+
|
861 |
+
@media (max-width: 480px) {
|
862 |
+
.nav-collapse {
|
863 |
+
-webkit-transform: translate3d(0, 0, 0);
|
864 |
+
}
|
865 |
+
.page-header h1 small {
|
866 |
+
display: block;
|
867 |
+
line-height: 20px;
|
868 |
+
}
|
869 |
+
input[type="checkbox"],
|
870 |
+
input[type="radio"] {
|
871 |
+
border: 1px solid #ccc;
|
872 |
+
}
|
873 |
+
.form-horizontal .control-group > label {
|
874 |
+
float: none;
|
875 |
+
width: auto;
|
876 |
+
padding-top: 0;
|
877 |
+
text-align: left;
|
878 |
+
}
|
879 |
+
.form-horizontal .controls {
|
880 |
+
margin-left: 0;
|
881 |
+
}
|
882 |
+
.form-horizontal .control-list {
|
883 |
+
padding-top: 0;
|
884 |
+
}
|
885 |
+
.form-horizontal .form-actions {
|
886 |
+
padding-right: 10px;
|
887 |
+
padding-left: 10px;
|
888 |
+
}
|
889 |
+
.modal {
|
890 |
+
top: 10px;
|
891 |
+
right: 10px;
|
892 |
+
left: 10px;
|
893 |
+
}
|
894 |
+
.modal-header .close {
|
895 |
+
padding: 10px;
|
896 |
+
margin: -10px;
|
897 |
+
}
|
898 |
+
.carousel-caption {
|
899 |
+
position: static;
|
900 |
+
}
|
901 |
+
}
|
902 |
+
|
903 |
+
@media (max-width: 979px) {
|
904 |
+
body {
|
905 |
+
padding-top: 0;
|
906 |
+
}
|
907 |
+
.navbar-fixed-top,
|
908 |
+
.navbar-fixed-bottom {
|
909 |
+
position: static;
|
910 |
+
}
|
911 |
+
.navbar-fixed-top {
|
912 |
+
margin-bottom: 20px;
|
913 |
+
}
|
914 |
+
.navbar-fixed-bottom {
|
915 |
+
margin-top: 20px;
|
916 |
+
}
|
917 |
+
.navbar-fixed-top .navbar-inner,
|
918 |
+
.navbar-fixed-bottom .navbar-inner {
|
919 |
+
padding: 5px;
|
920 |
+
}
|
921 |
+
.navbar .container {
|
922 |
+
width: auto;
|
923 |
+
padding: 0;
|
924 |
+
}
|
925 |
+
.navbar .brand {
|
926 |
+
padding-right: 10px;
|
927 |
+
padding-left: 10px;
|
928 |
+
margin: 0 0 0 -5px;
|
929 |
+
}
|
930 |
+
.nav-collapse {
|
931 |
+
clear: both;
|
932 |
+
}
|
933 |
+
.nav-collapse .nav {
|
934 |
+
float: none;
|
935 |
+
margin: 0 0 10px;
|
936 |
+
}
|
937 |
+
.nav-collapse .nav > li {
|
938 |
+
float: none;
|
939 |
+
}
|
940 |
+
.nav-collapse .nav > li > a {
|
941 |
+
margin-bottom: 2px;
|
942 |
+
}
|
943 |
+
.nav-collapse .nav > .divider-vertical {
|
944 |
+
display: none;
|
945 |
+
}
|
946 |
+
.nav-collapse .nav .nav-header {
|
947 |
+
color: #555555;
|
948 |
+
text-shadow: none;
|
949 |
+
}
|
950 |
+
.nav-collapse .nav > li > a,
|
951 |
+
.nav-collapse .dropdown-menu a {
|
952 |
+
padding: 9px 15px;
|
953 |
+
font-weight: bold;
|
954 |
+
color: #555555;
|
955 |
+
-webkit-border-radius: 3px;
|
956 |
+
-moz-border-radius: 3px;
|
957 |
+
border-radius: 3px;
|
958 |
+
}
|
959 |
+
.nav-collapse .btn {
|
960 |
+
padding: 4px 10px 4px;
|
961 |
+
font-weight: normal;
|
962 |
+
-webkit-border-radius: 4px;
|
963 |
+
-moz-border-radius: 4px;
|
964 |
+
border-radius: 4px;
|
965 |
+
}
|
966 |
+
.nav-collapse .dropdown-menu li + li a {
|
967 |
+
margin-bottom: 2px;
|
968 |
+
}
|
969 |
+
.nav-collapse .nav > li > a:hover,
|
970 |
+
.nav-collapse .dropdown-menu a:hover {
|
971 |
+
background-color: #f2f2f2;
|
972 |
+
}
|
973 |
+
.navbar-inverse .nav-collapse .nav > li > a:hover,
|
974 |
+
.navbar-inverse .nav-collapse .dropdown-menu a:hover {
|
975 |
+
background-color: #111111;
|
976 |
+
}
|
977 |
+
.nav-collapse.in .btn-group {
|
978 |
+
padding: 0;
|
979 |
+
margin-top: 5px;
|
980 |
+
}
|
981 |
+
.nav-collapse .dropdown-menu {
|
982 |
+
position: static;
|
983 |
+
top: auto;
|
984 |
+
left: auto;
|
985 |
+
display: block;
|
986 |
+
float: none;
|
987 |
+
max-width: none;
|
988 |
+
padding: 0;
|
989 |
+
margin: 0 15px;
|
990 |
+
background-color: transparent;
|
991 |
+
border: none;
|
992 |
+
-webkit-border-radius: 0;
|
993 |
+
-moz-border-radius: 0;
|
994 |
+
border-radius: 0;
|
995 |
+
-webkit-box-shadow: none;
|
996 |
+
-moz-box-shadow: none;
|
997 |
+
box-shadow: none;
|
998 |
+
}
|
999 |
+
.nav-collapse .dropdown-menu:before,
|
1000 |
+
.nav-collapse .dropdown-menu:after {
|
1001 |
+
display: none;
|
1002 |
+
}
|
1003 |
+
.nav-collapse .dropdown-menu .divider {
|
1004 |
+
display: none;
|
1005 |
+
}
|
1006 |
+
.nav-collapse .navbar-form,
|
1007 |
+
.nav-collapse .navbar-search {
|
1008 |
+
float: none;
|
1009 |
+
padding: 10px 15px;
|
1010 |
+
margin: 10px 0;
|
1011 |
+
border-top: 1px solid #f2f2f2;
|
1012 |
+
border-bottom: 1px solid #f2f2f2;
|
1013 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
1014 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
1015 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
1016 |
+
}
|
1017 |
+
.navbar .nav-collapse .nav.pull-right {
|
1018 |
+
float: none;
|
1019 |
+
margin-left: 0;
|
1020 |
+
}
|
1021 |
+
.nav-collapse,
|
1022 |
+
.nav-collapse.collapse {
|
1023 |
+
height: 0;
|
1024 |
+
overflow: hidden;
|
1025 |
+
}
|
1026 |
+
.navbar .btn-navbar {
|
1027 |
+
display: block;
|
1028 |
+
}
|
1029 |
+
.navbar-static .navbar-inner {
|
1030 |
+
padding-right: 10px;
|
1031 |
+
padding-left: 10px;
|
1032 |
+
}
|
1033 |
+
}
|
1034 |
+
|
1035 |
+
@media (min-width: 980px) {
|
1036 |
+
.nav-collapse.collapse {
|
1037 |
+
height: auto !important;
|
1038 |
+
overflow: visible !important;
|
1039 |
+
}
|
1040 |
+
}
|
skin/frontend/default/sm_glasses_free/bootstrap/css/bootstrap.css
ADDED
@@ -0,0 +1,5837 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap v2.1.1
|
3 |
+
*
|
4 |
+
* Copyright 2012 Twitter, Inc
|
5 |
+
* Licensed under the Apache License v2.0
|
6 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
*
|
8 |
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9 |
+
*/
|
10 |
+
.clearfix {
|
11 |
+
*zoom: 1;
|
12 |
+
}
|
13 |
+
.clearfix:before,
|
14 |
+
.clearfix:after {
|
15 |
+
display: table;
|
16 |
+
content: "";
|
17 |
+
line-height: 0;
|
18 |
+
}
|
19 |
+
.clearfix:after {
|
20 |
+
clear: both;
|
21 |
+
}
|
22 |
+
.hide-text {
|