當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gdn_Theme::Module方法代碼示例

本文整理匯總了PHP中Gdn_Theme::Module方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gdn_Theme::Module方法的具體用法?PHP Gdn_Theme::Module怎麽用?PHP Gdn_Theme::Module使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gdn_Theme的用法示例。


在下文中一共展示了Gdn_Theme::Module方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: smarty_function_module

/**
 * @copyright Copyright 2008, 2009 Vanilla Forums Inc.
 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
 */
function smarty_function_module($Params, &$Smarty)
{
    $Name = GetValue('name', $Params);
    unset($Params['name']);
    $Result = Gdn_Theme::Module($Name, $Params);
    return $Result;
}
開發者ID:edward-tsai,項目名稱:vanilla4china,代碼行數:11,代碼來源:function.module.php

示例2:

<?php

if (!defined('APPLICATION')) {
    exit;
}
?>
<div class="Profile">
    <?php 
include $this->fetchViewLocation('user');
// include($this->fetchViewLocation('tabs'));
echo Gdn_Theme::Module('ProfileFilterModule');
include $this->fetchViewLocation($this->_TabView, $this->_TabController, $this->_TabApplication);
?>
</div>
開發者ID:caidongyun,項目名稱:vanilla,代碼行數:14,代碼來源:index.php

示例3: foreach

            <tbody>
            <?php 
    $Alt = '';
    if (property_exists($this, 'AnnounceData') && is_object($this->AnnounceData)) {
        foreach ($this->AnnounceData->result() as $Discussion) {
            $Alt = $Alt == ' Alt' ? '' : ' Alt';
            WriteDiscussionRow($Discussion, $this, $Session, $Alt);
        }
    }
    $Alt = '';
    foreach ($this->DiscussionData->result() as $Discussion) {
        $Alt = $Alt == ' Alt' ? '' : ' Alt';
        WriteDiscussionRow($Discussion, $this, $Session, $Alt);
    }
    ?>
            </tbody>
        </table>
    </div>
    <?php 
    echo '<div class="PageControls Bottom">';
    PagerModule::write($PagerOptions);
    echo Gdn_Theme::Module('NewDiscussionModule', $this->data('_NewDiscussionProperties', array('CssClass' => 'Button Action Primary')));
    echo '</div>';
} else {
    ?>
    <div class="Empty"><?php 
    echo t('No discussions were found.');
    ?>
</div>
<?php 
}
開發者ID:R-J,項目名稱:vanilla,代碼行數:31,代碼來源:table.php

示例4: foreach

	<tbody>
   <?php 
    $Alt = '';
    if (property_exists($this, 'AnnounceData') && is_object($this->AnnounceData)) {
        foreach ($this->AnnounceData->Result() as $Discussion) {
            $Alt = $Alt == ' Alt' ? '' : ' Alt';
            WriteDiscussionRow($Discussion, $this, $Session, $Alt);
        }
    }
    $Alt = '';
    foreach ($this->DiscussionData->Result() as $Discussion) {
        $Alt = $Alt == ' Alt' ? '' : ' Alt';
        WriteDiscussionRow($Discussion, $this, $Session, $Alt);
    }
    ?>
	</tbody>
</table>
</div>
<?php 
    echo '<div class="PageControls Bottom">';
    PagerModule::Write($PagerOptions);
    echo Gdn_Theme::Module('NewDiscussionModule', array('CssClass' => 'Button Action Primary'));
    echo '</div>';
} else {
    ?>
   <div class="Empty"><?php 
    echo T('No discussions were found.');
    ?>
</div>
   <?php 
}
開發者ID:robhazkes,項目名稱:Garden,代碼行數:31,代碼來源:table.php

示例5: htmlspecialchars

<div class="User" itemscope itemtype="http://schema.org/Person">
    <h1 class="H"><?php 
echo htmlspecialchars($this->User->Name);
echo '<span class="Gloss">';
Gdn_Theme::BulletRow();
if ($this->User->Title) {
    echo Gdn_Theme::BulletItem('Title');
    echo ' ' . Bullet() . ' ' . Wrap(htmlspecialchars($this->User->Title), 'span', array('class' => 'User-Title'));
}
$this->fireEvent('UsernameMeta');
echo '</span>';
?>
</h1>
    <?php 
if ($this->User->Admin == 2) {
    echo '<div class="DismissMessage InfoMessage">', t('This is a system account and does not represent a real person.'), '</div>';
}
if ($this->User->About != '') {
    echo '<div id="Status" itemprop="description">' . Wrap(Gdn_Format::Display($this->User->About));
    if ($this->User->About != '' && ($Session->UserID == $this->User->UserID || $Session->checkPermission('Garden.Users.Edit'))) {
        echo ' - ' . anchor(t('clear'), '/profile/clear/' . $this->User->UserID, 'Hijack');
    }
    echo '</div>';
}
echo Gdn_Theme::Module('UserBanModule', array('UserID' => $this->User->UserID));
$this->fireEvent('BeforeUserInfo');
echo Gdn_Theme::Module('UserInfoModule');
$this->fireEvent('AfterUserInfo');
?>
</div>
開發者ID:korelstar,項目名稱:vanilla,代碼行數:30,代碼來源:user.php

示例6: smarty_function_module

/**
 * @copyright Copyright 2008, 2009 Vanilla Forums Inc.
 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
 */
function smarty_function_module($Params, &$Smarty)
{
    $Result = Gdn_Theme::Module(GetValue('name', $Params));
    return $Result;
}
開發者ID:seedbank,項目名稱:old-repo,代碼行數:9,代碼來源:function.module.php

示例7: t

<?php

if (!defined('APPLICATION')) {
    exit;
}
echo '<h1 class="H HomepageTitle">' . $this->data('Title') . '</h1>';
include $this->fetchViewLocation('helper_functions', 'discussions', 'vanilla');
$Session = Gdn::session();
$ShowOptions = TRUE;
$ViewLocation = $this->fetchViewLocation('drafts', 'drafts');
// WriteFilterTabs($this);
echo Gdn_Theme::Module('DiscussionFilterModule');
if ($this->DraftData->numRows() > 0) {
    echo $this->Pager->toString('less');
    ?>
    <ul class="DataList Drafts">
        <?php 
    include $ViewLocation;
    ?>
    </ul>
    <?php 
    echo $this->Pager->toString('more');
} else {
    ?>
    <div class="Empty"><?php 
    echo t('No drafts.', sprintf(t('You do not have any %s yet.'), t('drafts')));
    ?>
</div>
<?php 
}
開發者ID:vanilla,項目名稱:vanilla,代碼行數:30,代碼來源:index.php


注:本文中的Gdn_Theme::Module方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。