<?php use_helper('Text'); ?> <?php slot('header_text', $group['display_name']); slot('header_link', sfGuardGroupTable::getInternalUrl($group)); slot("header_subtext", auto_link_text(html_entity_decode($group->blurb))); ?> <?php if ($sf_user->isAuthenticated()) { if (!isset($hide_actions) || !$hide_actions) { ?> <?php slot('header_actions', array('edit' => array('url' => $group->getInternalUrl('edit'), 'condition' => $sf_user->hasCredential('admin') || $sf_user->getGuardUser()->isGroupOwner($group->name)), 'leave group' => array('url' => $group->getInternalUrl('leave'), 'condition' => $sf_user->hasGroup($group->name), 'options' => 'post=true confirm=Are you sure you want to leave this group?'), 'join group' => array('url' => $group->getInternalUrl('join'), 'condition' => !$sf_user->hasGroup($group->name), 'options' => 'post=true'))); } }
function group_link($group) { return link_to($group['display_name'], sfGuardGroupTable::getInternalUrl($group)); }
public function getInternalUrl($action = null, array $params = null) { return sfGuardGroupTable::getInternalUrl($this, $action, $params); }
</form> <br /> <br /> <?php if (isset($results_pager)) { ?> <?php include_partial('global/section', array('title' => 'Results', 'pager' => $results_pager)); ?> <div class="padded"> <?php foreach ($results_pager->execute() as $list) { ?> <?php include_partial('list/oneliner', array('list' => $list, 'actions' => array(array('name' => 'add', 'url' => sfGuardGroupTable::getInternalUrl($group, 'addList', array('list_id' => $list->id)), 'options' => 'post=true')))); ?> <?php } ?> </div> <?php } ?>