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


PHP FD::document方法代码示例

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


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

示例1: __construct

 public function __construct($params)
 {
     $this->params = $params;
     // Process scripts
     $page = FD::page();
     $page->processScripts();
     // Process styling
     $doc = FD::document();
     $doc->init();
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:10,代码来源:private.php

示例2: loadAssets

 /**
  * Loads required assets
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function loadAssets()
 {
     if (!$this->exists()) {
         return false;
     }
     $document = JFactory::getDocument();
     if ($document->getType() == 'html') {
         // We also need to render the styling from EasySocial.
         FD::document()->init();
         $page = FD::page();
         $page->processScripts();
         $css = rtrim(JURI::root(), '/') . '/plugins/content/easysocial/assets/style.css';
         $document->addStylesheet($css);
     }
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:23,代码来源:easysocial.php

示例3: end

 /**
  * This is the ending point of the page library.
  *
  * @access	public
  * @param	null
  * @return	null
  */
 public function end($options = array())
 {
     // Initialize required dependencies.
     FD::document()->init($options);
     $processStylesheets = isset($options['processStylesheets']) ? $options['processStylesheets'] : true;
     // @task: Process any scripts that needs to be injected into the head.
     if ($processStylesheets) {
         $this->processStylesheets();
     }
     // @task: Process any scripts that needs to be injected into the head.
     $this->processScripts();
     // @task: Process the document title.
     $this->processTitle();
     // @task: Process opengraph tags
     FD::opengraph()->render();
     // @task: Trigger profiler's end.
     if ($this->config->get('general.profiler')) {
         FD::profiler()->end();
     }
     // Additional triggers to be processed when the page starts.
     // $dispatcher 	= FD::dispatcher();
     // Trigger: onComponentStart
     // $dispatcher->trigger('user', 'onComponentEnd', array());
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:page.php

示例4: jimport

jimport('joomla.filesystem.file');
if (!JFile::exists($file)) {
    return;
}
// Include the engine file.
require_once $file;
// Check if Foundry exists
if (!FD::exists()) {
    FD::language()->loadSite();
    echo JText::_('COM_EASYSOCIAL_FOUNDRY_DEPENDENCY_MISSING');
    return;
}
$option = JRequest::getVar('option');
if ($option == 'com_easysocial' && !$params->get('show_on_easysocial', false)) {
    return;
}
// Load our css
FD::document()->init();
// Load up EasySocial's language file
FD::language()->loadSite();
// Load up the module engine
$modules = FD::modules('mod_easysocial_toolbar');
$modules->loadComponentScripts();
// We need these packages
$modules->addDependency('css', 'javascript');
// Get the layout to use.
$layout = $params->get('layout', 'default');
$suffix = $params->get('suffix', '');
$toolbar = FD::get('Toolbar');
$options = array('forceoption' => true, 'toolbar' => true, 'dashboard' => $params->get('show_dashboard', true), 'friends' => $params->get('show_friends', true), 'conversations' => $params->get('show_conversations', true), 'notifications' => $params->get('show_notifications', true), 'search' => $params->get('show_search', true), 'login' => $params->get('show_login', true), 'profile' => $params->get('show_profile', true), 'responsive' => $params->get('responsive', true));
require JModuleHelper::getLayoutPath('mod_easysocial_toolbar', $layout);
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:mod_easysocial_toolbar.php

示例5: loadComponentStylesheets

 public function loadComponentStylesheets()
 {
     FD::document()->initStylesheets();
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:4,代码来源:modules.php


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