Hide private spaces in Directory -> New Spaces panel

This commit is contained in:
andystrobel 2014-09-22 12:31:33 +02:00
parent ec04639f9f
commit 2b0e77cb84
2 changed files with 24 additions and 16 deletions

View File

@ -17,12 +17,16 @@
</div>
<div class="panel-body">
<?php foreach ($newSpaces as $space) : ?>
<a href="<?php echo $space->getUrl(); ?>">
<img src="<?php echo $space->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="<strong><?php echo $space->name; ?></strong>">
</a>
<?php if ($space->visibility == Space::VISIBILITY_NONE && !$space->isMember()) { ?>
<?php } else { ?>
<a href="<?php echo $space->getUrl(); ?>">
<img src="<?php echo $space->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="<strong><?php echo $space->name; ?></strong>">
</a>
<?php } ?>
<?php endforeach; ?>
</div>
</div>

View File

@ -17,12 +17,16 @@
</div>
<div class="panel-body">
<?php foreach ($newSpaces as $space) : ?>
<a href="<?php echo $space->getUrl(); ?>">
<img src="<?php echo $space->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="<strong><?php echo $space->name; ?></strong>">
</a>
<?php if ($space->visibility == Space::VISIBILITY_NONE && !$space->isMember()) { ?>
<?php } else { ?>
<a href="<?php echo $space->getUrl(); ?>">
<img src="<?php echo $space->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="<strong><?php echo $space->name; ?></strong>">
</a>
<?php } ?>
<?php endforeach; ?>
</div>
</div>
@ -75,10 +79,10 @@
<hr>
<?php if (isset($statsSpaceMostMembers->name)) { ?>
<div style="text-align: center;">
<strong><?php echo Yii::t('DirectoryModule.base', 'Most members'); ?>:
</strong> <?php echo $statsSpaceMostMembers->name; ?>
</div>
<div style="text-align: center;">
<strong><?php echo Yii::t('DirectoryModule.base', 'Most members'); ?>:
</strong> <?php echo $statsSpaceMostMembers->name; ?>
</div>
<?php } ?>
</div>
</div>