Ejemplo n.º 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>
Ejemplo n.º 2
0
<?php

namespace humhub\modules\humhubchat;

return ['id' => 'humhub-chat', 'class' => 'humhub\\modules\\humhubchat\\Module', 'namespace' => 'humhub\\modules\\humhubchat', 'events' => [['class' => \humhub\commands\CronController::className(), 'event' => \humhub\commands\CronController::EVENT_ON_DAILY_RUN, 'callback' => ['humhub\\modules\\humhubchat\\Events', 'onDailyCron']], ['class' => \humhub\modules\dashboard\widgets\Sidebar::className(), 'event' => \humhub\modules\dashboard\widgets\Sidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\humhubchat\\Events', 'addChatFrame')], ['class' => \humhub\modules\space\widgets\Sidebar::className(), 'event' => \humhub\modules\space\widgets\Sidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\humhubchat\\Events', 'addChatFrame')], ['class' => \humhub\modules\user\widgets\ProfileSidebar::className(), 'event' => \humhub\modules\user\widgets\ProfileSidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\humhubchat\\Events', 'addChatFrame')], ['class' => \humhub\modules\admin\widgets\AdminMenu::className(), 'event' => \humhub\modules\admin\widgets\AdminMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\humhubchat\\Events', 'onAdminMenuInit']]]];
Ejemplo n.º 3
0
<?php

use humhub\modules\calendar\Module;
use humhub\modules\calendar\Events;
use humhub\modules\space\widgets\Menu;
use humhub\modules\user\widgets\ProfileMenu;
use humhub\modules\space\widgets\Sidebar;
use humhub\modules\user\widgets\ProfileSidebar;
use humhub\widgets\TopMenu;
return array('id' => 'calendar', 'class' => 'humhub\\modules\\calendar\\Module', 'namespace' => 'humhub\\modules\\calendar', 'events' => array(array('class' => Menu::className(), 'event' => Menu::EVENT_INIT, 'callback' => array('humhub\\modules\\calendar\\Events', 'onSpaceMenuInit')), array('class' => ProfileMenu::className(), 'event' => ProfileMenu::EVENT_INIT, 'callback' => array('humhub\\modules\\calendar\\Events', 'onProfileMenuInit')), array('class' => Sidebar::className(), 'event' => Sidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\calendar\\Events', 'onSpaceSidebarInit')), array('class' => ProfileSidebar::className(), 'event' => ProfileSidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\calendar\\Events', 'onProfileSidebarInit')), array('class' => humhub\modules\dashboard\widgets\Sidebar::className(), 'event' => humhub\modules\dashboard\widgets\Sidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\calendar\\Events', 'onDashboardSidebarInit')), array('class' => TopMenu::className(), 'event' => TopMenu::EVENT_INIT, 'callback' => array('humhub\\modules\\calendar\\Events', 'onTopMenuInit'))));
Ejemplo n.º 4
0
<?php

use humhub\modules\space\widgets\Menu;
use humhub\modules\user\widgets\ProfileMenu;
use humhub\modules\user\widgets\ProfileSidebar;
use humhub\modules\space\widgets\Sidebar;
return ['id' => 'linklist', 'class' => 'humhub\\modules\\linklist\\Module', 'namespace' => 'humhub\\modules\\linklist', 'events' => [array('class' => Menu::className(), 'event' => Menu::EVENT_INIT, 'callback' => array('humhub\\modules\\linklist\\Module', 'onSpaceMenuInit')), array('class' => ProfileMenu::className(), 'event' => ProfileMenu::EVENT_INIT, 'callback' => array('humhub\\modules\\linklist\\Module', 'onProfileMenuInit')), array('class' => Sidebar::className(), 'event' => Sidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\linklist\\Module', 'onSpaceSidebarInit')), array('class' => ProfileSidebar::className(), 'event' => ProfileSidebar::EVENT_INIT, 'callback' => array('humhub\\modules\\linklist\\Module', 'onProfileSidebarInit'))]];