Version Notes
Url problem solved. It works on every page now!
Download this release
Release Info
Developer | Meari Inc. |
Extension | Meari_Background_Slider |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.2.0
- app/code/local/MEARI/Background/etc/config.xml +1 -1
- app/code/local/MEARI/Background/sql/background_setup/mysql4-install-1.2.0.php +23 -0
- app/design/adminhtml/default/default/layout/background.xml +1 -1
- app/design/frontend/default/default/layout/background.xml +1 -1
- app/design/frontend/default/default/template/background/background.phtml +2 -1
- package.xml +5 -5
app/code/local/MEARI/Background/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<MEARI_Background>
|
5 |
-
<version>1.
|
6 |
</MEARI_Background>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<MEARI_Background>
|
5 |
+
<version>1.2.0</version>
|
6 |
</MEARI_Background>
|
7 |
</modules>
|
8 |
<frontend>
|
app/code/local/MEARI/Background/sql/background_setup/mysql4-install-1.2.0.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$installer = $this;
|
4 |
+
|
5 |
+
$installer->startSetup();
|
6 |
+
|
7 |
+
$installer->run("
|
8 |
+
|
9 |
+
-- DROP TABLE IF EXISTS {$this->getTable('background')};
|
10 |
+
CREATE TABLE {$this->getTable('background')} (
|
11 |
+
`background_id` int(11) unsigned NOT NULL auto_increment,
|
12 |
+
`title` varchar(255) NOT NULL default '',
|
13 |
+
`filename` varchar(255) NOT NULL default '',
|
14 |
+
`description` text NOT NULL default '',
|
15 |
+
`status` smallint(6) NOT NULL default '0',
|
16 |
+
`created_time` datetime NULL,
|
17 |
+
`update_time` datetime NULL,
|
18 |
+
PRIMARY KEY (`background_id`)
|
19 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
20 |
+
|
21 |
+
");
|
22 |
+
|
23 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/background.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="1.
|
3 |
<background_adminhtml_background_index>
|
4 |
<reference name="content">
|
5 |
<block type="background/adminhtml_background" name="background" />
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.2.0">
|
3 |
<background_adminhtml_background_index>
|
4 |
<reference name="content">
|
5 |
<block type="background/adminhtml_background" name="background" />
|
app/design/frontend/default/default/layout/background.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="1.
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<action method="addCss"><stylesheet>css/meari_background/style.css</stylesheet></action>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.2.0">
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<action method="addCss"><stylesheet>css/meari_background/style.css</stylesheet></action>
|
app/design/frontend/default/default/template/background/background.phtml
CHANGED
@@ -2,7 +2,8 @@
|
|
2 |
<?php
|
3 |
function getMediaUrl() {
|
4 |
$url=Mage::getBaseUrl('media');
|
5 |
-
return
|
|
|
6 |
}
|
7 |
$collection = Mage::getModel('background/background')->getCollection()->addFieldToFilter("status",array("eq"=>1))->addFieldToFilter("filename",array("neq"=>""));
|
8 |
$basePath=getMediaUrl();
|
2 |
<?php
|
3 |
function getMediaUrl() {
|
4 |
$url=Mage::getBaseUrl('media');
|
5 |
+
return $url;
|
6 |
+
//return substr($url,strpos($url,'media/'));
|
7 |
}
|
8 |
$collection = Mage::getModel('background/background')->getCollection()->addFieldToFilter("status",array("eq"=>1))->addFieldToFilter("filename",array("neq"=>""));
|
9 |
$basePath=getMediaUrl();
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Meari_Background_Slider</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This extension makes css background image slider using images uploaded by you on admin area.</summary>
|
10 |
<description>This extension makes css background image slider using images uploaded by you on admin area.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Meari Inc.</name><user>sniper117</user><email>zSniper117@gmail.com</email></author></authors>
|
13 |
-
<date>2013-04-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="MEARI"><dir name="Background"><dir name="Block"><dir name="Adminhtml"><dir name="Background"><dir name="Edit"><file name="Form.php" hash="8c577284473c1a089a28504bc0e4df65"/><dir name="Tab"><file name="Form.php" hash="375db84ae4a400a5ed8b8fd6068aa7fc"/></dir><file name="Tabs.php" hash="ddde7c3a4391ddeeef43ac587fc91fed"/></dir><file name="Edit.php" hash="7b08852ea91b52409a0655f68b9ea54e"/><file name="Grid.php" hash="a08418dc1be43840da483c8545e3869d"/></dir><file name="Background.php" hash="badb5e96689bb54d4b453f6bbb18ea32"/></dir><file name="Background.php" hash="827f8af77f29f02b13c927a6243c3ab0"/></dir><dir name="Helper"><file name="Data.php" hash="7956270990e07775cfa7f5f4ca082af9"/></dir><dir name="Model"><file name="Background.php" hash="36c96b4d56e1b45c15dde5c93955ad51"/><dir name="Mysql4"><dir name="Background"><file name="Collection.php" hash="5a89a756bdb1cb82c9aebb0d2eb40229"/></dir><file name="Background.php" hash="4dc0b89586b00ee6c3e7a7c982d14954"/></dir><file name="Status.php" hash="98e38a3e71075951a9bef81dd8486d37"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BackgroundController.php" hash="1f4314696a94b74a741daa307a4ffac3"/></dir><file name="IndexController.php" hash="f002b23554fa54abcf7b39cbd92fb5c3"/></dir><dir name="etc"><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Meari_Background_Slider</name>
|
4 |
+
<version>1.2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This extension makes css background image slider using images uploaded by you on admin area.</summary>
|
10 |
<description>This extension makes css background image slider using images uploaded by you on admin area.</description>
|
11 |
+
<notes>Url problem solved. It works on every page now!</notes>
|
12 |
<authors><author><name>Meari Inc.</name><user>sniper117</user><email>zSniper117@gmail.com</email></author></authors>
|
13 |
+
<date>2013-04-06</date>
|
14 |
+
<time>16:40:41</time>
|
15 |
+
<contents><target name="magelocal"><dir name="MEARI"><dir name="Background"><dir name="Block"><dir name="Adminhtml"><dir name="Background"><dir name="Edit"><file name="Form.php" hash="8c577284473c1a089a28504bc0e4df65"/><dir name="Tab"><file name="Form.php" hash="375db84ae4a400a5ed8b8fd6068aa7fc"/></dir><file name="Tabs.php" hash="ddde7c3a4391ddeeef43ac587fc91fed"/></dir><file name="Edit.php" hash="7b08852ea91b52409a0655f68b9ea54e"/><file name="Grid.php" hash="a08418dc1be43840da483c8545e3869d"/></dir><file name="Background.php" hash="badb5e96689bb54d4b453f6bbb18ea32"/></dir><file name="Background.php" hash="827f8af77f29f02b13c927a6243c3ab0"/></dir><dir name="Helper"><file name="Data.php" hash="7956270990e07775cfa7f5f4ca082af9"/></dir><dir name="Model"><file name="Background.php" hash="36c96b4d56e1b45c15dde5c93955ad51"/><dir name="Mysql4"><dir name="Background"><file name="Collection.php" hash="5a89a756bdb1cb82c9aebb0d2eb40229"/></dir><file name="Background.php" hash="4dc0b89586b00ee6c3e7a7c982d14954"/></dir><file name="Status.php" hash="98e38a3e71075951a9bef81dd8486d37"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BackgroundController.php" hash="1f4314696a94b74a741daa307a4ffac3"/></dir><file name="IndexController.php" hash="f002b23554fa54abcf7b39cbd92fb5c3"/></dir><dir name="etc"><file name="config.xml" hash="ef424612584822294bce5a26a865d4e8"/></dir><dir name="sql"><dir name="background_setup"><file name="mysql4-install-1.0.0.php" hash="1ad1a99c1bd1e24e338ec7a21d3ab343"/><file name="mysql4-install-1.0.1.php" hash="1ad1a99c1bd1e24e338ec7a21d3ab343"/><file name="mysql4-install-1.1.0.php" hash="1ad1a99c1bd1e24e338ec7a21d3ab343"/><file name="mysql4-install-1.1.1.php" hash="1ad1a99c1bd1e24e338ec7a21d3ab343"/><file name="mysql4-install-1.2.0.php" hash="1ad1a99c1bd1e24e338ec7a21d3ab343"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="background.xml" hash="3547e7e1d5e9c08d585941a604bd1117"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="background.xml" hash="8e0b468a9fc79acd90e84baafd3bd38f"/></dir><dir name="template"><dir name="background"><file name="background.phtml" hash="77d562c11c7023e1461d7c5c9a9cd70a"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="meari_background"><file name="style.css" hash="de476cf9bece688d18f352a274b0dc30"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="meari_background"><file name="slideshow.css" hash="ab0479cae3efb31daf2d18c7f6aa00cc"/><file name="style.css" hash="c8735fd2da098becb0fcbeb5054db250"/></dir></dir><dir name="images"><dir name="meari_background"><file name="pattern.png" hash="ffe080a3921e0ef23e8091a16e824666"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MEARI_Background.xml" hash="6a8a1ce970e0bbec2faa485682a792ab"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|