示例#1
0
?>
            <br/>
        </div>

        <?php 
if (isset($this->context->hideSidebar) && $this->context->hideSidebar) {
    ?>
            <div class="col-md-10 layout-content-container">
                <?php 
    echo $content;
    ?>
            </div>
        <?php 
} else {
    ?>
            <div class="col-md-7 layout-content-container">
                <?php 
    echo $content;
    ?>
            </div>
            <div class="col-md-3 layout-sidebar-container">
                <?php 
    echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [[\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/space/space/stream', 'contentContainer' => $space], ['sortOrder' => 10]], [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 20]]]]);
    ?>
            </div>
        <?php 
}
?>
    </div>
</div>
示例#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>