Beispiel #1
0
<?php

use yii\helpers\Html;
use app\components\Ncontent;
use app\components\counter;
use app\components\Ndate;
use yii\helpers\Url;
//use kartik\social\GoogleAnalytics;
//echo GoogleAnalytics::widget(['objectName' => 'ga']);
$this->title = $model->title;
$this->registerMetaTag(['description' => $model->title]);
$counter = new counter();
$ndate = new Ndate();
?>
<section id="page-title">

    <div class="container clearfix">
        <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    </div>

</section><!-- #page-title end -->
<!-- Content
============================================= -->
<section id="content">

    <div class="content-wrap">

        <div class="container clearfix">
Beispiel #2
0
<?php

use yii\helpers\Url;
use app\components\Ndate;
use app\components\Ncontent;
use app\components\counter;
use kartik\social\FacebookPlugin;
$d = new Ndate();
$cnt = new counter();
$this->title = $model->titles;
$this->registerMetaTag(['description' => $model->titles]);
?>
<!-- Page Title
                ============================================= -->
<section id="page-title">

    <div class="container clearfix">
        <h1>แหล่งท่องเที่ยวจังหวัดหนองคาย</h1>
        <span>หมวด: <?php 
echo app\models\TblGuides::getCat($model->cid);
?>
</span>
    </div>

</section><!-- #page-title end -->
<section id="content">
    <div class="content-wrap">
        <div class="container clearfix">
            <div class="postcontent nobottommargin clearfix">
                <h4><?php 
echo $model->titles;
Beispiel #3
0
    </div>

</section><!-- #page-title end -->

<section id="content">
    <div class="content-wrap">
        <div class="container clearfix">
            <!-- Post Content
            ============================================= -->
            <div class="postcontent nobottommargin clearfix">
                <!-- Posts
                ============================================= -->
                <div id="posts" class="small-thumbs">
                    <?php 
foreach ($model as $r) {
    $d = new Ndate();
    $cont = new Ncontent($r->fulltexts);
    ?>
                        <div class="entry clearfix">
                            <div class="entry-image">
                                <?php 
    if ($cont->getImg()) {
        ?>
                                    <a href="<?php 
        echo $cont->getImg();
        ?>
" data-lightbox="image"><img class="image_fade" src="<?php 
        echo $cont->getImg();
        ?>
"></a>
                                <?php