コード例 #1
0
ファイル: _layout.php プロジェクト: alefernie/intranet
            <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\user\widgets\ProfileSidebar::widget(['user' => $this->context->user, 'widgets' => [[\humhub\modules\user\widgets\UserTags::className(), ['user' => $this->context->user], ['sortOrder' => 10]], [\humhub\modules\user\widgets\UserSpaces::className(), ['user' => $this->context->user], ['sortOrder' => 20]], [\humhub\modules\user\widgets\UserFollower::className(), ['user' => $this->context->user], ['sortOrder' => 30]]]]);
    /*
     $this->widget('application.modules_core.user.widgets.ProfileSidebarWidget', array(
     'widgets' => array(
     array('application.modules_core.user.widgets.UserTagsWidget', array('user' => $this->context->getUser()), array('sortOrder' => 10)),
     array('application.modules_core.user.widgets.UserSpacesWidget', array('user' => $this->context->getUser())),
     array('application.modules_core.user.widgets.UserFollowerWidget', array('user' => $this->context->getUser())),
     )
     ));
    *
    */
    ?>
            </div>
        <?php 
}
?>
コード例 #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']]]];
コード例 #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'))));
コード例 #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'))]];