Skip to content

Commit

Permalink
Merge pull request #6 from thexmanxyz/fix/lazy-load-hidden
Browse files Browse the repository at this point in the history
Fix offcanvas lazy load, minified resources, prep. v1.1.5
  • Loading branch information
thexmanxyz authored Jun 18, 2019
2 parents 9cd93ce + e0fbcc3 commit 73436bf
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 19 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ This project contains a Gantry Particle and adds a very powerful image render an
* Gantry Templating Framework and Theme

## Download
Choose the correct download for your target platform. The Joomla Plugin System is supported for all Gantry themes globally or locally for the templates Helium and Hydrogen. The latest Particle version is **v1.1.4**.
Choose the correct download for your target platform. The Joomla Plugin System is supported for all Gantry themes globally or locally for the templates Helium and Hydrogen. The latest Particle version is **v1.1.5**.
___
**Default Particle:**
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.particle.only.EN.v1.1.4.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.particle.only.DE.v1.1.4.zip)
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.particle.only.EN.v1.1.5.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.particle.only.DE.v1.1.5.zip)

**Legacy Particle - Gantry <5.3.2:**
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.particle.only.legacy.EN.v1.1.4.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.particle.only.legacy.DE.v1.1.4.zip)
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.particle.only.legacy.EN.v1.1.5.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.particle.only.legacy.DE.v1.1.5.zip)

**Joomla Plugin - All Templates (Global):**
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.j3.global.EN.v1.1.4.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.j3.global.DE.v1.1.4.zip)
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.j3.global.EN.v1.1.5.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.j3.global.DE.v1.1.5.zip)

**Joomla Plugin - Hydrogen:**
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.j3.hydrogen.EN.v1.1.4.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.j3.hydrogen.DE.v1.1.4.zip)
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.j3.hydrogen.EN.v1.1.5.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.j3.hydrogen.DE.v1.1.5.zip)

