Exemplo n.º 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]);
 }
Exemplo n.º 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>
Exemplo n.º 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' : '']);
Exemplo n.º 4
0
<?php

echo \humhub\modules\post\widgets\Form::widget(['contentContainer' => $space]);
echo \humhub\modules\content\widgets\Stream::widget(array('contentContainer' => $space, 'streamAction' => '/space/space/stream', 'messageStreamEmpty' => $space->canWrite() ? Yii::t('SpaceModule.views_space_index', '<b>This space is still empty!</b><br>Start by posting something here...') : Yii::t('SpaceModule.views_space_index', '<b>This space is still empty!</b>'), 'messageStreamEmptyCss' => $space->canWrite() ? 'placeholder-empty-stream' : ''));
Exemplo n.º 5
0
<div class="container">
    <div class="row">
        <div class="col-md-8">
            <?php 
echo \humhub\modules\content\widgets\Stream::widget(['streamAction' => '//dashboard/dashboard/stream', 'showFilters' => false, 'messageStreamEmpty' => Yii::t('DashboardModule.views_dashboard_index_guest', '<b>No public contents to display found!</b>')]);
?>

        </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>
Exemplo n.º 6
0
<?php

echo \humhub\modules\post\widgets\Form::widget(['contentContainer' => $user]);
echo \humhub\modules\content\widgets\Stream::widget(array('contentContainer' => $user, 'streamAction' => '//user/profile/stream', 'messageStreamEmpty' => $user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost()) ? Yii::t('UserModule.views_profile_index', '<b>Your profile stream is still empty</b><br>Get started and post something...') : Yii::t('UserModule.views_profile_index', '<b>This profile stream is still empty!</b>'), 'messageStreamEmptyCss' => $user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost()) ? 'placeholder-empty-stream' : ''));
Exemplo n.º 7
0
<?php

echo \humhub\modules\notes\widgets\WallCreateForm::widget(['contentContainer' => $contentContainer]);
?>

<?php 
echo \humhub\modules\content\widgets\Stream::widget(array('contentContainer' => $contentContainer, 'streamAction' => '/notes/note/stream', 'messageStreamEmpty' => Yii::t('NotesModule.widgets_views_stream', 'There are no notes yet!'), 'messageStreamEmptyCss' => $contentContainer->canWrite() ? 'placeholder-empty-stream' : '', 'filters' => []));
?>



Exemplo n.º 8
0
<?php

echo \humhub\modules\polls\widgets\WallCreateForm::widget(['contentContainer' => $contentContainer, 'submitButtonText' => Yii::t('PollsModule.widgets_PollFormWidget', 'Ask')]);
?>

<?php 
echo \humhub\modules\content\widgets\Stream::widget(array('contentContainer' => $contentContainer, 'streamAction' => '/polls/poll/stream', 'messageStreamEmpty' => $contentContainer->canWrite() ? Yii::t('PollsModule.widgets_views_stream', '<b>There are no polls yet!</b><br>Be the first and create one...') : Yii::t('PollsModule.widgets_views_stream', '<b>There are no polls yet!</b>'), 'messageStreamEmptyCss' => $contentContainer->canWrite() ? 'placeholder-empty-stream' : '', 'filters' => ['filter_polls_notAnswered' => Yii::t('PollsModule.widgets_views_stream', 'No answered yet'), 'filter_entry_mine' => Yii::t('PollsModule.widgets_views_stream', 'Asked by me'), 'filter_visibility_public' => Yii::t('PollsModule.widgets_views_stream', 'Only public polls'), 'filter_visibility_private' => Yii::t('PollsModule.widgets_views_stream', 'Only private polls')]));