-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.6.1 – new green version and bugfixes
- Loading branch information
Showing
25 changed files
with
18,082 additions
and
720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* © ICF Church – <[email protected]> | ||
* © ICF Church – <[email protected]>. | ||
* | ||
* This source file is subject to the license file that is bundled | ||
* with this source code in the file LICENSE. | ||
|
@@ -69,7 +69,9 @@ public function ready() | |
} | ||
|
||
// remove uikit css… | ||
$this->config->styles->remove($this->modules->getConfig('AdminThemeUikit', 'cssURL')); | ||
if ($this->modules->getConfig('AdminThemeUikit', 'cssURL')) { | ||
$this->config->styles->remove($this->modules->getConfig('AdminThemeUikit', 'cssURL')); | ||
} | ||
|
||
// add this css… | ||
$this->config->styles->append($this->getVariant()); | ||
|
@@ -81,6 +83,8 @@ protected function updateSettings(HookEvent $event) | |
|
||
// update logo… | ||
if ($class == $this->className()) { | ||
$this->cache->deleteFor($this, 'cssurl'); | ||
|
||
$newSettings = $event->arguments(1); | ||
$oldSettings = $this->modules->getConfig($this); | ||
|
||
|
@@ -184,19 +188,24 @@ protected function renderBreadcrumbs(HookEvent $event) | |
|
||
private function getVariant() | ||
{ | ||
$variant = $this->get('variant'); | ||
|
||
$version = $this->config->debug ? time() : $this->modules->getModuleInfoProperty($this, 'version'); | ||
$url = $this->config->urls->AdminThemeBoss; | ||
|
||
// default | ||
$file = $url . 'uikit/dist/css/uikit.pw.min.css?' . $version; | ||
$expires = $this->config->debug ? time() - 10 : WireCache::expireNever; | ||
$url = $this->cache->getFor($this, 'cssurl', $expires, function () { | ||
$variant = $this->get('variant'); | ||
$version = $this->config->debug ? time() : $this->modules->getModuleInfoProperty($this, 'version'); | ||
$url = $this->config->urls->AdminThemeBoss; | ||
|
||
// default | ||
$file = $url . 'uikit/dist/css/uikit.blue.min.css?' . $version; | ||
|
||
$exists = is_file($this->config->paths->AdminThemeBoss . 'uikit/dist/css/uikit.' . $variant . '.min.css'); | ||
if ($exists) { | ||
//bd($this->modules->getModuleInfoProperty($this, 'version')); | ||
$file = $url . 'uikit/dist/css/uikit.' . $variant . '.min.css?' . $version; | ||
} | ||
|
||
$exists = is_file($this->config->paths->AdminThemeBoss . 'uikit/dist/css/uikit.' . $variant . '.min.css'); | ||
if ($exists) { | ||
$file = $url . 'uikit/dist/css/uikit.' . $variant . '.min.css?' . $version; | ||
} | ||
return $file; | ||
}); | ||
|
||
return $file; | ||
return $url; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* © ICF Church – <[email protected]> | ||
* © ICF Church – <[email protected]>. | ||
* | ||
* This source file is subject to the license file that is bundled | ||
* with this source code in the file LICENSE. | ||
|
@@ -48,13 +48,14 @@ public function __construct() | |
'name' => 'variant', | ||
'type' => 'radios', | ||
'icon' => 'adjust', | ||
'label' => $this->_('Color'), | ||
'label' => $this->_('Color Sheme'), | ||
'value' => $this->get('variant'), | ||
'options' => [ | ||
'pw' => $this->_('ProcessWire Blue'), | ||
'vibrant' => $this->_('Vibrant Blue'), | ||
'black' => $this->_('Dark Black'), | ||
'pink' => $this->_('Happy Pink'), | ||
'blue' => $this->_('ProcessWire Blue'), | ||
'vibrant' => $this->_('Vibrant Blue'), | ||
'black' => $this->_('Dark Black'), | ||
'pink' => $this->_('Happy Pink'), | ||
'green' => $this->_('Smooth Green'), | ||
], | ||
], | ||
], | ||
|
@@ -104,7 +105,7 @@ public function getDefaults() | |
{ | ||
return [ | ||
'enablemodule' => true, | ||
'variant' => 'pw', | ||
'variant' => 'blue', | ||
'extendedbreadcrumb' => true, | ||
'allusers' => true, | ||
'usedarklogo' => false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// uikit source | ||
@import "../src/less/uikit.theme.less"; | ||
|
||
// main accent color: | ||
// vibrant blue | ||
@theme-primary-color: #0aad77; | ||
|
||
// Original Theme | ||
@import "../../AdminThemeUikit/pw/_import.less"; | ||
|
||
// AdminThemeBoss Custom Styles | ||
@import "fonts/fonts.less"; | ||
@import "theme/main.less"; | ||
|
||
@theme-muted-background: lighten(@theme-primary-color, 62%); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.