Example #1
0
 /**
  * Generates HTML to display a given array of entries
  *
  * @param array $entries an array of entries to be formatted
  * @return string HTML markup to display the entry
  */
 protected function generate_template_tags()
 {
     FB::log(debug_backtrace());
     parent::generate_template_tags();
     // Add custom tags here
     foreach ($this->entries as $entry) {
         $entry->comment_count = $this->get_comment_count($entry->entry_id);
         $entry->comment_text = $entry->comment_count === 1 ? 'comment' : 'comments';
         $entry->tags = $this->_format_tags($entry->tags);
     }
 }
Example #2
0
 /**
  * Generates HTML to display a given array of entries
  *
  * @param array $entries an array of entries to be formatted
  * @return string HTML markup to display the entry
  */
 protected function generate_template_tags()
 {
     parent::generate_template_tags();
     // Add custom tags here
     foreach ($this->entries as $entry) {
         $entry->comment_count = $this->get_comment_count($entry->entry_id);
         $entry->comment_text = $entry->comment_count === 1 ? 'comment' : 'comments';
         $entry->tags = $this->_format_tags($entry->tags);
         // For full entries, load comments and the comment form
         if (!empty($this->url1)) {
             $comments = new Comments(array('comments'));
             $entry->comments = $comments->display_entry_comments($entry->entry_id);
         }
     }
 }
Example #3
0
 /**
  * Generates HTML to display a given array of entries
  *
  * @param array $entries an array of entries to be formatted
  * @return string HTML markup to display the entry
  */
 protected function generate_template_tags()
 {
     parent::generate_template_tags();
 }
Example #4
0
 /**
  * Generates HTML to display a given array of entries
  *
  * @param array $entries an array of entries to be formatted
  * @return string HTML markup to display the entry
  */
 protected function generate_template_tags()
 {
     parent::generate_template_tags();
     // Add custom tags here
 }