File manager - Edit - /home/linknsbh/cecil-hotel.net/vendor/botble/platform/base/src/Supports/PageTitle.php
Back
<?php namespace Botble\Base\Supports; class PageTitle { protected string $title; protected string $siteName; protected string $separator = '|'; public function setSiteName(string $siteName): void { $this->siteName = $siteName; } public function setSeparator(string $separator): void { $this->separator = $separator; } public function setTitle(string $title): void { $this->title = $title; } public function getTitle(bool $withSiteName = true): string|null { $siteName = $this->siteName ?? setting('admin_title', config('core.base.general.base_name')); if (empty($this->title)) { return $siteName; } if (! $withSiteName) { return $this->title; } return implode(' ', [$this->title, $this->separator, $siteName]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.56 |
proxy
|
phpinfo
|
Settings