예제 #1
0
파일: index.php 프로젝트: MaoCzedun/AdCoin
            <?php 
echo $article->short;
?>
        </div>
    </div>
</div>

<br/>
<hr/>

<div class="text-center">
    <h2>Last reviews</h2>
    <br/>
    <div class="row text-left">
        <?php 
foreach (Guestbook::last(2) as $post) {
    ?>
            <div class="col-md-6">
                <b><?php 
    echo $post->name;
    ?>
</b>
                <p class="text-muted"><?php 
    echo $post->text;
    ?>
</p>
            </div>
        <?php 
}
?>
    </div>
예제 #2
0
    }
    ?>
            </div>
            <br>
        <?php 
}
?>
    </div>
    <div class="col-md-4">
        <?php 
if (Yii::$app->request->get(Guestbook::SENT_VAR)) {
    ?>
            <h4 class="text-success"><i class="glyphicon glyphicon-ok"></i> Message successfully added</h4>
        <?php 
} else {
    ?>
            <h4>Leave message</h4>
            <div class="well well-sm">
                <?php 
    echo Guestbook::form();
    ?>
            </div>
        <?php 
}
?>
    </div>
</div>

<?php 
echo Guestbook::pages();