Exemplo n.º 1
0
                    itemscope="" itemtype="http://schema.org/Article">

                    <h1 class="post-tile entry-title" itemprop="name"><?php 
echo $data['row']['title'];
?>
</h1>

                    <div class="mom-post-meta single-post-meta"></div>
                    <div class="entry-content">
                        <?php 
echo $row['content'];
?>

                        <?php 
//hien thi nguon
$list_source = getNewsSource();
echo '<div class="clear"></div>';
echo '<p style="text-align: right">Source: <strong>' . $list_source[$row['source_id']] . '</strong></p>';
$user = Yii::app()->session['user'];
if (!empty($user)) {
    echo '<hr />';
    echo '<a href="/backend/archive/edit?id=' . $row['id'] . '">Edit</a>';
    echo '<hr />';
}
$gallery = json_decode($row['gallery'], true);
if (!empty($gallery)) {
    $this->renderPartial('//detail/gallery', array('data' => $data));
}
?>

Exemplo n.º 2
0
 public function getSource()
 {
     return getNewsSource();
 }