コード例 #1
0
ファイル: SiteController.php プロジェクト: jatuponp/discovery
 public function actionContent($id)
 {
     $counter = new \app\components\counter();
     $counter->hitsCounter('site/content', $id);
     $model = \app\models\Article::findOne($id);
     return $this->render('content', ['model' => $model]);
 }
コード例 #2
0
ファイル: SiteController.php プロジェクト: jatuponp/discovery
 public function actionView($id)
 {
     $counter = new counter();
     $counter->hitsCounter('site/view', $id);
     $model = Article::findOne(['id' => $id]);
     $article = new Article();
     return $this->render('view', ['model' => $model, 'article' => $article]);
 }
コード例 #3
0
 public function actionView($id)
 {
     $counter = new counter();
     $counter->hitsCounter('gallery/view', $id);
     $model = tblGallery::findOne($id);
     $gallery = new tblGallery();
     return $this->render('view', ['model' => $model, 'gallery' => $gallery]);
 }
コード例 #4
0
ファイル: view.php プロジェクト: jatuponp/discovery
<?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;
コード例 #5
0
ファイル: view.php プロジェクト: jatuponp/discovery
<?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">
コード例 #6
0
ファイル: main.php プロジェクト: jatuponp/discovery
                                                <div class="copyright-links"><a href="<?php 
echo Url::to(['site/sitemap']);
?>
"><?php 
echo Yii::t('app', 'Site Map');
?>
</a> <!--/ <a href="#">Privacy Policy</a>--></div>
					</div>

					<div class="col_half col_last tright">
						<div class="fright clearfix">
                                                    &nbsp;<?php 
echo Yii::t('app', 'Site Counter');
?>
: <?php 
echo number_format(\app\components\counter::getTotalCounter(), 0, '.', ',');
?>
						</div>

						<div class="clear"></div>

						<i class="icon-envelope2"></i> wilaiwan_tan(at)moi.go.th <span class="middot">&middot;</span> <i class="icon-headphones"></i> (+66) 042-412678 ต่อ 46148
					</div>

				</div>

			</div><!-- #copyrights end -->

            </footer><!-- #footer end -->
        </div><!-- #wrapper end -->
コード例 #7
0
ファイル: view.php プロジェクト: jatuponp/discovery
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use kartik\social\FacebookPlugin;
use app\components\Ndate;
use app\components\counter;
/**
 * @var yii\web\View $this
 */
$this->title = $model->title;
$ndate = new Ndate();
$counter = new counter();
$this->registerMetaTag(['description' => $model->title]);
?>
<!-- Page Title
============================================= -->
<section id="page-title">

    <div class="container clearfix">
        <h1><a href="<?php 
echo Url::to(['gallery/index']);
?>
"><?php 
echo Yii::t('app', 'Gallery');
?>
</a></h1>
        <span><?php 
echo Html::encode($this->title);
?>
</span>
コード例 #8
0
ファイル: content.php プロジェクト: jatuponp/discovery
<?php

use yii\helpers\Url;
use app\components\Ndate;
use app\components\counter;
$d = new Ndate();
$count = new counter();
$this->title = $model->title;
$this->registerMetaTag(['description' => $model->title]);
?>
<section id="page-title">

    <div class="container clearfix">
        <h1><?php 
echo Yii::t('app', 'Information');
?>
</h1>
<!--        <span><?php 
echo Yii::t('app', 'Nong Khai Province');
?>
</span>-->
    </div>

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

    <div class="content-wrap">

        <div class="container clearfix">
コード例 #9
0
ファイル: index.php プロジェクト: jatuponp/discovery
<?php

use yii\helpers\Url;
use app\components\Ndate;
use app\components\Ncontent;
use yii\widgets\LinkPager;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use app\components\counter;
$count = new counter();
?>
<!-- Page Title
                ============================================= -->
<section id="page-title">

    <div class="container clearfix">
        <h1><?php 
echo Yii::t('app', 'Tourist Information');
?>
</h1>
        <span><?php 
echo Yii::t('app', app\models\TblGuides::getCat($cid));
?>
</span>
    </div>

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

<section id="content">
    <div class="content-wrap">
        <div class="container clearfix">