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


PHP Foundry::page方法代码示例

本文整理汇总了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;
 }
开发者ID:alexinteam,项目名称:joomla3,代码行数:26,代码来源:easysocial.php

示例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 
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:post.conversation.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;
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:36,代码来源:easysocial.php


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