includes/theme.inc, строка 733
- 5 – 6
path_to_theme()
Возвращает путь к текущему темизируемому элементу.
Может указывать на текущую тему или же модуль, обрабатывающий темизированное содержание.
К примеру, если вызывается в области некой функции темизации, то результат зависит от обработчика этой функции. Если вызывающая функция темизации реализована в модуле, то результат будет указывать на модуль; если в текущей теме — на текущую тему. Если же вызывается вне области функции темизации, то всегда будет укзаывать на текущую тему.
Return the path to the current themed element.
It can point to the active theme or the module handling a themed implementation.
For example, when invoked within the scope of a theming call it will depend
on where the theming function is handled. If implemented from a module, it
will point to the module. If implemented from the active theme, it will point
to the active theme. When called outside the scope of a theming call, it will
always point to the active theme.
- phptemplate_get_ie_styles in themes/garland/template.php
- Generates IE CSS links for LTR and RTL languages.
- template_preprocess in includes/theme.inc
- Adds a default set of helper variables for preprocess functions and
templates. This comes in before any other preprocess function which makes
it possible to be used in default theme implementations (non-overriden
theme functions).
Код
<?php
function path_to_theme() {
global $theme_path;
if (!isset($theme_path)) {
init_theme();
}
return $theme_path;
}
?>
Войдите или
зарегистрируйтесь, чтобы получить возможность отправлять комментарии