Esempio n. 1
0
<ul id="rss_links">
  <li><?php 
echo link_to(__('featured questions'), '@frontpage_questions');
?>
 </li>
  <li><?php 
echo link_to(__('popular questions'), '@popular_questions');
?>
 <?php 
echo link_to_rss('popular questions', 'feed/popular');
?>
</li>
  <li><?php 
echo link_to(__('latest questions'), '@recent_questions');
?>
 <?php 
echo link_to_rss('latest questions', '@feed_recent_questions');
?>
</li>
  <li><?php 
echo link_to(__('latest answers'), '@recent_answers');
?>
 <?php 
echo link_to_rss('latest answers', '@feed_recent_answers');
?>
</li>
</ul>
Esempio n. 2
0
<div class="question">
  <div class="interested_block" id="block_<?php 
echo $question->getId();
?>
">
    <?php 
echo include_partial('interested_user', array('question' => $question));
?>
  </div>

  <h2><?php 
echo esc_entities($question->getTitle());
?>
&nbsp;<?php 
echo link_to_rss('this question feed', '@feed_question?stripped_title=' . $question->getStrippedTitle());
?>
</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 $question->getHtmlBody();
?>
    <div class="options" id="report_question_<?php 
echo $question->getId();