Skip to content

Commit

Permalink
fixes #20 set colorscheme for each skin
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Nov 25, 2019
1 parent 8df56c4 commit 3666269
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skins/blueberry.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
$themeconf['colorscheme'] = 'dark';

/*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'; Turquoise: '#009CDA','#0073B2'*/
$skin = array(
'BODY' => array(
Expand Down
2 changes: 2 additions & 0 deletions skins/cafe_latte.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
$themeconf['colorscheme'] = 'clear';

/*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'; Turquoise: '#009CDA','#0073B2'*/
$skin = array(
'BODY' => array(
Expand Down
2 changes: 2 additions & 0 deletions skins/clear.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
$themeconf['colorscheme'] = 'clear';

/*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'; Turquoise: '#009CDA','#0073B2'*/
$skin = array(
'BODY' => array(
Expand Down
2 changes: 2 additions & 0 deletions skins/neon_orange.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
$themeconf['colorscheme'] = 'clear';

/*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'; Turquoise: '#009CDA','#0073B2'*/
$skin = array(
'BODY' => array(
Expand Down
2 changes: 2 additions & 0 deletions skins/neon_pink.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
$themeconf['colorscheme'] = 'clear';

/*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'; Turquoise: '#009CDA','#0073B2'*/
$skin = array(
'BODY' => array(
Expand Down
2 changes: 2 additions & 0 deletions skins/newspaper.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
$themeconf['colorscheme'] = 'clear';

$skin = array(
'BODY' => array(
// REQUIRED
Expand Down
2 changes: 2 additions & 0 deletions skins/splash.inc.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
/*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'*/
$themeconf['colorscheme'] = 'clear';

$skin = array(
'BODY' => array(
// REQUIRED
Expand Down
2 changes: 2 additions & 0 deletions skins/swimming_pool.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
$themeconf['colorscheme'] = 'clear';

/*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'; Turquoise: '#009CDA','#0073B2'*/
$skin = array(
'BODY' => array(
Expand Down
4 changes: 4 additions & 0 deletions themeconf.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
$themeconf = array(
'name' => 'modus',
'parent' => 'default',
'colorscheme' => 'dark',
);

define('MODUS_STR_RECENT', "\xe2\x9c\xbd"); //HEAVY TEARDROP-SPOKED ASTERISK
Expand All @@ -23,6 +24,9 @@
if (!empty($_GET['skin']) && !preg_match('/[^a-zA-Z0-9_-]/', $_GET['skin']))
$conf['modus_theme']['skin'] = $_GET['skin'];

// we're mainly interested in an override of the colorscheme
include( dirname(__FILE__).'/skins/'.$conf['modus_theme']['skin'].'.inc.php' );

$this->assign( array(
'MODUS_CSS_VERSION' => crc32(implode(',', array(
'a'.@$conf['modus_theme']['skin'],
Expand Down

0 comments on commit 3666269

Please sign in to comment.