<section id="content"> <div class="content-wrap"> <div class="container clearfix"> <div class="postcontent nobottommargin clearfix"> <h4><?php echo $model->titles; ?> </h4> <ul class="entry-meta clearfix"> <li><i class="icon-calendar3"></i> <?php echo $d->getThaiLongDate($model->applyDate); ?> </li> <li><i class="icon-user"></i> admin</li> <li><i class="icon-comments"></i> <?php echo $cnt->getHitsCounter('guide/view', $model->id); ?> Views</li> </ul> <div class="fslider" data-arrows="false" data-animation="fade" data-thumbs="true"> <div class="flexslider"> <div class="slider-wrap"> <?php $cont = new Ncontent($model->fulltexts); $aImg = $cont->getAllImg(); $i = 1; foreach ($aImg[1] as $img) { ?> <div class="slide" data-thumb="<?php echo file_exists($img) ? Yii::getAlias('@web') . '/' . $img : $img;
</section><!-- #page-title end --> <!-- Content ============================================= --> <section id="content"> <div class="content-wrap"> <div class="container clearfix"> <div class="postcontent nobottommargin clearfix"> <div style="margin-bottom: 10px;"> <button class="btn btn-default disabled"><i class="glyphicon glyphicon-calendar"></i> <?php echo $ndate->getThaiLongDate($model->applydate); ?> </button> <button class="btn btn-default disabled"><i class="glyphicon glyphicon-eye-open"></i> <?php echo $counter->getHitsCounter('site/view', $model->id); ?> Views</button> </div> <div> <?php echo $model->fulltexts; ?> </div> <div class="clearfix"></div> <br/> <?php $mPath = \Yii::getAlias('@webroot') . '/images/article/news_' . $model->id; $mUrl = \Yii::getAlias('@web') . '/images/article/news_' . $model->id; if (!is_dir($mPath)) { \yii\helpers\BaseFileHelper::createDirectory($mPath);
<h2><?php echo $model->title; ?> </h2> </div><!-- .entry-title end --> <!-- Entry Meta ============================================= --> <ul class="entry-meta clearfix"> <li><i class="icon-calendar3"></i> <?php echo $d->getThaiLongDate($model->applydate); ?> </li> <li><a href="#"><i class="icon-user"></i> admin</a></li> <li><a href="#"><i class="icon-comments"></i> <?php echo $count->getHitsCounter('site/content', $model->id); ?> Views</a></li> </ul><!-- .entry-meta end --> <!-- Entry Content ============================================= --> <div class="entry-content notopmargin"> <?php echo $model->fulltexts; ?> </div> </div><!-- .entry end --> </div> </div>
} ?> <?php if (count($items) > 0) { //echo "ภาพประกอบ"; echo dosamigos\gallery\Gallery::widget(['items' => $items]); } ?> <div class="clearfix"></div> <div style="margin-bottom: 10px;"> <button class="btn btn-default disabled"><i class="glyphicon glyphicon-calendar"></i><?php echo $ndate->getThaiLongDate($model->applydate); ?> </button> <button class="btn btn-default disabled"><i class="glyphicon glyphicon-eye-open"></i><?php echo $counter->getHitsCounter('gallery/view', $model->id); ?> Views</button> </div><div class="clearfix"></div> <hr/> <?php // $social = Yii::$app->getModule('social'); // // echo FacebookPlugin<hr/>::widget(['type' => FacebookPlugin::LIKE, 'settings' => ['share' => 'true', 'width' => '500px','href'=> Yii::$app->urlManager->createAbsoluteUrl(['gallery/view','id'=>$model->id])]]); // echo FacebookPlugin::widget(['type' => FacebookPlugin::COMMENT, 'settings' => ['width'=>'100%','href'=> Yii::$app->urlManager->createAbsoluteUrl(['gallery/view','id'=>$model->id])]]); ?> </div> </div> </div> <div class="sidebar nobottommargin col_last clearfix"> <div class="sidebar-widgets-wrap">
<h2><a href="<?php echo Url::to(['guide/view', 'id' => $r->id]); ?> "><?php echo $r->titles; ?> </a></h2> </div> <ul class="entry-meta clearfix"> <li><i class="icon-calendar3"></i> <?php echo $d->getThaiLongDate($r->applyDate); ?> </li> <li><i class="icon-user"></i> admin</li> <li><i class="icon-comments"></i> <?php echo $count->getHitsCounter('guide', $r->id); ?> Views</li> </ul> <div class="entry-content"> <?php if ($cont->getLimitText()) { ?> <p><?php echo $cont->getLimitText(); ?> </p> <?php } else { ?> <p>