当前位置: 首页>>代码示例>>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;未经允许,请勿转载。