path_to_theme
includes/theme.inc, строка 214
- Версии
- 5 – 6
path_to_theme()
Return the path to the currently selected theme.
Код
<?php
function path_to_theme() {
global $theme;
if (!isset($theme)) {
init_theme();
}
$themes = list_themes();
return dirname($themes[$theme]->filename);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии