Mini Shell

Direktori : /home/brasafestival/www/old/templates/
Upload File :
Current File : /home/brasafestival/www/old/templates/blog.php

<?php 
	$arrayMes = [
		'01' => 'jan',
		'02' => 'fev',
		'03' => 'mar',
		'04' => 'abr',
		'05' => 'mai',
		'06' => 'jun',
		'07' => 'jul',
		'08' => 'ago',
		'09' => 'set',
		'10' => 'out',
		'11' => 'nov',
		'12' => 'dez'
		];
?>
<style type="text/css">
	.post{margin-bottom: 30px; position: relative; width: 100%; float: left;}
	.post .text{color: #777; font-size: 12px}
	.post .bgdata{background: <?php echo $cor1 ?>; position: absolute; top: 0; left: 0; padding: 15px; z-index: 5; color: #fff; font-weight: bold;}
	.post .bgdata .dia{font-size: 20px;}
	.post .bgdata .mes{font-size:16px;}
	.post h2{color: #555; margin-bottom: 20px; text-align: left; font-size: 18px; margin-bottom: 10px; font-weight: bold;}
</style>
<div class="clear"></div>
<section class="container">
	<div class="row">
		<?php while ($row_registros = mysqli_fetch_assoc($registros)) { ?>
			<div class="col-sm-6" data-mh="mygroup">
				<a class="post" href="<?php echo RAIZ;?><?php echo $row_paginas['paginas_url'] ?>/<?php echo $row_registros['registros_url'];?>">
					<div class="bgdata">
						<?php 
						$dataBlog = $row_registros['registros_data']; 
						$dataBlog = explode('-', $dataBlog);
						?>
						<div class="dia"><?php echo $dataBlog[2] ?></div>
						<div class="mes"><?php echo $arrayMes[$dataBlog[1]] ?></div>
					</div>
					<img src="<?php echo RAIZ ?>timthumb.php?src=<?php echo RAIZ_UP.$row_registros['registros_imagem'] ?>&zc=1&w=555&h=300" class="img-fluid">
					<h2>
						<?php echo $row_registros['registros_titulo'];?>
					</h2>
					<div class="text">
					<?php echo preg_replace('/(<[^>]+) style=".*?"/i', '$1', abreviaString($row_registros['registros_texto'], '300')); ?>
					</div>
				</a>
			</div>
		<?php } ?>
	</div>
</section>

Zerion Mini Shell 1.0