summaryrefslogtreecommitdiff
path: root/public/app/views/components/theme.php
blob: c44fcce84696a0507cd96001cad34f95543b9ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php 

// decide a theme according to month
$month = idate('m');

switch ($month) {
    case 12: case 1: case 2:
        $season = 'winter';
        break;

    case 3: case 4: case 5:
        $season = 'spring';
        break;

    case 6: case 7: case 8:
        $season = 'summer';
        break;

    case 9: case 10: case 11:
        $season = 'fall';
        break;

    default:
        $season = 'spring';
}


/** themes
 * --- -- -- - - -
 * 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
 */


$themes = [

    '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'
        ]
    ],


    'fall' => [

        [
            'css' => 'spring-04',
            'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz',
            'label' => '@pxfuel: Nature, lights'
        ]
    ],

    // 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'
        ]

    ],


    'spring' => [
        [
            'css' => 'spring-04',
            'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz',
            'label' => '@pxfuel: Nature, lights'
        ]

    ]


];


define('THEME', $themes['summer'][2]);

?>
    <!-- theme overides -->
<link href="/assets/css/themes/<?=THEME['css']?>.css" rel="stylesheet">