8 set_include_path( |
8 set_include_path( |
9 'lib' |
9 'lib' |
10 . PATH_SEPARATOR . get_include_path() |
10 . PATH_SEPARATOR . get_include_path() |
11 ); |
11 ); |
12 |
12 |
|
13 /** |
|
14 * Base configuration |
|
15 */ |
|
16 $C_default_rep = 'sig-chi-paris-2011'; |
|
17 |
|
18 $configuration = array( |
|
19 'siteUrl' => 'http://twitter.com/oauth', |
|
20 'consumerKey' => '***REMOVED***', |
|
21 'consumerSecret' => '***REMOVED***' |
|
22 ); |
|
23 |
|
24 |
|
25 $req_rep = $C_default_rep; |
|
26 if(isset($config) && isset($config['rep'])) { |
|
27 $req_rep = $config['rep']; |
|
28 } |
13 |
29 |
14 include_once dirname(__FILE__).'/traduction.php'; |
30 include_once dirname(__FILE__).'/traduction.php'; |
15 if(isset($config) && isset($config['rep']) && file_exists(dirname(__FILE__).'/'.$config['rep'].'/traduction.php')) { |
31 if(file_exists(dirname(__FILE__)."/$req_rep/traduction.php")) { |
16 include_once dirname(__FILE__).'/'.$config['rep'].'/traduction.php'; |
32 include_once dirname(__FILE__)."/$req_rep/traduction.php"; |
17 } |
33 } |
18 |
34 |
19 |
35 |
20 /** |
36 /** |
21 * Make sure Zend_Oauth's Consumer is loaded |
37 * Make sure Zend_Oauth's Consumer is loaded |
92 'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', |
112 'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', |
93 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', |
113 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', |
94 'jquery-tools' => URL_ROOT.'res/metadataplayer/res/js/jquery.tools.min.js', |
114 'jquery-tools' => URL_ROOT.'res/metadataplayer/res/js/jquery.tools.min.js', |
95 'tw-widget' => URL_ROOT.'res/js/tw_widget.js', |
115 'tw-widget' => URL_ROOT.'res/js/tw_widget.js', |
96 'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', |
116 'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', |
|
117 'swfobject' => 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js', |
97 ), |
118 ), |
98 'cdn' => array( |
119 'cdn' => array( |
99 'jquery' => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js', |
120 'jquery' => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js', |
100 'raphael' => URL_ROOT.'res/raphael/raphael-min.js', |
121 'raphael' => URL_ROOT.'res/raphael/raphael-min.js', |
101 'jquery-ui' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js', |
122 'jquery-ui' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js', |
104 'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', |
125 'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', |
105 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', |
126 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', |
106 'jquery-tools' => 'http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js', |
127 'jquery-tools' => 'http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js', |
107 'tw-widget' => 'http://widgets.twimg.com/j/2/widget.js', |
128 'tw-widget' => 'http://widgets.twimg.com/j/2/widget.js', |
108 'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', |
129 'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', |
|
130 'swfobject' => 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js', |
109 ) |
131 ) |
110 ); |
132 ); |
111 |
133 |
112 $font_registry = array( |
134 $font_registry = array( |
113 'local' => array( |
135 'local' => array( |
120 'PT-Sans' => 'http://fonts.googleapis.com/css?family=PT+Sans&subset=latin', |
142 'PT-Sans' => 'http://fonts.googleapis.com/css?family=PT+Sans&subset=latin', |
121 'Geo' => 'http://fonts.googleapis.com/css?family=Geo&subset=latin' |
143 'Geo' => 'http://fonts.googleapis.com/css?family=Geo&subset=latin' |
122 ) |
144 ) |
123 ); |
145 ); |
124 |
146 |
|
147 |
|
148 $css_registry = array( |
|
149 'local' => array( |
|
150 'blueprint-screen' => URL_ROOT.'res/blueprint/screen.css', |
|
151 'blueprint-print' => URL_ROOT.'res/blueprint/print.css', |
|
152 'blueprint-ie' => URL_ROOT.'res/blueprint/ie.css', |
|
153 'blueprint-plugins-fancy-type' => URL_ROOT.'res/blueprint/plugins/fancy-type/screen.css', |
|
154 'custom' => URL_ROOT.'res/css/custom.css', |
|
155 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css', |
|
156 'jquery-ui' => "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css", |
|
157 'tabs-slideshow' => URL_ROOT.'res/css/tabs-slideshow.css', |
|
158 ), |
|
159 'cdn' => array( |
|
160 'blueprint-screen' => URL_ROOT.'res/blueprint/screen.css', |
|
161 'blueprint-print' => URL_ROOT.'res/blueprint/print.css', |
|
162 'blueprint-ie' => URL_ROOT.'res/blueprint/ie.css', |
|
163 'blueprint-plugins-fancy-type' => URL_ROOT.'res/blueprint/plugins/fancy-type/screen.css', |
|
164 'custom' => URL_ROOT.'res/css/custom.css', |
|
165 'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css', |
|
166 'jquery-ui' => "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css", |
|
167 'tabs-slideshow' => URL_ROOT.'res/css/tabs-slideshow.css', |
|
168 ) |
|
169 ); |
|
170 |
125 $archives_list = array( |
171 $archives_list = array( |
126 "rsln", "rsln-opendata", "rsln-mercedes-bunz", |
172 "rsln", "rsln-opendata", "rsln-mercedes-bunz", |
127 "enmi2011-technologie-confiance", "CPV", "fens_FabLab_Design_Metadata", |
173 "enmi2011-technologie-confiance", "CPV", "fens_FabLab_Design_Metadata", |
128 array("mashup","conference"), array("mashup","tableronde"), "sig-chi-paris-2011" |
174 array("mashup","conference"), array("mashup","tableronde"), "sig-chi-paris-2011" |
129 ); |
175 ); |
130 |
176 |
131 function registry_url($key, $type, $registry_def=null) { |
177 function registry_url($key, $type, $registry_def=null) { |
132 |
178 |
133 global $js_registry, $font_registry, $C_default_registry; |
179 global $js_registry, $font_registry, $css_registry, $C_default_registry; |
134 |
180 |
135 if($registry_def != null) { |
181 if($registry_def != null) { |
136 $registry = $registry_def; |
182 $registry = $registry_def; |
137 } |
183 } |
138 elseif(isset($C_default_registry)) { |
184 elseif(isset($C_default_registry)) { |