示例#1
0
echo $model->website;
?>
" 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;
        ?>
示例#2
0
?>
</h1>
    </div>

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

    <div class="content-wrap">

        <div class="container clearfix">
         <div class="row" style="padding-right: 15px;">
                <?php 
foreach ($model as $r) {
    $cont = new Ncontent($r->fulltexts);
    ?>
                    <div class="row">
                        <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>
示例#3
0
?>
]</span>
    </div>

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

    <div class="content-wrap">

        <div class="container clearfix">
         <div class="row" style="padding-right: 15px;">
                <?php 
foreach ($model as $r) {
    $cont = new Ncontent($r->fulltexts);
    ?>
                    <div class="row">
                        <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>
示例#4
0
?>
            </div>
            <div class="sidebar nobottommargin col_last clearfix">
                <div class="sidebar-widgets-wrap">
                    <div class="row">
                        <br/>
                        <div class="gallery-header" style="text-align: right; border-bottom: 2px solid #ccc;"><?php 
echo Yii::t('app', 'News More');
?>
 </div>
                        <ul class="gallery-list">
                            <?php 
$news = $article->news($model->cid, 10);
for ($i = 1, $n = count($news); $i < $n; $i++) {
    $data = $news[$i];
    $cont = new Ncontent($data->fulltexts);
    ?>
                                <li>
                                    <a href="<?php 
    echo Url::to(['site/view', 'id' => $data->id]);
    ?>
">
                                        <div style="width: 120px; float: left; margin-right: 5px;">
                                            <img src="<?php 
    echo $cont->getImg();
    ?>
" />
                                        </div>
                                        <?php 
    echo $cont->getLimitText('70', $data->title);
    ?>
示例#5
0
</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 
    } else {