Camera_Malabi - Version 1.0.3

Version Notes

Create account in extension page.

Download this release

Release Info

Developer Ronen
Extension Camera_Malabi
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/design/adminhtml/default/default/template/catalog/product/helper/gallery-new.phtml CHANGED
@@ -89,7 +89,7 @@ $_block = $this;
89
// $('parent_id').update('Searching...');
90
},
91
onComplete: function(transport) {
92
- Dialog.alert("Enhanced image has been added to your product",
93
{className: 'magento',width:300, height:100, okLabel: "close",
94
ok:function(win) {return true;}});
95
@@ -132,7 +132,7 @@ $_block = $this;
132
if(res["subscription"] == "malabi-user-not-set") {
133
Dialog.alert('<b>Welcome to Malabi</b> <br>To activate Malabi go to the "background remover by malabi" tag on the menu bar and press "Malabi activation"',
134
{
135
- className: 'magento', width: 300, height: 100, okLabel: "close",
136
ok: function (win) {
137
return true;
138
}
@@ -222,7 +222,9 @@ $_block = $this;
222
<div style="display:none; ">
223
<img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="border: 1px solid #AEAEAE;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABYElEQVR42u3ZwQmAMBQFQRU7Sv8lpKbYQI7Coswc5d2WD0LOtdaxM+fcfh9j2L+4vw5SAsQEiAkQEyAmQEyA2P2V/+W/7l1ATICYADEBYgLEBIgJEDu9B7R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxB6KN5Q4wR/MdAAAAABJRU5ErkJggg==)" />
224
<button value="<?php echo $this->getRequest()->getParam('id') ?>" title="Touch up" type="button" class="scalable save" onclick="touchup(this)" style="margin-top: 10px; margin-left: 7px;"><span><span><span>Touch up</span></span></span></button>
225
- <div style="text-align: center; margin-top: 5px; margin-bottom: 5px;"> <button title="add enhanced image to product listing" value="<?php echo $this->getRequest()->getParam('id') ?>" type="button" onclick="addImage(this)" >Add image<br></div>
226
</div>
227
</td>
228
<td class="cell-label"><input 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__')" /></td>
@@ -305,12 +307,12 @@ var <?php echo $_block->getJsObjectName(); ?> = new Product.Gallery('<?php echo
305
onclick="camera51.undo()">UNDO</button>
306
<br>
307
<a id="camera51-zoom-in" class="waves-effect waves-circle transparent"
308
- style="position: absolute;top: 141px;left: 36px" onmousedown="camera51.onclickLongZoomIn()"
309
onmouseup="camera51.onmouseupLongZoomIn()">
310
<i class="material-icons right small zoomRippel" style="color:#393b4b;">zoom_in</i>
311
</a>
312
<a id="camera51-zoom-out" class="waves-effect waves-circle transparent"
313
- style="position: absolute;top: 194px;left: 36px" onmousedown="camera51.onclickLongZoomOut()"
314
onmouseup="camera51.onmouseupLongZoomOut()">
315
<i class="material-icons right small zoomRippel" style="color:#393b4b;">zoom_out</i>
316
</a>
89
// $('parent_id').update('Searching...');
90
},
91
onComplete: function(transport) {
92
+ Dialog.alert("Enhanced image has been added to your product<br>To view added image refresh browser page",
93
{className: 'magento',width:300, height:100, okLabel: "close",
94
ok:function(win) {return true;}});
95
132
if(res["subscription"] == "malabi-user-not-set") {
133
Dialog.alert('<b>Welcome to Malabi</b> <br>To activate Malabi go to the "background remover by malabi" tag on the menu bar and press "Malabi activation"',
134
{
135
+ className: 'magento', width: 300, height: 200, okLabel: "close",
136
ok: function (win) {
137
return true;
138
}
222
<div style="display:none; ">
223
<img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="border: 1px solid #AEAEAE;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABYElEQVR42u3ZwQmAMBQFQRU7Sv8lpKbYQI7Coswc5d2WD0LOtdaxM+fcfh9j2L+4vw5SAsQEiAkQEyAmQEyA2P2V/+W/7l1ATICYADEBYgLEBIgJEDu9B7R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxLwHxHsXEBMgJkBMgJgAMQFiAsS8B8R7FxATICZATICYADEBYgLEvAfEexcQEyAmQEyAmAAxAWICxB6KN5Q4wR/MdAAAAABJRU5ErkJggg==)" />
224
<button value="<?php echo $this->getRequest()->getParam('id') ?>" title="Touch up" type="button" class="scalable save" onclick="touchup(this)" style="margin-top: 10px; margin-left: 7px;"><span><span><span>Touch up</span></span></span></button>
225
+ <div style="text-align: center; margin-top: 5px; margin-bottom: 5px;">
226
+ <button title="add enhanced image to product listing" value="<?php echo $this->getRequest()->getParam('id') ?>" type="button" onclick="addImage(this)" >Add image<br>
227
+ </div>
228
</div>
229
</td>
230
<td class="cell-label"><input 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__')" /></td>
307
onclick="camera51.undo()">UNDO</button>
308
<br>
309
<a id="camera51-zoom-in" class="waves-effect waves-circle transparent"
310
+ style="position: absolute;top: 141px;left: 36px;cursor: pointer;" onmousedown="camera51.onclickLongZoomIn()"
311
onmouseup="camera51.onmouseupLongZoomIn()">
312
<i class="material-icons right small zoomRippel" style="color:#393b4b;">zoom_in</i>
313
</a>
314
<a id="camera51-zoom-out" class="waves-effect waves-circle transparent"
315
+ style="position: absolute;top: 194px;left: 36px;cursor: pointer;" onmousedown="camera51.onclickLongZoomOut()"
316
onmouseup="camera51.onmouseupLongZoomOut()">
317
<i class="material-icons right small zoomRippel" style="color:#393b4b;">zoom_out</i>
318
</a>
app/design/adminhtml/default/default/template/malabi/urls.phtml CHANGED
@@ -15,6 +15,7 @@ $model = Mage::getModel('productclick/productclick')->load(1);
15
<form id="edit_form" action="<?php echo $this->getUrl('*/*/subscription', array('id' => 1)); ?>" method="post" enctype="multipart/form-data"><div><input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>"></div>
16
17
<div class="entry-edist-headnononon">
18
<h4 class="">Automatic Image Background Remover by Malabi</h4>
19
<div class="form-buttons"></div>
20
<?php if ( $userEmpty ==1) { ?>
@@ -165,7 +166,8 @@ function sendActivation() {
165
}
166
167
} else {
168
- $('malabi-email-message').update( "Account created.");
169
contentWin.close();
170
$('userid').setAttribute('value',res["userId"]);
171
$('token').setAttribute('value',res["userToken"]);
@@ -198,7 +200,7 @@ function sendActivation() {
198
<div class="login_label">Email</div> <span class="email_input">
199
<input id="malabi-activation-email" type="text" value="<?php echo $userEmail ?>" style="width: 250px;"/></span>
200
<div id="malabi-email-error-message" style="color:red;margin: 5px;"></div>
201
- <span id="malabi-email-message" style="color:green;margin: 5px;"></span>
202
<br>
203
<div style="text-align: right">
204
<button onclick="sendActivation()">activate</button>
15
<form id="edit_form" action="<?php echo $this->getUrl('*/*/subscription', array('id' => 1)); ?>" method="post" enctype="multipart/form-data"><div><input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>"></div>
16
17
<div class="entry-edist-headnononon">
18
+ <h3 id="malabi-email-message" style="color:#00b354;margin: 5px;display: none"></h3>
19
<h4 class="">Automatic Image Background Remover by Malabi</h4>
20
<div class="form-buttons"></div>
21
<?php if ( $userEmpty ==1) { ?>
166
}
167
168
} else {
169
+ $('malabi-email-message').update( "Malabi Activated - you can start removing image backgrounds in your catalog.");
170
+ $('#malabi-email-message').invoke('setStyle', {'display':'block'});
171
contentWin.close();
172
$('userid').setAttribute('value',res["userId"]);
173
$('token').setAttribute('value',res["userToken"]);
200
<div class="login_label">Email</div> <span class="email_input">
201
<input id="malabi-activation-email" type="text" value="<?php echo $userEmail ?>" style="width: 250px;"/></span>
202
<div id="malabi-email-error-message" style="color:red;margin: 5px;"></div>
203
+
204
<br>
205
<div style="text-align: right">
206
<button onclick="sendActivation()">activate</button>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Camera_Malabi</name>
4
- <version>1.0.2</version>
5
<stability>stable</stability>
6
<license uri="https://www.malabi.co/eula">Malabi EULA and privacy policy</license>
7
<channel>community</channel>
@@ -45,8 +45,8 @@ Malabi&#x2019;s enhanced images ensures a faster and more profitable sale!&#xD;
45
<notes>Create account in extension page.</notes>
46
<authors><author><name>Ronen</name><user>Malabi</user><email>info@malabi.co</email></author></authors>
47
<date>2017-03-16</date>
48
- <time>09:17:38</time>
49
- <contents><target name="magelocal"><dir name="Camera"><dir name="Malabi"><dir name="Block"><dir name="Adminhtml"><dir name="Productclick"><dir name="Edit"><file name="Form.php" hash="d123f3e614dbea83917283162163c713"/><dir name="Renderer"><file name="Urls.php" hash="dff3ec0ca9b46977f9544498b6ae8532"/></dir></dir><file name="Edit.php" hash="fa6562d8bb6ef549b4c585cfd55ee350"/></dir><file name="Productclick.php" hash="0b08e8a9e55910e35ec3fa00f10ff1f4"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2bc4e4b0706da3774cb7248c12d150c7"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Productclick"><file name="Collection.php" hash="b94110ec7a16a54e2b9e50724f83da47"/></dir><file name="Productclick.php" hash="890d56f493c01d964a7b629bf6a4e322"/></dir><file name="Observer.php" hash="4629e9d62d4648b27e550534b047276e"/><file name="Productclick.php" hash="ef0cf5873bf9947eb2aa45b3f50212ed"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ProductclickController.php" hash="f0d7345cb71b68deedf13964ce75582b"/></dir><file name="ProductController.php" hash="dad3eba8eb57c19e4cf2e12d03fec2a3"/></dir><dir name="etc"><file name="config.xml" hash="c5f55d8a8842ffb53efdf64a045c6983"/></dir><dir name="sql"><dir name="productclick_setup"><file name="mysql4-install-0.1.0.php" hash="bdf82a0397e524ac47f20179bdd0f9d2"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Block"><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><dir name="Gallery"><file name="Content.php" hash="214e148885166f36bf4126d11ebc1da8"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Camera_Malabi.xml" hash="da762d589eddd255b0a522081c2f958c"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="productclick.xml" hash="579ea5b43a32dfafaec53096c2ec292e"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="helper"><file name="gallery-new.phtml" hash="59f618000cf6edd81aca24be1a169ec3"/></dir></dir></dir><dir name="malabi"><file name="urls.phtml" hash="429b9e19508e8faf60d3cce5220babb0"/></dir></dir></dir></dir></dir></target></contents>
50
<compatible/>
51
<dependencies><required><php><min>5.3.1</min><max>5.7.0</max></php></required></dependencies>
52
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Camera_Malabi</name>
4
+ <version>1.0.3</version>
5
<stability>stable</stability>
6
<license uri="https://www.malabi.co/eula">Malabi EULA and privacy policy</license>
7
<channel>community</channel>
45
<notes>Create account in extension page.</notes>
46
<authors><author><name>Ronen</name><user>Malabi</user><email>info@malabi.co</email></author></authors>
47
<date>2017-03-16</date>
48
+ <time>13:20:26</time>
49
+ <contents><target name="magelocal"><dir name="Camera"><dir name="Malabi"><dir name="Block"><dir name="Adminhtml"><dir name="Productclick"><dir name="Edit"><file name="Form.php" hash="d123f3e614dbea83917283162163c713"/><dir name="Renderer"><file name="Urls.php" hash="dff3ec0ca9b46977f9544498b6ae8532"/></dir></dir><file name="Edit.php" hash="fa6562d8bb6ef549b4c585cfd55ee350"/></dir><file name="Productclick.php" hash="0b08e8a9e55910e35ec3fa00f10ff1f4"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2bc4e4b0706da3774cb7248c12d150c7"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Productclick"><file name="Collection.php" hash="b94110ec7a16a54e2b9e50724f83da47"/></dir><file name="Productclick.php" hash="890d56f493c01d964a7b629bf6a4e322"/></dir><file name="Observer.php" hash="4629e9d62d4648b27e550534b047276e"/><file name="Productclick.php" hash="ef0cf5873bf9947eb2aa45b3f50212ed"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ProductclickController.php" hash="f0d7345cb71b68deedf13964ce75582b"/></dir><file name="ProductController.php" hash="dad3eba8eb57c19e4cf2e12d03fec2a3"/></dir><dir name="etc"><file name="config.xml" hash="c5f55d8a8842ffb53efdf64a045c6983"/></dir><dir name="sql"><dir name="productclick_setup"><file name="mysql4-install-0.1.0.php" hash="bdf82a0397e524ac47f20179bdd0f9d2"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Block"><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><dir name="Gallery"><file name="Content.php" hash="214e148885166f36bf4126d11ebc1da8"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Camera_Malabi.xml" hash="da762d589eddd255b0a522081c2f958c"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="productclick.xml" hash="579ea5b43a32dfafaec53096c2ec292e"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="helper"><file name="gallery-new.phtml" hash="22c89a9c43ad715f76faf4d092b2309c"/></dir></dir></dir><dir name="malabi"><file name="urls.phtml" hash="1424652722710eaf4701974029f630f0"/></dir></dir></dir></dir></dir></target></contents>
50
<compatible/>
51
<dependencies><required><php><min>5.3.1</min><max>5.7.0</max></php></required></dependencies>
52
</package>