Version Notes
Added link to image when upload image
Download this release
Release Info
Developer | Magento Core Team |
Extension | QAZ_Qbanner |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.1.4
- app/code/community/Qaz/Qbanner/Block/Adminhtml/Qbanner/Edit/Tab/Image.php +1 -0
- app/code/community/Qaz/Qbanner/Model/Mysql4/Qbanner.php +2 -0
- app/code/community/Qaz/Qbanner/controllers/Adminhtml/QbannerController.php +1 -1
- app/code/community/Qaz/Qbanner/controllers/IndexController.php +11 -39
- app/code/community/Qaz/Qbanner/etc/config.xml +1 -1
- app/code/community/Qaz/Qbanner/sql/qbanner_setup/{mysql4-upgrade-1.7.1-1.8.1.php → mysql4-upgrade-0.1.0-1.8.1.php} +0 -0
- app/code/community/Qaz/Qbanner/sql/qbanner_setup/mysql4-upgrade-1.8.1-2.1.4.php +11 -0
- app/design/adminhtml/default/default/layout/qbanner.xml +5 -0
- app/design/adminhtml/default/default/template/qaz/qbanner/edit/tab/image.phtml +7 -3
- app/design/frontend/default/default/template/qaz/qbanner/qbanner.after.header.phtml +2 -2
- app/design/frontend/default/default/template/qaz/qbanner/qbanner.content.top.phtml +2 -2
- js/qaz/qbanner/mage/adminhtml/product.js +276 -0
- media/qaz/qbanner/1/6/1694554_11311.jpg +0 -0
- media/qaz/qbanner/b/a/banner-2.jpg +0 -0
- media/qaz/qbanner/b/a/banner-21.jpg +0 -0
- media/qaz/qbanner/b/a/banner-21_1.jpg +0 -0
- media/qaz/qbanner/b/a/banner-21_2.jpg +0 -0
- media/qaz/qbanner/b/a/banner-2_1.jpg +0 -0
- media/qaz/qbanner/b/a/banner-2_2.jpg +0 -0
- media/qaz/qbanner/b/a/banner-2_3.jpg +0 -0
- media/qaz/qbanner/b/a/banner-3.jpg +0 -0
- media/qaz/qbanner/b/a/banner-31.jpg +0 -0
- media/qaz/qbanner/b/a/banner-31_1.jpg +0 -0
- media/qaz/qbanner/b/a/banner-3_1.jpg +0 -0
- media/qaz/qbanner/b/a/banner-3_2.jpg +0 -0
- media/qaz/qbanner/b/a/banner-3_3.jpg +0 -0
- media/qaz/qbanner/b/a/banner-3_4.jpg +0 -0
- media/qaz/qbanner/b/a/banner-3_5.jpg +0 -0
- media/qaz/qbanner/b/a/banner-3_6.jpg +0 -0
- media/qaz/qbanner/b/a/banner-4.jpg +0 -0
- media/qaz/qbanner/b/a/banner-4_1.jpg +0 -0
- media/qaz/qbanner/b/a/banner-4_2.jpg +0 -0
- media/qaz/qbanner/b/a/banner-4_3.jpg +0 -0
- media/qaz/qbanner/b/a/banner-4_4.jpg +0 -0
- media/qaz/qbanner/b/a/banner-4_5.jpg +0 -0
- media/qaz/qbanner/b/a/banner-4_6.jpg +0 -0
- media/qaz/qbanner/b/a/banner.jpg +0 -0
- media/qaz/qbanner/b/o/bottom_banner.jpg +0 -0
- media/qaz/qbanner/b/o/bottom_banner2.jpg +0 -0
- media/qaz/qbanner/b/o/bottom_banner2_1.jpg +0 -0
- media/qaz/qbanner/t/o/top_banner.jpg +0 -0
- media/qaz/qbanner/t/o/top_banner_1.jpg +0 -0
- package.xml +9 -11
app/code/community/Qaz/Qbanner/Block/Adminhtml/Qbanner/Edit/Tab/Image.php
CHANGED
@@ -93,6 +93,7 @@ class Qaz_Qbanner_Block_Adminhtml_QBanner_Edit_Tab_Image extends Mage_Adminhtml_
|
|
93 |
'url' => Mage::getSingleton('qbanner/config')->getBaseMediaUrl() . $_item['file'],
|
94 |
'file' => $_item['file'],
|
95 |
'label' => $_item['label'],
|
|
|
96 |
'position' => $_item['position'],
|
97 |
'disabled' => $_item['disabled']);
|
98 |
}
|
93 |
'url' => Mage::getSingleton('qbanner/config')->getBaseMediaUrl() . $_item['file'],
|
94 |
'file' => $_item['file'],
|
95 |
'label' => $_item['label'],
|
96 |
+
'link' => $_item['link'],
|
97 |
'position' => $_item['position'],
|
98 |
'disabled' => $_item['disabled']);
|
99 |
}
|
app/code/community/Qaz/Qbanner/Model/Mysql4/Qbanner.php
CHANGED
@@ -257,12 +257,14 @@ class Qaz_Qbanner_Model_Mysql4_Qbanner extends Mage_Core_Model_Mysql4_Abstract {
|
|
257 |
$condition = $this->_getWriteAdapter()->quoteInto('qbanner_id = ?', $object->getId());
|
258 |
$this->_getWriteAdapter()->delete($this->getTable('qbanner/qbanner_image'), $condition);
|
259 |
|
|
|
260 |
foreach ($_imageList as &$_item) {
|
261 |
if (isset($_item['removed']) and $_item['removed'] == '1') {
|
262 |
$_adapter->delete($_imageTable, $_adapter->quoteInto('image_id = ?', $_item['value_id'], 'INTEGER'));
|
263 |
} else {
|
264 |
$_data = array(
|
265 |
'label' => $_item['label'],
|
|
|
266 |
'file' => $_item['file'],
|
267 |
'position' => $_item['position'],
|
268 |
'disabled' => $_item['disabled'],
|
257 |
$condition = $this->_getWriteAdapter()->quoteInto('qbanner_id = ?', $object->getId());
|
258 |
$this->_getWriteAdapter()->delete($this->getTable('qbanner/qbanner_image'), $condition);
|
259 |
|
260 |
+
|
261 |
foreach ($_imageList as &$_item) {
|
262 |
if (isset($_item['removed']) and $_item['removed'] == '1') {
|
263 |
$_adapter->delete($_imageTable, $_adapter->quoteInto('image_id = ?', $_item['value_id'], 'INTEGER'));
|
264 |
} else {
|
265 |
$_data = array(
|
266 |
'label' => $_item['label'],
|
267 |
+
'link' => $_item['link'],
|
268 |
'file' => $_item['file'],
|
269 |
'position' => $_item['position'],
|
270 |
'disabled' => $_item['disabled'],
|
app/code/community/Qaz/Qbanner/controllers/Adminhtml/QbannerController.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class Qaz_Qbanner_Adminhtml_QbannerController extends
|
4 |
|
5 |
protected function _initAction() {
|
6 |
$this->loadLayout()
|
1 |
<?php
|
2 |
|
3 |
+
class Qaz_Qbanner_Adminhtml_QbannerController extends Mage_Adminhtml_Controller_Action {
|
4 |
|
5 |
protected function _initAction() {
|
6 |
$this->loadLayout()
|
app/code/community/Qaz/Qbanner/controllers/IndexController.php
CHANGED
@@ -3,45 +3,17 @@ class Qaz_Qbanner_IndexController extends Mage_Core_Controller_Front_Action
|
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
/*
|
15 |
-
$qbanner_id = $this->getRequest()->getParam('id');
|
16 |
-
|
17 |
-
if($qbanner_id != null && $qbanner_id != '') {
|
18 |
-
$qbanner = Mage::getModel('qbanner/qbanner')->load($qbanner_id)->getData();
|
19 |
-
} else {
|
20 |
-
$qbanner = null;
|
21 |
-
}
|
22 |
-
*/
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
/*
|
28 |
-
if($qbanner == null) {
|
29 |
-
$resource = Mage::getSingleton('core/resource');
|
30 |
-
$read= $resource->getConnection('core_read');
|
31 |
-
$qbannerTable = $resource->getTableName('qbanner');
|
32 |
-
|
33 |
-
$select = $read->select()
|
34 |
-
->from($qbannerTable,array('qbanner_id','title','content','status'))
|
35 |
-
->where('status',1)
|
36 |
-
->order('created_time DESC') ;
|
37 |
-
|
38 |
-
$qbanner = $read->fetchRow($select);
|
39 |
-
}
|
40 |
-
Mage::register('qbanner', $qbanner);
|
41 |
-
*/
|
42 |
-
|
43 |
-
|
44 |
-
$this->loadLayout();
|
45 |
-
$this->renderLayout();
|
46 |
}
|
47 |
}
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
+
$data = array(
|
7 |
+
'title'=> 'Nguyendt "',
|
8 |
+
'name' => 'Name',
|
9 |
+
'date'=>now()
|
10 |
+
);
|
11 |
+
$dataSerialize = serialize($data);
|
12 |
+
print "<pre>";
|
13 |
+
print_r(serialize($dataSerialize));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
+
print ("\n --------------");
|
16 |
+
|
17 |
+
print_r(unserialize($dataSerialize));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
19 |
}
|
app/code/community/Qaz/Qbanner/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Qaz_Qbanner>
|
5 |
-
<version>2.
|
6 |
</Qaz_Qbanner>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Qaz_Qbanner>
|
5 |
+
<version>2.1.4</version>
|
6 |
</Qaz_Qbanner>
|
7 |
</modules>
|
8 |
<frontend>
|
app/code/community/Qaz/Qbanner/sql/qbanner_setup/{mysql4-upgrade-1.7.1-1.8.1.php → mysql4-upgrade-0.1.0-1.8.1.php}
RENAMED
File without changes
|
app/code/community/Qaz/Qbanner/sql/qbanner_setup/mysql4-upgrade-1.8.1-2.1.4.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$installer = $this;
|
4 |
+
|
5 |
+
$installer->startSetup();
|
6 |
+
$installer->run("
|
7 |
+
|
8 |
+
ALTER TABLE `{$this->getTable('qbanner/qbanner_image')}` add column link varchar(100) after `label`;
|
9 |
+
");
|
10 |
+
|
11 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/qbanner.xml
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
|
|
|
|
|
|
|
|
|
|
3 |
<qbanner_adminhtml_qbanner_index>
|
4 |
<reference name="content">
|
5 |
<block type="qbanner/adminhtml_qbanner" name="qbanner" />
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addJs"><script>qaz/qbanner/mage/adminhtml/product.js</script></action>
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
<qbanner_adminhtml_qbanner_index>
|
9 |
<reference name="content">
|
10 |
<block type="qbanner/adminhtml_qbanner" name="qbanner" />
|
app/design/adminhtml/default/default/template/qaz/qbanner/edit/tab/image.phtml
CHANGED
@@ -4,7 +4,8 @@
|
|
4 |
<table cellspacing="0" class="data border" id="<?php echo $_block->getHtmlId() ?>_grid_qbanner" width="100%">
|
5 |
<col width="120" />
|
6 |
<col />
|
7 |
-
<col
|
|
|
8 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
9 |
<?php endforeach; ?>
|
10 |
<col width="50" />
|
@@ -12,6 +13,7 @@
|
|
12 |
<thead>
|
13 |
<tr class="headings">
|
14 |
<th><?php echo Mage::helper('qbanner')->__('Image') ?></th>
|
|
|
15 |
<th><?php echo Mage::helper('qbanner')->__('Image Link') ?></th>
|
16 |
<th><?php echo Mage::helper('qbanner')->__('Sort Order') ?></th>
|
17 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
@@ -23,7 +25,8 @@
|
|
23 |
<tbody id="<?php echo $_block->getHtmlId() ?>_list">
|
24 |
<tr id="<?php echo $_block->getHtmlId() ?>_template" class="template no-display">
|
25 |
<td class="cell-image"><div class="place-holder" onmouseover="<?php echo $_block->getJsObjectName(); ?>.loadImage('__file__')"><span><?php echo Mage::helper('qbanner')->__('Roll Over for preview') ?></span></div><img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="display:none;" alt="" /></td>
|
26 |
-
|
|
|
27 |
<td class="cell-position"><input type="text" class="input-text validate-number" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
28 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
29 |
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
@@ -36,6 +39,7 @@
|
|
36 |
<tr id="<?php echo $_block->getHtmlId() ?>-image-0">
|
37 |
<td class="cell-image"><?php echo Mage::helper('catalog')->__('No image') ?></td>
|
38 |
<td class="cell-label"><input type="hidden" /> </td>
|
|
|
39 |
<td class="cell-position"><input type="hidden" /> </td>
|
40 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
41 |
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
@@ -60,6 +64,6 @@
|
|
60 |
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save_image" name="[values]" value="<?php echo $_block->htmlEscape($_block->getImagesValuesJson()) ?>" />
|
61 |
<script type="text/javascript">
|
62 |
//<![CDATA[
|
63 |
-
var <?php echo $_block->getJsObjectName(); ?> = new Product.
|
64 |
//]]>
|
65 |
</script>
|
4 |
<table cellspacing="0" class="data border" id="<?php echo $_block->getHtmlId() ?>_grid_qbanner" width="100%">
|
5 |
<col width="120" />
|
6 |
<col />
|
7 |
+
<col />
|
8 |
+
<col width="50" />
|
9 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
10 |
<?php endforeach; ?>
|
11 |
<col width="50" />
|
13 |
<thead>
|
14 |
<tr class="headings">
|
15 |
<th><?php echo Mage::helper('qbanner')->__('Image') ?></th>
|
16 |
+
<th><?php echo Mage::helper('qbanner')->__('Caption') ?></th>
|
17 |
<th><?php echo Mage::helper('qbanner')->__('Image Link') ?></th>
|
18 |
<th><?php echo Mage::helper('qbanner')->__('Sort Order') ?></th>
|
19 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
25 |
<tbody id="<?php echo $_block->getHtmlId() ?>_list">
|
26 |
<tr id="<?php echo $_block->getHtmlId() ?>_template" class="template no-display">
|
27 |
<td class="cell-image"><div class="place-holder" onmouseover="<?php echo $_block->getJsObjectName(); ?>.loadImage('__file__')"><span><?php echo Mage::helper('qbanner')->__('Roll Over for preview') ?></span></div><img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="display:none;" alt="" /></td>
|
28 |
+
<td class="cell-label"><input type="text" class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
29 |
+
<td class="cell-link"><input type="text" class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
30 |
<td class="cell-position"><input type="text" class="input-text validate-number" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
31 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
32 |
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
39 |
<tr id="<?php echo $_block->getHtmlId() ?>-image-0">
|
40 |
<td class="cell-image"><?php echo Mage::helper('catalog')->__('No image') ?></td>
|
41 |
<td class="cell-label"><input type="hidden" /> </td>
|
42 |
+
<td class="cell-link"><input type="hidden" /> </td>
|
43 |
<td class="cell-position"><input type="hidden" /> </td>
|
44 |
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
45 |
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
64 |
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save_image" name="[values]" value="<?php echo $_block->htmlEscape($_block->getImagesValuesJson()) ?>" />
|
65 |
<script type="text/javascript">
|
66 |
//<![CDATA[
|
67 |
+
var <?php echo $_block->getJsObjectName(); ?> = new Product.Qbanner('<?php echo $_block->getHtmlId() ?>', <?php echo $_block->getUploader()->getJsObjectName() ?>, <?php echo $_block->getImageTypesJson() ?>);
|
68 |
//]]>
|
69 |
</script>
|
app/design/frontend/default/default/template/qaz/qbanner/qbanner.after.header.phtml
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
<?php foreach ($images as $image): ?>
|
33 |
<?php if (sizeof($images) == 1): ?>
|
34 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
35 |
-
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"
|
36 |
<?php if ($showCaption): ?>
|
37 |
<div class="caption" style="bottom:0">
|
38 |
<p><?php echo $image['label']; ?></p>
|
@@ -41,7 +41,7 @@
|
|
41 |
</div>
|
42 |
<?php endif; ?>
|
43 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
44 |
-
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"
|
45 |
<?php if ($showCaption): ?>
|
46 |
<div class="caption" style="bottom:0">
|
47 |
<p><?php echo $image['label']; ?></p>
|
32 |
<?php foreach ($images as $image): ?>
|
33 |
<?php if (sizeof($images) == 1): ?>
|
34 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
35 |
+
<a href="<?php echo $image['link'];?>" target="_blank"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/></a>
|
36 |
<?php if ($showCaption): ?>
|
37 |
<div class="caption" style="bottom:0">
|
38 |
<p><?php echo $image['label']; ?></p>
|
41 |
</div>
|
42 |
<?php endif; ?>
|
43 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
44 |
+
<a href="<?php echo $image['link'];?>" target="_blank"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/></a>
|
45 |
<?php if ($showCaption): ?>
|
46 |
<div class="caption" style="bottom:0">
|
47 |
<p><?php echo $image['label']; ?></p>
|
app/design/frontend/default/default/template/qaz/qbanner/qbanner.content.top.phtml
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
<?php foreach ($images as $image): ?>
|
33 |
<?php if (sizeof($images) == 1): ?>
|
34 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
35 |
-
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"
|
36 |
<?php if ($showCaption): ?>
|
37 |
<div class="caption" style="bottom:0">
|
38 |
<p><?php echo $image['label']; ?></p>
|
@@ -41,7 +41,7 @@
|
|
41 |
</div>
|
42 |
<?php endif; ?>
|
43 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
44 |
-
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"
|
45 |
<?php if ($showCaption): ?>
|
46 |
<div class="caption" style="bottom:0">
|
47 |
<p><?php echo $image['label']; ?></p>
|
32 |
<?php foreach ($images as $image): ?>
|
33 |
<?php if (sizeof($images) == 1): ?>
|
34 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
35 |
+
<a href="<?php echo $image['link'];?>" target="_blank"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/></a>
|
36 |
<?php if ($showCaption): ?>
|
37 |
<div class="caption" style="bottom:0">
|
38 |
<p><?php echo $image['label']; ?></p>
|
41 |
</div>
|
42 |
<?php endif; ?>
|
43 |
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
44 |
+
<a href="<?php echo $image['link'];?>" target="_blank"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/></a>
|
45 |
<?php if ($showCaption): ?>
|
46 |
<div class="caption" style="bottom:0">
|
47 |
<p><?php echo $image['label']; ?></p>
|
js/qaz/qbanner/mage/adminhtml/product.js
ADDED
@@ -0,0 +1,276 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Magento
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/afl-3.0.php
|
10 |
+
* If you did not receive a copy of the license and are unable to
|
11 |
+
* obtain it through the world-wide-web, please send an email
|
12 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
+
*
|
14 |
+
* DISCLAIMER
|
15 |
+
*
|
16 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
+
* versions in the future. If you wish to customize Magento for your
|
18 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
+
*
|
20 |
+
* @category Qbanner
|
21 |
+
* @package Qaz_Qbanner
|
22 |
+
* @copyright Kevin@qazware.com
|
23 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
24 |
+
*/
|
25 |
+
|
26 |
+
Product.Qbanner = Class.create();
|
27 |
+
Product.Qbanner.prototype = {
|
28 |
+
images : [],
|
29 |
+
file2id : {
|
30 |
+
'no_selection' :0
|
31 |
+
},
|
32 |
+
idIncrement :1,
|
33 |
+
containerId :'',
|
34 |
+
container :null,
|
35 |
+
uploader :null,
|
36 |
+
imageTypes : {},
|
37 |
+
initialize : function(containerId, uploader, imageTypes) {
|
38 |
+
this.containerId = containerId, this.container = $(this.containerId);
|
39 |
+
this.uploader = uploader;
|
40 |
+
this.imageTypes = imageTypes;
|
41 |
+
if (this.uploader) {
|
42 |
+
this.uploader.onFilesComplete = this.handleUploadComplete
|
43 |
+
.bind(this);
|
44 |
+
}
|
45 |
+
// this.uploader.onFileProgress = this.handleUploadProgress.bind(this);
|
46 |
+
// this.uploader.onFileError = this.handleUploadError.bind(this);
|
47 |
+
this.images = this.getElement('save').value.evalJSON();
|
48 |
+
this.imagesValues = this.getElement('save_image').value.evalJSON();
|
49 |
+
this.template = new Template('<tr id="__id__" class="preview">' + this
|
50 |
+
.getElement('template').innerHTML + '</tr>', new RegExp(
|
51 |
+
'(^|.|\\r|\\n)(__([a-zA-Z0-9_]+)__)', ''));
|
52 |
+
this.fixParentTable();
|
53 |
+
this.updateImages();
|
54 |
+
varienGlobalEvents.attachEventHandler('moveTab', this.onImageTabMove
|
55 |
+
.bind(this));
|
56 |
+
},
|
57 |
+
onImageTabMove : function(event) {
|
58 |
+
var imagesTab = false;
|
59 |
+
this.container.ancestors().each( function(parentItem) {
|
60 |
+
if (parentItem.tabObject) {
|
61 |
+
imagesTab = parentItem.tabObject;
|
62 |
+
throw $break;
|
63 |
+
}
|
64 |
+
}.bind(this));
|
65 |
+
|
66 |
+
if (imagesTab && event.tab && event.tab.name && imagesTab.name == event.tab.name) {
|
67 |
+
this.container.select('input[type="radio"]').each(function(radio) {
|
68 |
+
radio.observe('change', this.onChangeRadio);
|
69 |
+
}.bind(this));
|
70 |
+
this.updateImages();
|
71 |
+
}
|
72 |
+
|
73 |
+
},
|
74 |
+
fixParentTable : function() {
|
75 |
+
this.container.ancestors().each( function(parentItem) {
|
76 |
+
if (parentItem.tagName.toLowerCase() == 'td') {
|
77 |
+
parentItem.style.width = '100%';
|
78 |
+
}
|
79 |
+
if (parentItem.tagName.toLowerCase() == 'table') {
|
80 |
+
parentItem.style.width = '100%';
|
81 |
+
throw $break;
|
82 |
+
}
|
83 |
+
});
|
84 |
+
},
|
85 |
+
getElement : function(name) {
|
86 |
+
return $(this.containerId + '_' + name);
|
87 |
+
},
|
88 |
+
showUploader : function() {
|
89 |
+
this.getElement('add_images_button').hide();
|
90 |
+
this.getElement('uploader').show();
|
91 |
+
},
|
92 |
+
handleUploadComplete : function(files) {
|
93 |
+
files.each( function(item) {
|
94 |
+
if (!item.response.isJSON()) {
|
95 |
+
try {
|
96 |
+
console.log(item.response);
|
97 |
+
} catch (e2) {
|
98 |
+
alert(item.response);
|
99 |
+
}
|
100 |
+
return;
|
101 |
+
}
|
102 |
+
var response = item.response.evalJSON();
|
103 |
+
if (response.error) {
|
104 |
+
return;
|
105 |
+
}
|
106 |
+
var newImage = {};
|
107 |
+
newImage.url = response.url;
|
108 |
+
newImage.file = response.file;
|
109 |
+
newImage.label = '';
|
110 |
+
newImage.link = '';
|
111 |
+
newImage.position = this.getNextPosition();
|
112 |
+
newImage.disabled = 0;
|
113 |
+
newImage.removed = 0;
|
114 |
+
this.images.push(newImage);
|
115 |
+
this.uploader.removeFile(item.id);
|
116 |
+
}.bind(this));
|
117 |
+
this.container.setHasChanges();
|
118 |
+
this.updateImages();
|
119 |
+
},
|
120 |
+
updateImages : function() {
|
121 |
+
this.getElement('save').value = Object.toJSON(this.images);
|
122 |
+
$H(this.imageTypes).each(
|
123 |
+
function(pair) {
|
124 |
+
this.getFileElement('no_selection',
|
125 |
+
'cell-' + pair.key + ' input').checked = true;
|
126 |
+
}.bind(this));
|
127 |
+
this.images.each( function(row) {
|
128 |
+
if (!$(this.prepareId(row.file))) {
|
129 |
+
this.createImageRow(row);
|
130 |
+
}
|
131 |
+
this.updateVisualisation(row.file);
|
132 |
+
}.bind(this));
|
133 |
+
this.updateUseDefault(false);
|
134 |
+
},
|
135 |
+
onChangeRadio: function (evt) {
|
136 |
+
var element = Event.element(evt);
|
137 |
+
element.setHasChanges();
|
138 |
+
},
|
139 |
+
createImageRow : function(image) {
|
140 |
+
var vars = Object.clone(image);
|
141 |
+
vars.id = this.prepareId(image.file);
|
142 |
+
var html = this.template.evaluate(vars);
|
143 |
+
Element.insert(this.getElement('list'), {
|
144 |
+
bottom :html
|
145 |
+
});
|
146 |
+
|
147 |
+
$(vars.id).select('input[type="radio"]').each(function(radio) {
|
148 |
+
radio.observe('change', this.onChangeRadio);
|
149 |
+
}.bind(this));
|
150 |
+
},
|
151 |
+
prepareId : function(file) {
|
152 |
+
if (typeof this.file2id[file] == 'undefined') {
|
153 |
+
this.file2id[file] = this.idIncrement++;
|
154 |
+
}
|
155 |
+
return this.containerId + '-image-' + this.file2id[file];
|
156 |
+
},
|
157 |
+
getNextPosition : function() {
|
158 |
+
var maxPosition = 0;
|
159 |
+
this.images.each( function(item) {
|
160 |
+
if (parseInt(item.position) > maxPosition) {
|
161 |
+
maxPosition = parseInt(item.position);
|
162 |
+
}
|
163 |
+
});
|
164 |
+
return maxPosition + 1;
|
165 |
+
},
|
166 |
+
updateImage : function(file) {
|
167 |
+
var index = this.getIndexByFile(file);
|
168 |
+
this.images[index].label = this
|
169 |
+
.getFileElement(file, 'cell-label input').value;
|
170 |
+
this.images[index].link = this
|
171 |
+
.getFileElement(file, 'cell-link input').value;
|
172 |
+
this.images[index].position = this.getFileElement(file,
|
173 |
+
'cell-position input').value;
|
174 |
+
this.images[index].removed = (this.getFileElement(file,
|
175 |
+
'cell-remove input').checked ? 1 : 0);
|
176 |
+
this.images[index].disabled = (this.getFileElement(file,
|
177 |
+
'cell-disable input').checked ? 1 : 0);
|
178 |
+
this.getElement('save').value = Object.toJSON(this.images);
|
179 |
+
this.updateState(file);
|
180 |
+
this.container.setHasChanges();
|
181 |
+
},
|
182 |
+
loadImage : function(file) {
|
183 |
+
var image = this.getImageByFile(file);
|
184 |
+
this.getFileElement(file, 'cell-image img').src = image.url;
|
185 |
+
this.getFileElement(file, 'cell-image img').show();
|
186 |
+
this.getFileElement(file, 'cell-image .place-holder').hide();
|
187 |
+
},
|
188 |
+
setProductImages : function(file) {
|
189 |
+
$H(this.imageTypes)
|
190 |
+
.each(
|
191 |
+
function(pair) {
|
192 |
+
if (this.getFileElement(file,
|
193 |
+
'cell-' + pair.key + ' input').checked) {
|
194 |
+
this.imagesValues[pair.key] = (file == 'no_selection' ? null
|
195 |
+
: file);
|
196 |
+
}
|
197 |
+
}.bind(this));
|
198 |
+
|
199 |
+
this.getElement('save_image').value = Object.toJSON($H(this.imagesValues));
|
200 |
+
},
|
201 |
+
updateVisualisation : function(file) {
|
202 |
+
var image = this.getImageByFile(file);
|
203 |
+
this.getFileElement(file, 'cell-label input').value = image.label;
|
204 |
+
this.getFileElement(file, 'cell-link input').value = image.link;
|
205 |
+
this.getFileElement(file, 'cell-position input').value = image.position;
|
206 |
+
this.getFileElement(file, 'cell-remove input').checked = (image.removed == 1);
|
207 |
+
this.getFileElement(file, 'cell-disable input').checked = (image.disabled == 1);
|
208 |
+
$H(this.imageTypes)
|
209 |
+
.each(
|
210 |
+
function(pair) {
|
211 |
+
if (this.imagesValues[pair.key] == file) {
|
212 |
+
this.getFileElement(file,
|
213 |
+
'cell-' + pair.key + ' input').checked = true;
|
214 |
+
}
|
215 |
+
}.bind(this));
|
216 |
+
this.updateState(file);
|
217 |
+
},
|
218 |
+
updateState : function(file) {
|
219 |
+
if (this.getFileElement(file, 'cell-disable input').checked) {
|
220 |
+
this.getFileElement(file, 'cell-position input').disabled = true;
|
221 |
+
} else {
|
222 |
+
this.getFileElement(file, 'cell-position input').disabled = false;
|
223 |
+
}
|
224 |
+
},
|
225 |
+
getFileElement : function(file, element) {
|
226 |
+
var selector = '#' + this.prepareId(file) + ' .' + element;
|
227 |
+
var elems = $$(selector);
|
228 |
+
if (!elems[0]) {
|
229 |
+
try {
|
230 |
+
console.log(selector);
|
231 |
+
} catch (e2) {
|
232 |
+
alert(selector);
|
233 |
+
}
|
234 |
+
}
|
235 |
+
|
236 |
+
return $$('#' + this.prepareId(file) + ' .' + element)[0];
|
237 |
+
},
|
238 |
+
getImageByFile : function(file) {
|
239 |
+
if (this.getIndexByFile(file) === null) {
|
240 |
+
return false;
|
241 |
+
}
|
242 |
+
|
243 |
+
return this.images[this.getIndexByFile(file)];
|
244 |
+
},
|
245 |
+
getIndexByFile : function(file) {
|
246 |
+
var index;
|
247 |
+
this.images.each( function(item, i) {
|
248 |
+
if (item.file == file) {
|
249 |
+
index = i;
|
250 |
+
}
|
251 |
+
});
|
252 |
+
return index;
|
253 |
+
},
|
254 |
+
updateUseDefault : function() {
|
255 |
+
if (this.getElement('default')) {
|
256 |
+
this.getElement('default').select('input').each(
|
257 |
+
function(input) {
|
258 |
+
$(this.containerId).select(
|
259 |
+
'.cell-' + input.value + ' input').each(
|
260 |
+
function(radio) {
|
261 |
+
radio.disabled = input.checked;
|
262 |
+
});
|
263 |
+
}.bind(this));
|
264 |
+
}
|
265 |
+
|
266 |
+
if (arguments.length == 0) {
|
267 |
+
this.container.setHasChanges();
|
268 |
+
}
|
269 |
+
},
|
270 |
+
handleUploadProgress : function(file) {
|
271 |
+
|
272 |
+
},
|
273 |
+
handleUploadError : function(fileId) {
|
274 |
+
|
275 |
+
}
|
276 |
+
};
|
media/qaz/qbanner/1/6/1694554_11311.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-2.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-21.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-21_1.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-21_2.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-2_1.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-2_2.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-2_3.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-3.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-31.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-31_1.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-3_1.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-3_2.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-3_3.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-3_4.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-3_5.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-3_6.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-4.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-4_1.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-4_2.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-4_3.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-4_4.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-4_5.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner-4_6.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/a/banner.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/o/bottom_banner.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/o/bottom_banner2.jpg
DELETED
Binary file
|
media/qaz/qbanner/b/o/bottom_banner2_1.jpg
DELETED
Binary file
|
media/qaz/qbanner/t/o/top_banner.jpg
DELETED
Binary file
|
media/qaz/qbanner/t/o/top_banner_1.jpg
DELETED
Binary file
|
package.xml
CHANGED
@@ -1,20 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>QAZ_Qbanner</name>
|
4 |
-
<version>2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
|
11 |
-
<
|
12 |
-
|
13 |
-
<
|
14 |
-
<
|
15 |
-
<
|
16 |
-
<time>04:06:38</time>
|
17 |
-
<contents><target name="magecommunity"><dir name="Qaz"><dir name="Qbanner"><dir name="Block"><dir name="Adminhtml"><dir name="Qbanner"><dir name="Edit"><file name="Form.php" hash="aee2407e2a9f5940e9c08170b6a43abe"/><dir name="Tab"><file name="Category.php" hash="61abdaddee7d7f504332b89967d28437"/><file name="Form.php" hash="03482f82f257505cb684a239c32a3086"/><file name="Image.php" hash="c48ea83ae0ebce092d93a6b3dbbaf139"/><file name="Pages.php" hash="594a0ecffb7147893deb39d7f2f03493"/></dir><file name="Tabs.php" hash="769ebfc7c86192e02d189478f997eb40"/></dir><file name="Edit.php" hash="4970a7507a9b156eb5ad3549031ef791"/><file name="Grid.php" hash="4342ef02239e11f0e91c427169979d42"/></dir><file name="Qbanner.php" hash="cdc72f40377017f48bc7f83a4d879620"/></dir><file name="Qbanner.php" hash="5c6616111c1c04d821cf3f292c1987cf"/></dir><dir name="Helper"><file name="Data.php" hash="12358d50493059aa9171f2fe4fc340c0"/></dir><dir name="Model"><file name="Config.php" hash="77b86ba70a8709518a1833cce313f8ce"/><dir name="Mysql4"><dir name="Qbanner"><file name="Collection.php" hash="713a2a33f4f015b30cf6f013d5fc30ed"/></dir><file name="Qbanner.php" hash="05a976e268ba40e1c38662d6bb5f6458"/></dir><dir name="Option"><file name="Pages.php" hash="221f9a629ea486d52b219b47e9d51583"/><file name="Position.php" hash="449baccb2053509ba0726befe7a4a1cf"/><file name="Status.php" hash="12d8c41655369a00094b9276e211582c"/></dir><file name="Qbanner.php" hash="062251b29ee6e6b9eca5fbb5217574f5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="QbannerController.php" hash="6463e0acf134ee2e7d0e052c86afb042"/></dir><file name="IndexController.php" hash="d3c15879f3158b505d412ae90aeb5466"/></dir><dir name="etc"><file name="config.xml" hash="aa50d683e1bbdac190d025e3c51b305e"/><file name="system.xml" hash="da732ecff7683edca974b996f74a5027"/></dir><dir name="sql"><dir name="qbanner_setup"><file name="mysql4-install-0.1.0.php" hash="6a7322f7c3b8978f4de877c7a3401480"/><file name="mysql4-upgrade-1.7.1-1.8.1.php" hash="85249553045169fee124e843298d62a6"/></dir></dir></dir><dir name="All"><dir name="Helper"><file name="Data.php" hash="a531698b0373f15ed017a921e0bfbe4b"/></dir><dir name="etc"><file name="config.xml" hash="6c6f6676c558ccb25c43a2c016f2d09d"/><file name="system.xml" hash="29a1180abd3b6a53b024f2bde75207bc"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Qaz_Qbanner.xml" hash="81840a50f8ba118b9f652a4c68e6608f"/><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="c1d49b73932f0b5a5cad7000f0940e55"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><file name="qbanner.after.header.phtml" hash="29d8d87a6bd783bb8fefc2d66410fc77"/><file name="qbanner.content.top.phtml" hash="a75163bd5663cc3d8f97be9619e6bcff"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="1cfd7b9362bf8e99dc47b450a920a25c"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><dir name="edit"><dir name="tab"><file name="category.phtml" hash="46a89238104e417024606afb156c6af8"/><file name="image.phtml" hash="041ff63dcce58cd68e439b24b96062dc"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="qaz"><dir name="qbanner"><dir name="css"><file name="global.css" hash="8c6811cf4bca210b0a3ad3cd88344c01"/></dir><dir name="images"><file name="arrow-bg.png" hash="dd02d2e167a7ad76df8f10bf1147de70"/><file name="arrow-bg2.gif" hash="630ba4ce19ec51a1f984d3d8bd140479"/><file name="arrow-l.png" hash="9a4f1aadda0df80f8db6ebc7d0c938d7"/><file name="arrow-next.png" hash="15d6fe778c4df2494a7af4e098aad4ff"/><file name="arrow-prev.png" hash="bc273e26e577babc8044b0a8a86358d0"/><file name="arrow-r.png" hash="94af413ec776ca1b09b9fff4f81cc618"/><file name="b_next.png" hash="d72dde0609aded61a24fa18cdca4bf7f"/><file name="b_prev.png" hash="86e333b7023d493e8024ccc6b32cd690"/><file name="background.png" hash="96519dab3e5a2a09075632cca4a98141"/><file name="example-frame.png" hash="a6fe93af35f205873d1c68e257f0ffe1"/><file name="loading.gif" hash="58c35cf5e9fcbe3914c839c6665794bd"/><file name="new-ribbon.png" hash="ddf312ad3449c87f2c98f11a56a3fcc3"/><file name="pagination.png" hash="c1e5cc6dfe80b935b657576c8b93f5f5"/><file name="slide-1.jpg" hash="60f4feb9d141c63d4b120831b7deab11"/><file name="slide-2.jpg" hash="772208e05945f5e83275b4869875f9ae"/><file name="slide-3.jpg" hash="5aa6d109f0131737ca0e7c9fbf3b9bae"/><file name="slide-4.jpg" hash="3eb11a293897724ada695688486f38e9"/><file name="slide-5.jpg" hash="8692bb9ad56518c50625d53cb87f4795"/><file name="slide-6.jpg" hash="7eb3c3d3bd818ec1d6726cc33881d661"/><file name="slide-7.jpg" hash="fcf0c1c41e4880f58d735bde18c986b5"/><file name="slide.jpg" hash="0a421d74f61d7cb8e01d203b7b3825fb"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="qaz"><dir name="qbanner"><dir name="1"><dir name="6"><file name="1694554_11311.jpg" hash="185393ad2608267414c07df2bf7773ab"/></dir></dir><dir name="b"><dir name="a"><file name="banner-2.jpg" hash="6febbe94012249dcc75365c1021092a3"/><file name="banner-21.jpg" hash="6febbe94012249dcc75365c1021092a3"/><file name="banner-21_1.jpg" hash="6febbe94012249dcc75365c1021092a3"/><file name="banner-21_2.jpg" hash="6febbe94012249dcc75365c1021092a3"/><file name="banner-2_1.jpg" hash="6febbe94012249dcc75365c1021092a3"/><file name="banner-2_2.jpg" hash="6febbe94012249dcc75365c1021092a3"/><file name="banner-2_3.jpg" hash="6febbe94012249dcc75365c1021092a3"/><file name="banner-3.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-31.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-31_1.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-3_1.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-3_2.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-3_3.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-3_4.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-3_5.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-3_6.jpg" hash="bfc028c43f28e9f5b4b7f31ab08cb2c8"/><file name="banner-4.jpg" hash="f5dfb9ddfbe2c50dea7e82ff27dbe038"/><file name="banner-4_1.jpg" hash="f5dfb9ddfbe2c50dea7e82ff27dbe038"/><file name="banner-4_2.jpg" hash="f5dfb9ddfbe2c50dea7e82ff27dbe038"/><file name="banner-4_3.jpg" hash="f5dfb9ddfbe2c50dea7e82ff27dbe038"/><file name="banner-4_4.jpg" hash="f5dfb9ddfbe2c50dea7e82ff27dbe038"/><file name="banner-4_5.jpg" hash="f5dfb9ddfbe2c50dea7e82ff27dbe038"/><file name="banner-4_6.jpg" hash="f5dfb9ddfbe2c50dea7e82ff27dbe038"/><file name="banner.jpg" hash="4a3fa9332b011c561ac6067fc9303a53"/></dir><dir name="o"><file name="bottom_banner.jpg" hash="b4f1c5ed987763bc87b9c1c68cc4c9c5"/><file name="bottom_banner2.jpg" hash="e40c9024be93cfc9ffee642c77cb7879"/><file name="bottom_banner2_1.jpg" hash="e40c9024be93cfc9ffee642c77cb7879"/></dir></dir><dir name="t"><dir name="o"><file name="top_banner.jpg" hash="037cd1d0514b2ffa0885c21750df10a4"/><file name="top_banner_1.jpg" hash="037cd1d0514b2ffa0885c21750df10a4"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="qaz"><dir name="qbanner"><file name="jquery.1.5.1.js" hash="38251a5074065e46fea974a460ea7a00"/><file name="jquery.slides.min.js" hash="a599effbf3331c3616e8b393ab7d10d6"/><file name="jqueryNoconfig.js" hash="8dd633a4b123d345a666b655d88d0b17"/></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
-
<dependencies
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>QAZ_Qbanner</name>
|
4 |
+
<version>2.1.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Support add more banner , set show more page , and very important , it help upload multi image</summary>
|
10 |
+
<description>Support add more banner , set show more page , and very important , it help upload multi image</description>
|
11 |
+
<notes>Added link to image when upload image</notes>
|
12 |
+
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin@qazware.com</email></author></authors>
|
13 |
+
<date>2012-03-19</date>
|
14 |
+
<time>10:24:44</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Qaz"><dir name="All"><dir name="Helper"><file name="Data.php" hash="a531698b0373f15ed017a921e0bfbe4b"/></dir><dir name="etc"><file name="config.xml" hash="6c6f6676c558ccb25c43a2c016f2d09d"/><file name="system.xml" hash="29a1180abd3b6a53b024f2bde75207bc"/></dir></dir><dir name="Qbanner"><dir name="Block"><dir name="Adminhtml"><dir name="Qbanner"><dir name="Edit"><dir name="Tab"><file name="Category.php" hash="61abdaddee7d7f504332b89967d28437"/><file name="Form.php" hash="03482f82f257505cb684a239c32a3086"/><file name="Image.php" hash="5fdc969762f6451abc2c40143f654a34"/><file name="Pages.php" hash="594a0ecffb7147893deb39d7f2f03493"/></dir><file name="Form.php" hash="aee2407e2a9f5940e9c08170b6a43abe"/><file name="Tabs.php" hash="769ebfc7c86192e02d189478f997eb40"/></dir><file name="Edit.php" hash="4970a7507a9b156eb5ad3549031ef791"/><file name="Grid.php" hash="4342ef02239e11f0e91c427169979d42"/></dir><file name="Qbanner.php" hash="cdc72f40377017f48bc7f83a4d879620"/></dir><file name="Qbanner.php" hash="5c6616111c1c04d821cf3f292c1987cf"/></dir><dir name="Helper"><file name="Data.php" hash="12358d50493059aa9171f2fe4fc340c0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Qbanner"><file name="Collection.php" hash="713a2a33f4f015b30cf6f013d5fc30ed"/></dir><file name="Qbanner.php" hash="63cb5aeaaf13f055cff2e216c33b24d8"/></dir><dir name="Option"><file name="Pages.php" hash="221f9a629ea486d52b219b47e9d51583"/><file name="Position.php" hash="449baccb2053509ba0726befe7a4a1cf"/><file name="Status.php" hash="12d8c41655369a00094b9276e211582c"/></dir><file name="Config.php" hash="77b86ba70a8709518a1833cce313f8ce"/><file name="Qbanner.php" hash="062251b29ee6e6b9eca5fbb5217574f5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="QbannerController.php" hash="d37b642e2ce89c39d358fc0a89467acd"/></dir><file name="IndexController.php" hash="f407373f3d22fcd6284b81ea426eaa4a"/></dir><dir name="etc"><file name="config.xml" hash="2d368844c82d83deb67a581356b5b4e4"/><file name="system.xml" hash="da732ecff7683edca974b996f74a5027"/></dir><dir name="sql"><dir name="qbanner_setup"><file name="mysql4-install-0.1.0.php" hash="6a7322f7c3b8978f4de877c7a3401480"/><file name="mysql4-upgrade-0.1.0-1.8.1.php" hash="85249553045169fee124e843298d62a6"/><file name="mysql4-upgrade-1.8.1-2.1.4.php" hash="81b15086ba716c7bb787687e25641f43"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/><file name="Qaz_Qbanner.xml" hash="81840a50f8ba118b9f652a4c68e6608f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="c1d49b73932f0b5a5cad7000f0940e55"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><file name="qbanner.after.header.phtml" hash="4d78dd6939256bd580fddc32126f8555"/><file name="qbanner.content.top.phtml" hash="e15c8e2ef2579682e6af86a8c240f725"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="5cdd5bf218f6a4f6313d6458486db6ca"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><dir name="edit"><dir name="tab"><file name="category.phtml" hash="46a89238104e417024606afb156c6af8"/><file name="image.phtml" hash="17ee407ad00b66a0108da81bcb85355a"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="qaz"><dir name="qbanner"><dir name="css"><file name="global.css" hash="8c6811cf4bca210b0a3ad3cd88344c01"/></dir><dir name="images"><file name="arrow-bg.png" hash="dd02d2e167a7ad76df8f10bf1147de70"/><file name="arrow-bg2.gif" hash="630ba4ce19ec51a1f984d3d8bd140479"/><file name="arrow-l.png" hash="9a4f1aadda0df80f8db6ebc7d0c938d7"/><file name="arrow-next.png" hash="15d6fe778c4df2494a7af4e098aad4ff"/><file name="arrow-prev.png" hash="bc273e26e577babc8044b0a8a86358d0"/><file name="arrow-r.png" hash="94af413ec776ca1b09b9fff4f81cc618"/><file name="b_next.png" hash="d72dde0609aded61a24fa18cdca4bf7f"/><file name="b_prev.png" hash="86e333b7023d493e8024ccc6b32cd690"/><file name="background.png" hash="96519dab3e5a2a09075632cca4a98141"/><file name="example-frame.png" hash="a6fe93af35f205873d1c68e257f0ffe1"/><file name="loading.gif" hash="58c35cf5e9fcbe3914c839c6665794bd"/><file name="new-ribbon.png" hash="ddf312ad3449c87f2c98f11a56a3fcc3"/><file name="pagination.png" hash="c1e5cc6dfe80b935b657576c8b93f5f5"/><file name="slide-1.jpg" hash="60f4feb9d141c63d4b120831b7deab11"/><file name="slide-2.jpg" hash="772208e05945f5e83275b4869875f9ae"/><file name="slide-3.jpg" hash="5aa6d109f0131737ca0e7c9fbf3b9bae"/><file name="slide-4.jpg" hash="3eb11a293897724ada695688486f38e9"/><file name="slide-5.jpg" hash="8692bb9ad56518c50625d53cb87f4795"/><file name="slide-6.jpg" hash="7eb3c3d3bd818ec1d6726cc33881d661"/><file name="slide-7.jpg" hash="fcf0c1c41e4880f58d735bde18c986b5"/><file name="slide.jpg" hash="0a421d74f61d7cb8e01d203b7b3825fb"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="qaz"><dir name="qbanner"><dir name="mage"><dir name="adminhtml"><file name="product.js" hash="dc99b6f7b6c6ae1c57bec9824d1b90be"/></dir></dir><file name="jquery.1.5.1.js" hash="38251a5074065e46fea974a460ea7a00"/><file name="jquery.slides.min.js" hash="a599effbf3331c3616e8b393ab7d10d6"/><file name="jqueryNoconfig.js" hash="8dd633a4b123d345a666b655d88d0b17"/></dir></dir></dir></target></contents>
|
|
|
|
|
16 |
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
</package>
|