<?php slot('header_text', $entity['name']); slot('header_link', EntityTable::getInternalUrl($entity)); slot('description_meta', EntityTable::generateMetaDescription($entity)); ?> <?php $actions = array(); if (!$entity['is_deleted'] && isset($show_actions) && $show_actions) { ?> <?php $actions = array('add relationship' => array('url' => EntityTable::getInternalUrl($entity, 'addRelationship')), 'edit' => array('url' => EntityTable::getInternalUrl($entity, 'edit')), 'flag' => array('url' => 'home/contact?type=flag'), 'remove' => array('url' => EntityTable::getInternalUrl($entity, 'remove'), 'options' => 'post=true confirm=Are you sure you want to remove this ' . strtolower(EntityTable::getPrimaryExtensionName($entity)) . '?', 'credential' => 'deleter')); ?> <?php if ($entity['primary_ext'] == 'Person' && class_exists('OsEntityTransaction') && $sf_user->hasCredential('importer')) { ?> <?php $donations = array('url' => EntityTable::getInternalUrl($entity, 'matchDonations'), 'condition' => $sf_user->hasCredential('importer')); ?> <?php if (!OsEntityTransactionTable::countByEntityId($entity['id']) > 0) { ?> <?php $donations['disabled'] = true; ?> <?php } ?>