本文整理汇总了PHP中Q_Html::theme方法的典型用法代码示例。如果您正苦于以下问题:PHP Q_Html::theme方法的具体用法?PHP Q_Html::theme怎么用?PHP Q_Html::theme使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Q_Html
的用法示例。
在下文中一共展示了Q_Html::theme方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pushThemeUrl
/**
* Pushes a new theme url to the end of the cascade --
* if a theme file doesn't exist, we go backwards through the cascade
* and if we locate it under a previous theme url, we use that one.
* NOTE: If your webserver supports .htaccess files, you can implement
* cascading themes much more efficiently: simply push ONE theme url
* using this function, and implement the cascade using .htaccess files.
* @method pushThemeUrl
* @static
* @param {string} $theme The url to be prepended to all non-absolute "src" attributes
* (except for iframes) rendered by Q_Html
* @return {array} The new list of themes
*/
static function pushThemeUrl($theme)
{
if (!self::$theme) {
self::$theme = Q_Config::get('Q', 'theme', null);
}
self::$theme = Q_Valid::url($theme) ? $theme : Q_Request::baseUrl() . '/' . $theme;
self::$themes[] = self::$theme;
return self::$themes;
}