Version Notes
1.0.7
-removed unwanted code.
-fixed upload error for Magento Version < 1.5.1.0
1.0.6
-minor text changes
1.0.5
-fixed compilation issue
-added files in base for easy installation
-fixed image sorting and excluding bug
Download this release
Release Info
Developer | NextBits Web Solutions Pvt. Ltd. |
Extension | NextBits_BannerNext |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- app/code/local/NextBits/BannerNext/controllers/Adminhtml/BannernextController.php +7 -1
- app/design/adminhtml/default/default/template/bannernext/banner.phtml# +0 -14
- app/design/adminhtml/default/default/template/bannernext/edit/tab/gallery-backup-editor.txt +0 -315
- app/design/adminhtml/default/default/template/bannernext/uploader.phtml +0 -3
- package.xml +9 -5
app/code/local/NextBits/BannerNext/controllers/Adminhtml/BannernextController.php
CHANGED
@@ -5,7 +5,13 @@ class NextBits_BannerNext_Adminhtml_BannernextController extends Mage_Adminhtml_
|
|
5 |
{
|
6 |
try {
|
7 |
//Mage::log($_FILES);
|
8 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
10 |
$uploader->addValidateCallback('catalog_product_image',
|
11 |
Mage::helper('catalog/image'), 'validateUploadFile');
|
5 |
{
|
6 |
try {
|
7 |
//Mage::log($_FILES);
|
8 |
+
/* $mageVersion = Mage::getVersionInfo();
|
9 |
+
if($mageVersion<'1.5.1.0'){
|
10 |
+
$uploader = new Mage_Core_Model_File_Uploader('image');
|
11 |
+
}else{
|
12 |
+
$uploader = new Varien_File_Uploader('image');
|
13 |
+
} */
|
14 |
+
$uploader = new Varien_File_Uploader('image');
|
15 |
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
16 |
$uploader->addValidateCallback('catalog_product_image',
|
17 |
Mage::helper('catalog/image'), 'validateUploadFile');
|
app/design/adminhtml/default/default/template/bannernext/banner.phtml#
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
<div class="content-header">
|
2 |
-
<table cellspacing="0">
|
3 |
-
<tr>
|
4 |
-
<td style="width:50%;"><h3 class="icon-head head-blog"><?php echo Mage::helper('bannernext')->__('Banner Manager') ?></h3></td>
|
5 |
-
<td class="a-right">
|
6 |
-
<?php echo $this->getAddNewButtonHtml() ?>
|
7 |
-
</td>
|
8 |
-
</tr>
|
9 |
-
</table>
|
10 |
-
</div>
|
11 |
-
<?php echo $this->getStoreSwitcherHtml() ?>
|
12 |
-
<div>
|
13 |
-
<?php echo $this->getGridHtml() ?>
|
14 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/bannernext/edit/tab/gallery-backup-editor.txt
DELETED
@@ -1,315 +0,0 @@
|
|
1 |
-
<script>
|
2 |
-
/* to update section after image upload */
|
3 |
-
Product.Gallery.prototype.updateImage = function(file) {
|
4 |
-
|
5 |
-
var index = this.getIndexByFile(file);
|
6 |
-
//alert(this.getFileElement(file, 'cell-label #image-html').value);
|
7 |
-
//if(this.getFileElement(file, 'cell-label #image-html').value != 'undefined'){
|
8 |
-
this.images[index].html = this.getFileElement(file, 'cell-label #image-html').value;
|
9 |
-
//}
|
10 |
-
//if(this.getFileElement(file, 'cell-label #image-link').value != 'undefined')
|
11 |
-
this.images[index].link = this.getFileElement(file, 'cell-label #image-link').value;
|
12 |
-
//}
|
13 |
-
this.images[index].label = this.getFileElement(file, 'cell-label #image-label').value;
|
14 |
-
|
15 |
-
this.images[index].position = this.getFileElement(file,'cell-position input').value;
|
16 |
-
this.images[index].removed = (this.getFileElement(file,'cell-remove input').checked ? 1 : 0);
|
17 |
-
this.images[index].disabled = (this.getFileElement(file,'cell-disable input').checked ? 1 : 0);
|
18 |
-
this.getElement('save').value = Object.toJSON(this.images);
|
19 |
-
this.updateState(file);
|
20 |
-
this.container.setHasChanges();
|
21 |
-
}
|
22 |
-
/* fill saved data in db to form */
|
23 |
-
Product.Gallery.prototype.updateVisualisation = function(file) {
|
24 |
-
|
25 |
-
var image = this.getImageByFile(file);
|
26 |
-
|
27 |
-
if(image.html != undefined){
|
28 |
-
|
29 |
-
this.getFileElement(file, 'cell-label #image-html').value = image.html;
|
30 |
-
}
|
31 |
-
if(image.link != undefined){
|
32 |
-
this.getFileElement(file, 'cell-label #image-link').value = image.link;
|
33 |
-
}
|
34 |
-
this.getFileElement(file, 'cell-label #image-label').value = image.label;
|
35 |
-
|
36 |
-
this.getFileElement(file, 'cell-position input').value = image.position;
|
37 |
-
this.getFileElement(file, 'cell-remove input').checked = (image.removed == 1);
|
38 |
-
this.getFileElement(file, 'cell-disable input').checked = (image.disabled == 1);
|
39 |
-
$H(this.imageTypes)
|
40 |
-
.each(
|
41 |
-
function(pair) {
|
42 |
-
if (this.imagesValues[pair.key] == file) {
|
43 |
-
this.getFileElement(file,
|
44 |
-
'cell-' + pair.key + ' input').checked = true;
|
45 |
-
}
|
46 |
-
}.bind(this));
|
47 |
-
this.updateState(file);
|
48 |
-
}
|
49 |
-
/* Product.Gallery.prototype.createHtmlRow = function(image) {
|
50 |
-
|
51 |
-
var index = 500;
|
52 |
-
html : [];
|
53 |
-
this.html[index].label = 'lllll';
|
54 |
-
this.html[index].file = '/s/p/sparkle-candle.940x280.hq_74.gif.tmp';
|
55 |
-
this.html[index].url = 'http:\/\/127.0.0.1\/magento1702-2\/media\/tmp\/catalog\/product\/s\/p\/sparkle-candle.940x280.hq_74.gif';
|
56 |
-
this.html[index].position = 11;
|
57 |
-
this.html[index].removed = 0;
|
58 |
-
this.html[index].disabled = 0;
|
59 |
-
var htmlObj = Object.toJSON(this.html);
|
60 |
-
|
61 |
-
var vars = Object.clone(htmlObj);
|
62 |
-
vars.id = this.prepareId(image.file);
|
63 |
-
var html = this.template.evaluate(vars);
|
64 |
-
Element.insert(this.getElement('list'), {
|
65 |
-
bottom :html
|
66 |
-
});
|
67 |
-
|
68 |
-
$(vars.id).select('input[type="radio"]').each(function(radio) {
|
69 |
-
radio.observe('change', this.onChangeRadio);
|
70 |
-
}.bind(this));
|
71 |
-
} */
|
72 |
-
</script>
|
73 |
-
<?php
|
74 |
-
/**
|
75 |
-
* Template for block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content
|
76 |
-
*/
|
77 |
-
?>
|
78 |
-
<?php
|
79 |
-
$_block = $this;
|
80 |
-
/* @var $_block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content */
|
81 |
-
?>
|
82 |
-
<div id="<?php echo $_block->getHtmlId() ?>" >
|
83 |
-
<ul class="messages">
|
84 |
-
<li class="notice-msg">
|
85 |
-
<ul>
|
86 |
-
<li>
|
87 |
-
<?php echo Mage::helper('bannernext')->__('Image type and information need to be specified for each store view.'); ?>
|
88 |
-
</li>
|
89 |
-
</ul>
|
90 |
-
</li>
|
91 |
-
</ul>
|
92 |
-
<div class="grid">
|
93 |
-
<table cellspacing="0" class="data border" id="<?php echo $_block->getHtmlId() ?>_grid" width="100%">
|
94 |
-
<col width="1" />
|
95 |
-
<col />
|
96 |
-
<col width="70" />
|
97 |
-
|
98 |
-
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
99 |
-
<col style="display:none;"/>
|
100 |
-
<?php endforeach; ?>
|
101 |
-
|
102 |
-
<col width="70" />
|
103 |
-
<col width="70" />
|
104 |
-
<thead>
|
105 |
-
<tr class="headings">
|
106 |
-
<th><?php echo Mage::helper('bannernext')->__('Image') ?></th>
|
107 |
-
<th><?php echo Mage::helper('bannernext')->__('Label') ?></th>
|
108 |
-
<th><?php echo Mage::helper('bannernext')->__('Sort Order') ?></th>
|
109 |
-
|
110 |
-
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
111 |
-
<th style="display:none;"><?php echo $type['label'] ?></th>
|
112 |
-
<?php endforeach; ?>
|
113 |
-
|
114 |
-
<th><?php echo Mage::helper('bannernext')->__('Exclude') ?></th>
|
115 |
-
<th class="last"><?php echo Mage::helper('bannernext')->__('Remove') ?></th>
|
116 |
-
</tr>
|
117 |
-
</thead>
|
118 |
-
<tbody id="<?php echo $_block->getHtmlId() ?>_list">
|
119 |
-
<tr id="<?php echo $_block->getHtmlId() ?>_template" class="template no-display">
|
120 |
-
<td class="cell-image"><div class="place-holder" onmouseover="<?php echo $_block->getJsObjectName(); ?>.loadImage('__file__')"><span><?php echo Mage::helper('bannernext')->__('Roll Over for preview') ?></span></div><img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="display:none;" alt="" /></td>
|
121 |
-
<td class="cell-label">
|
122 |
-
<table>
|
123 |
-
<tr>
|
124 |
-
<td>Label
|
125 |
-
<input id="image-label" type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" />
|
126 |
-
</td>
|
127 |
-
</tr>
|
128 |
-
<tr>
|
129 |
-
<td>Link
|
130 |
-
<input id="image-link" type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" />
|
131 |
-
</td>
|
132 |
-
</tr>
|
133 |
-
<tr>
|
134 |
-
<td>HTML
|
135 |
-
<?php
|
136 |
-
$disabled = false;
|
137 |
-
$editor = Mage::getSingleton('core/layout')
|
138 |
-
->createBlock('adminhtml/widget_button', '', array(
|
139 |
-
'label' => Mage::helper('catalog')->__('WYSIWYG Editor'),
|
140 |
-
'type' => 'button',
|
141 |
-
'disabled' => $disabled,
|
142 |
-
'class' => ($disabled) ? 'disabled' : '',
|
143 |
-
'onclick' => 'catalogWysiwygEditor.open(\''.Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/wysiwyg').'\', \'__id__\')'
|
144 |
-
))->toHtml();
|
145 |
-
$html = $editor . ' ' . $html;
|
146 |
-
?>
|
147 |
-
<?php echo $html;?>
|
148 |
-
<textarea id="__id__" rows=6 cols=140 <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="textarea" ></textarea>
|
149 |
-
</td>
|
150 |
-
</tr>
|
151 |
-
</table>
|
152 |
-
|
153 |
-
|
154 |
-
</td>
|
155 |
-
<td class="cell-position"><input type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text validate-number" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
156 |
-
|
157 |
-
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
158 |
-
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
159 |
-
<input <?php if($_block->getElement()->getAttributeReadonly($typeId)) :?> disabled="disabled" <?php endif;?> type="radio" name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('__file__')" value="__file__" />
|
160 |
-
</td>
|
161 |
-
<?php endforeach; ?>
|
162 |
-
|
163 |
-
<td class="cell-disable a-center"><input type="checkbox" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
164 |
-
<td class="cell-remove a-center last"><input type="checkbox" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
165 |
-
</tr>
|
166 |
-
<?php if($_block->hasUseDefault()): ?>
|
167 |
-
<tr id="<?php echo $_block->getHtmlId() ?>_default">
|
168 |
-
<td><?php echo Mage::helper('bannernext')->__('Use Default Value') ?></td>
|
169 |
-
<td> </td>
|
170 |
-
<td> </td>
|
171 |
-
<?php foreach ($_block->getMediaAttributes() as $_attribute): ?>
|
172 |
-
<td class="a-center">
|
173 |
-
<?php if($_block->getElement()->canDisplayUseDefault($_attribute)): ?>
|
174 |
-
<input class="default-checkbox" name="use_default[]" type="checkbox" <?php if($_block->getElement()->getAttributeReadonly($_attribute->getAttributeCode())):?> disabled="disabled" <?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateUseDefault()"
|
175 |
-
<?php if($_block->getElement()->usedDefault($_attribute)): ?>checked<?php endif; ?> value="<?php echo $_attribute->getAttributeCode() ?>" />
|
176 |
-
<?php endif ?>
|
177 |
-
</td>
|
178 |
-
<?php endforeach; ?>
|
179 |
-
<td> </td>
|
180 |
-
<td class="last"> </td>
|
181 |
-
</tr>
|
182 |
-
<?php endif ?>
|
183 |
-
<tr id="<?php echo $_block->getHtmlId() ?>-image-0" style="display:none;">
|
184 |
-
<td class="cell-image"><?php echo Mage::helper('bannernext')->__('No image') ?></td>
|
185 |
-
<td class="cell-label"><input type="hidden" /> </td>
|
186 |
-
<td class="cell-position"><input type="hidden" /> </td>
|
187 |
-
|
188 |
-
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
189 |
-
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
190 |
-
<input type="radio" <?php if($_block->getElement()->getAttributeReadonly($typeId)) :?> disabled="disabled" <?php endif;?> name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('no_selection')" value="no_selection" />
|
191 |
-
</td>
|
192 |
-
<?php endforeach; ?>
|
193 |
-
|
194 |
-
<td class="cell-disable"><input type="hidden" /> </td>
|
195 |
-
<td class="cell-remove last"><input type="hidden" /> </td>
|
196 |
-
</tr>
|
197 |
-
</tbody>
|
198 |
-
<?php if (!$_block->getElement()->getReadonly()):?>
|
199 |
-
<tfoot>
|
200 |
-
<tr>
|
201 |
-
<td colspan="100" class="last" style="padding:8px">
|
202 |
-
<?php echo $_block->getUploaderHtml() ?>
|
203 |
-
</td>
|
204 |
-
</tr>
|
205 |
-
</tfoot>
|
206 |
-
<?php endif;?>
|
207 |
-
</table>
|
208 |
-
</div>
|
209 |
-
</div>
|
210 |
-
|
211 |
-
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save" name="<?php echo $_block->getElement()->getName() ?>[images]" value="<?php echo $_block->htmlEscape($_block->getImagesJson()) ?>" />
|
212 |
-
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save_image" name="<?php echo $_block->getElement()->getName() ?>[values]" value="<?php echo $_block->htmlEscape($_block->getImagesValuesJson()) ?>" />
|
213 |
-
<script type="text/javascript">
|
214 |
-
//<![CDATA[
|
215 |
-
|
216 |
-
var <?php echo $_block->getJsObjectName(); ?> = new Product.Gallery('<?php echo $_block->getHtmlId() ?>',
|
217 |
-
<?php if ($_block->getElement()->getReadonly()):?>null<?php else:?><?php echo $_block->getUploader()->getJsObjectName() ?><?php endif;?>,
|
218 |
-
<?php echo $_block->getImageTypesJson() ?>);
|
219 |
-
//]]>
|
220 |
-
</script>
|
221 |
-
|
222 |
-
|
223 |
-
<script type="text/javascript">
|
224 |
-
//<![CDATA[
|
225 |
-
|
226 |
-
var catalogWysiwygEditor = {
|
227 |
-
overlayShowEffectOptions : null,
|
228 |
-
overlayHideEffectOptions : null,
|
229 |
-
open : function(editorUrl, elementId) {
|
230 |
-
if (editorUrl && elementId) {
|
231 |
-
new Ajax.Request(editorUrl, {
|
232 |
-
parameters: {
|
233 |
-
element_id: elementId+'_editor',
|
234 |
-
store_id: '<?php echo $this->getStoreId() ?>',
|
235 |
-
},
|
236 |
-
onSuccess: function(transport) {
|
237 |
-
try {
|
238 |
-
this.openDialogWindow(transport.responseText, elementId);
|
239 |
-
} catch(e) {
|
240 |
-
alert(e.message);
|
241 |
-
}
|
242 |
-
}.bind(this)
|
243 |
-
});
|
244 |
-
}
|
245 |
-
},
|
246 |
-
openDialogWindow : function(content, elementId) {
|
247 |
-
this.overlayShowEffectOptions = Windows.overlayShowEffectOptions;
|
248 |
-
this.overlayHideEffectOptions = Windows.overlayHideEffectOptions;
|
249 |
-
Windows.overlayShowEffectOptions = {duration:0};
|
250 |
-
Windows.overlayHideEffectOptions = {duration:0};
|
251 |
-
|
252 |
-
Dialog.confirm(content, {
|
253 |
-
draggable:true,
|
254 |
-
resizable:true,
|
255 |
-
closable:true,
|
256 |
-
className:"magento",
|
257 |
-
windowClassName:"popup-window",
|
258 |
-
title:'WYSIWYG Editor',
|
259 |
-
width:950,
|
260 |
-
height:555,
|
261 |
-
zIndex:1000,
|
262 |
-
recenterAuto:false,
|
263 |
-
hideEffect:Element.hide,
|
264 |
-
showEffect:Element.show,
|
265 |
-
id:"catalog-wysiwyg-editor",
|
266 |
-
buttonClass:"form-button",
|
267 |
-
okLabel:"Submit",
|
268 |
-
ok: this.okDialogWindow.bind(this),
|
269 |
-
cancel: this.closeDialogWindow.bind(this),
|
270 |
-
onClose: this.closeDialogWindow.bind(this),
|
271 |
-
firedElementId: elementId
|
272 |
-
});
|
273 |
-
|
274 |
-
content.evalScripts.bind(content).defer();
|
275 |
-
|
276 |
-
$(elementId+'_editor').value = $(elementId).value;
|
277 |
-
},
|
278 |
-
okDialogWindow : function(dialogWindow) {
|
279 |
-
if (dialogWindow.options.firedElementId) {
|
280 |
-
wysiwygObj = eval('wysiwyg'+dialogWindow.options.firedElementId+'_editor');
|
281 |
-
wysiwygObj.turnOff();
|
282 |
-
if (tinyMCE.get(wysiwygObj.id)) {
|
283 |
-
$(dialogWindow.options.firedElementId).value = tinyMCE.get(wysiwygObj.id).getContent();
|
284 |
-
} else {
|
285 |
-
if ($(dialogWindow.options.firedElementId+'_editor')) {
|
286 |
-
console.log($(dialogWindow.options.firedElementId).value);
|
287 |
-
$(dialogWindow.options.firedElementId).value = $(dialogWindow.options.firedElementId+'_editor').value;
|
288 |
-
}
|
289 |
-
}
|
290 |
-
}
|
291 |
-
this.closeDialogWindow(dialogWindow);
|
292 |
-
},
|
293 |
-
closeDialogWindow : function(dialogWindow) {
|
294 |
-
// remove form validation event after closing editor to prevent errors during save main form
|
295 |
-
if (typeof varienGlobalEvents != undefined && editorFormValidationHandler) {
|
296 |
-
varienGlobalEvents.removeEventHandler('formSubmit', editorFormValidationHandler);
|
297 |
-
}
|
298 |
-
|
299 |
-
//IE fix - blocked form fields after closing
|
300 |
-
$(dialogWindow.options.firedElementId).focus();
|
301 |
-
|
302 |
-
//destroy the instance of editor
|
303 |
-
wysiwygObj = eval('wysiwyg'+dialogWindow.options.firedElementId+'_editor');
|
304 |
-
if (tinyMCE.get(wysiwygObj.id)) {
|
305 |
-
tinyMCE.execCommand('mceRemoveControl', true, wysiwygObj.id);
|
306 |
-
}
|
307 |
-
|
308 |
-
dialogWindow.close();
|
309 |
-
Windows.overlayShowEffectOptions = this.overlayShowEffectOptions;
|
310 |
-
Windows.overlayHideEffectOptions = this.overlayHideEffectOptions;
|
311 |
-
}
|
312 |
-
};
|
313 |
-
|
314 |
-
//]]>
|
315 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/bannernext/uploader.phtml
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
<?php echo $this->helper('adminhtml/media_js')->includeScript('my_ibanner/adminhtml/jsuploader.js') ?>
|
2 |
-
<?php echo $this->helper('adminhtml/media_js')->includeScript('my_ibanner/adminhtml/uploader.js') ?>
|
3 |
-
|
4 |
<div id="<?php echo $this->getHtmlId() ?>" class="uploader">
|
5 |
<div class="buttons" style="position:relative;float:right;">
|
6 |
<div class="no-display" id="<?php echo $this->getHtmlId() ?>-uploadBlockTemplate"><div id="uploadBlock-{{id}}">
|
|
|
|
|
|
|
1 |
<div id="<?php echo $this->getHtmlId() ?>" class="uploader">
|
2 |
<div class="buttons" style="position:relative;float:right;">
|
3 |
<div class="no-display" id="<?php echo $this->getHtmlId() ?>-uploadBlockTemplate"><div id="uploadBlock-{{id}}">
|
package.xml
CHANGED
@@ -1,14 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>NextBits_BannerNext</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>NextBits BannerNext Magento extension for image slider</summary>
|
10 |
<description>NextBits BannerNext Magento extension for image slider</description>
|
11 |
-
<notes>1.0.
|
|
|
|
|
|
|
|
|
12 |
-minor text changes
|
13 |

|
14 |
1.0.5
|
@@ -16,9 +20,9 @@
|
|
16 |
-added files in base for easy installation
|
17 |
-fixed image sorting and excluding bug</notes>
|
18 |
<authors><author><name>NextBits Web Solutions Pvt. Ltd.</name><user>nextbits</user><email>nextbitswebsolutions@gmail.com</email></author></authors>
|
19 |
-
<date>2013-07
|
20 |
-
<time>
|
21 |
-
<contents><target name="magelocal"><dir name="NextBits"><dir name="BannerNext"><dir name="Block"><dir name="Adminhtml"><dir name="Bannernext"><dir name="Edit"><file name="Form.php" hash="9763bc5539158fe58850903def6a98c1"/><dir name="Tab"><file name="Category.php" hash="a59198b47f2e2be1bd0e07438ab515df"/><file name="Form.php" hash="ead5fe37c6d0a9159e06636482a6f509"/><file name="Gallery.php" hash="a74000a133b9f4cf81e0a8c6b4e6e344"/><file name="Page.php" hash="419317f71e24be03b0ed7679c1b54b44"/></dir><file name="Tabs.php" hash="f5153f8733262a9451ac7c8a7d918d95"/></dir><file name="Edit.php" hash="031a49e1568256fa85a679bdb73fb913"/><file name="Grid.php" hash="e932163a96996acae0fbda1a18952120"/></dir><file name="Bannernext.php" hash="ab5d95494ed6d690fecaf096478757eb"/></dir><file name="Banner.php" hash="b5cf326ade5841d931bfe7065676903e"/><file name="Widget.php" hash="1a372af5d4aaa02e192413790b4824b9"/></dir><dir name="Helper"><file name="Data.php" hash="c7bc1d6546d2656901f3854758cffbb3"/></dir><dir name="Model"><file name="Availablebanners.php" hash="53038f28b8c515ddf2a24af11f3b5b81"/><file name="Bannernext.php" hash="9e343e39648e68e4a8a4fd2a4f511267"/><dir name="Config"><dir name="Source"><file name="Page.php" hash="607fa1de1fc1a7149b6e960d1469b403"/><file name="Position.php" hash="16f3d9b6ef4a25283ebeb1ee221350e2"/></dir></dir><dir name="Mysql4"><dir name="Bannernext"><file name="Collection.php" hash="eac6374b499da5fd9fbd9dfa9d2e3942"/></dir><file name="Bannernext.php" hash="d705c144162806567657123fa78ddf28"/></dir><file name="Observer.php" hash="5ea4f494b766b291bd3ac8f7ce19884c"/><file name="Status.php" hash="13df58ea078181d6997ea36212ede89a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannernextController.php" hash="
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>NextBits_BannerNext</name>
|
4 |
+
<version>1.0.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>NextBits BannerNext Magento extension for image slider</summary>
|
10 |
<description>NextBits BannerNext Magento extension for image slider</description>
|
11 |
+
<notes>1.0.7
|
12 |
+
-removed unwanted code.
|
13 |
+
-fixed upload error for Magento Version < 1.5.1.0
|
14 |
+

|
15 |
+
1.0.6
|
16 |
-minor text changes
|
17 |

|
18 |
1.0.5
|
20 |
-added files in base for easy installation
|
21 |
-fixed image sorting and excluding bug</notes>
|
22 |
<authors><author><name>NextBits Web Solutions Pvt. Ltd.</name><user>nextbits</user><email>nextbitswebsolutions@gmail.com</email></author></authors>
|
23 |
+
<date>2013-08-07</date>
|
24 |
+
<time>08:40:15</time>
|
25 |
+
<contents><target name="magelocal"><dir name="NextBits"><dir name="BannerNext"><dir name="Block"><dir name="Adminhtml"><dir name="Bannernext"><dir name="Edit"><file name="Form.php" hash="9763bc5539158fe58850903def6a98c1"/><dir name="Tab"><file name="Category.php" hash="a59198b47f2e2be1bd0e07438ab515df"/><file name="Form.php" hash="ead5fe37c6d0a9159e06636482a6f509"/><file name="Gallery.php" hash="a74000a133b9f4cf81e0a8c6b4e6e344"/><file name="Page.php" hash="419317f71e24be03b0ed7679c1b54b44"/></dir><file name="Tabs.php" hash="f5153f8733262a9451ac7c8a7d918d95"/></dir><file name="Edit.php" hash="031a49e1568256fa85a679bdb73fb913"/><file name="Grid.php" hash="e932163a96996acae0fbda1a18952120"/></dir><file name="Bannernext.php" hash="ab5d95494ed6d690fecaf096478757eb"/></dir><file name="Banner.php" hash="b5cf326ade5841d931bfe7065676903e"/><file name="Widget.php" hash="1a372af5d4aaa02e192413790b4824b9"/></dir><dir name="Helper"><file name="Data.php" hash="c7bc1d6546d2656901f3854758cffbb3"/></dir><dir name="Model"><file name="Availablebanners.php" hash="53038f28b8c515ddf2a24af11f3b5b81"/><file name="Bannernext.php" hash="9e343e39648e68e4a8a4fd2a4f511267"/><dir name="Config"><dir name="Source"><file name="Page.php" hash="607fa1de1fc1a7149b6e960d1469b403"/><file name="Position.php" hash="16f3d9b6ef4a25283ebeb1ee221350e2"/></dir></dir><dir name="Mysql4"><dir name="Bannernext"><file name="Collection.php" hash="eac6374b499da5fd9fbd9dfa9d2e3942"/></dir><file name="Bannernext.php" hash="d705c144162806567657123fa78ddf28"/></dir><file name="Observer.php" hash="5ea4f494b766b291bd3ac8f7ce19884c"/><file name="Status.php" hash="13df58ea078181d6997ea36212ede89a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannernextController.php" hash="7eadd56f1c594d3e7a40a39f1d334137"/></dir></dir><dir name="etc"><file name="config.xml" hash="0f33fcaf1bbeb7051c6664a165449b13"/><file name="system.xml" hash="9c75d62c7c04553bef89f70b71fba964"/><file name="widget.xml" hash="ada7fddb76e7b0d9b5ea5cd231baec28"/></dir><dir name="sql"><dir name="bannernext_setup"><file name="mysql4-install-0.1.0.php" hash="cb466300a00defcbd3425043d052cd92"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannernext.xml" hash="8a1494f85f7d1f41eb3b1c2407212b3e"/></dir><dir name="template"><dir name="bannernext"><file name="banner.phtml" hash="f78536f489706dcd536a50ba6808bb2b"/><dir name="edit"><dir name="tab"><file name="category.phtml" hash="fd539d50d42bfcb80a21a1257aef2121"/><file name="gallery.phtml" hash="9c2701ec2327a797685e758aaaad7a12"/><file name="image.phtml" hash="6832ef1caacae2b1a8addf424c75d80f"/></dir></dir><file name="uploader.phtml" hash="3d34aef9b5f57f9a8a80c7c225877a84"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="bannernext.xml" hash="9d69326ccd164591934938bfe248a6a5"/></dir><dir name="template"><dir name="bannernext"><file name="banner.phtml" hash="ae234c7d653081105c6b8bf18ef0d47e"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="bannernext.xml" hash="9d69326ccd164591934938bfe248a6a5"/></dir><dir name="template"><dir name="bannernext"><file name="banner.phtml" hash="ae234c7d653081105c6b8bf18ef0d47e"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NextBits_BannerNext.xml" hash="b809bfd4b663a71632a77191ce0500eb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="bannernext"><dir name="skitter_slideshow"><dir name="css"><file name="highlight.black.css" hash="788c79331b0b1cd63920861fac19510b"/><file name="highlight.css" hash="9740467c0a8249bce6a00371eebc5c96"/><file name="skitter.styles.css" hash="2c9dac90fd64914d3865ef01a602afcd"/><file name="skitter.styles.responsive.css" hash="1d015f82ea443425948982b5a1068456"/></dir><dir name="images"><file name="ajax-loader.gif" hash="37e24e0370847870c1c43ea9ce19b1f4"/><file name="back-box-label-black.png" hash="b01b0552b61224f13e80b1ec834e33c9"/><file name="background.gif" hash="4e3d49edf41760318255a96712e2e943"/><file name="focus-button.png" hash="c7c65a7e866cfd9eda4df3431c0e58d7"/><file name="next.png" hash="60a367588cbd341acab2216629d41f39"/><file name="pause-button.png" hash="4ade832a2c3cad15e3e3e18db7b8cbd5"/><file name="play-button.png" hash="9fc21ab2e0572a5219e9caa1dc67f2e1"/><file name="prev.png" hash="f1c757b12560aeb70a1aa4898c8c3aad"/></dir><dir name="js"><file name="highlight.js" hash="fa006a4cff74da2811e5e4750d697f46"/><file name="jquery.animate-colors-min.js" hash="b61bdf5245e4d30450e78687faee5fca"/><file name="jquery.easing.1.3.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.skitter.js" hash="628711ead56282025dfe36d47eb4972f"/><file name="jquery.skitter.min.js" hash="4726d85b97e99fabe29aa5c3c4a8cf47"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="bannernext"><dir name="jquery"><file name="jquery-1.8.1.min.js" hash="a9a0cc296e96bbeaa0f82498e2da0917"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="NextBits_BannerNext.csv" hash="f645242cea8a69ca09df5d62b4e9ec0d"/></dir></target></contents>
|
26 |
<compatible/>
|
27 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
28 |
</package>
|