コード例 #1
0
<?php

require 'common.inc.php';
$regraBiblia = new Biblia();
$regraComentario = new Comentario();
if (count($_POST) > 0) {
    $comentario = $regraComentario->pegarDoPost();
    $regraComentario->inserir($comentario);
}
$id_comentario = intval($_GET['id']);
$_comentario = $regraComentario->pegar($id_comentario);
$GLOBALS['_comentarios'] = $_comentario->comentarios;
require 'header.inc.php';
require 'menu-principal.inc.php';
require 'comentarioModal.inc.php';
?>
<div class="container" style="margin-top: 80px">
    <div class="row">
        <div class="col-md-8">
            <?php 
//var_dump($_comentario);
?>
            <h1>
                <div class="pull-right">
                    <span class='st_sharethis_large' displayText='ShareThis'></span>
                    <span class='st_facebook_large' displayText='Facebook'></span>
                    <span class='st_twitter_large' displayText='Tweet'></span>
                    <span class='st_linkedin_large' displayText='LinkedIn'></span>
                    <span class='st_pinterest_large' displayText='Pinterest'></span>
                    <span class='st_email_large' displayText='Email'></span>
                </div>