**Joomla Plugin - Helium:**
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.j3.helium.EN.v1.1.4.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.4/lih.j3.helium.DE.v1.1.4.zip)
[English](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.j3.helium.EN.v1.1.5.zip) / [German](https://github.com/thexmanxyz/Logo-Image-Hover-Gantry/releases/download/v1.1.5/lih.j3.helium.DE.v1.1.5.zip)
___

## Automatic Installation (Joomla only)
Expand Down
2 changes: 1 addition & 1 deletion build/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set scr_log_files=0

REM --- project variables ---
set prj_id=lih
set prj_rev=v1.1.4
set prj_rev=v1.1.5
set prj_name=logo-image-hover
set prj_fullname=Logo / Image / Hover - Particle
set prj_title_hr=-----------------------------------
Expand Down
3 changes: 2 additions & 1 deletion platform/joomla/global/logo-image-hover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="file" method="upgrade" version="3.0">
<name>Logo | Imager | Hover - Gantry Particle (Global)</name>
<version>1.1.4</version>
<version>1.1.5</version>
<creationDate>17.06.2019</creationDate>
<author>Andreas Kar</author>
<authorEmail>[email protected]</authorEmail>
Expand All @@ -27,6 +27,7 @@
</files>
<files folder="js" target="media/gantry5/engines/nucleus/js">
<filename>logo-image-hover.js</filename>
<filename>logo-image-hover.min.js</filename>
</files>
</fileset>
</extension>
3 changes: 2 additions & 1 deletion platform/joomla/global/translation/de/logo-image-hover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="file" method="upgrade" version="3.0">
<name>Logo | Imager | Hover - Gantry Particle (Global)</name>
<version>1.1.4</version>
<version>1.1.5</version>
<creationDate>17.06.2019</creationDate>
<author>Andreas Kar</author>
<authorEmail>[email protected]</authorEmail>
Expand All @@ -27,6 +27,7 @@
</files>
<files folder="js" target="media/gantry5/engines/nucleus/js">
<filename>logo-image-hover.js</filename>
<filename>logo-image-hover.min.js</filename>
</files>
</fileset>
</extension>
3 changes: 2 additions & 1 deletion platform/joomla/helium/logo-image-hover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="file" method="upgrade" version="3.0">
<name>Logo | Imager | Hover - Gantry Particle (Helium)</name>
<version>1.1.4</version>
<version>1.1.5</version>
<creationDate>17.06.2019</creationDate>
<author>Andreas Kar</author>
<authorEmail>[email protected]</authorEmail>
Expand All @@ -27,6 +27,7 @@
</files>
<files folder="js" target="templates/g5_helium/custom/js">
<filename>logo-image-hover.js</filename>
<filename>logo-image-hover.min.js</filename>
</files>
</fileset>
</extension>
3 changes: 2 additions & 1 deletion platform/joomla/helium/translation/de/logo-image-hover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="file" method="upgrade" version="3.0">
<name>Logo | Imager | Hover - Gantry Particle (Helium)</name>
<version>1.1.4</version>
<version>1.1.5</version>
<creationDate>17.06.2019</creationDate>
<author>Andreas Kar</author>
<authorEmail>[email protected]</authorEmail>
Expand All @@ -27,6 +27,7 @@
</files>
<files folder="js" target="templates/g5_helium/custom/js">
<filename>logo-image-hover.js</filename>
<filename>logo-image-hover.min.js</filename>
</files>
</fileset>
</extension>
3 changes: 2 additions & 1 deletion platform/joomla/hydrogen/logo-image-hover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="file" method="upgrade" version="3.0">
<name>Logo | Imager | Hover - Gantry Particle (Hydrogen)</name>
<version>1.1.4</version>
<version>1.1.5</version>
<creationDate>17.06.2019</creationDate>
<author>Andreas Kar</author>
<authorEmail>[email protected]</authorEmail>
Expand All @@ -27,6 +27,7 @@
</files>
<files folder="js" target="templates/g5_hydrogen/custom/js">
<filename>logo-image-hover.js</filename>
<filename>logo-image-hover.min.js</filename>
</files>
</fileset>
</extension>
3 changes: 2 additions & 1 deletion platform/joomla/hydrogen/translation/de/logo-image-hover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="file" method="upgrade" version="3.0">
<name>Logo | Imager | Hover - Gantry Particle (Hydrogen)</name>
<version>1.1.4</version>
<version>1.1.5</version>
<creationDate>17.06.2019</creationDate>
<author>Andreas Kar</author>
<authorEmail>[email protected]</authorEmail>
Expand All @@ -27,6 +27,7 @@
</files>
<files folder="js" target="templates/g5_hydrogen/custom/js">
<filename>logo-image-hover.js</filename>
<filename>logo-image-hover.min.js</filename>
</files>
</fileset>
</extension>
11 changes: 11 additions & 0 deletions src/default/logo-image-hover.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@
<script type="{{scriptType}}" src="{{url(jsPath)}}"{{jsExecAttr}}></script>
{%- endscripts -%}
{%- endif -%}
{%- if imageDefLazyLoad or imageHovLazyLoad -%}
{%- scripts in 'head' with { priority: '0' } -%}
<script>
jQuery(".g-offcanvas-toggle").on("touchstart click", function($) {
if(typeof jQuery.lazyLoadXT !== 'undefined'){
jQuery(".g-logo-image-hover img:not(.lazy-loaded)").lazyLoadXT({show: true});
}
});
</script>
{%- endscripts -%}
{%- endif -%}
</div>
{%- endblock -%}

Expand Down
2 changes: 1 addition & 1 deletion src/default/logo-image-hover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ form:
label: JS Path
description: Filename of the JS file or path on this server (relative from location) or on a different server (absolute).
placeholder: path/to/JS or filename
default: logo-image-hover.js
default: logo-image-hover.min.js

js.execution:
type: select.select
Expand Down
2 changes: 1 addition & 1 deletion src/default/translation/de/logo-image-hover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ form:
label: JS Pfad
description: Dateiname der JS Datei oder Pfad auf diesem Server (relativ zum Standort) bzw. auf einem anderen Server (absolut).
placeholder: Pfad/zum/JS oder Dateiname
default: logo-image-hover.js
default: logo-image-hover.min.js

js.execution:
type: select.select
Expand Down
4 changes: 2 additions & 2 deletions src/js/logo-image-hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ function LogoImageHover(){
this.src = hoverImg;
});
};

this.addMouseOutEvent = function($) {
$(".g-logo-image-hover img").mouseout(function(){
var defaultImg = $(this).attr("data-logo-out");
if(typeof defaultImg !== 'undefined' && defaultImg.length > 0)
this.src = defaultImg;
});
}
};
}
1 change: 1 addition & 0 deletions src/js/logo-image-hover.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/legacy/logo-image-hover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ form:
label: JS Path
description: Filename of the JS file or path on this server (relative from location) or on a different server (absolute).
placeholder: path/to/JS or filename
default: logo-image-hover.js
default: logo-image-hover.min.js

js.execution:
type: select.select
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/translation/de/logo-image-hover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ form:
label: JS Pfad
description: Dateiname der JS Datei oder Pfad auf diesem Server (relativ zum Standort) bzw. auf einem anderen Server (absolut).
placeholder: Pfad/zum/JS oder Dateiname
default: logo-image-hover.js
default: logo-image-hover.min.js

js.execution:
type: select.select
Expand Down

0 comments on commit 73436bf

Please sign in to comment.