path_to_theme
- Versions
- 4.6 – 7
path_to_theme()
Return the path to the currently selected theme.
Code
includes/theme.inc, line 214
<?php
function path_to_theme() {
global $theme;
if (!isset($theme)) {
init_theme();
}
$themes = list_themes();
return dirname($themes[$theme]->filename);
}
?>Login or register to post comments 