Exemple #1
0
<?php

use yii\helpers\Html;
if (count($spaces) > 0) {
    ?>
    <div id="user-spaces-panel" class="panel panel-default members" style="position: relative;">

        <!-- Display panel menu widget -->
        <?php 
    echo \humhub\widgets\PanelMenu::widget(['id' => 'user-spaces-panel']);
    ?>

        <div class="panel-heading">
            <?php 
    echo Yii::t('UserModule.widgets_views_userSpaces', '<strong>Member</strong> in these spaces');
    ?>
        </div>

        <div class="panel-body">
            <?php 
    foreach ($spaces as $space) {
        ?>
                <?php 
        echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 24, 'htmlOptions' => ['class' => 'current-space-image'], 'link' => 'true', 'linkOptions' => ['class' => 'tt', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Html::encode($space->name)]]);
        ?>
            <?php 
    }
    ?>

            <?php 
    if ($showMoreLink) {
Exemple #2
0
<?php

use yii\helpers\Url;
?>
<div class="panel panel-default panel-tour" id="getting-started-panel">
    <?php 
// Temporary workaround till panel widget rewrite in 0.10 verion
$removeOptionHtml = "<li>" . \humhub\widgets\ModalConfirm::widget(array('uniqueID' => 'hide-panel-button', 'title' => '<strong>Remove</strong> tour panel', 'message' => 'This action will remove the tour panel from your dashboard. You can reactivate it at<br>Account settings <i class="fa fa-caret-right"></i> Settings.', 'buttonTrue' => 'Ok', 'buttonFalse' => 'Cancel', 'linkContent' => '<i class="fa fa-eye-slash"></i> ' . Yii::t('TourModule.widgets_views_tourPanel', ' Remove panel'), 'linkHref' => Url::to(["/tour/tour/hide-panel", "ajax" => 1]), 'confirmJS' => '$(".panel-tour").slideToggle("slow")'), true) . "</li>";
?>

    <!-- Display panel menu widget -->
    <?php 
echo \humhub\widgets\PanelMenu::widget(array('id' => 'getting-started-panel', 'extraMenus' => $removeOptionHtml));
?>

    <div class="panel-heading">
        <?php 
echo Yii::t('TourModule.widgets_views_tourPanel', '<strong>Getting</strong> Started');
?>
    </div>
    <div class="panel-body">
        <p>
            <?php 
echo Yii::t('TourModule.widgets_views_tourPanel', 'Get to know your way around the site\'s most important features with the following guides:');
?>
        </p>

        <?php 
// Get states of current guides (to mark them as done)
$interface = Yii::$app->user->getIdentity()->getSetting("interface", "tour");
$spaces = Yii::$app->user->getIdentity()->getSetting("spaces", "tour");
Exemple #3
0
    ?>
        </div>
    </div>
<?php 
}
?>

