summaryrefslogtreecommitdiff
path: root/public/app/views/components/theme.php
diff options
context:
space:
mode:
authorGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-06-07 19:20:25 +0300
committerGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-06-07 19:20:25 +0300
commit5835bbc236c6387d6e235fcf16cf4ab92a94c003 (patch)
tree721d3215be2e4778fa0471014afc061344c871a3 /public/app/views/components/theme.php
parentcfb5b125d3644c09d32d692262752bc0b9d33fdb (diff)
downloadgyraf1gov-5835bbc236c6387d6e235fcf16cf4ab92a94c003.tar.gz
gyraf1gov-5835bbc236c6387d6e235fcf16cf4ab92a94c003.tar.bz2
gyraf1gov-5835bbc236c6387d6e235fcf16cf4ab92a94c003.zip
add and organize themes
Diffstat (limited to 'public/app/views/components/theme.php')
-rw-r--r--public/app/views/components/theme.php105
1 files changed, 64 insertions, 41 deletions
diff --git a/public/app/views/components/theme.php b/public/app/views/components/theme.php
index c44fcce..b6ada78 100644
--- a/public/app/views/components/theme.php
+++ b/public/app/views/components/theme.php
@@ -29,71 +29,94 @@ switch ($month) {
* --- -- -- - - -
* auto select one id of L = array.LENGTH, per month:
* ( ( (month*31 + day) % L*2 ) div 2 )
- *
* this will allow theme exchange every 2 days
+ *
+ * ( ( ( month*31 + day) % L*4 ) div 4 )
+ * change seasonal theme every 4 days
*/
-$themes = [
+$theme_def = [
+
+ # --- summer ---
- 'summer' => [
- [
- 'css' => 'summer-05',
- 'url' => 'https://www.vecteezy.com/vector-art/6691305',
- 'label' => 'Mohammad Arfa Affan: 3d Vectors (@Vecteezy)'
- ],
- [
- 'css' => 'summer-02',
- 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-elkiv',
- 'label' => '@pxfuel: Faded orange lines'
- ],
- [
- 'css' => 'summer-01',
- 'url' => 'https://www.freepik.com/free-photo/nazare-portugal_7487018.htm',
- 'label' => 'frimufilms: North beach and ocean in Nazare, Portugal'
- ]
+ 's1' => [
+ 'css' => 'summer-01',
+ 'url' => 'https://www.freepik.com/free-photo/nazare-portugal_7487018.htm',
+ 'label' => 'frimufilms: North beach and ocean in Nazare, Portugal'
],
+ 's2' => [
+ 'css' => 'summer-02',
+ 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-elkiv',
+ 'label' => '@pxfuel: Faded orange lines'
+ ],
+
+ 's5' => [
+ 'css' => 'summer-05',
+ 'url' => 'https://www.vecteezy.com/vector-art/6691305',
+ 'label' => 'Mohammad Arfa Affan: 3d Vectors (@Vecteezy)'
+ ],
- 'fall' => [
+ # --- fall ---
- [
- 'css' => 'spring-04',
- 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz',
- 'label' => '@pxfuel: Nature, lights'
- ]
+ 'f8' => [
+ 'css' => 'fall-08',
+ 'url' => 'https://www.flickr.com/photos/docsearls/12114022885/',
+ 'label' => 'Doc Searls: Amazing Santa Barbara sunset (2014/01)'
],
- // summer-09
- // https://www.freepik.com/free-photo/body-water_13126578.htm
- // ninjason1: Body of water
- 'winter' => [
- [
- 'css' => 'winter-09',
- 'url' => 'https://www.freepik.com/free-photo/abstract-water-waves-with-ink-dots_5068293.htm',
- 'label' => 'freepik: Abstract water waves with ink dots'
- ]
+ # --- winter ---
+ 'w9' => [
+ 'css' => 'winter-09',
+ 'url' => 'https://www.freepik.com/free-photo/abstract-water-waves-with-ink-dots_5068293.htm',
+ 'label' => 'freepik: Abstract water waves with ink dots'
],
+ # --- spring ---
- 'spring' => [
- [
- 'css' => 'spring-04',
- 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz',
- 'label' => '@pxfuel: Nature, lights'
- ]
+ 'g1' => [
+ 'css' => 'spring-01',
+ 'url' => 'https://www.flickr.com/photos/youngsabroad/26305344342/',
+ 'label' => 'A Young Retirement: Bokeh background'
+ ],
+
+ 'g4' => [
+ 'css' => 'spring-04',
+ 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz',
+ 'label' => '@pxfuel: Nature, lights'
+ ],
+ 'g9' => [
+ 'css' => 'spring-09',
+ 'url' => 'https://www.flickr.com/photos/112072356@N06/14882252902/',
+ 'label' => 'auimeesri: banana leaf; blur green of banana leaf with water drop'
]
];
-define('THEME', $themes['summer'][2]);
+$themes = [
+
+ 'summer' => [ 's1', 's5', 'g9', 's2', 'g1' ],
+
+
+ 'fall' => [ 'f8', 's5', 'g4', 's1' ],
+
+
+ 'winter' => [ 'w9' ],
+
+
+ 'spring' => [ 'g1', 'g4', 'g9' ]
+
+];
+
+
+define('THEME', $theme_def[ $themes['fall'][0] ]);
?>
<!-- theme overides -->
<link href="/assets/css/themes/<?=THEME['css']?>.css" rel="stylesheet">
-