?> </ul> <div id="header"> <a id="logo" href="<?php echo url_for('homepage'); ?> "></a> <div id="account"> <?php if ($sf_user->isAuthenticated()) { ?> <div id="actions"> Привет, <?php echo link_to_profile($sf_user->getGuardUser()->getUsername()); ?> [ <strong><?php echo link_to('выйти', 'signout'); ?> </strong> ] <?php echo link_to('<span>отметить место</span>', 'place_new', array(), array('id' => 'add-place', 'class' => 'ajax action')); ?> <?php echo link_to('<span>добавить событие</span>', 'event_new', array(), array('id' => 'add-event', 'class' => 'ajax action')); ?> </div> <?php
<div id="answers"> <?php foreach ($answer_pager->getResults() as $answer) { ?> <div class="answer"> <h2><?php echo link_to_question($answer->getQuestion()); ?> </h2> <?php echo $answer->getHtmlBody(); ?> <div class="subtitle" style="margin-top: -8px"> <?php echo __('answered by %1% on %2%', array('%1%' => link_to_profile($answer->getUser()), '%2%' => format_date($answer->getCreatedAt(), 'f'))); ?> </div> <div class="options"> <?php include_partial('moderator/answer_options', array('answer' => $answer)); ?> </div> </div> <?php } ?> </div> <div id="question_pager" class="right"> <?php
echo $question->getId(); ?> "> <?php echo include_partial('question/interested_user', array('question' => $question)); ?> </div> <h2><?php echo link_to_question($question); ?> </h2> <div class="subtitle"> <?php echo __('asked by %1% on %2%', array('%1%' => link_to_profile($question->getUser()), '%2%' => format_date($question->getCreatedAt(), 'f'))); ?> </div> <div class="question_body"> <?php echo truncate_text(strip_tags($question->getHtmlBody()), 200); ?> <div class="options"> <?php if ($question->getAnswers()) { ?> <?php if (count($question->getAnswers()) > 1) {