ok

Mini Shell

Direktori : /home/pequenacapitolio/www/
Upload File :
Current File : /home/pequenacapitolio/www/blog-leitura.php

<!DOCTYPE html>
<html lang="pt-BR">
	<head>
	    
	    
	    <!-- Go to www.addthis.com/dashboard to customize your tools -->
		<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5dee72dc14a486a5"></script>

		<?php include 'estrutura_head.php'; ?>

		<?php
			$noticia = $conn->query("SELECT * FROM noticias  where idnoticias = ".$_GET["id"]);
			$blog = $noticia->fetch(PDO::FETCH_OBJ)
		?>

	    <meta property="og:locale" content="pt_BR">
		<meta property="og:title" content="Pequena Capitólio - <?php echo $blog->titulo ?>"/>
		<meta property="og:type" content="article"/>
		<meta property="og:site_name" content="Pequena Capitólio"/>
		<meta property="og:url" content="http://pequenacapitolio.com.br/blog-leitura.php?id=<?php echo $blog->idnoticias ?>"/>    
		<meta property="og:image" content="/administrador/uploads/imagens/<?php echo $blog->foto ?>" /> 
		<meta property="og:image:type" content="image/jpeg">
		<meta property="og:image:width" content="1000"> 
		<meta property="og:image:height" content="640">
		<meta property="og:description" content="<?php echo $blog->subtitulo ?>"/>
		<meta property="og:image:type" content="image/jpeg">
		<meta property="og:image:width" content="450"> 
		<meta property="og:image:height" content="196">

	    
	    
		<title>Pequena Capitólio - <?php echo $blog->titulo ?></title>
	</head>
	<body class="demo-3 home">

		 <h2 style="display: none">Pequena Capitólio - Venha conhecer a exuberância do Lago de Furnas!</h2>
		
		
		<?php include 'estrutura_topo.php'; ?>

			

		 <div id="main-content">
		    <div class="page-title">
		        <div class="page-title-wrapper" data-stellar-background-ratio="0.5" style="background-image: url(images/DESTAQUE_PEQCAPITOLIO_INTERNO.jpg);height: 250px">
		            <div class="content container">
		                <h1 class="heading_primary">Blog</h1>
		                <ul class="breadcrumbs">
		                    <li class="item"><a href="index.php">Inicio</a></li>
		                    <li class="item"><span class="separator"></span></li>
		                    <li class="item"><a href="blog.php">Blog</a></li>
		                </ul>
		            </div>
		        </div>
		    </div>

		    <div class="site-content container">
		        <div class="row">
		            <main class="site-main col-sm-12 col-md-9 flex-first">
		                <div class="blog-single-content">
		                    <article class="post clearfix">
		                        <div class="post-content">
		                            <div class="post-media" style="text-align: center">
		                                <img src="/administrador/uploads/imagens/<?php echo $blog->foto ?>" style="width: 100%" alt="">
		                            </div>

		                            <div class="post-summary">
		                                <h2 class="post-title" style="line-height: 40px"><?php echo $blog->titulo ?></h2>
		                                <ul class="post-meta" style="padding-bottom: 4%">
		                                    
		                                    
		                                    <li><span class="separator"></span></li>
		                                    <li><?php echo $blog->data_noticia ?></li>
		                                    
		                                </ul>
		                                <style type="text/css">
		                                	h2{
		                                		font-size: 30px;
		                                	}
		                                </style>
		                                <?php echo $blog->corpo ?>
		                        </div>
		                    </article>
		                </div>
		            </main>
		            <aside id="secondary" class="widget-area col-sm-12 col-md-3 sticky-sidebar" style="padding: 0px">
		                <div class="wd wd-search">
		                    <form role="search" method="get" action="blog.php">
		                        <input type="search" placeholder="Buscar" value="" name="busca">
		                        <button type="submit"><i style="color: #566a7c" class="ion ion-ios-search"></i></button>
		                    </form>
		                </div>
		                
		                <div class="wd wd-image-box">
		                    <div class="image-box">
		                       <!--  <img src="images/gallery/masonry-5.jpg" alt=""> -->
		                    </div>
		                </div>
		                <div class="wd wd-recent-post clearfix" style="padding-right: 0px">
		                    <h3 class="wd-title" style="color: #566A7C">Últimas Postagens</h3>

		                    


		                    <div class="post clearfix">
		                        <div class="post-content">
		                        	<?
				                		$ultimas = $conn->query("SELECT * FROM noticias order by idnoticias desc limit 3");	
									?>
									 <ul class="darklinks" style="list-style-type: none;">	
										 <?php while ($ult = $ultimas->fetch(PDO::FETCH_OBJ)) {?>
										 	<li class="media" style="margin-bottom: 4%">
				                                <a class="media-left"  href="blog-leitura.php?id=<?php echo $ult->idnoticias ?>">
				                                    <img class="media-object" src="/administrador/uploads/imagens/<?php echo $ult->foto ?>"alt="" style="width: 69px;height: 69px;border-radius: 5px">
				                                </a>
				                                <div class="media-body media-middle" style="padding-left: 3%">
				                                    <a href="blog-leitura.php?id=<?php echo $ult->idnoticias ?>" class="bold inline-block"><?php echo substr($ult->titulo,0,50)."..." ?></a><br>
				                                    <time style="font-size: 10px" datetime="2016-09-03T15:05:23+00:00" class="entry-date highlight small-text bold"><i class="fa fa-clock-o"></i><?php echo "   ".$ult->data_noticia ?></time>
				                                </div>    
				                            </li>
			                            <!-- <h4 class="post-title"><a href="blog-single.html">1. Small Living Room</a></h4>
			                            <span class="post-meta">20 / Jun / 2018</span> -->
			                            <?}?>
		                        </div>
		                    </div>
		                   
		                </div>

		                <!-- <div class="wd wd-categories">
		                    <h3 class="wd-title" style="color: #566A7C">Categorias</h3>
		                    <ul>
		                    	 <?php
								  $categorias = $conn->query("SELECT * FROM categorias_noticias ");
								  $not = $conn->query("SELECT * FROM noticias");
								  while ($cat = $categorias->fetch(PDO::FETCH_OBJ))  { 
								?>
		                        	<li><a href="blog.php?categoria=<?php echo $cat->idcategorias ?>"><?php echo $cat->titulo ?></a></li>
		                        <?}?>	
		                        
		                    </ul>
		                </div> -->

		            </aside>

		        </div>
		    </div>
		</div>

		<?php include 'estrutura_rodape.php'; ?>

		<?php include 'estrutura_scripts.php'; ?>

	</body>
</html>

Zerion Mini Shell 1.0