示例#1
0
    ?>
</div>
<?php 
}
?>

<?php 
if ($sf_user->isAuthenticated()) {
    ?>
    <div class="point-actions">
        <h2><?php 
    echo link_to_follow($event, $sf_user->getGuardUser(), 'Я иду!', 'Я передумал идти');
    ?>
</h2>
    </div>
<?php 
}
?>

<!--
<?php 
echo link_to_event_edit($event);
?>
-->
<?php 
echo link_to_user($event->getUser());
echo link_to_comments($event, sprintf('комментарии (%d)', $event->COMMENTS_COUNT));
echo link_to_photos($event, sprintf('фото (%d)', $event->IMAGES_COUNT));
?>

示例#2
0
    foreach ($events as $event) {
        ?>
    <div class="item">
        <?php 
        echo link_to($event, 'event_show', $event, array('class' => 'ajax'));
        ?>
        <span class="event-fire-at"><?php 
        echo human_date($event->getFireAt(), true);
        ?>
</span>
    </div>
    <?php 
    }
    ?>
</div>
<?php 
}
?>

<div class="point-infowindow-desc">
    <?php 
echo link_to_user($place->getUser());
?>
    <?php 
echo link_to_comments($place, sprintf('комментарии (%d)', $place->COMMENTS_COUNT));
?>
    <?php 
echo link_to_photos($place, sprintf('фото (%d)', $place->IMAGES_COUNT));
?>
</div>