diff -r 1bcc79e78fa1 -r 74c9ddc3640b web/common.php --- a/web/common.php Mon Jul 18 13:40:06 2011 +0200 +++ b/web/common.php Mon Jul 25 18:50:20 2011 +0200 @@ -82,35 +82,123 @@ } -/* NEXT CONFERENCE AND CLIENT PAGE INFORMATION -*/ -/* CLIENT VAR LIVE */ +$js_registry = array( + 'local' => array( + 'jquery' => URL_ROOT.'res/js/jquery-1.4.3.min.js', + 'raphael' => URL_ROOT.'res/raphael/raphael-min.js', + 'jquery-ui' => URL_ROOT.'res/js/jquery-ui-1.8.13.min.js', + 'niceforms' => URL_ROOT.'res/niceforms/niceforms.js', + 'jquery-url' => URL_ROOT.'res/js/jquery.url.js', + 'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', + 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', + 'jquery-tools' => URL_ROOT.'res/metadataplayer/res/js/jquery.tools.min.js', + 'tw-widget' => URL_ROOT.'res/js/tw_widget.js', + 'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', + ), + 'cdn' => array( + 'jquery' => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js', + 'raphael' => URL_ROOT.'res/raphael/raphael-min.js', + 'jquery-ui' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js', + 'niceforms' => URL_ROOT.'res/niceforms/niceforms.js', + 'jquery-url' => URL_ROOT.'res/js/jquery.url.js', + 'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', + 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', + 'jquery-tools' => 'http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js', + 'tw-widget' => 'http://widgets.twimg.com/j/2/widget.js', + 'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', + ) +); -$C_hashtag = "#CHI07"; -$C_link = "http://www.iri.centrepompidou.fr/evenement/interfaces-de-demain/"; -$C_title = "Interfaces de demain"; -$C_abstract = "VIDEO SHOWCASE Interfaces de demain: Du sol à la table interactive en passant par le mur… -07 Juillet de 19h à 21h Salle Piazza "; -$C_REP = "sig-chi-paris-2011/"; -$C_description = "VIDEO SHOWCASE Interfaces de demain: Du sol à la table interactive en passant par le mur…
+$font_registry = array( + 'local' => array( + 'PT-Sans_Narrow' => URL_ROOT.'res/fonts/PT_Sans-Narrow-Web-Regular.css', + 'PT-Sans' => URL_ROOT.'res/fonts/PT_Sans-Web-Regular.css', + 'Geo' => URL_ROOT.'res/fonts/Geo-Regular.css' + ), + 'cdn' => array( + 'PT-Sans_Narrow' => 'http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin', + 'PT-Sans' => 'http://fonts.googleapis.com/css?family=PT+Sans&subset=latin', + 'Geo' => 'http://fonts.googleapis.com/css?family=Geo&subset=latin' + ) +); - 7th July 2011, 7:00 – 9:00 pm : Salle Piazza au Centre Pompidou
- ACM SigCHI Paris vous propose un panorama des dernières recherches en interaction homme-machine le 7 juillet 2011, de 19h à 21h au Centre Pompidou (salle Piazza). Des chercheurs vous présenteront les dernières avancées sous forme d’une diffusion vidéo organisée en 5 thèmes : - - La diffusion sera suivie d’une discussion informelle autour d’un apéritif. - Cet événement est organisé par le LRI (Université Paris-Sud et CNRS), l’INRIA, Telecom ParisTech et l’IRI. "; +$archives_list = array( +"rsln", "rsln-opendata", "rsln-mercedes-bunz", +"enmi2011-technologie-confiance", "CPV", "fens_FabLab_Design_Metadata", +array("mashup","conference"), array("mashup","tableronde"), "sig-chi-paris-2011" +); + +function registry_url($key, $type, $registry_def=null) { + + global $js_registry, $font_registry, $C_default_registry; -$C_partenaires = " IRI - | LRI - | INRIA - | CNRS - | telecom paris tech"; -$C_islive = true; + if($registry_def != null) { + $registry = $registry_def; + } + elseif(isset($C_default_registry)) { + $registry = $C_default_registry; + } + else { + $registry = 'local'; + } + $registry_name = $type."_registry"; + return ${ + $registry_name}[$registry][$key]; + +} + +function get_archive_box($rep, $metadata, $url_root, $basepath) { + + include("$basepath$rep/config.php"); + + $id = "abox_$rep".(($metadata!=null)?"_$metadata":""); + $hash = ($metadata!=null)?"#metadata=$metadata":""; + $tail_img = $config['archive_img']; + if(is_array($tail_img)) { + $tail_img = $tail_img[$metadata]; + } + $archive_title = $config['archive_title']; + if(is_array($archive_title)) { + $archive_title = $archive_title[$metadata]; + } + $archive_description = $config['archive_description']; + if(is_array($archive_description)) { + $archive_description = $archive_description[$metadata]; + } + $res = "
\n"; + $res .= " \n"; + $res .= " "; + $res .= " "; + $res .= "
$archive_title
\n"; + $res .= "
\n"; + $res .= " $archive_description\n"; + $res .= "
\n"; + $res .= "
\n"; + + return $res; + +} + +function display_archives_list($archives_list, $box_class, $url_root, $basepath) { + for($i=0;$i\n"); + } + $archive_ref = $archives_list[$i]; + + $archive_name = $archive_ref; + $metadata = null; + if(is_array($archive_ref)) { + $archive_name = $archive_ref[0]; + $metadata = $archive_ref[1]; + } + print(get_archive_box($archive_name,$metadata, $url_root, $basepath)); + if(($i % 3)==2 || $i == (count($archives_list)-1)) { + print(" \n"); + } + } +} + +