<?php 
$following = $user->getFollowingObjects(User::find()->limit(16));
if (count($following) > 0) {
    ?>
    <div class="panel panel-default follower" id="profile-following-panel">

        <!-- Display panel menu widget -->
        <?php 
    echo \humhub\widgets\PanelMenu::widget(['id' => 'profile-following-panel']);
    ?>

        <div class="panel-heading">
            <?php 
    echo Yii::t('UserModule.widgets_views_userFollower', '<strong>Following</strong> user');
    ?>
        </div>

        <div class="panel-body">
            <?php 
    foreach ($following as $followingUser) {
        ?>
                <a href="<?php 
        echo $followingUser->getUrl();
        ?>
Exemple #4
0
<?php

use yii\helpers\Html;
?>

<div class="panel panel-default members" id="space-members-panel">
    <?php 
echo \humhub\widgets\PanelMenu::widget(['id' => 'space-members-panel']);
?>
    <div class="panel-heading"><?php 
echo Yii::t('SpaceModule.widgets_views_spaceMembers', '<strong>Space</strong> members');
?>
</div>
    <div class="panel-body">
        <?php 
foreach ($members as $membership) {
    ?>
            <?php 
    $user = $membership->user;
    ?>
            <a href="<?php 
    echo $user->getUrl();
    ?>
">
                <img src="<?php 
    echo $user->getProfileImage()->getUrl();
    ?>
" class="img-rounded tt img_margin"
                     height="24" width="24" alt="24x24" data-src="holder.js/24x24"
                     style="width: 24px; height: 24px;" data-toggle="tooltip" data-placement="top" title=""
                     data-original-title="<?php 
Exemple #5
0
<?php

use yii\helpers\Url;
use yii\helpers\Html;
?>
<div class="panel panel-default members" id="new-people-panel">
    <!-- Display panel menu widget -->
    <?php 
echo \humhub\widgets\PanelMenu::widget(array('id' => 'new-people-panel'));
?>

    <div class="panel-heading">
        <?php 
echo Yii::t('DirectoryModule.widgets_views_memberStats', '<strong>New</strong> people');
?>
    </div>
    <div class="panel-body">
        <?php 
foreach ($newUsers as $user) {
    ?>
            <a href="<?php 
    echo $user->getUrl();
    ?>
">
                <img src="<?php 
    echo $user->getProfileImage()->getUrl();
    ?>
" class="img-rounded tt img_margin"
                     height="40" width="40" alt="40x40" data-src="holder.js/40x40" style="width: 40px; height: 40px;"
                     data-toggle="tooltip" data-placement="top" title=""
                     data-original-title="<?php 
Exemple #6
0
<?php

use yii\helpers\Url;
?>


<div class="panel panel-default members" id="share-panel">
    <?php 
echo \humhub\widgets\PanelMenu::widget(array('id' => 'share-panel'));
?>

    <div class="panel-heading">
        <?php 
echo Yii::t('DashboardModule.widgets_views_share', '<strong>Share</strong> your opinion with others');
?>
    </div>
    <div class="panel-body">

        <p>We are glad that you are using <a href="https://www.humhub.org" target="_blank" class="colorInfo">HumHub</a>. If you like it, please support the project and share HumHub with your friends and colleagues.</p>

        <a class="popup"
           href="http://twitter.com/intent/tweet?status=I'm really impressed by @HumHub. An Open Source Social Network for team communication and collaboration. I love it! https://www.humhub.org">
            <div class="share-icon share-icon-twitter"><i class="fa fa-twitter"></i></div>
            <div class="share-text"><?php 
echo Yii::t('DashboardModule.widgets_views_share', 'Tweet about HumHub');
?>
</div>
        </a>
        <!--<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>-->
        <div class="clearfix"></div>
        <a class="popup" href="http://www.facebook.com/share.php?u=https://www.humhub.org">
Exemple #7
0
<?php

use yii\helpers\Html;
use humhub\models\Setting;
?>

<div class="panel panel-default" id="spaces-statistics-panel">

    <!-- Display panel menu widget -->
    <?php 
\humhub\widgets\PanelMenu::widget(array('id' => 'spaces-statistics-panel'));
?>

    <div class="panel-heading">
        <?php 
echo Yii::t('DirectoryModule.widgets_views_spaceStats', '<strong>Space</strong> stats');
?>
    </div>

    <div class="panel-body">
        <div class="knob-container" style="text-align: center; opacity: 0;">
            <strong><?php 
echo Yii::t('DirectoryModule.widgets_views_spaceStats', 'Total spaces');
?>
</strong><br><br>

            <input id="spaces-total" class="knob" data-width="120" data-displayprevious="true" data-readOnly="true"
                   data-fgcolor="<?php 
echo Setting::Get('colorPrimary');
?>
" data-skin="tron"
Exemple #8
0
<div class="panel panel-default" id="user-statistics-panel">

    <!-- Display panel menu widget -->
<?php 
echo \humhub\widgets\PanelMenu::widget(array('id' => 'user-statistics-panel'));
?>

    <div class="panel-heading">
<?php 
echo Yii::t('DirectoryModule.widgets_views_memberStats', '<strong>Member</strong> stats');
?>
    </div>
    <div class="panel-body">
        <div class="knob-container" style="text-align: center; opacity: 0;">
            <strong><?php 
echo Yii::t('DirectoryModule.widgets_views_memberStats', 'Total users');
?>
</strong><br><br>

            <input id="user-total" class="knob" data-width="120" data-height="140" data-displayprevious="true" data-readOnly="true"
                   data-fgcolor="<?php 
echo Yii::$app->settings->get('colorPrimary');
?>
" data-skin="tron"
                   data-thickness=".2" value="<?php 
echo $statsTotalUsers;
?>
"
                   data-max="<?php 
echo $statsTotalUsers;
?>
<?php

use yii\helpers\Html;
if (count($friends) > 0) {
    ?>
    <div class="panel panel-default follower" id="profile-follower-panel">
        <?php 
    echo \humhub\widgets\PanelMenu::widget(['id' => 'profile-friends-panel']);
    ?>

        <div class="panel-heading"><strong><?php 
    echo Yii::t('FriendshipModule.base', 'Friends');
    ?>
</strong> (<?php 
    echo $totalCount;
    ?>
)</div>

        <div class="panel-body">
            <?php 
    foreach ($friends as $friend) {
        ?>
                <a href="<?php 
        echo $friend->getUrl();
        ?>
">
                    <img src="<?php 
        echo $friend->getProfileImage()->getUrl();
        ?>
" class="img-rounded tt img_margin"
                         height="24" width="24" alt="24x24" data-src="holder.js/24x24"