-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·41 lines (33 loc) · 1.19 KB
/
config.php
File metadata and controls
executable file
·41 lines (33 loc) · 1.19 KB
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
return [
'name' => 'default',
'inherit' => null, //default
'events' => [
'before' => function ($theme) {
// You can remove this line anytime.
$theme->setTitle(config('app.name'));
// Breadcrumb template.
$theme->breadcrumb()->setTemplate(
'<ol class="breadcrumb">
@foreach ($crumbs as $i => $crumb)
@if ($i != (count($crumbs) - 1))
<li><a href="{{ $crumb["url"] }}">{{ $crumb["label"] }}</a></li>
@else
<li class="active">{{ $crumb["label"] }}</li>
@endif
@endforeach
</ol>'
);
},
'asset' => function ($theme) {
$themeName = config('cms.core.app.themes.frontend');
$theme->add('css', 'themes/'.$themeName.'/css/app.css');
$theme->add('js', 'themes/'.$themeName.'/js/all.js');
},
'beforeRenderTheme' => function ($theme) {
$navService = (new \Cms\Modules\Core\Services\NavigationService());
// grab the navigations
$navService->boot();
},
],
];