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


PHP Apartment::getCountModeration方法代码示例

本文整理汇总了PHP中Apartment::getCountModeration方法的典型用法代码示例。如果您正苦于以下问题:PHP Apartment::getCountModeration方法的具体用法?PHP Apartment::getCountModeration怎么用?PHP Apartment::getCountModeration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Apartment的用法示例。


在下文中一共展示了Apartment::getCountModeration方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

Yii::app()->clientScript->registerScriptFile($baseThemeUrl . '/js/scrollto.js', CClientScript::POS_END);
$this->renderPartial('//layouts/_common');
?>
</head>

<body id="top">
<div id="fb-root"></div>

<?php 
if (isFree()) {
    $rightItems = array(array('label' => tc('Log out'), 'url' => $baseUrl . '/site/logout'));
} else {
    $rightItems = array(array('label' => tc('Language'), 'url' => '#', 'items' => Lang::getAdminMenuLangs()), array('label' => tc('Currency'), 'url' => '#', 'items' => Currency::getActiveCurrencyArray(4)), array('label' => tc('Log out'), 'url' => $baseUrl . '/site/logout'));
}
$this->widget('bootstrap.widgets.TbNavbar', array('fixed' => 'top', 'brand' => 'Raui', 'brandUrl' => $baseUrl . '/', 'collapse' => false, 'items' => array(array('class' => 'bootstrap.widgets.TbMenu', 'items' => array(array('label' => tc('Control panel'), 'url' => '#', 'active' => true), array('label' => tc('Menu'), 'url' => '#', 'items' => $this->infoPages)), 'encodeLabel' => false), array('class' => 'bootstrap.widgets.TbMenu', 'htmlOptions' => array('class' => 'pull-right'), 'items' => $rightItems))));
$countApartmentModeration = Apartment::getCountModeration();
$bageListings = $countApartmentModeration > 0 ? "&nbsp<span class=\"badge\">{$countApartmentModeration}</span>" : '';
$bagePayments = '';
if (issetModule('payment')) {
    $countPaymentWait = Payments::getCountWait();
    $bagePayments = $countPaymentWait > 0 ? "&nbsp<span class=\"badge\">{$countPaymentWait}</span>" : '';
}
$bageComments = '';
if (issetModule('comments')) {
    $countCommentPending = Comment::getCountPending();
    $bageComments = $countCommentPending > 0 ? "&nbsp<span class=\"badge\">{$countCommentPending}</span>" : '';
}
$bageComplain = '';
if (issetModule('apartmentsComplain')) {
    $countComplainPending = ApartmentsComplain::getCountPending();
    $bageComplain = $countComplainPending > 0 ? "&nbsp<span class=\"badge\">{$countComplainPending}</span>" : '';
开发者ID:barricade86,项目名称:raui,代码行数:31,代码来源:main-admin.php


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