Esempio n. 1
0
<?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']) {
    ?>
 &sdot; $<?php 
    echo $amount;
}
?>

<?php 
include_partial('relationship/onelinerdate', array('relationship' => $relationship));
Esempio n. 2
0
    echo $related['name'];
    ?>
</strong>
    &nbsp;
    <?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 
}
?>