コード例 #1
0
ファイル: index.php プロジェクト: kreativmind/humhub
<div class="container">
    <div class="row">
        <div class="col-md-8 layout-content-container">
            <?php 
if ($showProfilePostForm) {
    echo \humhub\modules\post\widgets\Form::widget(['contentContainer' => \Yii::$app->user->getIdentity()]);
}
?>

            <?php 
echo \humhub\modules\content\widgets\Stream::widget(['streamAction' => '//dashboard/dashboard/stream', 'showFilters' => false, 'messageStreamEmpty' => Yii::t('DashboardModule.views_dashboard_index', '<b>Your dashboard is empty!</b><br>Post something on your profile or join some spaces!')]);
?>
        </div>
        <div class="col-md-4 layout-sidebar-container">
            <?php 
echo \humhub\modules\dashboard\widgets\Sidebar::widget(['widgets' => [[\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/dashboard/dashboard/stream'], ['sortOrder' => 150]]]]);
?>
        </div>
    </div>
</div>
コード例 #2
0
ファイル: index_guest.php プロジェクト: VasileGabriel/humhub
<div class="container">
    <div class="row">
        <div class="col-md-8">
            <?php 
echo \humhub\modules\dashboard\widgets\DashboardContent::widget();
?>
        </div>
        <div class="col-md-4 layout-sidebar-container">
            <?php 
echo \humhub\modules\dashboard\widgets\Sidebar::widget(['widgets' => [[\humhub\modules\directory\widgets\NewMembers::className(), ['showMoreButton' => true], ['sortOrder' => 300]], [\humhub\modules\directory\widgets\NewSpaces::className(), ['showMoreButton' => true], ['sortOrder' => 400]]]]);
?>
        </div>
    </div>
</div>