lng('multimedia_public'); ?>

make_permalink($krnl->lng("fotografias")): $title.=" - ".$krnl->lng("galeria_de_fotos"); $h2=$krnl->lng("galeria_de_fotos"); $mas=$krnl->lng("mas_fotos"); $sec_active["fotografias"]="active"; if($_GET['parameters'][3]) { unset($data); $data['select']="galleries.title, galleries.permalink"; $data['table']="galleries"; $data['where']="galleries.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND galleries.permalink='".$_GET['parameters'][3]."'"; $data['joins'][0]['select']="multimediaweb.title as title_el, multimediaweb.subtitle, multimediaweb.url"; $data['joins'][0]['type']="inner"; $data['joins'][0]['table']="multimediaweb"; $data['joins'][0]['where']="multimediaweb.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND type='image' AND multimediaweb.id_galleries=galleries.id"; $data['order']="galleries.position DESC"; $c=$db->select_query($data); $num_elementos=$db->num_rows($c); $elemento_active=1; if($_GET['pag']>1) { $data['limit'][0]=$_GET['pag']-1; $data['limit'][1]=1; $elemento_active=$_GET['pag']; } $c=$db->select_query($data); $elemento=$db->fetch_array($c); } if(!$db->num_rows($c)) { $elemento_active=1; unset($data); $data['select']="galleries.title, galleries.permalink,galleries.id as id_galleries"; $data['table']="galleries"; $data['where']="galleries.id_language='".$GLOBALS['krnl']->lng_content_get()."'"; $data['joins'][0]['select']="multimediaweb.title as title_el, multimediaweb.subtitle, multimediaweb.url"; $data['joins'][0]['type']="inner"; $data['joins'][0]['table']="multimediaweb"; $data['joins'][0]['where']="multimediaweb.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND type='image' AND multimediaweb.id_galleries=galleries.id"; $data['order']="galleries.position DESC"; $data['group']="galleries.id"; $data['limit'][0]=($_GET['paggaleria']-1)*4; $data['limit'][1]=1; $c=$db->select_query($data); $elemento=$db->fetch_array($c); $c=$db->select_simple("multimediaweb","id","id_galleries='".$elemento['id_galleries']."'"); $num_elementos=$db->num_rows($c); } $elemento_siguiente=$elemento_active+1; $elemento_anterior=$elemento_active-1; //$c=$db->select_simple("multimediaweb","*","id_language='".$krnl->lng_content_get()."' AND type='image'",array("order"=>"position DESC")); $url=$elemento['url']; ob_start(); ?> <? echo $elemento['title']?> lng_content_get()."'"; $data['joins'][0]['select']="multimediaweb.url"; $data['joins'][0]['type']="inner"; $data['joins'][0]['table']="multimediaweb"; $data['joins'][0]['where']="multimediaweb.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND type='image' AND multimediaweb.id_galleries=galleries.id"; $data['order']="galleries.position DESC"; $data['group']="galleries.id"; $c=$db->select_query($data); $c=$db->select_query($data); $num_elementos_galerias=$db->num_rows($c); $paginas_galerias=intval($num_elementos_galerias/4)+1; if(!$_GET['paggaleria']) { $_GET['paggaleria']=1; } $elemento_active_galerias=$_GET['paggaleria']; if($paginas_galerias>$_GET['paggaleria']) { $elemento_siguiente_galerias=$_GET['paggaleria']+1; } if($_GET['paggaleria']>1) { $elemento_anterior_galerias=$_GET['paggaleria']-1; } $data['limit'][0]=($_GET['paggaleria']-1)*4; $data['limit'][1]=4; $c=$db->select_query($data); while($r=$db->fetch_array($c)) { $r['url']=$krnl->url_img($r['url'],3); $r['subtitle']=" "; $destacados[]=$r; } //Relacionados /* unset($data); //tags $data['select']="galleries.id"; $data['table']="galleries"; $data['where']="galleries.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND galleries.permalink='".$elemento['permalink']."'"; $data['joins'][0]['select']="multimediaweb.id"; $data['joins'][0]['type']="inner"; $data['joins'][0]['table']="multimediaweb"; $data['joins'][0]['where']="multimediaweb.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND type='image' AND multimediaweb.id_galleries=galleries.id"; $data['joins'][1]['select']="multimediaweb_tags.id_tags"; $data['joins'][1]['type']="inner"; $data['joins'][1]['table']="multimediaweb_tags"; $data['joins'][1]['where']="multimediaweb_tags.id_multimediaweb=multimediaweb.id"; $c=$db->select_query($data); while($t=$db->fetch_array($c)) { $tag[]=$t['id_tags']; } $w="multimediaweb_tags.id_tags=".implode(" OR multimediaweb_tags.id_tags=",$tag); unset($data); if($tag) //Si no hay tags no hay relacionados { $data['select']="galleries.permalink, galleries.title"; $data['table']="galleries"; $data['where']="galleries.id_language='".$GLOBALS['krnl']->lng_content_get()."'"; $data['joins'][0]['select']="multimediaweb.url"; $data['joins'][0]['type']="inner"; $data['joins'][0]['table']="multimediaweb"; $data['joins'][0]['where']="multimediaweb.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND type='image' AND multimediaweb.id_galleries=galleries.id"; $data['joins'][1]['type']="inner"; $data['joins'][1]['table']="multimediaweb_tags"; $data['joins'][1]['where']=$w; $data['order']="multimediaweb.position DESC"; $data['group']="galleries.id"; $c=$db->select_query($data); } while($r=$db->fetch_array($c)) { $r['url']=$krnl->url_img($r['url'],3); $r['subtitle']=" "; $relacionados[]=$r; }*/ break; default: case $krnl->make_permalink($krnl->lng("video")): $no_validar=1; $title.=" - ".$krnl->lng("galeria_de_videos"); $h2=$krnl->lng("galeria_de_videos"); $mas=$krnl->lng("mas_videos"); $_GET['parameters'][2]="video"; $sec_active["video"]="active"; if($_GET['parameters'][3]) { $c=$db->select_simple("multimediaweb","*","id_language='".$krnl->lng_content_get()."' AND type='youtube' AND permalink='".$_GET['parameters'][3]."'",array("order"=>"position DESC")); } if(!$db->num_rows($c)) { $c=$db->select_simple("multimediaweb","*","id_language='".$krnl->lng_content_get()."' AND type='youtube'",array("order"=>"position DESC",'limit'=>array(($_GET['paggaleria']-1)*4,1))); } $elemento=$db->fetch_array($c); $url=$elemento['url']; $elemento['title_el']=$elemento['title']; ob_start(); ?> select_simple("multimediaweb_tags","id_tags","multimediaweb_tags.id_multimediaweb='".$elemento['id']."'"); while($t=$db->fetch_array($c)) { $tag[]=$t['id_tags']; } $w="multimediaweb_tags.id_tags=".implode(" OR multimediaweb_tags.id_tags=",$tag); unset($data); if($tag) //Si no hay tags no hay relacionados { $data['select']="multimediaweb.*"; $data['table']="multimediaweb"; $data['where']="multimediaweb.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND type='youtube'"; $data['joins'][0]['table']="multimediaweb_tags"; $data['joins'][0]['type']="inner"; $data['joins'][0]['where']="multimediaweb_tags.id_multimediaweb=multimediaweb.id AND (".$w.")"; $data['order']="multimediaweb.position DESC"; $c=$db->select_query($data); } while($r=$db->fetch_array($c)) { $r['url']=$r['img']; $relacionados[]=$r; }*/ /*Destacados*/ unset($data); $data['select']="multimediaweb.*"; $data['table']="multimediaweb"; $data['where']="multimediaweb.id_language='".$GLOBALS['krnl']->lng_content_get()."' AND type='youtube' ";//AND destacado='yes'"; $data['order']="multimediaweb.position DESC"; $c=$db->select_query($data); $num_elementos_galerias=$db->num_rows($c); $paginas_galerias=intval($num_elementos_galerias/4)+1; if(!$_GET['paggaleria']) { $_GET['paggaleria']=1; } $elemento_active_galerias=$_GET['paggaleria']; if($paginas_galerias>$_GET['paggaleria']) { $elemento_siguiente_galerias=$_GET['paggaleria']+1; } if($_GET['paggaleria']>1) { $elemento_anterior_galerias=$_GET['paggaleria']-1; } $data['limit'][0]=($_GET['paggaleria']-1)*4; $data['limit'][1]=4; $c=$db->select_query($data); while($r=$db->fetch_array($c)) { $r['url']=$r['img']; $destacados[]=$r; } break; } ?>

*/ ?>
  1. :   0) { ?> #img" class="mostrar_img siguiente" title="lng("anterior");?>"> lng_get()."/multimedia/flecha_izq.png";?>" alt="lng("anterior");?>" /> de 1 && $elemento_siguiente_galerias<=$paginas_galerias) { ?> #img" class="mostrar_img siguiente" title="lng("siguiente");?>"> lng_get()."/multimedia/flecha_der.png";?>" alt="lng("siguiente");?>" />

lng_get()."/multimedia/".$img_relacionados;?>" alt="" />

*/ ?> get_header($krnl->lng('multimedia_public')); echo $cont; $tpl->get_footer(); ?>