[HOME]

Path : /home/hermanostamargo/www/bloques/
Upload :
Current File : /home/hermanostamargo/www/bloques/bloques.php

    <? include "sql_bloques.php"; ?>
	<? if( mysqli_num_rows($res_bloques) > 0 ) { ?>
		<section class="container bloques">
			<div class="row rounded bg-light">
				
			
				<? while($arr_asoc_bloques = mysqli_fetch_array($res_bloques)){ ?>
					<article class="col-md-4 bloques bg-light wow bounceInUp">
						<?
						$img_size_bloques = $_SERVER['DOCUMENT_ROOT']."/images/" . $arr_asoc_bloques['imagen'];
						list($width_img_bloques, $height_img_bloques) = getimagesize($img_size_bloques);		
						
						if ( $arr_asoc_bloques['enlaceexterno'] == 1 ) {
							$target = ' target="_blank" ';
						} else {
							$target = "";
						} ?>
						
						<a href="<?=$arr_asoc_bloques['enlace']?>" <?=$target?>>
							<img class="img-fluid" width="<?=$width_img_bloques?>" height="<?=$height_img_bloques?>" src="<?=PROTOCOL.DOMAIN_NAME?>images/<?=$arr_asoc_bloques['imagen']?>" alt="<?=$arr_asoc_bloques['titulo']?>">
						</a>
						<a href="<?=$arr_asoc_bloques['enlace']?>" <?=$target?>><h2><?=strip_tags($arr_asoc_bloques['titulo'])?></h2></a>
						<p><?=wordlimit(strip_tags($arr_asoc_bloques['descripcion']), $length = 25, $ellipsis = "...")?></p>
						<a href="<?=$arr_asoc_bloques['enlace']?>" <?=$target?> class="btn btn-secondary"><? global $leerMas; echo $leerMas;?> &nbsp;<i class="fa fa-angle-double-right" aria-hidden="true"></i></a>
						
					</article>
			         
				<? } ?>

			</div>
		</section>
	<? } ?>