コード例 #1
0
ファイル: resumo.php プロジェクト: vncs2012/wikVinicius
            width:610px
        }
    }@media (min-width:992px){
        .container{
            width:830px
        }
    }@media (min-width:1200px){
        .container{
            width:1030px
        }
    }

</style>

<?php 
$blog = new SiteBlog();
$caracteresDireito = 70;
$i = 0;
$cont = 0;
$principal = new stdClass();
$esquerdaP = new stdClass();
$direitaP = new stdClass();
foreach ($blog->listarNoticias() as $value) {
    if ($i == 0) {
        $principal->no_titulo = limita_caracteres($value->no_titulo, 190);
        $principal->img_postagem = $value->img_postagem;
        $principal->ts_postagem = "Por {$value->no_nome} - em " . Timestamp2BR($value->ts_postagem);
        $principal->cd_blog = $value->cd_blog;
        $i++;
    } else {
        if ($i == 1) {
コード例 #2
0
ファイル: resumo.php プロジェクト: vncs2012/wikVinicius
<?php

$blog = new SiteBlog();
?>
<br />
<br />
<div class=" content content-center">

    <div class="col-md-8 col-sm-8 col-xs-12" style="border: 1px solid black">
        <?php 
$i = 0;
foreach ($blog->listarFilias() as $value) {
    print "<br />\n                   <br />";
    if ($i == 0) {
        ?>
                <img   src="admin/imagens/blog/<?php 
        print $value->img_postagem;
        ?>
" alt="Loading image...">
                <?php 
    }
    ?>
        </div>
        <div class="col-md-4 col-sm-4 col-xs-12">

        </div>
        <div class="col-md-5 col-sm-5 col-xs-12">
            <?php 
    if ($i > 0 && $i <= 2) {
        ?>