diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-06-07 19:20:25 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-06-07 19:20:25 +0300 |
| commit | 5835bbc236c6387d6e235fcf16cf4ab92a94c003 (patch) | |
| tree | 721d3215be2e4778fa0471014afc061344c871a3 /public/app | |
| parent | cfb5b125d3644c09d32d692262752bc0b9d33fdb (diff) | |
| download | gyraf1gov-5835bbc236c6387d6e235fcf16cf4ab92a94c003.tar.gz gyraf1gov-5835bbc236c6387d6e235fcf16cf4ab92a94c003.tar.bz2 gyraf1gov-5835bbc236c6387d6e235fcf16cf4ab92a94c003.zip | |
add and organize themes
Diffstat (limited to 'public/app')
| -rw-r--r-- | public/app/controllers/Office.php | 9 | ||||
| -rw-r--r-- | public/app/views/components/theme.php | 105 |
2 files changed, 66 insertions, 48 deletions
diff --git a/public/app/controllers/Office.php b/public/app/controllers/Office.php index 7a542eb..be8919f 100644 --- a/public/app/controllers/Office.php +++ b/public/app/controllers/Office.php @@ -48,6 +48,7 @@ class Office { + ## SERVE FILE ## ------------------------------------------------------------------------- @@ -384,7 +385,6 @@ class Office { return $tick; // return the xreated ticket } - /** remove_ticker * * removes a ticket and return true; @@ -408,7 +408,6 @@ class Office { - ## ADMIN METHODS (insert, updated etc.) ## ------------------------------------------------------------------------- @@ -435,7 +434,6 @@ class Office { return Cache_service::files_attributes(); } - /** upload_file * upload the file to the file system * @@ -473,7 +471,6 @@ class Office { } } - /** upload to fs * upload file to File-System * @@ -561,7 +558,6 @@ class Office { } - /** clear_file_name * replace greek characters and strip symbols */ @@ -574,7 +570,7 @@ class Office { return str_replace($strip, '', str_replace($el, $en, $str)); } - + /** define_media * * create a record in media table @@ -598,7 +594,6 @@ class Office { return $media_id; } - /** create media for petition * * links petition to each media-file of the media `id`s array 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"> - |
