Beispiel #1
0
                        <span class="count"><?php 
echo count($user->spaces);
?>
</span><br>
                        <span class="title"><?php 
echo Yii::t('UserModule.widgets_views_profileHeader', 'Spaces');
?>
</span>
                    </div>

                </div>
                <!-- end: User statistics -->

                <div class="controls controls-header text-right col-sm-12 col-md-6">
                    <?php 
echo \humhub\modules\user\widgets\ProfileHeaderControls::widget(array('user' => $user, 'widgets' => array(array(\humhub\modules\user\widgets\ProfileEditButton::className(), array('user' => $user), array()), array(\humhub\modules\user\widgets\UserFollowButton::className(), array('user' => $user), array()))));
?>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- start: Error modal -->
<div class="modal" id="uploadErrorModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-dialog-extra-small animated pulse">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title"
<?php

use humhub\modules\user\models\User;
use humhub\widgets\TopMenu;
use humhub\widgets\NotificationArea;
use humhub\modules\user\widgets\ProfileHeaderControls;
return ['id' => 'mail', 'class' => 'humhub\\modules\\mail\\Module', 'namespace' => 'humhub\\modules\\mail', 'events' => [['class' => User::className(9), 'event' => User::EVENT_BEFORE_DELETE, 'callback' => ['humhub\\modules\\mail\\Events', 'onUserDelete']], ['class' => TopMenu::className(), 'event' => TopMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\mail\\Events', 'onTopMenuInit']], ['class' => NotificationArea::className(), 'event' => NotificationArea::EVENT_INIT, 'callback' => ['humhub\\modules\\mail\\Events', 'onNotificationAddonInit']], ['class' => ProfileHeaderControls::className(), 'event' => ProfileHeaderControls::EVENT_INIT, 'callback' => ['humhub\\modules\\mail\\Events', 'onProfileHeaderControlsInit']]]];