<?php

use yii\helpers\Html;
humhub\modules\mostactiveusers\Assets::register($this);
?>
<div class="panel panel-default" id="mostactiveusers-panel">

    <!-- Display panel menu widget -->
    <?php 
humhub\widgets\PanelMenu::widget(array('id' => 'mostactiveusers-panel'));
?>

    <div class="panel-heading">
        <?php 
echo Yii::t('MostactiveusersModule.base', '<strong>Most</strong> active people');
?>
    </div>
    <div class="panel-body">
        <?php 
// run through the array of users
foreach ($users as $user) {
    ?>

            <a href="<?php 
    echo $user->getUrl();
    ?>
"> 
                <img src="<?php 
    echo $user->getProfileImage()->getUrl();
    ?>
"  class="img-rounded tt img_margin" height="40" 
示例#2
0
<?php

use yii\helpers\Html;
?>


<div class="panel panel-default" id="groups-statistics-panel">

    <!-- Display panel menu widget -->
<?php 
echo humhub\widgets\PanelMenu::widget(array('id' => 'groups-statistics-panel'));
?>

    <div class="panel-heading">
<?php 
echo Yii::t('DirectoryModule.widgets_views_groupStats', '<strong>Group</strong> stats');
?>
    </div>
    <div class="panel-body">
        <div class="knob-container" style="text-align: center; opacity: 0;">
            <strong><?php 
echo Yii::t('DirectoryModule.widgets_views_groupStats', 'Total groups');
?>
</strong><br><br>

            <input id="groups-total" class="knob" data-width="120" data-displayPrevious="true" data-readOnly="true"
                   data-fgcolor="#708fa0" data-skin="tron"
                   data-thickness=".2" value="<?php 
echo $statsTotalGroups;
?>
"
示例#3
0
<?php

use yii\helpers\Html;
?>

<div class="panel panel-default spaces" id="new-spaces-panel">

    <!-- Display panel menu widget -->
    <?php 
echo humhub\widgets\PanelMenu::widget(array('id' => 'new-spaces-panel'));
?>

    <div class="panel-heading">
        <?php 
echo Yii::t('DirectoryModule.widgets_views_spaceStats', '<strong>New</strong> spaces');
?>
    </div>
    <div class="panel-body">
        <?php 
foreach ($newSpaces as $space) {
    ?>
            <?php 
    echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 40, 'link' => true, 'htmlOptions' => ['style' => 'margin-bottom: 5px;'], 'linkOptions' => ['class' => 'tt', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Html::encode($space->name)]]);
    ?>
        <?php 
}
?>

        <?php 
if ($showMoreButton) {
    ?>
示例#4
0
<?php

use yii\helpers\Html;
humhub\modules\rss\Assets::register($this);
?>
<div class="panel panel-default" id="rss-panel">

    <!-- Display panel menu widget -->
    <?php 
humhub\widgets\PanelMenu::widget(array('id' => 'rss-panel'));
?>

    <div class="panel-heading">
        <?php 
echo Yii::t('RssModule.base', '<strong>Recent</strong> news');
?>
    </div>
    <div class="panel-body">
		<?php 
// run through the array of feeds
if (is_array($feeds)) {
    echo "<ul class='fa-ul'>";
    foreach ($feeds as $feed) {
        echo "<li><i class='fa-li fa fa-rss-square'></i> <a href='{$feed['link']}' target='_blank'>{$feed['title']}</a></li>";
        echo "<hr />";
    }
    echo "</ul>";
} else {
    //Error
    echo "<p>{$feeds}</p>";
}