mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 21:16:23 +05:30
Add theme_path() for easy theming
This commit is contained in:
parent
f4cf4e4435
commit
c02241509b
1 changed files with 10 additions and 0 deletions
|
|
@ -34,6 +34,16 @@ function site_path()
|
|||
return $_path;
|
||||
}
|
||||
|
||||
function theme_path()
|
||||
{
|
||||
|
||||
if (config('views.root') == null)
|
||||
error(500, '[views.root] is not set');
|
||||
|
||||
return site_url() . rtrim(config('views.root'), '/') . '/';
|
||||
|
||||
}
|
||||
|
||||
function error($code, $message)
|
||||
{
|
||||
@header("HTTP/1.0 {$code} {$message}", true, $code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue