Beispiel #1
0
        extract((array) $post);
        $status = !$post_status ? 'style="background: #fffed8"' : '';
        ?>
                <article<?php 
        if ($posti % 2 == 0) {
            echo ' class="right" ';
        }
        ?>
 <?php 
        echo $status;
        ?>
>

                    <div class="img thumb_small">
                        <?php 
        echo Check::Image('../uploads/' . $post_cover, $post_title, 120, 70);
        ?>
                    </div>

                    <h1><a target="_blank" href="../artigo/<?php 
        echo $post_name;
        ?>
" title="Ver Post"><?php 
        echo Check::Words($post_title, 5);
        ?>
</a></h1>
                    <ul class="info post_actions">
                        <li><strong>Data:</strong> <?php 
        echo date('d/m/Y H:i', strtotime($post_date));
        ?>
Hs</li>
Beispiel #2
0
        ?>
/uploads/<?php 
        echo $gallery_image;
        ?>
" rel="shadowbox[<?php 
        echo $post_id;
        ?>
]" title="Imagem <?php 
        echo $gb;
        ?>
 do post <?php 
        echo $post_title;
        ?>
">
                                            <?php 
        echo Check::Image('uploads' . DIRECTORY_SEPARATOR . $gallery_image, "Imagem {$gb} do post {$post_title}", 120, 80);
        ?>
                                        </a>
                                    </div>
                                </li>
                                <?php 
    }
    ?>
                        </ul>
                        <div class="clear"></div>
                    </section>
                <?php 
}
?>
            </div>
Beispiel #3
0
$Gallery = new WsPostsGallery();
$Gallery->setPost_id($postid);
$Gallery->Execute()->Query("#post_id#");
if ($Gallery->Execute()->getResult()) {
    foreach ($Gallery->Execute()->getResult() as $gb) {
        $gbi++;
        ?>
                            <li<?php 
        if ($gbi % 5 == 0) {
            echo ' class="right"';
        }
        ?>
>
                                <div class="img thumb_small">
                                    <?php 
        echo Check::Image('../uploads/' . $gb->gallery_image, $gbi, 146, 100);
        ?>
                                </div>  
                                <a href="painel.php?exe=posts/update&postId=<?php 
        echo $postid;
        ?>
&gbdel=<?php 
        echo $gb->gallery_id;
        ?>
#gbfoco" class="del">Deletar</a>
                            </li>
                            <?php 
    }
}
?>
                </ul>                
        $city = $cityObj->getResult() ? $cityObj->getResult()[0]->cidade_nome : 'NULL';
        ?>
                <article<?php 
        if ($empi % 2 == 0) {
            echo ' class="right"';
        }
        ?>
 <?php 
        echo $status;
        ?>
>
                    <header>

                        <div class="img thumb_small">
                            <?php 
        echo Check::Image('../uploads/' . $empresa_capa, $empresa_title, 120, 70);
        ?>
                        </div>

                        <hgroup>
                            <h1><a target="_blank" href="../empresa/<?php 
        echo $empresa_name;
        ?>
" title="Ver Empresa"><?php 
        echo $empresa_title;
        ?>
</a></h1>
                            <h2><?php 
        echo $city . ' / ' . $state;
        ?>
</h2>
    header('Location: ' . HOME . DIRECTORY_SEPARATOR . '404');
}
?>
<!--HOME CONTENT-->
<div class="site-container">

    <article class="empresa_article">

        <div class="emp_content">

            <!--CABEÇALHO GERAL-->
            <header>
                <div class="img capa">
                    <!--w = 578px  [ CRIAR THUMB ]-->
                    <?php 
echo Check::Image('uploads' . DIRECTORY_SEPARATOR . $empresa_capa, $empresa_title, 578, 288);
?>
                </div>

                <hgroup>
                    <div class="views"><span><?php 
echo $empresa_views;
?>
</span></div>
                    <h1><?php 
echo $empresa_title;
?>
</h1>
                    <h2><?php 
echo $empresa_ramo;
?>