本文整理汇总了PHP中Action::cssLink方法的典型用法代码示例。如果您正苦于以下问题:PHP Action::cssLink方法的具体用法?PHP Action::cssLink怎么用?PHP Action::cssLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Action
的用法示例。
在下文中一共展示了Action::cssLink方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onEndShowStatusNetStyles
/**
* Output our dedicated stylesheet
*
* @param Action $action Action being shown
*
* @return boolean hook flag
*/
function onEndShowStatusNetStyles($action)
{
// XXX: allow override by theme
$action->cssLink('css/uap.css', 'base', 'screen, projection, tv');
return true;
}
示例2: onEndShowStylesheets
public function onEndShowStylesheets(Action $action)
{
$action->cssLink($this->path('css/sharenotice.css'));
return true;
}
示例3: onEndShowStatusNetStyles
/**
* Link in a styelsheet for the onboarding actions
*
* @param Action $action Action being shown
*
* @return boolean hook flag
*/
function onEndShowStatusNetStyles($action)
{
if (in_array($action->trimmed('action'), array('userdirectory', 'groupdirectory'))) {
$action->cssLink($this->path('css/directory.css'));
}
return true;
}
示例4: onEndShowStylesheets
/**
* Output our dedicated stylesheet
*
* @param Action $action Action being shown
*
* @return boolean hook flag
*/
public function onEndShowStylesheets(Action $action)
{
// XXX: allow override by theme
$action->cssLink('css/uap.css', 'base', 'screen, projection, tv');
return true;
}
示例5: onEndShowStyles
/**
* Show the CSS necessary for this plugin
*
* @param Action $action the action being run
*
* @return boolean hook value
*/
function onEndShowStyles($action)
{
$action->cssLink($this->path('css/poll.css'));
return true;
}
示例6: onEndShowStylesheets
public function onEndShowStylesheets(Action $action)
{
$urlpath = self::staticPath(str_replace('Plugin', '', __CLASS__), 'css/realtimeupdate.css');
$action->cssLink($urlpath, null, 'screen, projection, tv');
return true;
}
示例7: onStartShowStylesheets
public function onStartShowStylesheets(Action $action)
{
if (!$this->serveMobile) {
return true;
}
$action->primaryCssLink();
$action->cssLink($this->path('mp-screen.css'), null, 'screen');
if (file_exists(Theme::file('css/mp-screen.css'))) {
$action->cssLink('css/mp-screen.css', null, 'screen');
}
$action->cssLink($this->path('mp-handheld.css'), null, 'handheld');
if (file_exists(Theme::file('css/mp-handheld.css'))) {
$action->cssLink('css/mp-handheld.css', null, 'handheld');
}
// Allow other plugins to load their styles.
Event::handle('EndShowStylesheets', array($action));
return false;
}
示例8: onEndShowStyles
function onEndShowStyles(Action $action)
{
if ($this->isSocial() && common_logged_in()) {
$action->cssLink($this->path('css/bootstrap.min.css'));
$action->cssLink($this->path('css/chartist.min.css'));
$action->cssLink($this->path('css/ol.css'));
$action->cssLink($this->path('css/sa.css'));
}
return true;
}