Version Notes
Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.
Download this release
Release Info
| Developer | LEAD |
| Extension | Price_Countdown |
| Version | 0.1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1 to 0.1.2
- app/code/local/Apptha/Timer/Block/Adminhtml/Timer.php +2 -2
- app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit.php +2 -2
- app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit/Form.php +2 -2
- app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit/Tab/Form.php +2 -2
- app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit/Tabs.php +3 -2
- app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Grid.php +2 -2
- app/code/local/Apptha/Timer/Block/Compare.php +16 -0
- app/code/local/Apptha/Timer/Block/List.php +2 -2
- app/code/local/Apptha/Timer/Block/View.php +2 -3
- app/code/local/Apptha/Timer/Helper/Data.php +2 -2
- app/code/local/Apptha/Timer/Model/Mysql4/Timer.php +2 -2
- app/code/local/Apptha/Timer/Model/Mysql4/Timer/Collection.php +2 -2
- app/code/local/Apptha/Timer/Model/Status.php +2 -2
- app/code/local/Apptha/Timer/Model/Timer.php +2 -2
- app/code/local/Apptha/Timer/controllers/Adminhtml/TimerController.php +2 -2
- app/code/local/Apptha/Timer/controllers/IndexController.php +2 -2
- app/code/local/Apptha/Timer/etc/config.xml +1 -1
- app/code/local/Apptha/Timer/etc/system.xml +3 -0
- app/code/local/Apptha/Timer/sql/timer_setup/mysql4-install-0.1.0.php +2 -2
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Caption.php +2 -2
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Heading.php +2 -2
- app/design/adminhtml/default/default/layout/timer.xml +7 -2
- app/design/frontend/default/default/template/facebooklb/head.phtml +0 -9
- app/design/frontend/default/default/template/facebooklb/like.phtml +0 -43
- app/design/frontend/default/default/template/gr/deepzoom/product/view/media.phtml +0 -68
- app/design/frontend/default/default/template/gr/deepzoom/product/widget/gallery.phtml +0 -49
- app/design/frontend/default/default/template/gr/deepzoom/product/widget/image.phtml +0 -49
- app/design/frontend/default/default/template/smoovpay/blank.phtml +0 -27
- app/design/frontend/default/default/template/smoovpay/cancel.phtml +0 -28
- app/design/frontend/default/default/template/smoovpay/failure.phtml +0 -28
- app/design/frontend/default/default/template/smoovpay/form.phtml +0 -29
- app/design/frontend/default/default/template/smoovpay/info.phtml +0 -28
- app/design/frontend/default/default/template/smoovpay/redirect.phtml +0 -34
- app/design/frontend/default/default/template/timer/list.phtml +2 -2
- app/design/frontend/default/default/template/timer/view.phtml +2 -2
- js/jscolor/Thumbs.db +0 -0
- js/jscolor/arrow.gif +0 -0
- js/jscolor/cross.gif +0 -0
- js/jscolor/demo.html +0 -12
- js/jscolor/hs.png +0 -0
- js/jscolor/hv.png +0 -0
- js/jscolor/jscolor.js +0 -863
- package.xml +7 -7
app/code/local/Apptha/Timer/Block/Adminhtml/Timer.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit/Form.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit/Tab/Form.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Edit/Tabs.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Contus Support Interactive.
|
| 4 |
*
|
|
@@ -10,9 +11,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
/**
|
| 4 |
* Contus Support Interactive.
|
| 5 |
*
|
| 11 |
* =================================================================
|
| 12 |
* MAGENTO EDITION USAGE NOTICE
|
| 13 |
* =================================================================
|
| 14 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 15 |
* Contus Support does not guarantee correct work of this package
|
| 16 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 17 |
* =================================================================
|
| 18 |
*/
|
| 19 |
|
app/code/local/Apptha/Timer/Block/Adminhtml/Timer/Grid.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Block/Compare.php
CHANGED
|
@@ -1,4 +1,20 @@
|
|
| 1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
class Apptha_Timer_Block_Compare extends Mage_Catalog_Block_Product_Compare_List
|
| 3 |
{
|
| 4 |
protected function _prepareLayout()
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Contus Support Interactive.
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the EULA
|
| 8 |
+
* that is bundled with this package in the file PRICE COUNTDOWN-LICENSE.txt.
|
| 9 |
+
*
|
| 10 |
+
* =================================================================
|
| 11 |
+
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
+
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
+
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
+
* =================================================================
|
| 17 |
+
*/
|
| 18 |
class Apptha_Timer_Block_Compare extends Mage_Catalog_Block_Product_Compare_List
|
| 19 |
{
|
| 20 |
protected function _prepareLayout()
|
app/code/local/Apptha/Timer/Block/List.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Block/View.php
CHANGED
|
@@ -10,12 +10,11 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
-
|
| 19 |
class Apptha_Timer_Block_View extends Mage_Catalog_Block_Product_View
|
| 20 |
{
|
| 21 |
protected function _prepareLayout()
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
|
|
|
| 18 |
class Apptha_Timer_Block_View extends Mage_Catalog_Block_Product_View
|
| 19 |
{
|
| 20 |
protected function _prepareLayout()
|
app/code/local/Apptha/Timer/Helper/Data.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Model/Mysql4/Timer.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Model/Mysql4/Timer/Collection.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Model/Status.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/Model/Timer.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/controllers/Adminhtml/TimerController.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/controllers/IndexController.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Apptha/Timer/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Apptha_Timer>
|
| 5 |
-
<version>0.1.
|
| 6 |
</Apptha_Timer>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Apptha_Timer>
|
| 5 |
+
<version>0.1.2</version>
|
| 6 |
</Apptha_Timer>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
app/code/local/Apptha/Timer/etc/system.xml
CHANGED
|
@@ -82,6 +82,7 @@
|
|
| 82 |
<show_in_default>1</show_in_default>
|
| 83 |
<show_in_website>1</show_in_website>
|
| 84 |
<show_in_store>1</show_in_store>
|
|
|
|
| 85 |
<comment>Please Click the text box to select color</comment>
|
| 86 |
</text>
|
| 87 |
|
|
@@ -92,6 +93,7 @@
|
|
| 92 |
<show_in_default>1</show_in_default>
|
| 93 |
<show_in_website>1</show_in_website>
|
| 94 |
<show_in_store>1</show_in_store>
|
|
|
|
| 95 |
<comment>Please Click the text box to select color</comment>
|
| 96 |
</heading_text_color>
|
| 97 |
|
|
@@ -102,6 +104,7 @@
|
|
| 102 |
<show_in_default>1</show_in_default>
|
| 103 |
<show_in_website>1</show_in_website>
|
| 104 |
<show_in_store>1</show_in_store>
|
|
|
|
| 105 |
<comment>Please Click the text box to select color</comment>
|
| 106 |
</description>
|
| 107 |
|
| 82 |
<show_in_default>1</show_in_default>
|
| 83 |
<show_in_website>1</show_in_website>
|
| 84 |
<show_in_store>1</show_in_store>
|
| 85 |
+
<validate>color</validate>
|
| 86 |
<comment>Please Click the text box to select color</comment>
|
| 87 |
</text>
|
| 88 |
|
| 93 |
<show_in_default>1</show_in_default>
|
| 94 |
<show_in_website>1</show_in_website>
|
| 95 |
<show_in_store>1</show_in_store>
|
| 96 |
+
<validate>color</validate>
|
| 97 |
<comment>Please Click the text box to select color</comment>
|
| 98 |
</heading_text_color>
|
| 99 |
|
| 104 |
<show_in_default>1</show_in_default>
|
| 105 |
<show_in_website>1</show_in_website>
|
| 106 |
<show_in_store>1</show_in_store>
|
| 107 |
+
<validate>color</validate>
|
| 108 |
<comment>Please Click the text box to select color</comment>
|
| 109 |
</description>
|
| 110 |
|
app/code/local/Apptha/Timer/sql/timer_setup/mysql4-install-0.1.0.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Caption.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
class Mage_Adminhtml_Model_System_Config_Source_caption
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
class Mage_Adminhtml_Model_System_Config_Source_caption
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Heading.php
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
|
app/design/adminhtml/default/default/layout/timer.xml
CHANGED
|
@@ -1,10 +1,15 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<layout version="0.1.0">
|
| 3 |
-
<default>
|
| 4 |
<reference name="head">
|
| 5 |
<action method="addJs"><script>jscolor/jscolor.js</script></action>
|
| 6 |
</reference>
|
| 7 |
-
</default
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
<timer_adminhtml_timer_index>
|
| 10 |
<reference name="content">
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<layout version="0.1.0">
|
| 3 |
+
<!-- <default>
|
| 4 |
<reference name="head">
|
| 5 |
<action method="addJs"><script>jscolor/jscolor.js</script></action>
|
| 6 |
</reference>
|
| 7 |
+
</default>-->
|
| 8 |
+
<adminhtml_system_config_edit>
|
| 9 |
+
<reference name="head">
|
| 10 |
+
<action method="addJs"><file>jscolor/jscolor.js</file></action>
|
| 11 |
+
</reference>
|
| 12 |
+
</adminhtml_system_config_edit>
|
| 13 |
|
| 14 |
<timer_adminhtml_timer_index>
|
| 15 |
<reference name="content">
|
app/design/frontend/default/default/template/facebooklb/head.phtml
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
<?php $product = Mage::registry('current_product'); ?>
|
| 2 |
-
|
| 3 |
-
<meta property="fb:app_id" content="<?php echo Mage::getStoreConfig('facebooklb/general/appid'); ?>"/>
|
| 4 |
-
<?php if ($product): ?>
|
| 5 |
-
<meta property="og:title" content="<?php echo trim($product->getName()); ?>"/>
|
| 6 |
-
<?php endif; ?>
|
| 7 |
-
<meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl();?>"/>
|
| 8 |
-
<meta property="og:type" content="product"/>
|
| 9 |
-
<meta property="og:image" content="<?php echo Mage::getBaseUrl('media') . ltrim($product->getImage(), '/');?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/facebooklb/like.phtml
DELETED
|
@@ -1,43 +0,0 @@
|
|
| 1 |
-
<?php echo 'jkdnfkdsnm';?>
|
| 2 |
-
|
| 3 |
-
<?php if (Mage::getStoreConfig('facebooklb/general/enabled')) : ?>
|
| 4 |
-
<?php if (!Mage::getStoreConfig('facebooklb/opengraph/enabled_op')) :
|
| 5 |
-
$facebookUrl = 'http://www.facebook.com/plugins/like.php?' .
|
| 6 |
-
'api_key = ' . Mage::getStoreConfig('facebooklb/general/appkey') .
|
| 7 |
-
'&href=' . $this->helper('core/url')->getCurrentUrl() .
|
| 8 |
-
'&layout=' . Mage::getStoreConfig('facebooklb/general/layout') .
|
| 9 |
-
'&node_type=link&sdk=joey' .
|
| 10 |
-
'&show_faces=' . Mage::getStoreConfig('facebooklb/general/showfaces') .
|
| 11 |
-
'&action=' . Mage::getStoreConfig('facebooklb/general/verb') .
|
| 12 |
-
'&font=' . Mage::getStoreConfig('facebooklb/general/font') .
|
| 13 |
-
'&colorscheme="' . Mage::getStoreConfig('facebooklb/general/color') . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:' . Mage::getStoreConfig('facebooklb/general/width') . 'px; height:' . Mage::getStoreConfig('facebooklb/general/height') . 'px">'
|
| 14 |
-
;
|
| 15 |
-
?>
|
| 16 |
-
|
| 17 |
-
<iframe src="<?php echo $facebookUrl; ?>" </iframe>
|
| 18 |
-
|
| 19 |
-
<?php else: ?>
|
| 20 |
-
|
| 21 |
-
<div id="fb-root"></div>
|
| 22 |
-
<script>
|
| 23 |
-
window.fbAsyncInit = function() {
|
| 24 |
-
FB.init({
|
| 25 |
-
appId : <?php echo Mage::getStoreConfig('facebooklb/general/appid'); ?>,
|
| 26 |
-
status : true,
|
| 27 |
-
cookie : true,
|
| 28 |
-
xfbml : true
|
| 29 |
-
});
|
| 30 |
-
};
|
| 31 |
-
|
| 32 |
-
(function() {
|
| 33 |
-
var e = document.createElement('script');
|
| 34 |
-
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
|
| 35 |
-
e.async = true;
|
| 36 |
-
document.getElementById('fb-root').appendChild(e);
|
| 37 |
-
}());
|
| 38 |
-
</script>
|
| 39 |
-
<div><fb:like expr:href=' <?php echo Mage::helper('core/url')->getCurrentUrl(); ?> '/></div>
|
| 40 |
-
|
| 41 |
-
<?php endif; ?>
|
| 42 |
-
|
| 43 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/gr/deepzoom/product/view/media.phtml
DELETED
|
@@ -1,68 +0,0 @@
|
|
| 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 |
-
/**
|
| 28 |
-
* Product media data template
|
| 29 |
-
*
|
| 30 |
-
* @see Mage_Catalog_Block_Product_View_Media
|
| 31 |
-
*/
|
| 32 |
-
?>
|
| 33 |
-
<?php
|
| 34 |
-
$_product = $this->getProduct();
|
| 35 |
-
?>
|
| 36 |
-
<p class="product-image">
|
| 37 |
-
<div id="container-deepzoom"></div>
|
| 38 |
-
<?php if ($_product->getImage() == 'no_selection' || !$_product->getImage()): ?>
|
| 39 |
-
<div class="no-selection">
|
| 40 |
-
<?php
|
| 41 |
-
$_helper = $this->helper('catalog/output');
|
| 42 |
-
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
| 43 |
-
echo $_helper->productAttribute($_product, $_img, 'image');
|
| 44 |
-
?>
|
| 45 |
-
</div>
|
| 46 |
-
<?php endif; ?>
|
| 47 |
-
</p>
|
| 48 |
-
<?php if (count($this->getGalleryImages()) > 0): ?>
|
| 49 |
-
<div class="more-views">
|
| 50 |
-
<h2><?php echo $this->__('More Views') ?></h2>
|
| 51 |
-
<ul>
|
| 52 |
-
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
| 53 |
-
<li>
|
| 54 |
-
<a href="<?php echo $this->helper('grdeepzoom')->getDescriptorUrl($_image->getFile())?>" rel="seadragon" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
|
| 55 |
-
</li>
|
| 56 |
-
<?php endforeach; ?>
|
| 57 |
-
</ul>
|
| 58 |
-
</div>
|
| 59 |
-
<?php endif; ?>
|
| 60 |
-
<script type="text/javascript">
|
| 61 |
-
//<![CDATA[
|
| 62 |
-
var seadragonUi = new GrSeadragonUi('container-deepzoom',{Config:<?php echo $this->helper('grdeepzoom')->getConfigJson();?>,noSelection:'.no-selection',containerStyles: {width: '265px',height:'265px',backgroundColor:'white',color:'white'},Tooltips:{ZoomIn: '<?php echo $this->__('Zoom in (you can also use your mouse\\\'s scroll wheel)'); ?>',ZoomOut: '<?php echo $this->__('Zoom out (you can also use your mouse\\\'s scroll wheel)'); ?>',Home: '<?php echo $this->__('Go home'); ?>',FullPage: '<?php echo $this->__('Toggle full page'); ?>'}});
|
| 63 |
-
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
|
| 64 |
-
seadragonUi.open('<?php echo $this->helper('grdeepzoom')->getDescriptorUrl($_product->getImage())?>');
|
| 65 |
-
seadragonUi.loadGallery(<?php echo $this->helper('grdeepzoom')->getGalleryImagesJson($this->getGalleryImages());?>);
|
| 66 |
-
<?php endif;?>
|
| 67 |
-
//]]>
|
| 68 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/gr/deepzoom/product/widget/gallery.phtml
DELETED
|
@@ -1,49 +0,0 @@
|
|
| 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 Gr
|
| 22 |
-
* @package Gr_Deepzoom
|
| 23 |
-
* @copyright Copyright (c) 2010 groupeReflect (http://www.groupereflect.net)
|
| 24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
-
*/
|
| 26 |
-
if($this->getDescriptor() != 'no_selection' && $this->getDescriptor()):
|
| 27 |
-
$_helper = $this->helper('grdeepzoom');
|
| 28 |
-
$_idDeep = $this->helper('core')->uniqHash();
|
| 29 |
-
?>
|
| 30 |
-
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('css/gr/deepzoom/seadragon-0.6.0.css');?>" media="all" />
|
| 31 |
-
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/gr/deepzoom/seadragon-0-8-4-min.js');?>"></script>
|
| 32 |
-
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/gr/deepzoom/seadragon-ui-0.6.0-min.js');?>"></script>
|
| 33 |
-
<div class="deepzoom" >
|
| 34 |
-
<div id="container-<?php echo $_idDeep ?>"></div>
|
| 35 |
-
</div>
|
| 36 |
-
|
| 37 |
-
<script type="text/javascript">
|
| 38 |
-
//<![CDATA[
|
| 39 |
-
var seadragonUi<?php echo $_idDeep ?> = new GrSeadragonUi('container-<?php echo $_idDeep ?>',
|
| 40 |
-
{containerStyles:
|
| 41 |
-
{width: '<?php echo $this->getWidth()?>px',
|
| 42 |
-
height:'<?php echo $this->getHeight()?>px',
|
| 43 |
-
backgroundColor:'<?php echo $this->getBackgroundColor()?>',
|
| 44 |
-
color:'white'}});
|
| 45 |
-
seadragonUi<?php echo $_idDeep ?>.open('<?php echo $_helper->getDescriptorUrl($this->getDescriptor())?>');
|
| 46 |
-
seadragonUi<?php echo $_idDeep ?>.loadGallery(<?php echo $this->getGalleryImagesJson()?>);
|
| 47 |
-
//]]>
|
| 48 |
-
</script>
|
| 49 |
-
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/gr/deepzoom/product/widget/image.phtml
DELETED
|
@@ -1,49 +0,0 @@
|
|
| 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 Gr
|
| 22 |
-
* @package Gr_Deepzoom
|
| 23 |
-
* @copyright Copyright (c) 2010 groupeReflect (http://www.groupereflect.net)
|
| 24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
-
*/
|
| 26 |
-
if($this->getDescriptor() != 'no_selection' && $this->getDescriptor()):
|
| 27 |
-
$_helper = $this->helper('grdeepzoom');
|
| 28 |
-
$_idDeep = $this->helper('core')->uniqHash();
|
| 29 |
-
?>
|
| 30 |
-
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('css/gr/deepzoom/seadragon-0.6.0.css');?>" media="all" />
|
| 31 |
-
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/gr/deepzoom/seadragon-0-8-4-min.js');?>"></script>
|
| 32 |
-
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/gr/deepzoom/seadragon-ui-0.6.0-min.js');?>"></script>
|
| 33 |
-
<div class="deepzoom" >
|
| 34 |
-
<div id="container-<?php echo $_idDeep; ?>"></div>
|
| 35 |
-
</div>
|
| 36 |
-
|
| 37 |
-
<script type="text/javascript">
|
| 38 |
-
//<![CDATA[
|
| 39 |
-
var seadragonUi<?php echo $_idDeep; ?> = new GrSeadragonUi('container-<?php echo $_idDeep; ?>',
|
| 40 |
-
{containerStyles:
|
| 41 |
-
{width: '<?php echo $this->getWidth()?>px',
|
| 42 |
-
height:'<?php echo $this->getHeight()?>px',
|
| 43 |
-
backgroundColor:'<?php echo $this->getBackgroundColor()?>',
|
| 44 |
-
color:'white'}});
|
| 45 |
-
seadragonUi<?php echo $_idDeep; ?>.open('<?php echo $_helper->getDescriptorUrl($this->getDescriptor())?>');
|
| 46 |
-
//]]>
|
| 47 |
-
</script>
|
| 48 |
-
<?php endif;?>
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/smoovpay/blank.phtml
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-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 |
-
* @category design_default
|
| 16 |
-
* @package Apptha_Smoovpay
|
| 17 |
-
* @copyright Copyright (c) 2011 ContusSupport
|
| 18 |
-
*/
|
| 19 |
-
?>
|
| 20 |
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 21 |
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
| 22 |
-
<head>
|
| 23 |
-
</head>
|
| 24 |
-
<body>
|
| 25 |
-
<?php echo $this->getChildHtml('content') ?>
|
| 26 |
-
</body>
|
| 27 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/smoovpay/cancel.phtml
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-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 |
-
* @category design_default
|
| 16 |
-
* @package Apptha_Smoovpay
|
| 17 |
-
* @copyright Copyright (c) 2011 ContusSupport
|
| 18 |
-
*/
|
| 19 |
-
?>
|
| 20 |
-
<html>
|
| 21 |
-
<meta http-equiv="refresh" content="0; URL=<?php echo $this->getContinueShoppingUrl() ?>">
|
| 22 |
-
<body>
|
| 23 |
-
<div class="page-head">
|
| 24 |
-
<h3><?php echo Mage::helper('smoovpay')->__('Payment was canceled') ?></h3>
|
| 25 |
-
</div>
|
| 26 |
-
<p><?php echo Mage::helper('smoovpay')->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
|
| 27 |
-
</body>
|
| 28 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/smoovpay/failure.phtml
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-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 |
-
* @category design_default
|
| 16 |
-
* @package Apptha_Smoovpay
|
| 17 |
-
* @copyright Copyright (c) 2011 ContusSupport
|
| 18 |
-
*/
|
| 19 |
-
?>
|
| 20 |
-
<html>
|
| 21 |
-
<meta http-equiv="refresh" content="0; URL=<?php echo $this->getContinueShoppingUrl()?>">
|
| 22 |
-
<body>
|
| 23 |
-
<div class="page-head">
|
| 24 |
-
<h3><?php echo Mage::helper('smoovpay')->__('Error occurred') ?></h3>
|
| 25 |
-
</div>
|
| 26 |
-
<p><?php echo Mage::helper('smoovpay')->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
|
| 27 |
-
</body>
|
| 28 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/smoovpay/form.phtml
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-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 |
-
* @category design_default
|
| 16 |
-
* @package Apptha_Smoovpay
|
| 17 |
-
* @copyright Copyright (c) 2011 ContusSupport
|
| 18 |
-
*/
|
| 19 |
-
?>
|
| 20 |
-
<fieldset class="form-list">
|
| 21 |
-
<?php $_code = $this->getMethodCode() ?>
|
| 22 |
-
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 23 |
-
<li>
|
| 24 |
-
<?php echo Mage::helper('smoovpay')->__('You will be redirected to Smoovpay website when you place an order.') ?><br/>
|
| 25 |
-
<img src="https://www.smoovpay.com/img/btn_smoovpay_v1.png" alt="SmoovPay!" />
|
| 26 |
-
|
| 27 |
-
</li>
|
| 28 |
-
</ul>
|
| 29 |
-
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/smoovpay/info.phtml
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-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 |
-
* @category design_default
|
| 16 |
-
* @package Apptha_Smoovpay
|
| 17 |
-
* @copyright Copyright (c) 2011 ContusSupport
|
| 18 |
-
*/
|
| 19 |
-
?>
|
| 20 |
-
<?php
|
| 21 |
-
echo $this->getMethod()->getTitle() . '<br/>';
|
| 22 |
-
if ($this->getInfo()->getLastTransId() == '') {
|
| 23 |
-
echo '<em>' . Mage::helper('smoovpay')->__($this->getMethodCode().':You will be redirected to Smoovpay website when you place an order.') . '</em>';
|
| 24 |
-
} else {
|
| 25 |
-
echo Mage::helper('smoovpay')->__('Credit Card Type: %s', $this->htmlEscape($this->getInfo()->getCcType())) . '<br/>';
|
| 26 |
-
echo Mage::helper('smoovpay')->__('smoovpay Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) . '<br/>';
|
| 27 |
-
}
|
| 28 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/smoovpay/redirect.phtml
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-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 |
-
* @category design_default
|
| 16 |
-
* @package Apptha_Smoovpay
|
| 17 |
-
* @copyright Copyright (c) 2011 ContusSupport
|
| 18 |
-
*/
|
| 19 |
-
?>
|
| 20 |
-
<b><?php echo Mage::helper('smoovpay')->__('You will be redirected to smoovpay in a few seconds.'); ?></b>
|
| 21 |
-
<form name="smoovpay_checkout" id="smoovpay_checkout" action="<?php echo $this->getFormAction();?>" method="POST">
|
| 22 |
-
<?php if (is_array($this->getFormData())): ?>
|
| 23 |
-
<?php foreach ($this->getFormData() as $name => $value): ?>
|
| 24 |
-
<input type="hidden" name="<?php echo $name; ?>" <?php if (!is_null($value)) { echo 'value="'. $value . '"'; } ?> />
|
| 25 |
-
<?php endforeach; ?>
|
| 26 |
-
<?php endif; ?>
|
| 27 |
-
</form>
|
| 28 |
-
|
| 29 |
-
<script type="text/javascript">
|
| 30 |
-
//<![CDATA[
|
| 31 |
-
var paymentform = document.getElementById('smoovpay_checkout');
|
| 32 |
-
window.onload = paymentform.submit();
|
| 33 |
-
//]]>
|
| 34 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/timer/list.phtml
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
?>
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
?>
|
app/design/frontend/default/default/template/timer/view.phtml
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
-
* This package designed for Magento 1.4.x and 1.
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
-
* on any other Magento edition except Magento 1.4.x and 1.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
?>
|
| 10 |
* =================================================================
|
| 11 |
* MAGENTO EDITION USAGE NOTICE
|
| 12 |
* =================================================================
|
| 13 |
+
* This package designed for Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition
|
| 14 |
* Contus Support does not guarantee correct work of this package
|
| 15 |
+
* on any other Magento edition except Magento 1.4.x, 1.5.x, 1.6.x and 1.7.x COMMUNITY edition.
|
| 16 |
* =================================================================
|
| 17 |
*/
|
| 18 |
?>
|
js/jscolor/Thumbs.db
DELETED
|
Binary file
|
js/jscolor/arrow.gif
DELETED
|
Binary file
|
js/jscolor/cross.gif
DELETED
|
Binary file
|
js/jscolor/demo.html
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
<html>
|
| 2 |
-
<head>
|
| 3 |
-
<title>jscolor demo</title>
|
| 4 |
-
</head>
|
| 5 |
-
<body>
|
| 6 |
-
|
| 7 |
-
<script type="text/javascript" src="jscolor.js"></script>
|
| 8 |
-
|
| 9 |
-
Click here: <input class="color" value="66ff00">
|
| 10 |
-
|
| 11 |
-
</body>
|
| 12 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/jscolor/hs.png
DELETED
|
Binary file
|
js/jscolor/hv.png
DELETED
|
Binary file
|
js/jscolor/jscolor.js
DELETED
|
@@ -1,863 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* jscolor, JavaScript Color Picker
|
| 3 |
-
*
|
| 4 |
-
* @version 1.3.1
|
| 5 |
-
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
|
| 6 |
-
* @author Jan Odvarko, http://odvarko.cz
|
| 7 |
-
* @created 2008-06-15
|
| 8 |
-
* @updated 2010-01-23
|
| 9 |
-
* @link http://jscolor.com
|
| 10 |
-
*/
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
var jscolor = {
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
dir : '', // location of jscolor directory (leave empty to autodetect)
|
| 17 |
-
bindClass : 'timer_apptha_timer_color_text',
|
| 18 |
-
bindClass1 : 'timer_apptha_timer_color_description',
|
| 19 |
-
bindClass2 : 'timer_apptha_timer_color_heading_text_color', // class name
|
| 20 |
-
binding : true, // automatic binding via <input class="...">
|
| 21 |
-
preloading : true, // use image preloading?
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
install : function() {
|
| 25 |
-
jscolor.addEvent(window, 'load', jscolor.init);
|
| 26 |
-
},
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
init : function() {
|
| 30 |
-
if(jscolor.binding) {
|
| 31 |
-
jscolor.bind();
|
| 32 |
-
}
|
| 33 |
-
if(jscolor.preloading) {
|
| 34 |
-
jscolor.preload();
|
| 35 |
-
}
|
| 36 |
-
},
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
getDir : function() {
|
| 40 |
-
if(!jscolor.dir) {
|
| 41 |
-
var detected = jscolor.detectDir();
|
| 42 |
-
jscolor.dir = detected!==false ? detected : 'jscolor/';
|
| 43 |
-
}
|
| 44 |
-
return jscolor.dir;
|
| 45 |
-
},
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
detectDir : function() {
|
| 49 |
-
var base = location.href;
|
| 50 |
-
|
| 51 |
-
var e = document.getElementsByTagName('base');
|
| 52 |
-
for(var i=0; i<e.length; i+=1) {
|
| 53 |
-
if(e[i].href) {base = e[i].href;}
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
-
var e = document.getElementsByTagName('script');
|
| 57 |
-
for(var i=0; i<e.length; i+=1) {
|
| 58 |
-
if(e[i].src && /(^|\/)jscolor\.js([?#].*)?$/i.test(e[i].src)) {
|
| 59 |
-
var src = new jscolor.URI(e[i].src);
|
| 60 |
-
var srcAbs = src.toAbsolute(base);
|
| 61 |
-
srcAbs.path = srcAbs.path.replace(/[^\/]+$/, ''); // remove filename
|
| 62 |
-
srcAbs.query = null;
|
| 63 |
-
srcAbs.fragment = null;
|
| 64 |
-
return srcAbs.toString();
|
| 65 |
-
}
|
| 66 |
-
}
|
| 67 |
-
return false;
|
| 68 |
-
},
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
bind : function() {
|
| 72 |
-
var matchClass = new RegExp('(^|\\s)('+jscolor.bindClass+')\\s*(\\{[^}]*\\})?', 'i');
|
| 73 |
-
var matchClass1 = new RegExp('(^|\\s)('+jscolor.bindClass1+')\\s*(\\{[^}]*\\})?', 'i');
|
| 74 |
-
var matchClass2 = new RegExp('(^|\\s)('+jscolor.bindClass2+')\\s*(\\{[^}]*\\})?', 'i');
|
| 75 |
-
var e = document.getElementsByTagName('input');
|
| 76 |
-
for(var i=0; i<e.length; i+=1) {
|
| 77 |
-
var m;
|
| 78 |
-
if(!e[i].color && e[i].id&& (m = e[i].id.match(matchClass))) {
|
| 79 |
-
var prop = {};
|
| 80 |
-
if(m[3]) {
|
| 81 |
-
try {
|
| 82 |
-
eval('prop='+m[3]);
|
| 83 |
-
} catch(eInvalidProp) {}
|
| 84 |
-
}
|
| 85 |
-
e[i].color = new jscolor.color(e[i], prop);
|
| 86 |
-
}
|
| 87 |
-
if(!e[i].color && e[i].id&& (m = e[i].id.match(matchClass1))) {
|
| 88 |
-
var prop = {};
|
| 89 |
-
if(m[3]) {
|
| 90 |
-
try {
|
| 91 |
-
eval('prop='+m[3]);
|
| 92 |
-
} catch(eInvalidProp) {}
|
| 93 |
-
}
|
| 94 |
-
e[i].color = new jscolor.color(e[i], prop);
|
| 95 |
-
}
|
| 96 |
-
if(!e[i].color && e[i].id&& (m = e[i].id.match(matchClass2))) {
|
| 97 |
-
var prop = {};
|
| 98 |
-
if(m[3]) {
|
| 99 |
-
try {
|
| 100 |
-
eval('prop='+m[3]);
|
| 101 |
-
} catch(eInvalidProp) {}
|
| 102 |
-
}
|
| 103 |
-
e[i].color = new jscolor.color(e[i], prop);
|
| 104 |
-
}
|
| 105 |
-
}
|
| 106 |
-
},
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
preload : function() {
|
| 110 |
-
for(var fn in jscolor.imgRequire) {
|
| 111 |
-
if(jscolor.imgRequire.hasOwnProperty(fn)) {
|
| 112 |
-
jscolor.loadImage(fn);
|
| 113 |
-
}
|
| 114 |
-
}
|
| 115 |
-
},
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
images : {
|
| 119 |
-
pad : [ 181, 101 ],
|
| 120 |
-
sld : [ 16, 101 ],
|
| 121 |
-
cross : [ 15, 15 ],
|
| 122 |
-
arrow : [ 7, 11 ]
|
| 123 |
-
},
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
imgRequire : {},
|
| 127 |
-
imgLoaded : {},
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
requireImage : function(filename) {
|
| 131 |
-
jscolor.imgRequire[filename] = true;
|
| 132 |
-
},
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
loadImage : function(filename) {
|
| 136 |
-
if(!jscolor.imgLoaded[filename]) {
|
| 137 |
-
jscolor.imgLoaded[filename] = new Image();
|
| 138 |
-
jscolor.imgLoaded[filename].src = jscolor.getDir()+filename;
|
| 139 |
-
}
|
| 140 |
-
},
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
fetchElement : function(mixed) {
|
| 144 |
-
return typeof mixed === 'string' ? document.getElementById(mixed) : mixed;
|
| 145 |
-
},
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
addEvent : function(el, evnt, func) {
|
| 149 |
-
if(el.addEventListener) {
|
| 150 |
-
el.addEventListener(evnt, func, false);
|
| 151 |
-
} else if(el.attachEvent) {
|
| 152 |
-
el.attachEvent('on'+evnt, func);
|
| 153 |
-
}
|
| 154 |
-
},
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
fireEvent : function(el, evnt) {
|
| 158 |
-
if(!el) {
|
| 159 |
-
return;
|
| 160 |
-
}
|
| 161 |
-
if(document.createEventObject) {
|
| 162 |
-
var ev = document.createEventObject();
|
| 163 |
-
el.fireEvent('on'+evnt, ev);
|
| 164 |
-
} else if(document.createEvent) {
|
| 165 |
-
var ev = document.createEvent('HTMLEvents');
|
| 166 |
-
ev.initEvent(evnt, true, true);
|
| 167 |
-
el.dispatchEvent(ev);
|
| 168 |
-
} else if(el['on'+evnt]) { // alternatively use the traditional event model (IE5)
|
| 169 |
-
el['on'+evnt]();
|
| 170 |
-
}
|
| 171 |
-
},
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
getElementPos : function(e) {
|
| 175 |
-
var e1=e, e2=e;
|
| 176 |
-
var x=0, y=0;
|
| 177 |
-
if(e1.offsetParent) {
|
| 178 |
-
do {
|
| 179 |
-
x += e1.offsetLeft;
|
| 180 |
-
y += e1.offsetTop;
|
| 181 |
-
} while(e1 = e1.offsetParent);
|
| 182 |
-
}
|
| 183 |
-
while((e2 = e2.parentNode) && e2.nodeName.toUpperCase() !== 'BODY') {
|
| 184 |
-
x -= e2.scrollLeft;
|
| 185 |
-
y -= e2.scrollTop;
|
| 186 |
-
}
|
| 187 |
-
return [x, y];
|
| 188 |
-
},
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
getElementSize : function(e) {
|
| 192 |
-
return [e.offsetWidth, e.offsetHeight];
|
| 193 |
-
},
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
getMousePos : function(e) {
|
| 197 |
-
if(!e) {e = window.event;}
|
| 198 |
-
if(typeof e.pageX === 'number') {
|
| 199 |
-
return [e.pageX, e.pageY];
|
| 200 |
-
} else if(typeof e.clientX === 'number') {
|
| 201 |
-
return [
|
| 202 |
-
e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft,
|
| 203 |
-
e.clientY + document.body.scrollTop + document.documentElement.scrollTop
|
| 204 |
-
];
|
| 205 |
-
}
|
| 206 |
-
},
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
getViewPos : function() {
|
| 210 |
-
if(typeof window.pageYOffset === 'number') {
|
| 211 |
-
return [window.pageXOffset, window.pageYOffset];
|
| 212 |
-
} else if(document.body && (document.body.scrollLeft || document.body.scrollTop)) {
|
| 213 |
-
return [document.body.scrollLeft, document.body.scrollTop];
|
| 214 |
-
}else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
|
| 215 |
-
return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
|
| 216 |
-
}else {
|
| 217 |
-
return [0, 0];
|
| 218 |
-
}
|
| 219 |
-
},
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
getViewSize : function() {
|
| 223 |
-
if(typeof window.innerWidth === 'number') {
|
| 224 |
-
return [window.innerWidth, window.innerHeight];
|
| 225 |
-
} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
|
| 226 |
-
return [document.body.clientWidth, document.body.clientHeight];
|
| 227 |
-
} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
|
| 228 |
-
return [document.documentElement.clientWidth, document.documentElement.clientHeight];
|
| 229 |
-
} else {
|
| 230 |
-
return [0, 0];
|
| 231 |
-
}
|
| 232 |
-
},
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
URI : function(uri) { // See RFC3986
|
| 236 |
-
|
| 237 |
-
this.scheme = null;
|
| 238 |
-
this.authority = null;
|
| 239 |
-
this.path = '';
|
| 240 |
-
this.query = null;
|
| 241 |
-
this.fragment = null;
|
| 242 |
-
|
| 243 |
-
this.parse = function(uri) {
|
| 244 |
-
var m = uri.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);
|
| 245 |
-
this.scheme = m[3] ? m[2] : null;
|
| 246 |
-
this.authority = m[5] ? m[6] : null;
|
| 247 |
-
this.path = m[7];
|
| 248 |
-
this.query = m[9] ? m[10] : null;
|
| 249 |
-
this.fragment = m[12] ? m[13] : null;
|
| 250 |
-
return this;
|
| 251 |
-
};
|
| 252 |
-
|
| 253 |
-
this.toString = function() {
|
| 254 |
-
var result = '';
|
| 255 |
-
if(this.scheme !== null) {result = result + this.scheme + ':';}
|
| 256 |
-
if(this.authority !== null) {result = result + '//' + this.authority;}
|
| 257 |
-
if(this.path !== null) {result = result + this.path;}
|
| 258 |
-
if(this.query !== null) {result = result + '?' + this.query;}
|
| 259 |
-
if(this.fragment !== null) {result = result + '#' + this.fragment;}
|
| 260 |
-
return result;
|
| 261 |
-
};
|
| 262 |
-
|
| 263 |
-
this.toAbsolute = function(base) {
|
| 264 |
-
var base = new jscolor.URI(base);
|
| 265 |
-
var r = this;
|
| 266 |
-
var t = new jscolor.URI;
|
| 267 |
-
|
| 268 |
-
if(base.scheme === null) {return false;}
|
| 269 |
-
|
| 270 |
-
if(r.scheme !== null && r.scheme.toLowerCase() === base.scheme.toLowerCase()) {
|
| 271 |
-
r.scheme = null;
|
| 272 |
-
}
|
| 273 |
-
|
| 274 |
-
if(r.scheme !== null) {
|
| 275 |
-
t.scheme = r.scheme;
|
| 276 |
-
t.authority = r.authority;
|
| 277 |
-
t.path = removeDotSegments(r.path);
|
| 278 |
-
t.query = r.query;
|
| 279 |
-
} else {
|
| 280 |
-
if(r.authority !== null) {
|
| 281 |
-
t.authority = r.authority;
|
| 282 |
-
t.path = removeDotSegments(r.path);
|
| 283 |
-
t.query = r.query;
|
| 284 |
-
} else {
|
| 285 |
-
if(r.path === '') { // TODO: == or === ?
|
| 286 |
-
t.path = base.path;
|
| 287 |
-
if(r.query !== null) {
|
| 288 |
-
t.query = r.query;
|
| 289 |
-
} else {
|
| 290 |
-
t.query = base.query;
|
| 291 |
-
}
|
| 292 |
-
} else {
|
| 293 |
-
if(r.path.substr(0,1) === '/') {
|
| 294 |
-
t.path = removeDotSegments(r.path);
|
| 295 |
-
} else {
|
| 296 |
-
if(base.authority !== null && base.path === '') { // TODO: == or === ?
|
| 297 |
-
t.path = '/'+r.path;
|
| 298 |
-
} else {
|
| 299 |
-
t.path = base.path.replace(/[^\/]+$/,'')+r.path;
|
| 300 |
-
}
|
| 301 |
-
t.path = removeDotSegments(t.path);
|
| 302 |
-
}
|
| 303 |
-
t.query = r.query;
|
| 304 |
-
}
|
| 305 |
-
t.authority = base.authority;
|
| 306 |
-
}
|
| 307 |
-
t.scheme = base.scheme;
|
| 308 |
-
}
|
| 309 |
-
t.fragment = r.fragment;
|
| 310 |
-
|
| 311 |
-
return t;
|
| 312 |
-
};
|
| 313 |
-
|
| 314 |
-
function removeDotSegments(path) {
|
| 315 |
-
var out = '';
|
| 316 |
-
while(path) {
|
| 317 |
-
if(path.substr(0,3)==='../' || path.substr(0,2)==='./') {
|
| 318 |
-
path = path.replace(/^\.+/,'').substr(1);
|
| 319 |
-
} else if(path.substr(0,3)==='/./' || path==='/.') {
|
| 320 |
-
path = '/'+path.substr(3);
|
| 321 |
-
} else if(path.substr(0,4)==='/../' || path==='/..') {
|
| 322 |
-
path = '/'+path.substr(4);
|
| 323 |
-
out = out.replace(/\/?[^\/]*$/, '');
|
| 324 |
-
} else if(path==='.' || path==='..') {
|
| 325 |
-
path = '';
|
| 326 |
-
} else {
|
| 327 |
-
var rm = path.match(/^\/?[^\/]*/)[0];
|
| 328 |
-
path = path.substr(rm.length);
|
| 329 |
-
out = out + rm;
|
| 330 |
-
}
|
| 331 |
-
}
|
| 332 |
-
return out;
|
| 333 |
-
}
|
| 334 |
-
|
| 335 |
-
if(uri) {
|
| 336 |
-
this.parse(uri);
|
| 337 |
-
}
|
| 338 |
-
|
| 339 |
-
},
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
/*
|
| 343 |
-
* Usage example:
|
| 344 |
-
* var myColor = new jscolor.color(myInputElement)
|
| 345 |
-
*/
|
| 346 |
-
|
| 347 |
-
color : function(target, prop) {
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
this.required = true; // refuse empty values?
|
| 351 |
-
this.adjust = true; // adjust value to uniform notation?
|
| 352 |
-
this.hash = false; // prefix color with # symbol?
|
| 353 |
-
this.caps = true; // uppercase?
|
| 354 |
-
this.valueElement = target; // value holder
|
| 355 |
-
this.styleElement = target; // where to reflect current color
|
| 356 |
-
this.hsv = [0, 0, 1]; // read-only 0-6, 0-1, 0-1
|
| 357 |
-
this.rgb = [1, 1, 1]; // read-only 0-1, 0-1, 0-1
|
| 358 |
-
|
| 359 |
-
this.pickerOnfocus = true; // display picker on focus?
|
| 360 |
-
this.pickerMode = 'HSV'; // HSV | HVS
|
| 361 |
-
this.pickerPosition = 'bottom'; // left | right | top | bottom
|
| 362 |
-
this.pickerFace = 10; // px
|
| 363 |
-
this.pickerFaceColor = 'ThreeDFace'; // CSS color
|
| 364 |
-
this.pickerBorder = 1; // px
|
| 365 |
-
this.pickerBorderColor = 'ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight'; // CSS color
|
| 366 |
-
this.pickerInset = 1; // px
|
| 367 |
-
this.pickerInsetColor = 'ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow'; // CSS color
|
| 368 |
-
this.pickerZIndex = 10000;
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
for(var p in prop) {
|
| 372 |
-
if(prop.hasOwnProperty(p)) {
|
| 373 |
-
this[p] = prop[p];
|
| 374 |
-
}
|
| 375 |
-
}
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
this.hidePicker = function() {
|
| 379 |
-
if(isPickerOwner()) {
|
| 380 |
-
removePicker();
|
| 381 |
-
}
|
| 382 |
-
};
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
this.showPicker = function() {
|
| 386 |
-
if(!isPickerOwner()) {
|
| 387 |
-
var tp = jscolor.getElementPos(target); // target pos
|
| 388 |
-
var ts = jscolor.getElementSize(target); // target size
|
| 389 |
-
var vp = jscolor.getViewPos(); // view pos
|
| 390 |
-
var vs = jscolor.getViewSize(); // view size
|
| 391 |
-
var ps = [ // picker size
|
| 392 |
-
2*this.pickerBorder + 4*this.pickerInset + 2*this.pickerFace + jscolor.images.pad[0] + 2*jscolor.images.arrow[0] + jscolor.images.sld[0],
|
| 393 |
-
2*this.pickerBorder + 2*this.pickerInset + 2*this.pickerFace + jscolor.images.pad[1]
|
| 394 |
-
];
|
| 395 |
-
var a, b, c;
|
| 396 |
-
switch(this.pickerPosition.toLowerCase()) {
|
| 397 |
-
case 'left':a=1;b=0;c=-1;break;
|
| 398 |
-
case 'right':a=1;b=0;c=1;break;
|
| 399 |
-
case 'top':a=0;b=1;c=-1;break;
|
| 400 |
-
default:a=0;b=1;c=1;break;
|
| 401 |
-
}
|
| 402 |
-
var l = (ts[b]+ps[b])/2;
|
| 403 |
-
var pp = [ // picker pos
|
| 404 |
-
-vp[a]+tp[a]+ps[a] > vs[a] ?
|
| 405 |
-
(-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :
|
| 406 |
-
tp[a],
|
| 407 |
-
-vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
|
| 408 |
-
(-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :
|
| 409 |
-
(tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
|
| 410 |
-
];
|
| 411 |
-
drawPicker(pp[a], pp[b]);
|
| 412 |
-
}
|
| 413 |
-
};
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
this.importColor = function() {
|
| 417 |
-
if(!valueElement) {
|
| 418 |
-
this.exportColor();
|
| 419 |
-
} else {
|
| 420 |
-
if(!this.adjust) {
|
| 421 |
-
if(!this.fromString(valueElement.value, leaveValue)) {
|
| 422 |
-
styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
|
| 423 |
-
styleElement.style.color = styleElement.jscStyle.color;
|
| 424 |
-
this.exportColor(leaveValue | leaveStyle);
|
| 425 |
-
}
|
| 426 |
-
} else if(!this.required && /^\s*$/.test(valueElement.value)) {
|
| 427 |
-
valueElement.value = '';
|
| 428 |
-
styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
|
| 429 |
-
styleElement.style.color = styleElement.jscStyle.color;
|
| 430 |
-
this.exportColor(leaveValue | leaveStyle);
|
| 431 |
-
|
| 432 |
-
} else if(this.fromString(valueElement.value)) {
|
| 433 |
-
// OK
|
| 434 |
-
} else {
|
| 435 |
-
this.exportColor();
|
| 436 |
-
}
|
| 437 |
-
}
|
| 438 |
-
};
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
this.exportColor = function(flags) {
|
| 442 |
-
if(!(flags & leaveValue) && valueElement) {
|
| 443 |
-
var value = this.toString();
|
| 444 |
-
if(this.caps) {value = value.toUpperCase();}
|
| 445 |
-
if(this.hash) {value = '#'+value;}
|
| 446 |
-
valueElement.value = value;
|
| 447 |
-
}
|
| 448 |
-
if(!(flags & leaveStyle) && styleElement) {
|
| 449 |
-
styleElement.style.backgroundColor =
|
| 450 |
-
'#'+this.toString();
|
| 451 |
-
styleElement.style.color =
|
| 452 |
-
0.213 * this.rgb[0] +
|
| 453 |
-
0.715 * this.rgb[1] +
|
| 454 |
-
0.072 * this.rgb[2]
|
| 455 |
-
< 0.5 ? '#FFF' : '#000';
|
| 456 |
-
}
|
| 457 |
-
if(!(flags & leavePad) && isPickerOwner()) {
|
| 458 |
-
redrawPad();
|
| 459 |
-
}
|
| 460 |
-
if(!(flags & leaveSld) && isPickerOwner()) {
|
| 461 |
-
redrawSld();
|
| 462 |
-
}
|
| 463 |
-
};
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
this.fromHSV = function(h, s, v, flags) { // null = don't change
|
| 467 |
-
h<0 && (h=0) || h>6 && (h=6);
|
| 468 |
-
s<0 && (s=0) || s>1 && (s=1);
|
| 469 |
-
v<0 && (v=0) || v>1 && (v=1);
|
| 470 |
-
this.rgb = HSV_RGB(
|
| 471 |
-
h===null ? this.hsv[0] : (this.hsv[0]=h),
|
| 472 |
-
s===null ? this.hsv[1] : (this.hsv[1]=s),
|
| 473 |
-
v===null ? this.hsv[2] : (this.hsv[2]=v)
|
| 474 |
-
);
|
| 475 |
-
this.exportColor(flags);
|
| 476 |
-
};
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
this.fromRGB = function(r, g, b, flags) { // null = don't change
|
| 480 |
-
r<0 && (r=0) || r>1 && (r=1);
|
| 481 |
-
g<0 && (g=0) || g>1 && (g=1);
|
| 482 |
-
b<0 && (b=0) || b>1 && (b=1);
|
| 483 |
-
var hsv = RGB_HSV(
|
| 484 |
-
r===null ? this.rgb[0] : (this.rgb[0]=r),
|
| 485 |
-
g===null ? this.rgb[1] : (this.rgb[1]=g),
|
| 486 |
-
b===null ? this.rgb[2] : (this.rgb[2]=b)
|
| 487 |
-
);
|
| 488 |
-
if(hsv[0] !== null) {
|
| 489 |
-
this.hsv[0] = hsv[0];
|
| 490 |
-
}
|
| 491 |
-
if(hsv[2] !== 0) {
|
| 492 |
-
this.hsv[1] = hsv[1];
|
| 493 |
-
}
|
| 494 |
-
this.hsv[2] = hsv[2];
|
| 495 |
-
this.exportColor(flags);
|
| 496 |
-
};
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
this.fromString = function(hex, flags) {
|
| 500 |
-
var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);
|
| 501 |
-
if(!m) {
|
| 502 |
-
return false;
|
| 503 |
-
} else {
|
| 504 |
-
if(m[1].length === 6) { // 6-char notation
|
| 505 |
-
this.fromRGB(
|
| 506 |
-
parseInt(m[1].substr(0,2),16) / 255,
|
| 507 |
-
parseInt(m[1].substr(2,2),16) / 255,
|
| 508 |
-
parseInt(m[1].substr(4,2),16) / 255,
|
| 509 |
-
flags
|
| 510 |
-
);
|
| 511 |
-
} else { // 3-char notation
|
| 512 |
-
this.fromRGB(
|
| 513 |
-
parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255,
|
| 514 |
-
parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255,
|
| 515 |
-
parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255,
|
| 516 |
-
flags
|
| 517 |
-
);
|
| 518 |
-
}
|
| 519 |
-
return true;
|
| 520 |
-
}
|
| 521 |
-
};
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
this.toString = function() {
|
| 525 |
-
return (
|
| 526 |
-
(0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
|
| 527 |
-
(0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
|
| 528 |
-
(0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
|
| 529 |
-
);
|
| 530 |
-
};
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
function RGB_HSV(r, g, b) {
|
| 534 |
-
var n = Math.min(Math.min(r,g),b);
|
| 535 |
-
var v = Math.max(Math.max(r,g),b);
|
| 536 |
-
var m = v - n;
|
| 537 |
-
if(m === 0) {return [ null, 0, v ];}
|
| 538 |
-
var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
|
| 539 |
-
return [ h===6?0:h, m/v, v ];
|
| 540 |
-
}
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
function HSV_RGB(h, s, v) {
|
| 544 |
-
if(h === null) {return [ v, v, v ];}
|
| 545 |
-
var i = Math.floor(h);
|
| 546 |
-
var f = i%2 ? h-i : 1-(h-i);
|
| 547 |
-
var m = v * (1 - s);
|
| 548 |
-
var n = v * (1 - s*f);
|
| 549 |
-
switch(i) {
|
| 550 |
-
case 6:
|
| 551 |
-
case 0:return [v,n,m];
|
| 552 |
-
case 1:return [n,v,m];
|
| 553 |
-
case 2:return [m,v,n];
|
| 554 |
-
case 3:return [m,n,v];
|
| 555 |
-
case 4:return [n,m,v];
|
| 556 |
-
case 5:return [v,m,n];
|
| 557 |
-
}
|
| 558 |
-
}
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
function removePicker() {
|
| 562 |
-
delete jscolor.picker.owner;
|
| 563 |
-
document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB);
|
| 564 |
-
}
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
function drawPicker(x, y) {
|
| 568 |
-
if(!jscolor.picker) {
|
| 569 |
-
jscolor.picker = {
|
| 570 |
-
box : document.createElement('div'),
|
| 571 |
-
boxB : document.createElement('div'),
|
| 572 |
-
pad : document.createElement('div'),
|
| 573 |
-
padB : document.createElement('div'),
|
| 574 |
-
padM : document.createElement('div'),
|
| 575 |
-
sld : document.createElement('div'),
|
| 576 |
-
sldB : document.createElement('div'),
|
| 577 |
-
sldM : document.createElement('div')
|
| 578 |
-
};
|
| 579 |
-
for(var i=0,segSize=4; i<jscolor.images.sld[1]; i+=segSize) {
|
| 580 |
-
var seg = document.createElement('div');
|
| 581 |
-
seg.style.height = segSize+'px';
|
| 582 |
-
seg.style.fontSize = '1px';
|
| 583 |
-
seg.style.lineHeight = '0';
|
| 584 |
-
jscolor.picker.sld.appendChild(seg);
|
| 585 |
-
}
|
| 586 |
-
jscolor.picker.sldB.appendChild(jscolor.picker.sld);
|
| 587 |
-
jscolor.picker.box.appendChild(jscolor.picker.sldB);
|
| 588 |
-
jscolor.picker.box.appendChild(jscolor.picker.sldM);
|
| 589 |
-
jscolor.picker.padB.appendChild(jscolor.picker.pad);
|
| 590 |
-
jscolor.picker.box.appendChild(jscolor.picker.padB);
|
| 591 |
-
jscolor.picker.box.appendChild(jscolor.picker.padM);
|
| 592 |
-
jscolor.picker.boxB.appendChild(jscolor.picker.box);
|
| 593 |
-
}
|
| 594 |
-
|
| 595 |
-
var p = jscolor.picker;
|
| 596 |
-
|
| 597 |
-
// recompute controls positions
|
| 598 |
-
posPad = [
|
| 599 |
-
x+THIS.pickerBorder+THIS.pickerFace+THIS.pickerInset,
|
| 600 |
-
y+THIS.pickerBorder+THIS.pickerFace+THIS.pickerInset ];
|
| 601 |
-
posSld = [
|
| 602 |
-
null,
|
| 603 |
-
y+THIS.pickerBorder+THIS.pickerFace+THIS.pickerInset ];
|
| 604 |
-
|
| 605 |
-
// controls interaction
|
| 606 |
-
p.box.onmouseup =
|
| 607 |
-
p.box.onmouseout = function() {target.focus();};
|
| 608 |
-
p.box.onmousedown = function() {abortBlur=true;};
|
| 609 |
-
p.box.onmousemove = function(e) {holdPad && setPad(e);holdSld && setSld(e);};
|
| 610 |
-
p.padM.onmouseup =
|
| 611 |
-
p.padM.onmouseout = function() {if(holdPad) {holdPad=false;jscolor.fireEvent(valueElement,'change');}};
|
| 612 |
-
p.padM.onmousedown = function(e) {holdPad=true;setPad(e);};
|
| 613 |
-
p.sldM.onmouseup =
|
| 614 |
-
p.sldM.onmouseout = function() {if(holdSld) {holdSld=false;jscolor.fireEvent(valueElement,'change');}};
|
| 615 |
-
p.sldM.onmousedown = function(e) {holdSld=true;setSld(e);};
|
| 616 |
-
|
| 617 |
-
// picker
|
| 618 |
-
p.box.style.width = 4*THIS.pickerInset + 2*THIS.pickerFace + jscolor.images.pad[0] + 2*jscolor.images.arrow[0] + jscolor.images.sld[0] + 'px';
|
| 619 |
-
p.box.style.height = 2*THIS.pickerInset + 2*THIS.pickerFace + jscolor.images.pad[1] + 'px';
|
| 620 |
-
|
| 621 |
-
// picker border
|
| 622 |
-
p.boxB.style.position = 'absolute';
|
| 623 |
-
p.boxB.style.clear = 'both';
|
| 624 |
-
p.boxB.style.left = x+'px';
|
| 625 |
-
p.boxB.style.top = y+'px';
|
| 626 |
-
p.boxB.style.zIndex = THIS.pickerZIndex;
|
| 627 |
-
p.boxB.style.border = THIS.pickerBorder+'px solid';
|
| 628 |
-
p.boxB.style.borderColor = THIS.pickerBorderColor;
|
| 629 |
-
p.boxB.style.background = THIS.pickerFaceColor;
|
| 630 |
-
|
| 631 |
-
// pad image
|
| 632 |
-
p.pad.style.width = jscolor.images.pad[0]+'px';
|
| 633 |
-
p.pad.style.height = jscolor.images.pad[1]+'px';
|
| 634 |
-
|
| 635 |
-
// pad border
|
| 636 |
-
p.padB.style.position = 'absolute';
|
| 637 |
-
p.padB.style.left = THIS.pickerFace+'px';
|
| 638 |
-
p.padB.style.top = THIS.pickerFace+'px';
|
| 639 |
-
p.padB.style.border = THIS.pickerInset+'px solid';
|
| 640 |
-
p.padB.style.borderColor = THIS.pickerInsetColor;
|
| 641 |
-
|
| 642 |
-
// pad mouse area
|
| 643 |
-
p.padM.style.position = 'absolute';
|
| 644 |
-
p.padM.style.left = '0';
|
| 645 |
-
p.padM.style.top = '0';
|
| 646 |
-
p.padM.style.width = THIS.pickerFace + 2*THIS.pickerInset + jscolor.images.pad[0] + jscolor.images.arrow[0] + 'px';
|
| 647 |
-
p.padM.style.height = p.box.style.height;
|
| 648 |
-
p.padM.style.cursor = 'crosshair';
|
| 649 |
-
|
| 650 |
-
// slider image
|
| 651 |
-
p.sld.style.overflow = 'hidden';
|
| 652 |
-
p.sld.style.width = jscolor.images.sld[0]+'px';
|
| 653 |
-
p.sld.style.height = jscolor.images.sld[1]+'px';
|
| 654 |
-
|
| 655 |
-
// slider border
|
| 656 |
-
p.sldB.style.position = 'absolute';
|
| 657 |
-
p.sldB.style.right = THIS.pickerFace+'px';
|
| 658 |
-
p.sldB.style.top = THIS.pickerFace+'px';
|
| 659 |
-
p.sldB.style.border = THIS.pickerInset+'px solid';
|
| 660 |
-
p.sldB.style.borderColor = THIS.pickerInsetColor;
|
| 661 |
-
|
| 662 |
-
// slider mouse area
|
| 663 |
-
p.sldM.style.position = 'absolute';
|
| 664 |
-
p.sldM.style.right = '0';
|
| 665 |
-
p.sldM.style.top = '0';
|
| 666 |
-
p.sldM.style.width = jscolor.images.sld[0] + jscolor.images.arrow[0] + THIS.pickerFace + 2*THIS.pickerInset + 'px';
|
| 667 |
-
p.sldM.style.height = p.box.style.height;
|
| 668 |
-
try {
|
| 669 |
-
p.sldM.style.cursor = 'pointer';
|
| 670 |
-
} catch(eOldIE) {
|
| 671 |
-
p.sldM.style.cursor = 'hand';
|
| 672 |
-
}
|
| 673 |
-
|
| 674 |
-
// load images in optimal order
|
| 675 |
-
switch(modeID) {
|
| 676 |
-
case 0:var padImg = 'hs.png';break;
|
| 677 |
-
case 1:var padImg = 'hv.png';break;
|
| 678 |
-
}
|
| 679 |
-
p.padM.style.background = "url('"+jscolor.getDir()+"cross.gif') no-repeat";
|
| 680 |
-
p.sldM.style.background = "url('"+jscolor.getDir()+"arrow.gif') no-repeat";
|
| 681 |
-
p.pad.style.background = "url('"+jscolor.getDir()+padImg+"') 0 0 no-repeat";
|
| 682 |
-
|
| 683 |
-
// place pointers
|
| 684 |
-
redrawPad();
|
| 685 |
-
redrawSld();
|
| 686 |
-
|
| 687 |
-
jscolor.picker.owner = THIS;
|
| 688 |
-
document.getElementsByTagName('body')[0].appendChild(p.boxB);
|
| 689 |
-
}
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
function redrawPad() {
|
| 693 |
-
// redraw the pad pointer
|
| 694 |
-
switch(modeID) {
|
| 695 |
-
case 0:var yComponent = 1;break;
|
| 696 |
-
case 1:var yComponent = 2;break;
|
| 697 |
-
}
|
| 698 |
-
var x = Math.round((THIS.hsv[0]/6) * (jscolor.images.pad[0]-1));
|
| 699 |
-
var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.pad[1]-1));
|
| 700 |
-
jscolor.picker.padM.style.backgroundPosition =
|
| 701 |
-
(THIS.pickerFace+THIS.pickerInset+x - Math.floor(jscolor.images.cross[0]/2)) + 'px ' +
|
| 702 |
-
(THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.cross[1]/2)) + 'px';
|
| 703 |
-
|
| 704 |
-
// redraw the slider image
|
| 705 |
-
var seg = jscolor.picker.sld.childNodes;
|
| 706 |
-
|
| 707 |
-
switch(modeID) {
|
| 708 |
-
case 0:
|
| 709 |
-
var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 1);
|
| 710 |
-
for(var i=0; i<seg.length; i+=1) {
|
| 711 |
-
seg[i].style.backgroundColor = 'rgb('+
|
| 712 |
-
(rgb[0]*(1-i/seg.length)*100)+'%,'+
|
| 713 |
-
(rgb[1]*(1-i/seg.length)*100)+'%,'+
|
| 714 |
-
(rgb[2]*(1-i/seg.length)*100)+'%)';
|
| 715 |
-
}
|
| 716 |
-
break;
|
| 717 |
-
case 1:
|
| 718 |
-
var rgb, s, c = [ THIS.hsv[2], 0, 0 ];
|
| 719 |
-
var i = Math.floor(THIS.hsv[0]);
|
| 720 |
-
var f = i%2 ? THIS.hsv[0]-i : 1-(THIS.hsv[0]-i);
|
| 721 |
-
switch(i) {
|
| 722 |
-
case 6:
|
| 723 |
-
case 0:rgb=[0,1,2];break;
|
| 724 |
-
case 1:rgb=[1,0,2];break;
|
| 725 |
-
case 2:rgb=[2,0,1];break;
|
| 726 |
-
case 3:rgb=[2,1,0];break;
|
| 727 |
-
case 4:rgb=[1,2,0];break;
|
| 728 |
-
case 5:rgb=[0,2,1];break;
|
| 729 |
-
}
|
| 730 |
-
for(var i=0; i<seg.length; i+=1) {
|
| 731 |
-
s = 1 - 1/(seg.length-1)*i;
|
| 732 |
-
c[1] = c[0] * (1 - s*f);
|
| 733 |
-
c[2] = c[0] * (1 - s);
|
| 734 |
-
seg[i].style.backgroundColor = 'rgb('+
|
| 735 |
-
(c[rgb[0]]*100)+'%,'+
|
| 736 |
-
(c[rgb[1]]*100)+'%,'+
|
| 737 |
-
(c[rgb[2]]*100)+'%)';
|
| 738 |
-
}
|
| 739 |
-
break;
|
| 740 |
-
}
|
| 741 |
-
}
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
function redrawSld() {
|
| 745 |
-
// redraw the slider pointer
|
| 746 |
-
switch(modeID) {
|
| 747 |
-
case 0:var yComponent = 2;break;
|
| 748 |
-
case 1:var yComponent = 1;break;
|
| 749 |
-
}
|
| 750 |
-
var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.sld[1]-1));
|
| 751 |
-
jscolor.picker.sldM.style.backgroundPosition =
|
| 752 |
-
'0 ' + (THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.arrow[1]/2)) + 'px';
|
| 753 |
-
}
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
function isPickerOwner() {
|
| 757 |
-
return jscolor.picker && jscolor.picker.owner === THIS;
|
| 758 |
-
}
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
function blurTarget() {
|
| 762 |
-
if(valueElement === target) {
|
| 763 |
-
THIS.importColor();
|
| 764 |
-
}
|
| 765 |
-
if(THIS.pickerOnfocus) {
|
| 766 |
-
THIS.hidePicker();
|
| 767 |
-
}
|
| 768 |
-
}
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
function blurValue() {
|
| 772 |
-
if(valueElement !== target) {
|
| 773 |
-
THIS.importColor();
|
| 774 |
-
}
|
| 775 |
-
}
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
function setPad(e) {
|
| 779 |
-
var posM = jscolor.getMousePos(e);
|
| 780 |
-
var x = posM[0]-posPad[0];
|
| 781 |
-
var y = posM[1]-posPad[1];
|
| 782 |
-
switch(modeID) {
|
| 783 |
-
case 0:THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), 1 - y/(jscolor.images.pad[1]-1), null, leaveSld);break;
|
| 784 |
-
case 1:THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), null, 1 - y/(jscolor.images.pad[1]-1), leaveSld);break;
|
| 785 |
-
}
|
| 786 |
-
}
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
function setSld(e) {
|
| 790 |
-
var posM = jscolor.getMousePos(e);
|
| 791 |
-
var y = posM[1]-posPad[1];
|
| 792 |
-
switch(modeID) {
|
| 793 |
-
case 0:THIS.fromHSV(null, null, 1 - y/(jscolor.images.sld[1]-1), leavePad);break;
|
| 794 |
-
case 1:THIS.fromHSV(null, 1 - y/(jscolor.images.sld[1]-1), null, leavePad);break;
|
| 795 |
-
}
|
| 796 |
-
}
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
var THIS = this;
|
| 800 |
-
var modeID = this.pickerMode.toLowerCase()==='hvs' ? 1 : 0;
|
| 801 |
-
var abortBlur = false;
|
| 802 |
-
var
|
| 803 |
-
valueElement = jscolor.fetchElement(this.valueElement),
|
| 804 |
-
styleElement = jscolor.fetchElement(this.styleElement);
|
| 805 |
-
var
|
| 806 |
-
holdPad = false,
|
| 807 |
-
holdSld = false;
|
| 808 |
-
var
|
| 809 |
-
posPad,
|
| 810 |
-
posSld;
|
| 811 |
-
var
|
| 812 |
-
leaveValue = 1<<0,
|
| 813 |
-
leaveStyle = 1<<1,
|
| 814 |
-
leavePad = 1<<2,
|
| 815 |
-
leaveSld = 1<<3;
|
| 816 |
-
|
| 817 |
-
// target
|
| 818 |
-
jscolor.addEvent(target, 'focus', function() {
|
| 819 |
-
if(THIS.pickerOnfocus) {THIS.showPicker();}
|
| 820 |
-
});
|
| 821 |
-
jscolor.addEvent(target, 'blur', function() {
|
| 822 |
-
if(!abortBlur) {
|
| 823 |
-
window.setTimeout(function(){abortBlur || blurTarget();abortBlur=false;}, 0);
|
| 824 |
-
} else {
|
| 825 |
-
abortBlur = false;
|
| 826 |
-
}
|
| 827 |
-
});
|
| 828 |
-
|
| 829 |
-
// valueElement
|
| 830 |
-
if(valueElement) {
|
| 831 |
-
var updateField = function() {
|
| 832 |
-
THIS.fromString(valueElement.value, leaveValue);
|
| 833 |
-
};
|
| 834 |
-
jscolor.addEvent(valueElement, 'keyup', updateField);
|
| 835 |
-
jscolor.addEvent(valueElement, 'input', updateField);
|
| 836 |
-
jscolor.addEvent(valueElement, 'blur', blurValue);
|
| 837 |
-
valueElement.setAttribute('autocomplete', 'off');
|
| 838 |
-
}
|
| 839 |
-
|
| 840 |
-
// styleElement
|
| 841 |
-
if(styleElement) {
|
| 842 |
-
styleElement.jscStyle = {
|
| 843 |
-
backgroundColor : styleElement.style.backgroundColor,
|
| 844 |
-
color : styleElement.style.color
|
| 845 |
-
};
|
| 846 |
-
}
|
| 847 |
-
|
| 848 |
-
// require images
|
| 849 |
-
switch(modeID) {
|
| 850 |
-
case 0:jscolor.requireImage('hs.png');break;
|
| 851 |
-
case 1:jscolor.requireImage('hv.png');break;
|
| 852 |
-
}
|
| 853 |
-
jscolor.requireImage('cross.gif');
|
| 854 |
-
jscolor.requireImage('arrow.gif');
|
| 855 |
-
|
| 856 |
-
this.importColor();
|
| 857 |
-
}
|
| 858 |
-
|
| 859 |
-
};
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
jscolor.install();
|
| 863 |
-
//jscolor.noConflict();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Price_Countdown</name>
|
| 4 |
-
<version>1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
-
<license
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</summary>
|
| 10 |
<description>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</description>
|
| 11 |
<notes>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</notes>
|
| 12 |
-
<authors><author><name>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Price_Countdown</name>
|
| 4 |
+
<version>0.1.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
+
<license>OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</summary>
|
| 10 |
<description>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</description>
|
| 11 |
<notes>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</notes>
|
| 12 |
+
<authors><author><name>LEAD</name><user>apptha</user><email>info@apptha.com</email></author></authors>
|
| 13 |
+
<date>2013-08-30</date>
|
| 14 |
+
<time>09:13:09</time>
|
| 15 |
+
<contents><target name="magelocal"><dir name="Apptha"><dir name="Timer"><dir name="Block"><dir name="Adminhtml"><dir name="Timer"><dir name="Edit"><file name="Form.php" hash="4af787fbf4f9903a138586640894e06c"/><dir name="Tab"><file name="Form.php" hash="5d2646185f6bf4c209c87a0b9011745d"/></dir><file name="Tabs.php" hash="41beaf98de92cb70c016cc2dc74c05ed"/></dir><file name="Edit.php" hash="6cbce7433dd19b92010de55aa078cb94"/><file name="Grid.php" hash="583e9fa64b669081988c2e2f630595b8"/></dir><file name="Timer.php" hash="33181195f36e5deda09664485a710b26"/></dir><file name="Compare.php" hash="7f23fb38bfec0ecf67a3b93c339bd6ab"/><file name="List.php" hash="ddaf594a3ace2e8774b8f2165311748c"/><file name="View.php" hash="11ab1dbe92804c3261a261bcecf4f379"/></dir><dir name="Helper"><file name="Data.php" hash="96d2f6f8a0b2e51a16e1707c40c1c397"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Timer"><file name="Collection.php" hash="b4ed1ce72dd527d61d007731252f328e"/></dir><file name="Timer.php" hash="a5eb1200e50f83b0d6a5f2b7b55744f9"/></dir><file name="Status.php" hash="c7e56579f81da31dcd24175baff88afb"/><file name="Timer.php" hash="49609c9ba3dec09b8c2da9a5d11740b0"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TimerController.php" hash="a544e64bbd11daf5eefb19cfbab3e053"/></dir><file name="IndexController.php" hash="0d8c3224e5d83c1cbce67e45e08744e5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="9e49c3217738110eb53f6f074f5e1b4c"/><file name="config.xml" hash="e26516ecef85aabb4d6af36a0d08032c"/><file name="system.xml" hash="63da859f322c1a0f1329abfd2cae6755"/></dir><dir name="sql"><dir name="timer_setup"><file name="mysql4-install-0.1.0.php" hash="4fc539eeb63cbf36a56c8a0e26b47504"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Caption.php" hash="9d424f774c5d0673cc49cb7ed29c7a5e"/><file name="Heading.php" hash="d2c08dd290eecef594698c3a393ad1bf"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Apptha_Timer.xml" hash="ede273b6645782b3d3953e6ea604dbce"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="timer.xml" hash="9c0a492e7ca4bfc8c57d4692b0e17181"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="timer.xml" hash="d0ff6efc6dfecf8eadaf36b890958936"/></dir><dir name="template"><dir name="timer"><file name="list.phtml" hash="7f3275faed032c64d6812a2b67dd22f0"/><file name="view.phtml" hash="72e320b85ccd8e64015cf8e9121f1dd7"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="timer"><file name="timer.css" hash="d708dd99a8bfba68149cbb5d8ca9a5e9"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><file name="timer.js" hash="4f709d357b0d7863a2b4fc2d95596a8b"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
