本文整理汇总了PHP中Foundry::page方法的典型用法代码示例。如果您正苦于以下问题:PHP Foundry::page方法的具体用法?PHP Foundry::page怎么用?PHP Foundry::page使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Foundry
的用法示例。
在下文中一共展示了Foundry::page方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* Initializes EasySocial
*
* @since 1.0
* @access public
* @param string
* @return
*/
public static function init()
{
static $loaded = false;
if (!$loaded) {
require_once self::$file;
$document = JFactory::getDocument();
if ($document->getType() == 'html') {
// We also need to render the styling from EasySocial.
$doc = Foundry::document();
$doc->init();
$page = Foundry::page();
$page->processScripts();
}
Foundry::language()->load('com_easysocial', JPATH_ROOT);
$loaded = true;
}
return $loaded;
}
示例2: defined
* EasyDiscuss 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');
if ($system->my->id && $system->my->id != $userId && $userId != 0) {
?>
<?php
if ($system->config->get('integration_easysocial_messaging') && JFile::exists(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php')) {
?>
<?php
require_once JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php';
Foundry::document()->init();
Foundry::page()->processScripts();
?>
<a href="javascript:void(0);" data-es-conversations-compose data-es-conversations-id="<?php
echo $userId;
?>
" class="butt butt-default butt-pm">
<?php
// echo JText::_( 'COM_EASYDISCUSS_CONVERSATIONS_WRITE' );
?>
<i class="i i-envelope"></i>
</a>
<?php
} else {
if ($system->config->get('integration_jomsocial_messaging') && JFile::exists(JPATH_ROOT . '/components/com_community/libraries/core.php')) {
?>
<?php
示例3: init
/**
* Initializes EasySocial
*
* @since 1.0
* @access public
* @param string
* @return
*/
public function init()
{
static $loaded = false;
if( $this->exists() && !$loaded )
{
require_once( $this->file );
$document = JFactory::getDocument();
if( $document->getType() == 'html' )
{
// We also need to render the styling from EasySocial.
$doc = Foundry::document();
$doc->init();
$page = Foundry::page();
$page->processScripts();
}
Foundry::language()->loadSite();
$loaded = true;
}
return $loaded;
}