remove all content_actions for people not loged in?
Posted: April 2nd, 2008, 1:13 pm
I have found the section in GuMax.php
But I dont see how that is leaving some content_actions and not others... is there an array somewhere that I am not finding?
I want to hide everything in the content actions group from users who are not logged in.
Code: Select all
<div id="gumax-content-actions">
<ul>
<?php $lastkey = end(array_keys($this->data['content_actions'])) ?>
<?php foreach($this->data['content_actions'] as $key => $action) if($this->data['loggedin']==1) { ?>
<li id="ca-<?php echo Sanitizer::escapeId($key) ?>" <?php
if($action['class']) { ?>class="<?php echo htmlspecialchars($action['class']) ?>"<?php } ?>
><a href="<?php echo htmlspecialchars($action['href']) ?>"><?php
echo htmlspecialchars($action['text']) ?></a> <?php
// if($key != $lastkey) echo "•" ?></li>
<?php } ?>
</ul>
</div>
I want to hide everything in the content actions group from users who are not logged in.