<div class="col-sm-8"> <div class="caption" style="padding: 10px; margin-bottom: 10px;"> <div style="font-size: 16px;"><a href="<?php echo \yii\helpers\Url::to(['/site/view', 'id' => $r->id]); ?> "><?php echo $r->title; ?> </a></div> <div style="color: green;"><?php echo Yii::$app->urlManager->createAbsoluteUrl(['/site/view', 'id' => $r->id]); ?> </div> <div> <div class="pull-left" style="margin-right: 10px;"><img src="<?php echo $cont->getImg(); ?> " width="150px" /></div><?php echo $cont->getLimitText(); ?> </div> </div> </div> </div> <div class="clearfix"></div> <br/> <?php } ?> </div>
?> " target="_blank"><?php echo $model->website; ?> </a> </div> <div class="widget clearfix"> <h4><?php echo Yii::t('app', 'Tourist Attraction'); ?> </h4> <div> <?php foreach ($Attractions as $r) { $cont = new Ncontent($r->fulltexts); $img = Yii::getAlias('@webroot') . '/' . $cont->getImg(); if ($cont->getImg()) { ?> <div class=""> <a href="<?php echo Url::to(['guide/view', 'id' => $r->id]); ?> "><img src="<?php echo file_exists($cont->getImg()) ? Yii::getAlias('@web') . '/' . $cont->getImg() : $cont->getImg(); ?> " /></a> <div class="portfolio-desc center nobottompadding"> <h5><?php echo $r->titles; ?> </h5>
<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 } else { ?> <img class="image_fade" src="<?php echo Yii::getAlias('@web') . '/images/emptyImg.png'; ?> ">