<?php if ($description1 = $relationship['description1']) { ?> <?php echo $description1 == "Campaign Contribution" ? $relationship['filings'] . " contribution" . ($relationship['filings'] > 1 ? "s" : "") : $description1; } else { ?> <?php echo RelationshipTable::getCategoryDefaultDescription($relationship); } ?> <?php if ($amount = $relationship['amount']) { ?> ⋅ $<?php echo $amount; } ?> <?php include_partial('relationship/onelinerdate', array('relationship' => $relationship));
echo $related['name']; ?> </strong> <?php $descriptions = array(); ?> <?php foreach ($related['Relationships'] as $rel) { ?> <?php $description = $rel['entity1_id'] == $entity['id'] ? $rel['description2'] : $rel['description1']; ?> <?php if (!$description) { $description = RelationshipTable::getCategoryDefaultDescription($rel); } ?> <?php $descriptions[] = $description; ?> <?php } ?> <?php echo implode(', ', $descriptions); ?> <br /> <?php } ?>