Uname: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Software: Apache
PHP version: 5.6.40 [ PHP INFO ] PHP os: Linux
Server Ip: 217.160.0.194
Your Ip: 216.73.217.62
User: u72294154 (9179942) | Group: ftpusers (600)
Safe Mode: OFF
Disable Function:
NONE

name : galeria.php
<div class="galeria">
<?
	// volcar_variable($inmueble->datos['galeria']);
	$total_galeria = count($inmueble->datos['galeria']['youtube']) + count($inmueble->datos['galeria']['imagen']);
	
	echo '<a href="#" rel="no-follow" class="mas nav prev"></a>';
	
	echo '<div class="gallery">';
	
	if(!empty($inmueble->datos['galeria']['youtube'])){
		foreach($inmueble->datos['galeria']['youtube'] as $indice=>$video){
			
			preg_match('/v(=|\/)([^\/&]+)/',$video['url'],$temp);
			echo '<a href="http://www.youtube.com/v/'.$temp[count($temp)-1].'&amp;autoplay=1" rel="shadowbox[galeria];width=560;height=315;player=swf" title="'.($video['pie'] != '' ? $video['pie'] : $alt.' '.$tmiqVideo).'" class="video"><img src="http://i2.ytimg.com/vi/'.$temp[count($temp)-1].'/default.jpg" alt="'.($video['pie'] != '' ? $video['pie'] : $alt.' '.$tmiqVideo.' '.$indice).'" /><span class="zoom-play zoom"></span></a>';
		}
	}
	
	if(!empty($inmueble->datos['galeria']['imagen'])){
		
		foreach($inmueble->datos['galeria']['imagen'] as $indice=>$foto){
			
				
				if(preg_match('/http/',$foto['url'])){

					echo '<a href="'.$foto['url'].'" rel="shadowbox[galeria]" title="'.($foto['pie'] != '' ? $foto['pie'] : $alt).'" class="link"><img src="'.$foto['url'].'" alt="'.($foto['pie'] != '' ? $foto['pie'] : $alt).'" /><span class="zoom"></span></a>';
				}
				elseif($foto['imagen']){
					$imagen = '/image/58/41/rtc/inmuebles/'.$resultado['imagen'];
					echo '<a href="/image/inmuebles/'.$foto['imagen'].'" rel="shadowbox[galeria]" title="'.($foto['pie'] != '' ? $foto['pie'] : $alt).'" class="link"><img src="/image/428/306/rtc/inmuebles/'.$foto['imagen'].'" alt="'.($foto['pie'] != '' ? $foto['pie'] : $alt).'" /><span class="zoom"></span></a>';
				}
				else{
					echo '<img src="/no-image/58/41/rtc/comunes/no-image.jpg" alt="'.($foto['pie'] != '' ? $foto['pie'] : $alt).'" />';
				}
				
		}
	}
	
	echo '</div>';
	
	
	echo '<a href="#" rel="no-follow" class="mas nav next"></a>';

	
?>
<div class="row-end"></div>
</div>
© 2026 GrazzMean