Merge pull request #1822 from burakcakirel/document-color-for-modules
Document color for modules
This commit is contained in:
commit
01996c94a2
@ -3,8 +3,8 @@
|
|||||||
namespace App\Abstracts\View\Components;
|
namespace App\Abstracts\View\Components;
|
||||||
|
|
||||||
use App\Abstracts\View\Components\Document as Base;
|
use App\Abstracts\View\Components\Document as Base;
|
||||||
use App\Traits\DateTime;
|
|
||||||
use App\Models\Common\Media;
|
use App\Models\Common\Media;
|
||||||
|
use App\Traits\DateTime;
|
||||||
use File;
|
use File;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
@ -244,6 +244,11 @@ abstract class DocumentTemplate extends Base
|
|||||||
return $background_color;
|
return $background_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!empty($alias = config('type.' . $type . '.alias'))) {
|
||||||
|
$type = $alias . '.' . str_replace('-', '_', $type);
|
||||||
|
}
|
||||||
|
|
||||||
$backgroundColor = setting($type . '.color', '#55588b');
|
$backgroundColor = setting($type . '.color', '#55588b');
|
||||||
|
|
||||||
return $backgroundColor;
|
return $backgroundColor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user