当前位置: 首页>>代码示例>>PHP>>正文


PHP EB::stylesheet方法代码示例

本文整理汇总了PHP中EB::stylesheet方法的典型用法代码示例。如果您正苦于以下问题:PHP EB::stylesheet方法的具体用法?PHP EB::stylesheet怎么用?PHP EB::stylesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EB的用法示例。


在下文中一共展示了EB::stylesheet方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 /**
  * Default display method which is invoked by Joomla
  *
  * @since   5.0
  * @access  public
  * @param   string
  * @return
  */
 public function display($cachable = false, $urlparams = false)
 {
     $type = $this->doc->getType();
     $name = $this->input->get('view', $this->getName(), 'cmd');
     $layout = $this->input->get('layout', 'default', 'cmd');
     // Get the current view object
     $view = $this->getView($name, $type, '');
     $view->setLayout($layout);
     // Attach theme stylesheet
     $stylesheet = EB::stylesheet('admin', 'default');
     $stylesheet->attach();
     parent::display();
     return $this;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:22,代码来源:controller.php

示例2: recompile

 /**
  * Allows caller to recompile the template
  *
  * @since	4.0
  * @access	public
  * @param	string
  * @return
  */
 public function recompile()
 {
     // Check for request forgeries
     EB::checkToken();
     // Get the theme to recompile
     $theme = $this->input->get('cid', '', 'array');
     $theme = isset($theme[0]) ? $theme[0] : '';
     // Recompile the theme
     // @since 4.0
     // Attach the theme's css
     $stylesheet = EB::stylesheet('site', $theme);
     $result = $stylesheet->build();
     $this->info->set(JText::sprintf('COM_EASYBLOG_THEME_COMPILED_SUCCESS', $theme), 'success');
     $this->app->redirect('index.php?option=com_easyblog&view=themes');
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:23,代码来源:themes.php

示例3: defined

<?php

/**
* @package      EasyBlog
* @copyright    Copyright (C) 2010 - 2015 Stack Ideas Sdn Bhd. All rights reserved.
* @license      GNU/GPL, see LICENSE.php
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filesystem.file');
$engine = JPATH_ADMINISTRATOR . '/components/com_easyblog/includes/easyblog.php';
$my = JFactory::getUser();
$config = EB::config();
if (!JFile::exists($engine) || $my->guest || !$config->get('main_microblog')) {
    return;
}
require_once $engine;
// Ensure that all script are loaded
EB::init('module');
// Attach modules stylesheet
EB::stylesheet('module')->attach();
JFactory::getLanguage()->load('com_easyblog', JPATH_ROOT);
require JModuleHelper::getLayoutPath('mod_easyblogquickpost');
开发者ID:knigherrant,项目名称:decopatio,代码行数:27,代码来源:mod_easyblogquickpost.php

示例4: renderHeaders

 /**
  * Responsible to render the css files on the head
  *
  * @since   4.0
  * @access  public
  * @param   string
  * @return
  */
 public function renderHeaders()
 {
     // Load js stuffs
     $view = $this->input->get('view', '', 'cmd');
     // Determines which js section to initialize
     $section = 'site';
     if ($view == 'dashboard' || $view == 'composer') {
         $section = $view;
     }
     EB::init($section);
     // Get the theme on the site
     $theme = $this->config->get('theme_site');
     // @since 4.0
     // Attach the theme's css
     $stylesheet = EB::stylesheet('site', $theme);
     $stylesheet->attach();
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:25,代码来源:views.php

示例5: loadModuleCss

 /**
  * Loads module stylesheet
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return
  */
 public static function loadModuleCss()
 {
     static $loaded = false;
     if (!$loaded) {
         $theme = EB::config()->get('theme_site');
         $stylesheet = EB::stylesheet('site', $theme);
         $stylesheet->attach();
         $loaded = true;
     }
     return $loaded;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:19,代码来源:easyblog.php

示例6: defined

<?php

/**
* @package		EasyBlog
* @copyright	Copyright (C) 2010 - 2015 Stack Ideas Sdn Bhd. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filesystem.file');
// Include main engine
$engine = JPATH_ADMINISTRATOR . '/components/com_easyblog/includes/easyblog.php';
if (!JFile::exists($engine)) {
    return;
}
require_once $engine;
// This module will require the main script file since composer needs to be loaded
EB::init('site');
// Ensure that all script are loaded in the site.
EB::init('module');
// Attach modules stylesheet
EB::stylesheet('module')->attach();
// Attach site stylesheet
EB::stylesheet('site')->attach();
require JModuleHelper::getLayoutPath('mod_easyblogsubscribe');
开发者ID:knigherrant,项目名称:decopatio,代码行数:29,代码来源:mod_easyblogsubscribe.php


注:本文中的EB::stylesheet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。