Skip to content

Commit

Permalink
Fix favicon path + bump to v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Lodder committed Feb 17, 2022
1 parent 57d242a commit b586d68
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.4.1
- Fix override favicon path

## 1.4.0
- Add ability to override favicon
- Favicon now displays on error and offline pages
Expand Down
4 changes: 2 additions & 2 deletions error.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$fontAwesome = (boolean)$this->params->get('font-awesome-thats-actually-rather-shit', 1);
$googleFont = $this->params->get('google-font', '');
$faviconPath = (boolean)$this->params->get('favicon-override', 0)
? JPATH_ROOT
? Uri::root()
: 'templates/' . $this->template . '/favicon';

// Template params
Expand Down Expand Up @@ -81,7 +81,7 @@

$imageLayout = new FileLayout('lightning.favicon');
$imageLayout->render([
'path' => 'templates/' . $this->template . '/favicon',
'path' => $faviconPath,
]);
?>
<!DOCTYPE html>
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$fontAwesome = (boolean)$this->params->get('font-awesome-thats-actually-rather-shit', 1);
$googleFont = $this->params->get('google-font', '');
$faviconPath = (boolean)$this->params->get('favicon-override', 0)
? JPATH_ROOT
? Uri::root()
: 'templates/' . $this->template . '/favicon';

// Load switcher CSS
Expand Down Expand Up @@ -93,7 +93,7 @@

$imageLayout = new FileLayout('lightning.favicon');
$imageLayout->render([
'path' => 'templates/' . $this->template . '/favicon',
'path' => $faviconPath,
]);

$menu = $this->getBuffer('modules', 'menu', $attribs = ['style' => 'none']);
Expand Down
2 changes: 1 addition & 1 deletion joomla.asset.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
"name": "lightning",
"version": "1.4.0",
"version": "1.4.1",
"description": "Joomla 4 template using HiQ CSS",
"license": "GPL-2.0-or-later",
"assets": [
Expand Down
4 changes: 2 additions & 2 deletions offline.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$fontAwesome = (boolean)$this->params->get('font-awesome-thats-actually-rather-shit', 1);
$googleFont = $this->params->get('google-font', '');
$faviconPath = (boolean)$this->params->get('favicon-override', 0)
? JPATH_ROOT
? Uri::root()
: 'templates/' . $this->template . '/favicon';

// Load switcher CSS
Expand Down Expand Up @@ -85,7 +85,7 @@

$imageLayout = new FileLayout('lightning.favicon');
$imageLayout->render([
'path' => 'templates/' . $this->template . '/favicon',
'path' => $faviconPath,
]);
?>
<!DOCTYPE html>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightning",
"version": "1.4.0",
"version": "1.4.1",
"description": "Joomla 4 template using HiQ",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion templateDetails.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="template" client="site" method="upgrade">
<name>lightning</name>
<version>1.4.0</version>
<version>1.4.1</version>
<creationDate>9th March 2020</creationDate>
<author>JoomJunk</author>
<authorEmail>[email protected]</authorEmail>
Expand Down
4 changes: 2 additions & 2 deletions updates/lightning_updates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<description>Joomla 4 template using HiQ CSS</description>
<element>lightning</element>
<type>template</type>
<version>1.4.0</version>
<version>1.4.1</version>
<infourl title="Lightning Release Notes">https://github.com/C-Lodder/lightning/blob/master/CHANGELOG.md</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/C-Lodder/lightning/releases/download/v1.4.0/tpl_lightning-v1.4.0.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/C-Lodder/lightning/releases/download/v1.4.1/tpl_lightning-v1.4.1.zip</downloadurl>
</downloads>
<maintainer>Charlie Lodder</maintainer>
<maintainerurl>https://joomjunk.co.uk</maintainerurl>
Expand Down

0 comments on commit b586d68

Please sign in to comment.