예제 #1
0
 public function run()
 {
     if ($this->showProfilePostForm) {
         echo \humhub\modules\post\widgets\Form::widget(['contentContainer' => $this->contentContainer]);
     }
     if ($this->contentContainer === null) {
         $messageStreamEmpty = Yii::t('DashboardModule.views_dashboard_index_guest', '<b>No public contents to display found!</b>');
     } else {
         $messageStreamEmpty = Yii::t('DashboardModule.views_dashboard_index', '<b>Your dashboard is empty!</b><br>Post something on your profile or join some spaces!');
     }
     echo \humhub\modules\content\widgets\Stream::widget(['streamAction' => '//dashboard/dashboard/stream', 'showFilters' => false, 'messageStreamEmpty' => $messageStreamEmpty]);
 }
예제 #2
0
<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>
예제 #3
0
<?php

echo \humhub\modules\post\widgets\Form::widget(['contentContainer' => $space]);
$emptyMessage = '';
if ($canCreatePosts) {
    $emptyMessage = Yii::t('SpaceModule.views_space_index', '<b>This space is still empty!</b><br>Start by posting something here...');
} elseif ($isMember) {
    $emptyMessage = Yii::t('SpaceModule.views_space_index', '<b>This space is still empty!</b>');
} else {
    $emptyMessage = Yii::t('SpaceModule.views_space_index', '<b>You are not member of this space and there is no public content, yet!</b>');
}
echo \humhub\modules\content\widgets\Stream::widget(['contentContainer' => $space, 'streamAction' => '/space/space/stream', 'messageStreamEmpty' => $emptyMessage, 'messageStreamEmptyCss' => $canCreatePosts ? 'placeholder-empty-stream' : '']);