Altima_lookbook_free - Version 1.0.3

Version Notes

minor improvements for mobile devices

Download this release

Release Info

Developer Magento Core Team
Extension Altima_lookbook_free
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/local/Altima/Lookbook/Model/Layout/Generate/Observer.php CHANGED
@@ -31,12 +31,13 @@ class Altima_Lookbook_Model_Layout_Generate_Observer {
31
  if (preg_match($search_string, $pagecontent)) {
32
  $updates = $page->getLayoutUpdateXml();
33
  $newupdates = '<reference name="head">
34
- <action method="addCss"><stylesheet>lookbook/css/hotspots.css</stylesheet></action>
35
- <action method="addJs"><script>jquery/jquery-1.8.2.min.js</script></action>
36
- <action method="addJs"><script>jquery/jquery.noconflict.js</script></action>
37
- <action method="addItem"><type>skin_js</type><name>lookbook/js/jquery.easing.1.3.js</name></action>
38
- <action method="addItem"><type>skin_js</type><name>lookbook/js/camera.min.js</name></action>
39
- <action method="addItem"><type>skin_js</type><name>lookbook/js/hotspots.js</name></action>
 
40
  </reference>';
41
  $page->setLayoutUpdateXml($updates.$newupdates);
42
  }
31
  if (preg_match($search_string, $pagecontent)) {
32
  $updates = $page->getLayoutUpdateXml();
33
  $newupdates = '<reference name="head">
34
+ <action method="addCss"><stylesheet>lookbook/css/hotspots.css</stylesheet></action>
35
+ <action method="addJs"><script>jquery/jquery-1.8.2.min.js</script></action>
36
+ <action method="addJs"><script>lookbook/jquery.mobile.customized.min.js</script></action>
37
+ <action method="addJs"><script>jquery/jquery.noconflict.js</script></action>
38
+ <action method="addItem"><type>skin_js</type><name>lookbook/js/jquery.easing.1.3.js</name></action>
39
+ <action method="addItem"><type>skin_js</type><name>lookbook/js/camera.min.js</name></action>
40
+ <action method="addItem"><type>skin_js</type><name>lookbook/js/hotspots.js</name></action>
41
  </reference>';
42
  $page->setLayoutUpdateXml($updates.$newupdates);
43
  }
app/code/local/Altima/Lookbook/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
  <config>
25
  <modules>
26
  <Altima_Lookbook>
27
- <version>1.0.2</version>
28
  </Altima_Lookbook>
29
  </modules>
30
  <frontend>
24
  <config>
25
  <modules>
26
  <Altima_Lookbook>
27
+ <version>1.0.3</version>
28
  </Altima_Lookbook>
29
  </modules>
30
  <frontend>
app/code/local/Altima/Lookbook/sql/lookbook_setup/mysql4-upgrade-1.0.2-1.0.3.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Altima Lookbook Free Extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Altima
16
+ * @package Altima_LookbookFree
17
+ * @author Altima Web Systems http://altimawebsystems.com/
18
+ * @email support@altima.net.au
19
+ * @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+
23
+
24
+ $installer = $this;
25
+ /* @var $installer Mage_Core_Model_Resource_Setup */
26
+
27
+ $installer->startSetup();
28
+
29
+ $installer->endSetup();
js/lookbook/jquery.mobile.customized.min.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ // jQuery Mobile framework customized for Camera slideshow, made by
2
+ // 'jquery.mobile.define.js',
3
+ // 'jquery.ui.widget.js',
4
+ // 'jquery.mobile.widget.js',
5
+ // 'jquery.mobile.media.js',
6
+ // 'jquery.mobile.support.js',
7
+ // 'jquery.mobile.vmouse.js',
8
+ // 'jquery.mobile.event.js',
9
+ // 'jquery.mobile.core.js'
10
+ window.define=function(){Array.prototype.slice.call(arguments).pop()(window.jQuery)};define(["jquery"],function(a){(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++){a(e).triggerHandler("remove")}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){if(!c){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")})}}return d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1];f=e+"-"+b;if(!d){d=c;c=a.Widget}a.expr[":"][f]=function(c){return!!a.data(c,b)};a[e]=a[e]||{};a[e][b]=function(a,b){if(arguments.length){this._createWidget(a,b)}};var g=new c;g.options=a.extend(true,{},g.options);a[e][b].prototype=a.extend(true,g,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d);a.widget.bridge(b,a[e][b])};a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e==="string",g=Array.prototype.slice.call(arguments,1),h=this;e=!f&&g.length?a.extend.apply(null,[true,e].concat(g)):e;if(f&&e.charAt(0)==="_"){return h}if(f){this.each(function(){var d=a.data(this,c);if(!d){throw"cannot call methods on "+c+" prior to initialization; "+"attempted to call method '"+e+"'"}if(!a.isFunction(d[e])){throw"no such method '"+e+"' for "+c+" widget instance"}var f=d[e].apply(d,g);if(f!==d&&f!==b){h=f;return false}})}else{this.each(function(){var b=a.data(this,c);if(b){b.option(e||{})._init()}else{a.data(this,c,new d(e,this))}})}return h}};a.Widget=function(a,b){if(arguments.length){this._createWidget(a,b)}};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,c){a.data(c,this.widgetName,this);this.element=a(c);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var b={};if(a.metadata){b=a.metadata.get(element)[this.widgetName]}return b},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0){return a.extend({},this.options)}if(typeof c==="string"){if(d===b){return this.options[c]}e={};e[c]=d}this._setOptions(e);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;if(a==="disabled"){this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,c,d){var e=this.options[b];c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d=d||{};if(c.originalEvent){for(var f=a.event.props.length,g;f;){g=a.event.props[--f];c[g]=c.originalEvent[g]}}this.element.trigger(c,d);return!(a.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery)});define(["jquery","./jquery.ui.widget"],function(a){(function(a,b){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var c=this.element,d={};a.each(this.options,function(a){var e=c.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));if(e!==b){d[a]=e}});return d},enhanceWithin:function(b){var c=a.mobile.closestPageData(a(b)),d=c&&c.keepNativeSelector()||"";a(this.options.initSelector,b).not(d)[this.widgetName]()}})})(jQuery)});define(["jquery","./jquery.mobile.core"],function(a){(function(a,b){var c=a(window),d=a("html");a.mobile.media=function(){var b={},c=a("<div id='jquery-mediatest'>"),e=a("<body>").append(c);return function(a){if(!(a in b)){var f=document.createElement("style"),g="@media "+a+" { #jquery-mediatest { position:absolute; } }";f.type="text/css";if(f.styleSheet){f.styleSheet.cssText=g}else{f.appendChild(document.createTextNode(g))}d.prepend(e).prepend(f);b[a]=c.css("position")==="absolute";e.add(f).remove()}return b[a]}}()})(jQuery)});define(["jquery","./jquery.mobile.media"],function(a){(function(a,b){function m(){var b=location.protocol+"//"+location.host+location.pathname+"ui-dir/",d=a("head base"),e=null,f="",g,h;if(!d.length){d=e=a("<base>",{href:b}).appendTo("head")}else{f=d.attr("href")}g=a("<a href='testurl' />").prependTo(c);h=g[0].href;d[0].href=f||location.pathname;if(e){e.remove()}return h.indexOf(b)===0}function l(){var b="transform-3d";return k("perspective","10px","moz")||a.mobile.media("(-"+e.join("-"+b+"),(-")+"-"+b+"),("+b+")")}function k(a,b,c){var d=document.createElement("div"),f=function(a){return a.charAt(0).toUpperCase()+a.substr(1)},g=function(a){return"-"+a.charAt(0).toLowerCase()+a.substr(1)+"-"},h=function(c){var e=g(c)+a+": "+b+";",h=f(c),i=h+f(a);d.setAttribute("style",e);if(!!d.style[i]){k=true}},j=c?[c]:e,k;for(i=0;i<j.length;i++){h(j[i])}return!!k}function j(a){var c=a.charAt(0).toUpperCase()+a.substr(1),f=(a+" "+e.join(c+" ")+c).split(" ");for(var g in f){if(d[f[g]]!==b){return true}}}var c=a("<body>").prependTo("html"),d=c[0].style,e=["Webkit","Moz","O"],f="palmGetResource"in window,g=window.operamini&&{}.toString.call(window.operamini)==="[object OperaMini]",h=window.blackberry;a.extend(a.mobile,{browser:{}});a.mobile.browser.ie=function(){var a=3,b=document.createElement("div"),c=b.all||[];while(b.innerHTML="<!--[if gt IE "+ ++a+"]><br><![endif]-->",c[0]){}return a>4?a:!a}();a.extend(a.support,{orientation:"orientation"in window&&"onorientationchange"in window,touch:"ontouchend"in document,cssTransitions:"WebKitTransitionEvent"in window||k("transition","height 100ms linear"),pushState:"pushState"in history&&"replaceState"in history,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!j("content"),touchOverflow:!!j("overflowScrolling"),cssTransform3d:l(),boxShadow:!!j("boxShadow")&&!h,scrollTop:("pageXOffset"in window||"scrollTop"in document.documentElement||"scrollTop"in c[0])&&!f&&!g,dynamicBaseTag:m()});c.remove();var n=function(){var a=window.navigator.userAgent;return a.indexOf("Nokia")>-1&&(a.indexOf("Symbian/3")>-1||a.indexOf("Series60/5")>-1)&&a.indexOf("AppleWebKit")>-1&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();a.mobile.ajaxBlacklist=window.blackberry&&!window.WebKitPoint||g||n;if(n){a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")})}if(!a.support.boxShadow){a("html").addClass("ui-mobile-nosupport-boxshadow")}})(jQuery)});define(["jquery"],function(a){(function(a,b,c,d){function O(b){var c=b.substr(1);return{setup:function(d,f){if(!M(this)){a.data(this,e,{})}var g=a.data(this,e);g[b]=true;k[b]=(k[b]||0)+1;if(k[b]===1){t.bind(c,H)}a(this).bind(c,N);if(s){k["touchstart"]=(k["touchstart"]||0)+1;if(k["touchstart"]===1){t.bind("touchstart",I).bind("touchend",L).bind("touchmove",K).bind("scroll",J)}}},teardown:function(d,f){--k[b];if(!k[b]){t.unbind(c,H)}if(s){--k["touchstart"];if(!k["touchstart"]){t.unbind("touchstart",I).unbind("touchmove",K).unbind("touchend",L).unbind("scroll",J)}}var g=a(this),h=a.data(this,e);if(h){h[b]=false}g.unbind(c,N);if(!M(this)){g.removeData(e)}}}}function N(){}function M(b){var c=a.data(b,e),d;if(c){for(d in c){if(c[d]){return true}}}return false}function L(a){if(r){return}B();var b=y(a.target),c;G("vmouseup",a,b);if(!o){var d=G("vclick",a,b);if(d&&d.isDefaultPrevented()){c=w(a).changedTouches[0];p.push({touchID:v,x:c.clientX,y:c.clientY});q=true}}G("vmouseout",a,b);o=false;E()}function K(b){if(r){return}var c=w(b).touches[0],d=o,e=a.vmouse.moveDistanceThreshold;o=o||Math.abs(c.pageX-m)>e||Math.abs(c.pageY-n)>e,flags=y(b.target);if(o&&!d){G("vmousecancel",b,flags)}G("vmousemove",b,flags);E()}function J(a){if(r){return}if(!o){G("vmousecancel",a,y(a.target))}o=true;E()}function I(b){var c=w(b).touches,d,e;if(c&&c.length===1){d=b.target;e=y(d);if(e.hasVirtualBinding){v=u++;a.data(d,f,v);F();D();o=false;var g=w(b).touches[0];m=g.pageX;n=g.pageY;G("vmouseover",b,e);G("vmousedown",b,e)}}}function H(b){var c=a.data(b.target,f);if(!q&&(!v||v!==c)){var d=G("v"+b.type,b);if(d){if(d.isDefaultPrevented()){b.preventDefault()}if(d.isPropagationStopped()){b.stopPropagation()}if(d.isImmediatePropagationStopped()){b.stopImmediatePropagation()}}}}function G(b,c,d){var e;if(d&&d[b]||!d&&z(c.target,b)){e=x(c,b);a(c.target).trigger(e)}return e}function F(){if(l){clearTimeout(l);l=0}}function E(){F();l=setTimeout(function(){l=0;C()},a.vmouse.resetTimerDuration)}function D(){A()}function C(){v=0;p.length=0;q=false;B()}function B(){r=true}function A(){r=false}function z(b,c){var d;while(b){d=a.data(b,e);if(d&&(!c||d[c])){return b}b=b.parentNode}return null}function y(b){var c={},d,f;while(b){d=a.data(b,e);for(f in d){if(d[f]){c[f]=c.hasVirtualBinding=true}}b=b.parentNode}return c}function x(b,c){var e=b.type,f,g,i,k,l,m,n,o;b=a.Event(b);b.type=c;f=b.originalEvent;g=a.event.props;if(e.search(/mouse/)>-1){g=j}if(f){for(n=g.length,k;n;){k=g[--n];b[k]=f[k]}}if(e.search(/mouse(down|up)|click/)>-1&&!b.which){b.which=1}if(e.search(/^touch/)!==-1){i=w(f);e=i.touches;l=i.changedTouches;m=e&&e.length?e[0]:l&&l.length?l[0]:d;if(m){for(o=0,len=h.length;o<len;o++){k=h[o];b[k]=m[k]}}}return b}function w(a){while(a&&typeof a.originalEvent!=="undefined"){a=a.originalEvent}return a}var e="virtualMouseBindings",f="virtualTouchID",g="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),h="clientX clientY pageX pageY screenX screenY".split(" "),i=a.event.mouseHooks?a.event.mouseHooks.props:[],j=a.event.props.concat(i),k={},l=0,m=0,n=0,o=false,p=[],q=false,r=false,s="addEventListener"in c,t=a(c),u=1,v=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var P=0;P<g.length;P++){a.event.special[g[P]]=O(g[P])}if(s){c.addEventListener("click",function(b){var c=p.length,d=b.target,e,g,h,i,j,k;if(c){e=b.clientX;g=b.clientY;threshold=a.vmouse.clickDistanceThreshold;h=d;while(h){for(i=0;i<c;i++){j=p[i];k=0;if(h===d&&Math.abs(j.x-e)<threshold&&Math.abs(j.y-g)<threshold||a.data(h,f)===j.touchID){b.preventDefault();b.stopPropagation();return}}h=h.parentNode}}},true)}})(jQuery,window,document)});define(["jquery","./jquery.mobile.core","./jquery.mobile.media","./jquery.mobile.support","./jquery.mobile.vmouse"],function(a){(function(a,b,c){function i(b,c,d){var e=d.type;d.type=c;a.event.handle.call(b,d);d.type=e}a.each(("touchstart touchmove touchend orientationchange throttledresize "+"tap taphold swipe swipeleft swiperight scrollstart scrollstop").split(" "),function(b,c){a.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)};a.attrFn[c]=true});var d=a.support.touch,e="touchmove scroll",f=d?"touchstart":"mousedown",g=d?"touchend":"mouseup",h=d?"touchmove":"mousemove";a.event.special.scrollstart={enabled:true,setup:function(){function g(a,c){d=c;i(b,d?"scrollstart":"scrollstop",a)}var b=this,c=a(b),d,f;c.bind(e,function(b){if(!a.event.special.scrollstart.enabled){return}if(!d){g(b,true)}clearTimeout(f);f=setTimeout(function(){g(b,false)},50)})}};a.event.special.tap={setup:function(){var b=this,c=a(b);c.bind("vmousedown",function(d){function k(a){j();if(e==a.target){i(b,"tap",a)}}function j(){h();c.unbind("vclick",k).unbind("vmouseup",h);a(document).unbind("vmousecancel",j)}function h(){clearTimeout(g)}if(d.which&&d.which!==1){return false}var e=d.target,f=d.originalEvent,g;c.bind("vmouseup",h).bind("vclick",k);a(document).bind("vmousecancel",j);g=setTimeout(function(){i(b,"taphold",a.Event("taphold"))},750)})}};a.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=this,d=a(b);d.bind(f,function(b){function j(b){if(!f){return}var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;i={time:(new Date).getTime(),coords:[c.pageX,c.pageY]};if(Math.abs(f.coords[0]-i.coords[0])>a.event.special.swipe.scrollSupressionThreshold){b.preventDefault()}}var e=b.originalEvent.touches?b.originalEvent.touches[0]:b,f={time:(new Date).getTime(),coords:[e.pageX,e.pageY],origin:a(b.target)},i;d.bind(h,j).one(g,function(b){d.unbind(h,j);if(f&&i){if(i.time-f.time<a.event.special.swipe.durationThreshold&&Math.abs(f.coords[0]-i.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(f.coords[1]-i.coords[1])<a.event.special.swipe.verticalDistanceThreshold){f.origin.trigger("swipe").trigger(f.coords[0]>i.coords[0]?"swipeleft":"swiperight")}}f=i=c})})}};(function(a,b){function j(){var a=e();if(a!==f){f=a;c.trigger("orientationchange")}}var c=a(b),d,e,f,g,h,i={0:true,180:true};if(a.support.orientation){g=a.mobile.media("all and (orientation: landscape)");h=i[b.orientation];if(g&&h||!g&&!h){i={"-90":true,90:true}}}a.event.special.orientationchange=d={setup:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled){return false}f=e();c.bind("throttledresize",j)},teardown:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled){return false}c.unbind("throttledresize",j)},add:function(a){var b=a.handler;a.handler=function(a){a.orientation=e();return b.apply(this,arguments)}}};a.event.special.orientationchange.orientation=e=function(){var c=true,d=document.documentElement;if(a.support.orientation){c=i[b.orientation]}else{c=d&&d.clientWidth/d.clientHeight<1.1}return c?"portrait":"landscape"}})(jQuery,b);(function(){a.event.special.throttledresize={setup:function(){a(this).bind("resize",c)},teardown:function(){a(this).unbind("resize",c)}};var b=250,c=function(){f=(new Date).getTime();g=f-d;if(g>=b){d=f;a(this).trigger("throttledresize")}else{if(e){clearTimeout(e)}e=setTimeout(c,b-g)}},d=0,e,f,g})();a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})})(jQuery,this)});define(["jquery","../external/requirejs/text!../version.txt","./jquery.mobile.widget"],function(a,b){(function(a,c,d){var e={};a.mobile=a.extend({},{version:b,ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:true,hashListeningEnabled:true,linkBindingEnabled:true,defaultPageTransition:"fade",maxTransitionWidth:false,minScrollBack:10,touchOverflowEnabled:false,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",loadingMessageTextVisible:false,loadingMessageTheme:"a",pageLoadErrorMessageTheme:"e",autoInitializePage:true,pushStateEnabled:true,orientationChangeEnabled:true,gradeA:function(){return a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=7},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(b){if(a.type(b)!=="number"){b=a.mobile.defaultHomeScroll}a.event.special.scrollstart.enabled=false;setTimeout(function(){c.scrollTo(0,b);a(document).trigger("silentscroll",{x:0,y:b})},20);setTimeout(function(){a.event.special.scrollstart.enabled=true},150)},nsNormalizeDict:e,nsNormalize:function(b){if(!b){return}return e[b]||(e[b]=a.camelCase(a.mobile.ns+b))},getInheritedTheme:function(a,b){var c=a[0],d="",e=/ui-(bar|body)-([a-z])\b/,f,g;while(c){var f=c.className||"";if((g=e.exec(f))&&(d=g[2])){break}c=c.parentNode}return d||b||"a"},closestPageData:function(a){return a.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")}},a.mobile);a.fn.jqmData=function(b,c){var d;if(typeof b!="undefined"){d=this.data(b?a.mobile.nsNormalize(b):b,c)}return d};a.jqmData=function(b,c,d){var e;if(typeof c!="undefined"){e=a.data(b,c?a.mobile.nsNormalize(c):c,d)}return e};a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))};a.jqmRemoveData=function(b,c){return a.removeData(b,a.mobile.nsNormalize(c))};a.fn.removeWithDependents=function(){a.removeWithDependents(this)};a.removeWithDependents=function(b){var c=a(b);(c.jqmData("dependents")||a()).remove();c.remove()};a.fn.addDependents=function(b){a.addDependents(a(this),b)};a.addDependents=function(b,c){var d=a(b).jqmData("dependents")||a();a(b).jqmData("dependents",a.merge(d,c))};a.fn.getEncodedText=function(){return a("<div/>").text(a(this).text()).html()};var f=a.find,g=/:jqmData\(([^)]*)\)/g;a.find=function(b,c,d,e){b=b.replace(g,"[data-"+(a.mobile.ns||"")+"$1]");return f.call(this,b,c,d,e)};a.extend(a.find,f);a.find.matches=function(b,c){return a.find(b,null,null,c)};a.find.matchesSelector=function(b,c){return a.find(c,null,null,[b]).length>0}})(jQuery,this)})
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Altima_lookbook_free</name>
4
- <version>1.0.2</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 tweaks and improvements</notes>
12
  <authors><author><name>Alexander</name><user>auto-converted</user><email>alex@altima.net.au</email></author></authors>
13
- <date>2013-05-13</date>
14
- <time>12:58:03</time>
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="f7e5a768df8c088474b7ef09a0f976c6"/><file name="Lookbookimage.php" hash="9234f1daa33e70d7bcf5a3824924dc38"/></dir></dir><dir name="Tab"><file name="Form.php" hash="3bc18cf0c96a34c2c3db598e622fdbc7"/></dir><file name="Form.php" hash="c4f32e1a2013d2bd436a90b0c3c77a5f"/><file name="Tabs.php" hash="24d5820584ce75878c9a950f94756ffc"/></dir><file name="Edit.php" hash="f0a347f0e76490d68d67a47875fdd89b"/><file name="Grid.php" hash="31a2de1234c16aa8b3734945cfec19b9"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Categories.php" hash="1ef5621a729b801a8119c8b2a754b738"/></dir></dir><dir name="Template"><dir name="Renderer"><file name="Category.php" hash="8e9b5b447f1e046d2b1f49606b6f12bc"/></dir></dir></dir></dir><dir name="Template"><dir name="Grid"><dir name="Renderer"><file name="Image.php" hash="b5cf2e36bc23d0f25a8a1453062949f3"/></dir></dir></dir><file name="Lookbook.php" hash="d96830c83f91ee3a78492cc1edd6bff5"/></dir><file name="Lookbook.php" hash="dfe1c58667f1f8bbd1a0860d1ed12429"/></dir><dir name="Helper"><file name="Data.php" hash="8fde1fef5da70ac535fdff0bffa6c1d7"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Effect.php" hash="0ab6fee52eddc6cd59c055447e46ddfa"/></dir></dir><dir name="Layout"><dir name="Generate"><file name="Observer.php" hash="9cdacf014d902251c875092f3c0448f5"/></dir></dir><dir name="Mysql4"><dir name="Lookbook"><file name="Collection.php" hash="41afe8655609410962e6b2068fc974d4"/></dir><file name="Lookbook.php" hash="2026fe0e3150b5a46c85df031bcc9c88"/></dir><file name="Fileuploader.php" hash="f987f0b2170a16ab9a1fa2f2f99ce2a6"/><file name="Lookbook.php" hash="3eb927a4ecd93ac299588ad7129c5ff4"/><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="98c08c43c7ce0bc1d525f3a7a1a643d4"/><file name="system.xml" hash="5950567fda5ddd0f1f2201ffc2afe1da"/></dir><dir name="sql"><dir name="lookbook_setup"><file name="mysql4-install-1.0.2.php" hash="4db9cbe98f529f6c02686550cbdf1520"/></dir></dir></dir></dir></target><target name="mage"><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.9.1.js" hash="e3afa2a5c2ef212277864dfd43408ce4"/><file name="jquery.annotate.js" hash="f9534530d6156b4b8471cfe5c259a594"/><file name="json2.min.js" hash="041eedd4d7676d33b6ccd2056734e4b3"/></dir><dir name="jquery"><file name="jquery-1.8.2.min.js" hash="cfa9051cc0b05eb519f1e16b2a6645d7"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lookbook.xml" hash="b868ff7f1c7a1747c677f6ab7c521c0e"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lookbook.xml" hash="9188a9a3c411dfebaeb961bc9ab99f01"/></dir><dir name="template"><dir name="lookbook"><file name="lookbook.phtml" hash="3b42d5d83eae4f20fac8acd4aaa92cbc"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="lookbook"><dir name="css"><file name="hotspots.css" hash="472045c1413e26241eed2f9586b85856"/></dir><dir name="images"><dir name="patterns"><file name="overlay1.png" hash="1f146c3ca45b7de58990fe35674f3c12"/><file name="overlay10.png" hash="e1eb49ee07e74a2c4fee9dad5f17a513"/><file name="overlay2.png" hash="ddcf42fed3bf5234b7846a74bf17fc6d"/><file name="overlay3.png" hash="d3deed31d1eed4f17432ff93aefd9daf"/><file name="overlay4.png" hash="8df992721519d21ba39626a8615393c4"/><file name="overlay5.png" hash="a839858206fe25a686265e5868a00fbf"/><file name="overlay6.png" hash="de8c31ab33ca41114addad876a7d057b"/><file name="overlay7.png" hash="8475f8c4b675c531f5fca9d0f8266889"/><file name="overlay8.png" hash="a13c787a719e0619ce82ba73bacd9498"/><file name="overlay9.png" hash="06b734ded54bbe1761e3b67acd2575e5"/></dir><file name="adv-bg.png" hash="06af9432757479345a304c8d8b8b3939"/><file name="camera-loader.gif" hash="cd2e13291ecdcac7f575beea6d84b099"/><file name="camera_skins.png" hash="44234b21bebe6b318aab47d9e9bbbee9"/><file name="caption-bg.png" hash="b09e2b8f7382607b51b0392ba46f5963"/><file name="info-bg.png" hash="6b2e3b329380a9bf3c298e3a6c34a7fa"/></dir><dir name="js"><file name="camera.min.js" hash="fb5074c5cf40020f7d0ab68a6d96db97"/><file name="hotspots.js" hash="47a050d6647fc0f70863a0aad95ed21d"/><file name="jquery.easing.1.3.js" hash="6516449ed5089677ed3d7e2f11fc8942"/></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></target><target name="magemedia"><dir name="lookbook"><dir name="icons"><dir name="default"><file name="hotspot-icon.png" hash="fa27397b9eb8b54df13e62a5a1b6c8b8"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Altima_lookbook_free</name>
4
+ <version>1.0.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 improvements for mobile devices</notes>
12
  <authors><author><name>Alexander</name><user>auto-converted</user><email>alex@altima.net.au</email></author></authors>
13
+ <date>2013-09-04</date>
14
+ <time>11:39:16</time>
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="f7e5a768df8c088474b7ef09a0f976c6"/><file name="Lookbookimage.php" hash="9234f1daa33e70d7bcf5a3824924dc38"/></dir></dir><dir name="Tab"><file name="Form.php" hash="3bc18cf0c96a34c2c3db598e622fdbc7"/></dir><file name="Form.php" hash="c4f32e1a2013d2bd436a90b0c3c77a5f"/><file name="Tabs.php" hash="24d5820584ce75878c9a950f94756ffc"/></dir><file name="Edit.php" hash="f0a347f0e76490d68d67a47875fdd89b"/><file name="Grid.php" hash="31a2de1234c16aa8b3734945cfec19b9"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Categories.php" hash="1ef5621a729b801a8119c8b2a754b738"/></dir></dir><dir name="Template"><dir name="Renderer"><file name="Category.php" hash="8e9b5b447f1e046d2b1f49606b6f12bc"/></dir></dir></dir></dir><dir name="Template"><dir name="Grid"><dir name="Renderer"><file name="Image.php" hash="b5cf2e36bc23d0f25a8a1453062949f3"/></dir></dir></dir><file name="Lookbook.php" hash="d96830c83f91ee3a78492cc1edd6bff5"/></dir><file name="Lookbook.php" hash="dfe1c58667f1f8bbd1a0860d1ed12429"/></dir><dir name="Helper"><file name="Data.php" hash="8fde1fef5da70ac535fdff0bffa6c1d7"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Effect.php" hash="0ab6fee52eddc6cd59c055447e46ddfa"/></dir></dir><dir name="Layout"><dir name="Generate"><file name="Observer.php" hash="c386759f162117e7f7dce049a39df04a"/></dir></dir><dir name="Mysql4"><dir name="Lookbook"><file name="Collection.php" hash="41afe8655609410962e6b2068fc974d4"/></dir><file name="Lookbook.php" hash="2026fe0e3150b5a46c85df031bcc9c88"/></dir><file name="Fileuploader.php" hash="f987f0b2170a16ab9a1fa2f2f99ce2a6"/><file name="Lookbook.php" hash="3eb927a4ecd93ac299588ad7129c5ff4"/><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="0d4eb05db66640c5f3ee01cec0f65005"/><file name="system.xml" hash="5950567fda5ddd0f1f2201ffc2afe1da"/></dir><dir name="sql"><dir name="lookbook_setup"><file name="mysql4-install-1.0.2.php" hash="4db9cbe98f529f6c02686550cbdf1520"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="9cb4e8ce14b6e56dbbfc9b7530a9c4e9"/></dir></dir></dir></dir></target><target name="mage"><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.9.1.js" hash="e3afa2a5c2ef212277864dfd43408ce4"/><file name="jquery.annotate.js" hash="f9534530d6156b4b8471cfe5c259a594"/><file name="jquery.mobile.customized.min.js" hash="ea59fe8222cc61ffdbd41119ce23fd25"/><file name="json2.min.js" hash="041eedd4d7676d33b6ccd2056734e4b3"/></dir><dir name="jquery"><file name="jquery-1.8.2.min.js" hash="cfa9051cc0b05eb519f1e16b2a6645d7"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lookbook.xml" hash="b868ff7f1c7a1747c677f6ab7c521c0e"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lookbook.xml" hash="9188a9a3c411dfebaeb961bc9ab99f01"/></dir><dir name="template"><dir name="lookbook"><file name="lookbook.phtml" hash="3b42d5d83eae4f20fac8acd4aaa92cbc"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="lookbook"><dir name="css"><file name="hotspots.css" hash="472045c1413e26241eed2f9586b85856"/></dir><dir name="images"><dir name="patterns"><file name="overlay1.png" hash="1f146c3ca45b7de58990fe35674f3c12"/><file name="overlay10.png" hash="e1eb49ee07e74a2c4fee9dad5f17a513"/><file name="overlay2.png" hash="ddcf42fed3bf5234b7846a74bf17fc6d"/><file name="overlay3.png" hash="d3deed31d1eed4f17432ff93aefd9daf"/><file name="overlay4.png" hash="8df992721519d21ba39626a8615393c4"/><file name="overlay5.png" hash="a839858206fe25a686265e5868a00fbf"/><file name="overlay6.png" hash="de8c31ab33ca41114addad876a7d057b"/><file name="overlay7.png" hash="8475f8c4b675c531f5fca9d0f8266889"/><file name="overlay8.png" hash="a13c787a719e0619ce82ba73bacd9498"/><file name="overlay9.png" hash="06b734ded54bbe1761e3b67acd2575e5"/></dir><file name="adv-bg.png" hash="06af9432757479345a304c8d8b8b3939"/><file name="camera-loader.gif" hash="cd2e13291ecdcac7f575beea6d84b099"/><file name="camera_skins.png" hash="44234b21bebe6b318aab47d9e9bbbee9"/><file name="caption-bg.png" hash="b09e2b8f7382607b51b0392ba46f5963"/><file name="info-bg.png" hash="6b2e3b329380a9bf3c298e3a6c34a7fa"/></dir><dir name="js"><file name="camera.min.js" hash="fb5074c5cf40020f7d0ab68a6d96db97"/><file name="hotspots.js" hash="0ff6d4acc3dc5611e0c74306be8cc3bb"/><file name="jquery.easing.1.3.js" hash="6516449ed5089677ed3d7e2f11fc8942"/></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></target><target name="magemedia"><dir name="lookbook"><dir name="icons"><dir name="default"><file name="hotspot-icon.png" hash="fa27397b9eb8b54df13e62a5a1b6c8b8"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
skin/frontend/base/default/lookbook/js/hotspots.js CHANGED
@@ -76,4 +76,10 @@ jQuery.extend({
76
  }
77
  });
78
 
79
-
 
 
 
 
 
 
76
  }
77
  });
78
 
79
+ jQuery(document).ready(function() {
80
+ jQuery('.product-info a').on('click touchend', function(e) {
81
+ var el = jQuery(this);
82
+ var link = el.attr('href');
83
+ window.location = link;
84
+ });
85
+ });