<?php 
echo $project->getDepartment();
?>
<br />
    <?php 
$event = $project->getLastUpdated();
echo ucfirst(distance_of_time_in_words($event->getCreatedAt('U')) . ' ago'), ' (' . $event->getCategory() . ')';
?>
<br />
  </div>
  <div style="float: right; right:10px; bottom: 10px;display:inline;">
    <?php 
if ($sf_user->isAuthenticated()) {
    ?>
      <span>Favorite <?php 
    echo link_to_favorite($project, array());
    ?>
</span> |
      <?php 
    if ($sf_user->getProfile()->isSubscribedToHistoryGroup($project->getHistoryGroup()) == false) {
        ?>
        <span>Subscribe <?php 
        echo link_to(icon_tag('rss'), 'user/subscribeToFeed?feed=' . $project->getHistoryGroup()->getUuid());
        ?>
</span>
      <?php 
    } else {
        ?>
        <span>Unsubscribe <?php 
        echo link_to(icon_tag('rss'), 'user/unsubscribeToFeed?feed=' . $project->getHistoryGroup()->getUuid());
        ?>
Example #2
0
<?php

use_helper('Global');
echo link_to_favorite($object, array());
/*
$type = sfConfig::get('app_sfPropelActAsStarredBehaviorPlugin_content_type',null);

if (!$type || $type == 'image')
{
	$content =  ($object->isStarred())?image_tag(sfConfig::get('app_sfPropelActAsStarredBehaviorPlugin_image_on','/sfPropelActAsStarredBehaviorPlugin/images/star_on.gif')):image_tag(sfConfig::get('app_sfPropelActAsStarredBehaviorPlugin_image_off','/sfPropelActAsStarredBehaviorPlugin/images/star_off.gif'));
}
else
{
	$content = ($object->isStarred())?sfConfig::get('app_sfPropelActAsStarredBehaviorPlugin_content_on'):sfConfig::get('app_sfPropelActAsStarredBehaviorPlugin_content_off');
}
echo $content
// $image =  ($object->isStarred())?image_tag(sfConfig::get('app_sfPropelActAsStarredBehaviorPlugin_image_on','/sfPropelActAsStarredBehaviorPlugin/images/star_on.gif')):image_tag(sfConfig::get('app_sfPropelActAsStarredBehaviorPlugin_image_off','/sfPropelActAsStarredBehaviorPlugin/images/star_off.gif'));
// echo link_to($image,'sfStar/starit?model='.$model.'&id='.$id,'class=sf_star');
*/