當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。