Exemplo n.º 1
0
$i = 0;
$total = count($category);
foreach ($category as $row) {
    $i++;
    ?>
                    <div class="en-box row-fluid">
                        <div class="row-fluid en-box-title">
                            <?php 
    echo "<a class='title_cate' href='" . Yii::app()->getBaseUrl(true) . "/hoc-va-choi/" . $row->slug . "-" . $row->id . ".html'>" . $row->title . "</a>";
    ?>
                        </div>
                        
                        <?php 
    echo "<div class='row-fluid'>";
    if ($row->image != '') {
        echo "<div class='span3'><img src='" . Libraries::validateURL($row->image) . "'></div>";
    }
    if ($row->desc != '') {
        if ($row->image != '') {
            echo "<div class='span9'>";
        } else {
            echo "<div class='span12'>";
        }
        echo $row->desc . "</div>";
    }
    ?>
                    </div>
                        <?php 
    $this->widget('sub_news', array('cat_id' => $row->id, 'type' => 'play', 'slug' => 'hoc-va-choi'));
    ?>
                    </div><!-- end .en-box //ngu phap -->
Exemplo n.º 2
0
        ?>
" ><img class="" src="<?php 
        echo Yii::app()->getBaseUrl(true) . $v->image;
        ?>
" /></a>
                           <?php 
    } else {
        ?>
                                         <a href="<?php 
        echo Yii::app()->getBaseUrl(true) . "/hoc-va-choi/" . $link . $root->slug . "-" . $root->id . "/" . $v->slug . "-" . $v->id . ".html";
        ?>
" class="thumbnail" title="<?php 
        echo $v->title;
        ?>
" ><img class="" src="<?php 
        echo Libraries::validateURL($v->image);
        ?>
" /></a>
                            <?php 
    }
    ?>
                       
                                
                       
                            </div>
                        </div>
                        <div class="row-fluid box-feature">
                           
                        </div> 
                    </div><!-- end .en-box-feature -->
                </div><!-- end .en-box //ngu phap -->