-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsite.php
41 lines (30 loc) · 1.52 KB
/
site.php
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
<?php
// site.php
$kirby = kirby();
// cache
$kirby->roots->cache = $kirby->roots()->index() . DS . 'cache' . DS . 'content';
// thumbs
$kirby->roots->thumbs = $kirby->roots()->index() . DS . 'cache' . DS . 'thumbs';
$kirby->urls->thumbs = $kirby->urls()->index() . '/cache/thumbs';
// -----
// assets
$kirby->roots->assets = $kirby->roots()->index() . DS . 'acorn' . DS . 'assets';
$kirby->urls->assets = $kirby->urls()->index() . '/acorn/assets';
// config
$kirby->roots->config = $kirby->roots()->index() . DS . 'acorn' . DS . 'config';
// plugins
$kirby->roots->plugins = $kirby->roots()->index() . DS . 'acorn' . DS . 'plugins';
$kirby->urls->plugins = $kirby->urls()->index() . '/acorn/plugins';
// snippets
$kirby->roots->snippets = $kirby->roots()->index() . DS . 'acorn' . DS . 'snippets';
$kirby->urls->snippets = $kirby->urls()->index() . DS . 'acorn' . DS . 'snippets';
// tags
$kirby->roots->tags = $kirby->roots()->index() . DS . 'acorn' . DS . 'tags';
$kirby->urls->tags = $kirby->urls()->index() . DS . 'acorn' . DS . 'tags';
// templates
$kirby->roots->templates = $kirby->roots()->index() . DS . 'acorn' . DS . 'templates';
$kirby->urls->templates = $kirby->urls()->index() . DS . 'acorn' . DS . 'templates';
// users and avatars
$kirby->roots->accounts = $kirby->roots()->index() . DS . 'acorn' . DS . 'users' . DS . 'accounts';
$kirby->roots->avatars = $kirby->roots()->index() . DS . 'acorn' . DS . 'users' . DS . 'avatars';
$kirby->urls->avatars = $kirby->urls()->index() . DS . 'acorn' . DS . 'users' . DS . 'avatars';