File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/packages/theme/src/Commands/Traits/ThemeTrait.php
Back
<?php namespace Botble\Theme\Commands\Traits; trait ThemeTrait { protected function getPath(string|null $path = null, string|null $theme = null): string { $rootPath = theme_path(); if ($this->option('path')) { $rootPath = $this->option('path'); } if (! $theme) { $theme = $this->getTheme(); } return rtrim($rootPath, '/') . '/' . rtrim(ltrim(strtolower($theme), '/'), '/') . '/' . $path; } protected function getTheme(): string { if ($this->hasArgument('name')) { return strtolower($this->argument('name')); } return strtolower($this->option('name')); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.52 |
proxy
|
phpinfo
|
Settings