Skip to content

Commit 55aa06a

Browse files
committed
Merge pull request pterodactyl#54 from DDynamic/feature-themes
add base support for different themes
2 parents 9a07cc8 + 192498e commit 55aa06a

File tree

80 files changed

+20
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+20
-1
lines changed

bootstrap/cache/.gitignore

100644100755
File mode changed.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"webpatser/laravel-uuid": "^2.0",
2727
"prologue/alerts": "^0.4.0",
2828
"s1lentium/iptools": "^1.0",
29-
"edvinaskrucas/settings": "^2.0"
29+
"edvinaskrucas/settings": "^2.0",
30+
"igaster/laravel-theme": "^1.1"
3031
},
3132
"require-dev": {
3233
"fzaninotto/faker": "~1.4",

config/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
*/
155155
Barryvdh\Debugbar\ServiceProvider::class,
156156
PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider::class,
157+
igaster\laravelTheme\themeServiceProvider::class,
157158
Prologue\Alerts\AlertsServiceProvider::class,
158159
Krucas\Settings\Providers\SettingsServiceProvider::class
159160

@@ -208,6 +209,7 @@
208209
'Settings' => Krucas\Settings\Facades\Settings::class,
209210
'Session' => Illuminate\Support\Facades\Session::class,
210211
'Storage' => Illuminate\Support\Facades\Storage::class,
212+
'Theme' => igaster\laravelTheme\Facades\Theme::class,
211213
'URL' => Illuminate\Support\Facades\URL::class,
212214
'Uuid' => Webpatser\Uuid\Uuid::class,
213215
'Validator' => Illuminate\Support\Facades\Validator::class,

config/themes.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
return [
4+
'enabled' => true,
5+
'themes_path' => realpath(base_path('resources/themes')),
6+
'asset_not_found' => 'LOG_ERROR',
7+
'active' => 'default',
8+
9+
'themes' => [
10+
'default' => [
11+
'extends' => null,
12+
'views-path' => 'default',
13+
'asset-path' => 'themes/default',
14+
],
15+
],
16+
];
File renamed without changes.
File renamed without changes.

public/css/fontawesome/fonts/fontawesome-webfont.eot renamed to public/themes/default/css/fontawesome/fonts/fontawesome-webfont.eot

File renamed without changes.

public/css/fontawesome/fonts/fontawesome-webfont.svg renamed to public/themes/default/css/fontawesome/fonts/fontawesome-webfont.svg

File renamed without changes.

0 commit comments

Comments
 (0)