Version Notes
minor bug fixes
Download this release
Release Info
Developer | Alexander |
Extension | Altima_lookbook_free |
Version | 0.1.3 |
Comparing to | |
See all releases |
Code changes from version 0.1.2 to 0.1.3
- app/code/local/Altima/Lookbook/Block/Adminhtml/Lookbook/Edit/Form/Element/Hotspots.php +1 -1
- app/code/local/Altima/Lookbook/Block/Adminhtml/Lookbook/Edit/Form/Element/Lookbookimage.php +1 -1
- app/code/local/Altima/Lookbook/etc/config.xml +1 -1
- app/code/local/Altima/Lookbook/sql/lookbook_setup/{mysql4-install-0.1.0.php → mysql4-install-0.1.3.php} +0 -0
- app/design/frontend/base/default/template/lookbook/lookbook.phtml +1 -1
- js/lookbook/slides.min.jquery.js +20 -0
- package.xml +7 -7
app/code/local/Altima/Lookbook/Block/Adminhtml/Lookbook/Edit/Form/Element/Hotspots.php
CHANGED
@@ -76,7 +76,7 @@ class Altima_Lookbook_Block_Adminhtml_Lookbook_Edit_Form_Element_Hotspots extend
|
|
76 |
function checkSKU(){
|
77 |
result = "";
|
78 |
request = new Ajax.Request(
|
79 |
-
"'. Mage::getUrl("lookbook/adminhtml_lookbook/getproduct").'",
|
80 |
{
|
81 |
method: \'post\',
|
82 |
asynchronous: false,
|
76 |
function checkSKU(){
|
77 |
result = "";
|
78 |
request = new Ajax.Request(
|
79 |
+
"'. Mage::getUrl("lookbook/adminhtml_lookbook/getproduct", array('_secure'=>true)).'",
|
80 |
{
|
81 |
method: \'post\',
|
82 |
asynchronous: false,
|
app/code/local/Altima/Lookbook/Block/Adminhtml/Lookbook/Edit/Form/Element/Lookbookimage.php
CHANGED
@@ -30,7 +30,7 @@ class Altima_Lookbook_Block_Adminhtml_Lookbook_Edit_Form_Element_Lookbookimage e
|
|
30 |
public function getElementHtml()
|
31 |
{
|
32 |
$block_class = Mage::getBlockSingleton('lookbook/adminhtml_lookbook');
|
33 |
-
$upload_action = Mage::getUrl('lookbook/adminhtml_lookbook/upload').'?isAjax=true';
|
34 |
$media_url = Mage::getBaseUrl('media');
|
35 |
$upload_folder_path = str_replace("/",DS, Mage::getBaseDir("media").DS);
|
36 |
$helper = Mage::helper('lookbook');
|
30 |
public function getElementHtml()
|
31 |
{
|
32 |
$block_class = Mage::getBlockSingleton('lookbook/adminhtml_lookbook');
|
33 |
+
$upload_action = Mage::getUrl('lookbook/adminhtml_lookbook/upload', array('_secure'=>true)).'?isAjax=true';
|
34 |
$media_url = Mage::getBaseUrl('media');
|
35 |
$upload_folder_path = str_replace("/",DS, Mage::getBaseDir("media").DS);
|
36 |
$helper = Mage::helper('lookbook');
|
app/code/local/Altima/Lookbook/etc/config.xml
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Altima_Lookbook>
|
27 |
-
<version>0.1.
|
28 |
</Altima_Lookbook>
|
29 |
</modules>
|
30 |
<frontend>
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Altima_Lookbook>
|
27 |
+
<version>0.1.3</version>
|
28 |
</Altima_Lookbook>
|
29 |
</modules>
|
30 |
<frontend>
|
app/code/local/Altima/Lookbook/sql/lookbook_setup/{mysql4-install-0.1.0.php → mysql4-install-0.1.3.php}
RENAMED
File without changes
|
app/design/frontend/base/default/template/lookbook/lookbook.phtml
CHANGED
@@ -69,7 +69,7 @@ if ($helper->getEnabled()) :
|
|
69 |
<div class="slides_container">
|
70 |
<?php foreach ($makets as $image): ?>
|
71 |
<div class="slide">
|
72 |
-
<?php echo base64_decode('PGRpdiBpZD0iYWR2X2xpbmsiPjxkaXY+
|
73 |
<img src="<?php echo $helper->getResizedUrl($image->getImage(), $width, $height);?>" alt="Slide <?php echo $image->getId();?>"/>
|
74 |
<div class="caption" style="bottom:0;">
|
75 |
<p><?php echo $image->getName();?></p>
|
69 |
<div class="slides_container">
|
70 |
<?php foreach ($makets as $image): ?>
|
71 |
<div class="slide">
|
72 |
+
<?php echo base64_decode('PGRpdiBpZD0iYWR2X2xpbmsiPjxkaXY+UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vYmxvZy5hbHRpbWEubmV0LmF1L2xvb2tib29rLW1hZ2VudG8tZXh0ZW5zaW9uLyIgdGl0bGU9IkFsdGltYSBXZWIgU3lzdGVtcyIgdGFyZ2V0PSJfYmxhbmsiPkFsdGltYTwvYT48L2Rpdj48L2Rpdj4=');?>
|
73 |
<img src="<?php echo $helper->getResizedUrl($image->getImage(), $width, $height);?>" alt="Slide <?php echo $image->getId();?>"/>
|
74 |
<div class="caption" style="bottom:0;">
|
75 |
<p><?php echo $image->getName();?></p>
|
js/lookbook/slides.min.jquery.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Slides, A Slideshow Plugin for jQuery
|
3 |
+
* Intructions: http://slidesjs.com
|
4 |
+
* By: Nathan Searles, http://nathansearles.com
|
5 |
+
* Version: 1.1.9
|
6 |
+
* Updated: September 5th, 2011
|
7 |
+
*
|
8 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9 |
+
* you may not use this file except in compliance with the License.
|
10 |
+
* You may obtain a copy of the License at
|
11 |
+
*
|
12 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13 |
+
*
|
14 |
+
* Unless required by applicable law or agreed to in writing, software
|
15 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17 |
+
* See the License for the specific language governing permissions and
|
18 |
+
* limitations under the License.
|
19 |
+
*/
|
20 |
+
(function(a){a.fn.slides=function(b){return b=a.extend({},a.fn.slides.option,b),this.each(function(){function w(g,h,i){if(!p&&o){p=!0,b.animationStart(n+1);switch(g){case"next":l=n,k=n+1,k=e===k?0:k,r=f*2,g=-f*2,n=k;break;case"prev":l=n,k=n-1,k=k===-1?e-1:k,r=0,g=0,n=k;break;case"pagination":k=parseInt(i,10),l=a("."+b.paginationClass+" li."+b.currentClass+" a",c).attr("href").match("[^#/]+$"),k>l?(r=f*2,g=-f*2):(r=0,g=0),n=k}h==="fade"?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){a.browser.msie&&a(this).get(0).style.removeAttribute("filter")}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('<div class="slides_control"/>');var c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=b.effect.indexOf(",")<0?b.effect:b.effect.replace(" ","").split(",")[0],j=b.effect.indexOf(",")<0?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0,o,p,q,r,s,t,u,v;if(e<2)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(e<2)return;h<0&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:f*3,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed));if(b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();a("img",c).parent().attr("class")!="slides_control"?t=d.children(":eq(0)")[0].tagName.toLowerCase():t=d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().click(function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('<a href="#" class="'+b.prev+'">Prev</a>'),a("."+b.prev,c).after('<a href="#" class="'+b.next+'">Next</a>')),a("."+b.next,c).click(function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).click(function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend("<ul class="+b.paginationClass+"></ul>"):c.append("<ul class="+b.paginationClass+"></ul>"),d.children().each(function(){a("."+b.paginationClass,c).append('<li><a href="#'+m+'">'+(m+1)+"</a></li>"),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).click(function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).click(function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;i<f;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),b!==undefined&&b(f,g),f.remove()})}})}})(jQuery)
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Altima_lookbook_free</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Create interactive gallery - photos of your goods in environment with hotspots linked to product pages</summary>
|
10 |
<description>Altima Lookbook Free lets you create interactive gallery and show the best of your products to customers.</description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>Alexander</name><user>
|
13 |
-
<date>2012-
|
14 |
-
<time>13:
|
15 |
-
<contents><target name="magelocal"><dir name="Altima"><dir name="Lookbook"><dir name="Block"><dir name="Adminhtml"><dir name="Lookbook"><dir name="Edit"><dir name="Form"><dir name="Element"><file name="Hotspots.php" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Altima_lookbook_free</name>
|
4 |
+
<version>0.1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Create interactive gallery - photos of your goods in environment with hotspots linked to product pages</summary>
|
10 |
<description>Altima Lookbook Free lets you create interactive gallery and show the best of your products to customers.</description>
|
11 |
+
<notes>minor bug fixes</notes>
|
12 |
+
<authors><author><name>Alexander</name><user>altimaweb</user><email>alex@altima.net.au</email></author></authors>
|
13 |
+
<date>2012-10-16</date>
|
14 |
+
<time>13:04:53</time>
|
15 |
+
<contents><target name="magelocal"><dir><dir name="Altima"><dir name="Lookbook"><dir name="Block"><dir name="Adminhtml"><dir name="Lookbook"><dir name="Edit"><dir name="Form"><dir name="Element"><file name="Hotspots.php" hash="b786e37a73ebca89cf62260c37146843"/><file name="Lookbookimage.php" hash="609bcd31bf6f50ec8479638c8430b225"/></dir></dir><file name="Form.php" hash="c4f32e1a2013d2bd436a90b0c3c77a5f"/><dir name="Tab"><file name="Form.php" hash="3bc18cf0c96a34c2c3db598e622fdbc7"/></dir><file name="Tabs.php" hash="24d5820584ce75878c9a950f94756ffc"/></dir><file name="Edit.php" hash="f0a347f0e76490d68d67a47875fdd89b"/><file name="Grid.php" hash="31a2de1234c16aa8b3734945cfec19b9"/></dir><file name="Lookbook.php" hash="d96830c83f91ee3a78492cc1edd6bff5"/><dir name="Template"><dir name="Grid"><dir name="Renderer"><file name="Image.php" hash="b5cf2e36bc23d0f25a8a1453062949f3"/></dir></dir></dir></dir><file name="Lookbook.php" hash="dfe1c58667f1f8bbd1a0860d1ed12429"/></dir><dir name="Helper"><file name="Data.php" hash="a6cc48fc2f68b8a5b4c618afbd222c30"/></dir><dir name="Model"><file name="Fileuploader.php" hash="f987f0b2170a16ab9a1fa2f2f99ce2a6"/><dir name="Layout"><dir name="Generate"><file name="Observer.php" hash="821bfed406d25136171a7a49781f3815"/></dir></dir><file name="Lookbook.php" hash="3eb927a4ecd93ac299588ad7129c5ff4"/><dir name="Mysql4"><dir name="Lookbook"><file name="Collection.php" hash="41afe8655609410962e6b2068fc974d4"/></dir><file name="Lookbook.php" hash="2026fe0e3150b5a46c85df031bcc9c88"/></dir><file name="Status.php" hash="8ec99dd61315524a21dbaeb5672530a2"/><file name="Uploadedfileform.php" hash="88fa3bbf7e11ca6628011b2ce16e43a3"/><file name="Uploadedfilexhr.php" hash="e459a403415cc4a70b74fd30db1359d9"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="LookbookController.php" hash="99d7e3001389c2592abbe20138fa0335"/></dir><file name="IndexController.php" hash="3db667312e80e4ada1c5dff6297399d4"/></dir><dir name="etc"><file name="config.xml" hash="cd6bc0e3205ff70a5c8ad6c16524cce6"/><file name="system.xml" hash="bbe0f04f4538c66cb74362e254a4f63a"/></dir><dir name="sql"><dir name="lookbook_setup"><file name="mysql4-install-0.1.3.php" hash="4db9cbe98f529f6c02686550cbdf1520"/></dir></dir></dir></dir></dir></target><target name="mage"><dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Altima_Lookbook.xml" hash="a34f1cc1dbe2a184664d3877116f2977"/></dir></dir></dir><dir name="js"><dir name="lookbook"><file name="fileuploader.js" hash="64cb3de32e4a6cc1710dd08bb0da582a"/><file name="jquery-ui-1.8.17.js" hash="3eff185cff022b9b33a12306b5718cd4"/><file name="jquery.annotate.js" hash="f9534530d6156b4b8471cfe5c259a594"/><file name="json2.min.js" hash="041eedd4d7676d33b6ccd2056734e4b3"/><file name="slides.min.jquery.js" hash="e80e9e252b5f66e4f71c2c609d8b34fd"/></dir><dir name="jquery"><file name="jquery-1.7.min.js" hash="25721ced154b3a99e818431446d7506d"/><file name="jquery.noconflict.js" hash="a9fdc7984aee946b2e9792844362c77c"/></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lookbook.xml" hash="0f68d91f719e660ada78d941343e4e49"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lookbook.xml" hash="32663855234d63ec344a64ad4a50f30a"/></dir><dir name="template"><dir name="lookbook"><file name="lookbook.phtml" hash="9b78736e9006350cdf29ef8205f0ff60"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="lookbook"><dir name="css"><file name="hotspots.css" hash="696151a84a98e6fb9004fa04e1782273"/></dir><dir name="images"><file name="adv-bg.png" hash="06af9432757479345a304c8d8b8b3939"/><file name="arrow-next.png" hash="15d6fe778c4df2494a7af4e098aad4ff"/><file name="arrow-prev.png" hash="bc273e26e577babc8044b0a8a86358d0"/><file name="background.png" hash="96519dab3e5a2a09075632cca4a98141"/><file name="caption-bg.png" hash="b09e2b8f7382607b51b0392ba46f5963"/><file name="info-bg.png" hash="6b2e3b329380a9bf3c298e3a6c34a7fa"/><file name="loading.gif" hash="58c35cf5e9fcbe3914c839c6665794bd"/><file name="pagination.png" hash="c1e5cc6dfe80b935b657576c8b93f5f5"/></dir><dir name="js"><file name="slides.min.jquery.js" hash="e80e9e252b5f66e4f71c2c609d8b34fd"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="lookbook"><dir name="css"><file name="annotation.css" hash="a47fa611c7abbe1913145b120b09a260"/><file name="fileuploader.css" hash="8678f7cde252ff89caead1d92511da5f"/></dir><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="btn_gray_bg.gif" hash="8be512788b8044fe31aa8d00cc16ba7b"/><file name="btn_over_bg.gif" hash="f91641168454c03d1fa72731ec97a2b3"/><file name="cancel_btn_icon.png" hash="343e0534818e33d4e3886aa4694602d7"/><file name="cross.png" hash="42492684e24356a4081134894eabeb9e"/><file name="delete_btn_icon.png" hash="04485bbcca5d645427061365185b4a76"/><file name="icon_btn_add.png" hash="3a99c7c227e5e6feb656e1649a8264ab"/><file name="link_external.png" hash="7cc8feaca790904979edda0ba930d6cd"/><file name="loading.gif" hash="2da0807814ad64841cd597c4e8a653d1"/><file name="ok_btn_icon.png" hash="bf2b8c5bb1c784e8d907f5d6345f0e5e"/><file name="upload_btn_icon.png" hash="1ede630273613ffe452dede682e5e028"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir><dir name="lookbook"><dir name="icons"><dir name="default"><file name="hotspot-icon.png" hash="fa27397b9eb8b54df13e62a5a1b6c8b8"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.6</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|