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 | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 0.1.2 to 1.2.1
- app/code/local/Apptha/Timer/etc/config.xml +1 -1
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Align.php +33 -0
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Display.php +28 -0
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Imagelist.php +66 -0
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Scale.php +32 -0
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Skin.php +51 -0
- app/code/local/Mage/Adminhtml/Model/System/Config/Source/Truefalse.php +30 -0
- package.xml +4 -4
app/code/local/Apptha/Timer/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Apptha_Timer>
|
5 |
-
<version>
|
6 |
</Apptha_Timer>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Apptha_Timer>
|
5 |
+
<version>1.2.1</version>
|
6 |
</Apptha_Timer>
|
7 |
</modules>
|
8 |
<frontend>
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Align.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* Contus Support Pvt Ltd.
|
6 |
+
* created by Vasanth on nov 02 2010.
|
7 |
+
* vasanth@contus.in
|
8 |
+
*/
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Used in creating options for Logo Align config value selection
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
class Mage_Adminhtml_Model_System_Config_Source_Align
|
15 |
+
{
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Options getter
|
19 |
+
*
|
20 |
+
* @return array
|
21 |
+
*/
|
22 |
+
public function toOptionArray()
|
23 |
+
{
|
24 |
+
return array(
|
25 |
+
array('value' =>TR, 'label'=>Mage::helper('adminhtml')->__('Top Right')),
|
26 |
+
array('value' => TL, 'label'=>Mage::helper('adminhtml')->__('Top Left')),
|
27 |
+
array('value' => LB, 'label'=>Mage::helper('adminhtml')->__('Bottom Left')),
|
28 |
+
array('value' => RB, 'label'=>Mage::helper('adminhtml')->__('Bottom Right')),
|
29 |
+
|
30 |
+
);
|
31 |
+
}
|
32 |
+
|
33 |
+
}
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Display.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* **********************************************************
|
4 |
+
|
5 |
+
* Component Name: Apptha Chatplugin
|
6 |
+
* Version: 1.0
|
7 |
+
* Edited By: Deepa.S.S.
|
8 |
+
* Author URI: http://www.contussupport.com/
|
9 |
+
|
10 |
+
* **********************************************************
|
11 |
+
|
12 |
+
@Copyright Copyright (C) 2010-2011 Contus Support
|
13 |
+
@license GNU/GPL http://www.gnu.org/copyleft/gpl.html,
|
14 |
+
|
15 |
+
* ******************************************************** */
|
16 |
+
class Mage_Adminhtml_Model_System_Config_Source_display
|
17 |
+
{
|
18 |
+
|
19 |
+
public function toOptionArray()
|
20 |
+
{
|
21 |
+
return array(
|
22 |
+
array('value' => standard, 'label'=>Mage::helper('adminhtml')->__('Standard')),
|
23 |
+
array('value' => bottom, 'label'=>Mage::helper('adminhtml')->__('Window right bottom corner')),
|
24 |
+
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
}
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Imagelist.php
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* **********************************************************
|
5 |
+
|
6 |
+
* Component Name: Apptha FacebookApp
|
7 |
+
* Version: 1.0
|
8 |
+
*
|
9 |
+
* Author URI: http://www.contussupport.com/
|
10 |
+
|
11 |
+
* **********************************************************
|
12 |
+
|
13 |
+
@Copyright Copyright (C) 2010-2011 Contus Support
|
14 |
+
@license GNU/GPL http://www.gnu.org/copyleft/gpl.html,
|
15 |
+
|
16 |
+
* ******************************************************** */
|
17 |
+
class Mage_Adminhtml_Model_System_Config_Source_Imagelist {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Options getter
|
21 |
+
*
|
22 |
+
* @return array
|
23 |
+
*/
|
24 |
+
public function toOptionArray() {
|
25 |
+
$url = Mage::getBaseDir('media') . '/banner_images/default';
|
26 |
+
|
27 |
+
function dirImages($dir) {
|
28 |
+
$d = dir($dir); //Open Directory
|
29 |
+
while (false !== ($file = $d->read())) {
|
30 |
+
// $extension = substr($file, strrpos($file, '.')); // Gets the File Extension
|
31 |
+
// echo $file;
|
32 |
+
$extension = explode(".",$file);
|
33 |
+
//print_r($extension);
|
34 |
+
$extensionsdir = strtolower($extension[1]);
|
35 |
+
// echo $extensionsdir;
|
36 |
+
if ($extensionsdir == "jpg" || $extensionsdir == "jpeg" || $extensionsdir == "gif" | $extensionsdir == "png") // Extensions Allowed
|
37 |
+
$images[$file] = $file; // Store in Array
|
38 |
+
|
39 |
+
}
|
40 |
+
$d->close();
|
41 |
+
|
42 |
+
|
43 |
+
return $images;
|
44 |
+
}
|
45 |
+
|
46 |
+
$array = dirImages($url);
|
47 |
+
|
48 |
+
function DateCmp($a, $b) {
|
49 |
+
return ($a[1] < $b[1]) ? -1 : 0;
|
50 |
+
}
|
51 |
+
|
52 |
+
function SortByDate(&$Files) {
|
53 |
+
usort($Files, 'DateCmp');
|
54 |
+
}
|
55 |
+
|
56 |
+
SortByDate($array);
|
57 |
+
|
58 |
+
//To list in the select box.
|
59 |
+
foreach ($array as $key => $image) {
|
60 |
+
$selectvalue[] = array('value' => $image, 'label' => Mage::helper('adminhtml')->__($image),);
|
61 |
+
}
|
62 |
+
|
63 |
+
return $selectvalue;
|
64 |
+
}
|
65 |
+
|
66 |
+
}
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Scale.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* Contus Support Pvt Ltd.
|
6 |
+
* created by Vasanth on nov 02 2010.
|
7 |
+
* vasanth@contus.in
|
8 |
+
*/
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Used in creating options for player Scale config value selection
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
class Mage_Adminhtml_Model_System_Config_Source_Scale
|
15 |
+
{
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Options getter
|
19 |
+
*
|
20 |
+
* @return array
|
21 |
+
*/
|
22 |
+
public function toOptionArray()
|
23 |
+
{
|
24 |
+
return array(
|
25 |
+
array('value' =>0, 'label'=>Mage::helper('adminhtml')->__('Aspect Ratio')),
|
26 |
+
array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Keep Orginal Size')),
|
27 |
+
array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Fit to Screen')),
|
28 |
+
|
29 |
+
);
|
30 |
+
}
|
31 |
+
|
32 |
+
}
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Skin.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
* 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 Mage
|
22 |
+
* @package Mage_Adminhtml
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Used in creating options for Yes|No config value selection
|
29 |
+
*
|
30 |
+
*/
|
31 |
+
class Mage_Adminhtml_Model_System_Config_Source_skin
|
32 |
+
{
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Options getter
|
36 |
+
*
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
public function toOptionArray()
|
40 |
+
{
|
41 |
+
return array(
|
42 |
+
array('value' => skin_black, 'label'=>Mage::helper('adminhtml')->__('Black')),
|
43 |
+
array('value' => skin_Vimeo, 'label'=>Mage::helper('adminhtml')->__('Vimeo')),
|
44 |
+
array('value' => skin_Overlay, 'label'=>Mage::helper('adminhtml')->__('Overlay')),
|
45 |
+
array('value' => skin_sleekblack, 'label'=>Mage::helper('adminhtml')->__('Sleekblack')),
|
46 |
+
array('value' => skin_white, 'label'=>Mage::helper('adminhtml')->__('White')),
|
47 |
+
array('value' => fancyblack, 'label'=>Mage::helper('adminhtml')->__('FancyBlack')),
|
48 |
+
);
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/code/local/Mage/Adminhtml/Model/System/Config/Source/Truefalse.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* Contus Support Pvt Ltd.
|
6 |
+
* created by Vasanth on nov 02 2010.
|
7 |
+
* vasanth@contus.in
|
8 |
+
*/
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Used in creating options for True or false config value selection
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
class Mage_Adminhtml_Model_System_Config_Source_Truefalse
|
15 |
+
{
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Options getter
|
19 |
+
*
|
20 |
+
* @return array
|
21 |
+
*/
|
22 |
+
public function toOptionArray()
|
23 |
+
{
|
24 |
+
return array(
|
25 |
+
array('value' => 'true', 'label'=>Mage::helper('adminhtml')->__('Yes')),
|
26 |
+
array('value' => 'false', 'label'=>Mage::helper('adminhtml')->__('No')),
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
+
}
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Price_Countdown</name>
|
4 |
-
<version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
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-
|
14 |
-
<time>09:
|
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="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Price_Countdown</name>
|
4 |
+
<version>1.2.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
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-10-01</date>
|
14 |
+
<time>09:01:59</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="227433462d9b19c22dcb713fccebae8f"/><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="Align.php" hash="302d349d8db53e58b864dbc4384e9279"/><file name="Caption.php" hash="9d424f774c5d0673cc49cb7ed29c7a5e"/><file name="Display.php" hash="6d356e51482363d5f787418bb23ae320"/><file name="Heading.php" hash="d2c08dd290eecef594698c3a393ad1bf"/><file name="Imagelist.php" hash="ea6a27a4eb52f80a4940462451974d57"/><file name="Scale.php" hash="ff8b114a7b8f6bd4460f91bb8fbc90cf"/><file name="Skin.php" hash="a8b22a2cbcfa68acf7a2702cc5801ee4"/><file name="Truefalse.php" hash="9cfa6db09bce2b7eb02c8ffcfe392a09"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="timer"><file name="list.phtml" hash="7f3275faed032c64d6812a2b67dd22f0"/><file name="view.phtml" hash="72e320b85ccd8e64015cf8e9121f1dd7"/></dir></dir><dir name="layout"><file name="timer.xml" hash="d0ff6efc6dfecf8eadaf36b890958936"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="timer.xml" hash="9c0a492e7ca4bfc8c57d4692b0e17181"/></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><target name="mageetc"><dir name="modules"><file name="Apptha_Timer.xml" hash="ede273b6645782b3d3953e6ea604dbce"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|