Пример #1
0
?>
"><a id="<?php 
echo $btnPrev;
?>
-a" href="#"><span class="glyphicon glyphicon-arrow-left"></span><span class="hidden-xs"> Prev</span></a></li>
        <li>
            <span id="<?php 
echo $txtCurrentPage;
?>
">1</span> / <span id="<?php 
echo $txtTotalPage;
?>
">3</span>
        </li>
        <li id="<?php 
echo $btnNext;
?>
"><a id="<?php 
echo $btnNext;
?>
-a" href="#"><span class="hidden-xs">Next </span><span class="glyphicon glyphicon-arrow-right"></span></a></li>
    </ul>
</nav>
<div id="<?php 
echo $divList;
?>
">
    <?php 
echo LoaderWidget::widget(['id' => $divLoader]);
?>
</div>
Пример #2
0
    <span id="badge-messages" style="display:none;" class="label label-danger label-notifications">1</span>

    <ul id="dropdown-messages" class="dropdown-menu">
        <li class="dropdown-header">
            <div class="arrow"></div>
            <?php 
echo Yii::t('common', 'Messages');
?>
            <a data-target="#globalModal" href="#" class="btn btn-info btn-xs" id="create-message-button"><?php 
echo Yii::t('common', 'New');
?>
</a>
        </li>
        <ul class="media-list">
        </ul>
        <li id="loader_notifications">
            <?php 
echo LoaderWidget::widget();
?>
        </li>
        <li>
            <div class="dropdown-footer">
                <a href="#" class="btn btn-default col-md-12">
                    <?php 
echo Yii::t('common', 'View all messages');
?>
                </a>
            </div>
        </li>
    </ul>
</div>
Пример #3
0
 */
use common\widgets\LoaderWidget;
use rho_contact\widgets\contact\PanelGroupWidget;
use yii\bootstrap\ButtonDropdown;
use yii\helpers\Url;
use yii\web\View;
use rho_contact\widgets\contact\assets\PanelAsset;
$btnNext = "contact-panel-list-next";
$btnPrev = "contact-panel-list-prev";
$btnRefresh = "contact-panel-list-refresh";
$divPagination = "contact-panel-pagination";
$divList = "contact-panel-list";
$divLoader = "contact-panel-loader";
$txtCurrentPage = "contact-panel-text-current-page";
$txtTotalPage = "contact-panel-text-total-page";
$loaderAnimation = str_replace('"', '\\"', LoaderWidget::widget(['id' => $divLoader]));
PanelAsset::register($this);
/* @var $models \common\models\user\relation\Follow[] */
/* @var $groups \common\models\user\relation\FollowGroup[] */
$pcu = Url::toRoute($getPageCountUrl);
$iu = Url::toRoute($getItemWidgetsUrl);
$js = <<<EOT
 \$(document).ready(function() {
    rho.contact.panel.pageCountUrl = "{$pcu}";
    rho.contact.panel.itemWidgetsUrl = "{$iu}";
    rho.contact.panel.btnNext = "{$btnNext}";
    rho.contact.panel.btnPrev = "{$btnPrev}";
    rho.contact.panel.btnRefresh = "{$btnRefresh}";
    rho.contact.panel.divPagination = "{$divPagination}";
    rho.contact.panel.divList = "{$divList}";
    rho.contact.panel.divLoader = "{$divLoader}";
Пример #4
0
<div class="btn-group">
    <a href="#" id="icon-notifications" data-toggle="dropdown">
        <i class="fa fa-bell"></i>
    </a>
    <span id="badge-notifications" style="display:none;" class="label label-danger label-notifications">1</span>

    <!-- container for ajax response -->
    <ul id="dropdown-notifications" class="dropdown-menu">
        <li class="dropdown-header">
            <div class="arrow"></div><?php 
echo Yii::t('common', 'Notifications');
?>
            <div class="dropdown-header-link"><a id="mark-seen-link"
                                                 href="javascript:markNotificationsAsSeen();"><?php 
echo Yii::t('common', 'Mark all as seen');
?>
</a>
            </div>
        </li>
        <ul class="media-list">
            <?php 
php;
?>
        </ul>
        <li id="loader_notifications">
            <?php 
echo \common\widgets\LoaderWidget::widget();
?>
        </li>
    </ul>
</div>