Example #1
0
<?php

use humhub\modules\friendship\Events;
use humhub\modules\user\widgets\AccountMenu;
return ['id' => 'friendship', 'class' => \humhub\modules\friendship\Module::className(), 'isCoreModule' => true, 'events' => [array('class' => AccountMenu::className(), 'event' => AccountMenu::EVENT_INIT, 'callback' => array(Events::className(), 'onAccountMenuInit'))]];
Example #2
0
<div class="container">
    <div class="row">
        <div class="col-md-2">
            <?php 
echo \humhub\modules\user\widgets\AccountMenu::widget();
?>
        </div>
        <div class="col-md-7">
            <div class="panel panel-default">
                <?php 
echo $content;
?>
            </div>
        </div>
        <div class="col-md-3">
        </div>
    </div>
</div>
<?php

use humhub\modules\user\widgets\AccountMenu;
use humhub\modules\admin\widgets\AdminMenu;
use humhub\widgets\TopMenu;
return ['id' => 'custom_pages', 'class' => 'humhub\\modules\\custom_pages\\Module', 'namespace' => 'humhub\\modules\\custom_pages', 'events' => [['class' => AdminMenu::className(), 'event' => AdminMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\custom_pages\\Events', 'onAdminMenuInit']], ['class' => TopMenu::className(), 'event' => TopMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\custom_pages\\Events', 'onTopMenuInit']], ['class' => AccountMenu::className(), 'event' => AccountMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\custom_pages\\Events', 'onAccountMenuInit']]]];