$feed_array = (array) $feed_output->getItems();
    ?>
 
<ul>
    <?php 
    for ($i = 0; $i < $max_count; $i++) {
        ?>
    <li><a href="<?php 
        echo $feed_array[$i]->url;
        ?>
" target="_blank"><?php 
        echo $feed_array[$i]->title;
        ?>
</a><br />
			<span class="small"><?php 
        echo standard_date_format($feed_array[$i]->date->getTimestamp());
        ?>
 </span>
		</li>
    <?php 
    }
    ?>
</ul>



</div>
<?php 
}
?>
    
Example #2
0
 public function display_subject()
 {
     $this->load_aspects();
     $output = '<h1>' . $this->name . ' <span class="small">(<a href="index.php?p=form_edit_subject&id=' . $this->id . '">Edit</a>)</span></h1>';
     $output .= '<p class="small">Subject type: ' . $this->what_am_i() . '</p>';
     $output .= '<p class="small">Created: ' . standard_date_format(strtotime($this->date_created)) . '</p>';
     $output .= '<p class="small">Updated: ' . standard_date_format(strtotime($this->date_updated)) . '</p>';
     $output .= '<a href="index.php?p=form_add_aspect&id=' . $this->id . '" class="btn btn-primary">Add a new aspect</a>';
     $output .= '<hr />';
     foreach ($this->aspects as $aspect) {
         $output .= $aspect->display_aspect();
     }
     $output .= $this->print_relationships();
     $output .= '<a name="relationship_anchor" id="relationship_anchor"></a>';
     return $output;
 }