Version Notes
First Stable Release
Download this release
Release Info
Developer | Aftab Naveed |
Extension | Displaze_Slideshow |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.0 to 1.7.1
- app/code/community/Displaze/MySlideshow/Block/Adminhtml/Slideshow/Edit/Tab/Main.php +8 -0
- app/code/community/Displaze/MySlideshow/Block/Adminhtml/Slideshow/Grid.php +7 -0
- app/code/community/Displaze/MySlideshow/etc/config.xml +1 -1
- app/code/community/Displaze/MySlideshow/etc/system.xml +26 -0
- app/code/community/Displaze/MySlideshow/sql/myslideshow_setup/upgrade-1.7.0-1.7.1.php +33 -0
- app/design/adminhtml/default/default/layout/displaze/mybrand.xml +56 -0
- app/design/frontend/default/default/template/displaze/myslideshow/slideshow.phtml +6 -0
- package.xml +9 -5
app/code/community/Displaze/MySlideshow/Block/Adminhtml/Slideshow/Edit/Tab/Main.php
CHANGED
@@ -60,6 +60,14 @@ class Displaze_MySlideshow_Block_Adminhtml_Slideshow_Edit_Tab_Main extends Mage_
|
|
60 |
'disabled' => $isElementDisabled
|
61 |
));
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
$fieldset->addField('image', 'file', array(
|
65 |
'label' => Mage::helper('myslideshow')->__('Image'),
|
60 |
'disabled' => $isElementDisabled
|
61 |
));
|
62 |
|
63 |
+
$fieldset->addField('url', 'text', array(
|
64 |
+
'name' => 'url',
|
65 |
+
'label' => Mage::helper('myslideshow')->__('Url'),
|
66 |
+
'title' => Mage::helper('myslideshow')->__('Url'),
|
67 |
+
'required' => false,
|
68 |
+
'disabled' => $isElementDisabled
|
69 |
+
));
|
70 |
+
|
71 |
|
72 |
$fieldset->addField('image', 'file', array(
|
73 |
'label' => Mage::helper('myslideshow')->__('Image'),
|
app/code/community/Displaze/MySlideshow/Block/Adminhtml/Slideshow/Grid.php
CHANGED
@@ -64,6 +64,13 @@ class Displaze_MySlideshow_Block_Adminhtml_Slideshow_Grid extends Mage_Adminhtml
|
|
64 |
'align' => 'left',
|
65 |
'index' => 'title',
|
66 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
$this->addColumn('status', array(
|
69 |
'header' => Mage::helper('myslideshow')->__('Status'),
|
64 |
'align' => 'left',
|
65 |
'index' => 'title',
|
66 |
));
|
67 |
+
|
68 |
+
$this->addColumn('url', array(
|
69 |
+
'header' => Mage::helper('myslideshow')->__('Url'),
|
70 |
+
'align' => 'left',
|
71 |
+
'index' => 'url',
|
72 |
+
'width' => '200px',
|
73 |
+
));
|
74 |
|
75 |
$this->addColumn('status', array(
|
76 |
'header' => Mage::helper('myslideshow')->__('Status'),
|
app/code/community/Displaze/MySlideshow/etc/config.xml
CHANGED
@@ -24,7 +24,7 @@ along with Displaze Web Services Inc.. If not, see <http ://www.gnu.org/license
|
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Displaze_MySlideshow>
|
27 |
-
<version>1.7.
|
28 |
</Displaze_MySlideshow>
|
29 |
</modules>
|
30 |
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Displaze_MySlideshow>
|
27 |
+
<version>1.7.1</version>
|
28 |
</Displaze_MySlideshow>
|
29 |
</modules>
|
30 |
|
app/code/community/Displaze/MySlideshow/etc/system.xml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
system.xml
|
4 |
+
|
5 |
+
Copyright (c) 2012 Aftab Naveed <aftabnaveed@gmail.com>.
|
6 |
+
|
7 |
+
This file is part of Displaze Web Services Inc..
|
8 |
+
|
9 |
+
Displaze Web Services Inc. is free software: you can redistribute it and/or modify
|
10 |
+
it under the terms of the GNU General Public License as published by
|
11 |
+
the Free Software Foundation, either version 3 of the License, or
|
12 |
+
(at your option) any later version.
|
13 |
+
|
14 |
+
Displaze Web Services Inc. is distributed in the hope that it will be useful,
|
15 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
+
GNU General Public License for more details.
|
18 |
+
|
19 |
+
You should have received a copy of the GNU General Public License
|
20 |
+
along with Displaze Web Services Inc.. If not, see <http ://www.gnu.org/licenses/>.
|
21 |
+
-->
|
22 |
+
|
23 |
+
|
24 |
+
<root>
|
25 |
+
|
26 |
+
</root>
|
app/code/community/Displaze/MySlideshow/sql/myslideshow_setup/upgrade-1.7.0-1.7.1.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* upgrade-1.7.0-1.7.1.php
|
5 |
+
*
|
6 |
+
* Copyright (c) 2012 Aftab Naveed <aftabnaveed@gmail.com>.
|
7 |
+
*
|
8 |
+
* This file is part of Displaze Web Services Inc..
|
9 |
+
*
|
10 |
+
* Displaze Web Services Inc. is free software: you can redistribute it and/or modify
|
11 |
+
* it under the terms of the GNU General Public License as published by
|
12 |
+
* the Free Software Foundation, either version 3 of the License, or
|
13 |
+
* (at your option) any later version.
|
14 |
+
*
|
15 |
+
* Displaze Web Services Inc. is distributed in the hope that it will be useful,
|
16 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
+
* GNU General Public License for more details.
|
19 |
+
*
|
20 |
+
* You should have received a copy of the GNU General Public License
|
21 |
+
* along with Displaze Web Services Inc.. If not, see <http ://www.gnu.org/licenses/>.
|
22 |
+
*/
|
23 |
+
/* @var $installer Mage_Core_Model_Resource_Setup */
|
24 |
+
$installer = $this;
|
25 |
+
|
26 |
+
$table = $installer->getConnection();
|
27 |
+
|
28 |
+
$table->addColumn($installer->getTable('myslideshow/slideshow'), 'url', array(
|
29 |
+
'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
|
30 |
+
'length' => '255',
|
31 |
+
'position' => '2',
|
32 |
+
'comment' => 'Slide Url'
|
33 |
+
));
|
app/design/adminhtml/default/default/layout/displaze/mybrand.xml
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
mybrand.xml
|
4 |
+
|
5 |
+
Copyright (c) 2012 Aftab Naveed <aftabnaveed@gmail.com>.
|
6 |
+
|
7 |
+
This file is part of Displaze Web Services Inc..
|
8 |
+
|
9 |
+
Displaze Web Services Inc. is free software: you can redistribute it and/or modify
|
10 |
+
it under the terms of the GNU General Public License as published by
|
11 |
+
the Free Software Foundation, either version 3 of the License, or
|
12 |
+
(at your option) any later version.
|
13 |
+
|
14 |
+
Displaze Web Services Inc. is distributed in the hope that it will be useful,
|
15 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
+
GNU General Public License for more details.
|
18 |
+
|
19 |
+
You should have received a copy of the GNU General Public License
|
20 |
+
along with Displaze Web Services Inc.. If not, see <http ://www.gnu.org/licenses/>.
|
21 |
+
-->
|
22 |
+
|
23 |
+
|
24 |
+
<layout version="1.0">
|
25 |
+
|
26 |
+
<adminhtml_manufacturer_index>
|
27 |
+
<reference name="content">
|
28 |
+
<block type="mybrand/adminhtml_manufacturer" name="manufacturer.grid" />
|
29 |
+
</reference>
|
30 |
+
</adminhtml_manufacturer_index>
|
31 |
+
|
32 |
+
<!--Edit Area -->
|
33 |
+
<adminhtml_manufacturer_edit>
|
34 |
+
|
35 |
+
<reference name="content">
|
36 |
+
<block type="mybrand/adminhtml_manufacturer_edit" name="displaze.manufacturer.edit"></block>
|
37 |
+
</reference>
|
38 |
+
|
39 |
+
<reference name="left">
|
40 |
+
<block type="mybrand/adminhtml_manufacturer_edit_tabs" name="mybrand_manufacturer_edit_tabs">
|
41 |
+
<block type="mybrand/adminhtml_manufacturer_edit_tab_general" name="mybrand_manufacturer_edit_tab_general" />
|
42 |
+
<block type="mybrand/adminhtml_manufacturer_edit_tab_meta" name="mybrand_manufacturer_edit_tab_meta" />
|
43 |
+
|
44 |
+
<block type="mybrand/adminhtml_manufacturer_edit_tab_product" name="mybrand_manufacturer_edit_tab_product" />
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
<action method="addTab"><name>general_section</name><block>mybrand_manufacturer_edit_tab_general</block></action>
|
49 |
+
<action method="addTab"><name>meta_section</name><block>mybrand_manufacturer_edit_tab_meta</block></action>
|
50 |
+
<action method="addTab"><name>product_section</name><block>mybrand_manufacturer_edit_tab_product</block></action>
|
51 |
+
</block>
|
52 |
+
</reference>
|
53 |
+
|
54 |
+
</adminhtml_manufacturer_edit>
|
55 |
+
|
56 |
+
</layout>
|
app/design/frontend/default/default/template/displaze/myslideshow/slideshow.phtml
CHANGED
@@ -26,7 +26,13 @@ $_slideshow = $this->getSlideshow();
|
|
26 |
<ul class="show">
|
27 |
<?php foreach ($_slideshow as $_slide): ?>
|
28 |
<li class="slide" data-slide-interval="">
|
|
|
|
|
|
|
|
|
|
|
29 |
<img src="<?php echo Mage::helper('myslideshow')->getSlideshowUrl() . $_slide->getImage() ?>" alt="<?php echo $_slide->getTitle() ?>" />
|
|
|
30 |
</li>
|
31 |
<?php endforeach; ?>
|
32 |
</ul>
|
26 |
<ul class="show">
|
27 |
<?php foreach ($_slideshow as $_slide): ?>
|
28 |
<li class="slide" data-slide-interval="">
|
29 |
+
<?php if($_slide->getUrl() <> ''): ?>
|
30 |
+
<a href="<?php echo $_slide->getUrl() ?>" alt="<?php $_slide->getTitle(); ?>" />
|
31 |
+
<?php else: ?>
|
32 |
+
<a href="#" alt="<?php echo $_slide->getTitle(); ?>" />
|
33 |
+
<?php endif; ?>
|
34 |
<img src="<?php echo Mage::helper('myslideshow')->getSlideshowUrl() . $_slide->getImage() ?>" alt="<?php echo $_slide->getTitle() ?>" />
|
35 |
+
</a>
|
36 |
</li>
|
37 |
<?php endforeach; ?>
|
38 |
</ul>
|
package.xml
CHANGED
@@ -1,18 +1,22 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Displaze_Slideshow</name>
|
4 |
-
<version>1.7.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Protoshow Slideshow extension</summary>
|
10 |
-
<description>Displaze_Slideshow is an extension based on protoshow, which avoids adding any 3rd party javascript libraries
|
|
|
|
|
|
|
|
|
11 |
<notes>First Stable Release</notes>
|
12 |
<authors><author><name>Aftab Naveed</name><user>aftabnaveed</user><email>aftabnaveed@gmail.com</email></author></authors>
|
13 |
-
<date>2012-07-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Displaze"><dir name="MySlideshow"><dir name="Block"><dir name="Adminhtml"><dir name="Slideshow"><dir name="Edit"><file name="Form.php" hash="2492607f1b201e748b463862e5d607cc"/><dir name="Tab"><file name="Main.php" 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>Displaze_Slideshow</name>
|
4 |
+
<version>1.7.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Protoshow Slideshow extension</summary>
|
10 |
+
<description>Displaze_Slideshow is an extension based on protoshow, which avoids adding any 3rd party javascript libraries.
|
11 |
+

|
12 |
+
Change Log
|
13 |
+
-------------------------------
|
14 |
+
Added URL to the slides.</description>
|
15 |
<notes>First Stable Release</notes>
|
16 |
<authors><author><name>Aftab Naveed</name><user>aftabnaveed</user><email>aftabnaveed@gmail.com</email></author></authors>
|
17 |
+
<date>2012-07-20</date>
|
18 |
+
<time>13:28:56</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Displaze"><dir name="MySlideshow"><dir name="Block"><dir name="Adminhtml"><dir name="Slideshow"><dir name="Edit"><file name="Form.php" hash="2492607f1b201e748b463862e5d607cc"/><dir name="Tab"><file name="Main.php" hash="3c0c6fa6d1d9c13a8b18cd840e3bffc1"/></dir><file name="Tabs.php" hash="d529092c8da880e01c87ea39705d2965"/></dir><file name="Edit.php" hash="ac34eebe93d3b86f65601ee17887389c"/><file name="Grid.php" hash="4b851a986ff9a5f8d567f7887ca31fae"/><dir name="Image"><file name="Renderer.php" hash="81c12dbaa69e26993ef4b1c9fee51402"/></dir></dir><file name="Slideshow.php" hash="d17c24414711565bed2ba45415ac3af5"/></dir><file name="Slideshow.php" hash="5c28e1214d5ec50052464b3c4b6de77e"/></dir><dir name="Helper"><file name="Data.php" hash="ff6ffc9874add69669a08623a024db3c"/></dir><dir name="Model"><dir name="Resource"><dir name="Slideshow"><file name="Collection.php" hash="6f7ea8a779482c27989b18b432a4e42c"/></dir><file name="Slideshow.php" hash="6480d2855546eafa66de86fafce09d62"/></dir><file name="Slideshow.php" hash="49abaf41a0d9b7e56e0237b05c573b76"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SlideshowController.php" hash="f3b196ac354586d5dd5d4ccbbe2f8eeb"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="efb4b3c687005b0e77f47bdb1d39931c"/><file name="config.xml" hash="3f2aee8204d7f8aa721eb3fb943ca69e"/><file name="system.xml" hash="e93ef089e8d3a6aa2c86cc8c940b6a1f"/></dir><dir name="sql"><dir name="myslideshow_setup"><file name="install-1.7.0.php" hash="0be91373724d8814274b41fae3eb3f1c"/><file name="upgrade-1.7.0-1.7.1.php" hash="0a829a53d73a86c737fbff37766c3d0a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="displaze"><file name="mybrand.xml" hash="879de41c3b4cf77aa87bd1ec3564e7c4"/><file name="myslideshow.xml" hash="957740ec7eb5641fa1ac4fdcc0611c90"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="displaze"><dir name="myslideshow"><file name="slideshow.phtml" hash="d8dc0699237658f3d5cb7ae1b968e98b"/></dir></dir></dir><dir name="layout"><dir name="displaze"><file name="myslideshow.xml" hash="004955f6f855aece5664d4a38aea59e4"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Displaze_MySlideshow.xml" hash="32a04b313f33cbb7f98ca1c1a197cf34"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="displaze"><dir name="css"><file name="protoshow.css" hash="dc66a079b313a3d0337054b8596b6a05"/><file name="reset.css" hash="6d14fba47843fe2375aeeb7e5d9cf783"/><file name="site.css" hash="49d2f0bcd5a7fc47499b7e5b0f378d05"/></dir><dir name="images"><file name="pix.gif" hash="7ad866406509775de63f33224decc101"/><file name="proto_controls_bg.png" hash="617e2194cfc44442c2fefabc6efe5399"/><file name="timer" hash="37a562b0dc3cabd93bcc853ed6c06ead"/></dir><dir name="js"><file name="protoshow.js" hash="b07891f0413bbda78686c96d861abe8d"/></dir></dir></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|