Example #1
0
    <?php 
    echo checkbox_tag('entity_ids[]', $ae['entity_id'], $ae['is_verified']);
    ?>
 
    <a style="font-size: 10px;" href="javascript:void(0);" onclick="insertEntityLink(<?php 
    echo $ae->Entity->id;
    ?>
, <?php 
    echo $article['id'];
    ?>
);">link</a> 
    <?php 
    echo entity_link($ae->Entity, null, true, null, array('target' => '_blank'));
    ?>
    <?php 
    if ($excerpt = excerpt_matches($article->getCleanerBody(), array($ae['original_name']))) {
        ?>
      (<?php 
        echo highlight_matches($excerpt, array($ae['original_name']));
        ?>
)
    <?php 
    }
    ?>
    <br />
  <?php 
}
?>
  <br />
  <?php 
echo submit_tag('Save', 'class=button_small');
Example #2
0
        <?php 
    echo entity_link($entity);
    ?>
&nbsp;
        <?php 
    if (isset($search)) {
        ?>
          <?php 
        $terms = explode(' ', str_replace('*', '', $search));
        ?>
          <em><?php 
        echo highlight_matches($entity['blurb'], $terms);
        ?>
</em>
          <?php 
        if ($summary = excerpt_matches($entity['summary'], $terms)) {
            ?>
            <div class="search-summary"><?php 
            echo highlight_matches($summary, $terms);
            ?>
</div>
          <?php 
        }
        ?>
        <?php 
    } else {
        ?>
          <em><?php 
        echo $entity['blurb'];
        ?>
</em>