| author | Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> |
| Tue, 20 Sep 2011 11:20:20 +0200 | |
| changeset 285 | f1bc9fe452d5 |
| parent 283 | c9d8fce0b6da |
| child 286 | 6ac68295defe |
| permissions | -rwxr-xr-x |
|
0
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
1 |
<?php |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
2 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
3 |
/** |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
4 |
* If you haven't edited php.ini to add the Zend Framework and the |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
5 |
* Zend Framework Incubator to the PHP include_path, then do so here. |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
6 |
* Don't use mine! |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
7 |
*/ |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
8 |
set_include_path( |
|
99
6cb4d10f0b8b
NEW WEBSITE WITH : HOME / ABOUT / CLIENT.PHP
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
diff
changeset
|
9 |
'lib' |
|
0
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
10 |
. PATH_SEPARATOR . get_include_path() |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
11 |
); |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
12 |
|
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
13 |
/** |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
14 |
* Base configuration |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
15 |
*/ |
|
270
58d8ab6a1252
Back to jane Mc Gonigal
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
268
diff
changeset
|
16 |
$C_default_rep = 'JaneMcGonigal-gameDesign'; |
|
266
bb7a2f8202b9
Jane McGonigal : jeux video
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
259
diff
changeset
|
17 |
$C_feedback_form_url = 'http://www.rslnmag.fr/blog/theme/les-rencontres-rsln/2011/7/4/jane-mcgonigal_invitee-des-rencontres-rsln_vendredi-16-septembre/'; |
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
18 |
|
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
19 |
$configuration = array( |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
20 |
'siteUrl' => 'http://twitter.com/oauth', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
21 |
'consumerKey' => '***REMOVED***', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
22 |
'consumerSecret' => '***REMOVED***' |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
23 |
); |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
24 |
|
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
25 |
|
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
26 |
$req_rep = $C_default_rep; |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
27 |
if(isset($config) && isset($config['rep'])) { |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
28 |
$req_rep = $config['rep']; |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
29 |
} |
| 119 | 30 |
|
31 |
include_once dirname(__FILE__).'/traduction.php'; |
|
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
32 |
if(file_exists(dirname(__FILE__)."/$req_rep/traduction.php")) { |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
33 |
include_once dirname(__FILE__)."/$req_rep/traduction.php"; |
|
220
42aeb2bfc58e
publish chi07 and fens Fablab
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
219
diff
changeset
|
34 |
} |
| 119 | 35 |
|
36 |
||
|
0
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
37 |
/** |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
38 |
* Make sure Zend_Oauth's Consumer is loaded |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
39 |
*/ |
| 119 | 40 |
require_once dirname(__FILE__).'/lib/Zend/Oauth/Consumer.php'; |
41 |
||
42 |
/** Zend_Locale */ |
|
43 |
require_once dirname(__FILE__).'/lib/Zend/Locale.php'; |
|
44 |
||
45 |
/** Zend_Translate_Adapter */ |
|
46 |
require_once dirname(__FILE__).'/lib/Zend/Translate/Adapter.php'; |
|
|
0
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
47 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
48 |
/** |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
49 |
* Start up the ol' session engine |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
50 |
*/ |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
51 |
session_start(); |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
52 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
53 |
/** |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
54 |
* Include the configuration data for our OAuth Client (array $configuration) |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
55 |
*/ |
| 119 | 56 |
include_once dirname(__FILE__).'/config.php'; |
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
57 |
|
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
58 |
|
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
59 |
$configuration['callbackUrl'] = URL_ROOT."$req_rep/callback.php"; |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
60 |
|
|
0
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
61 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
62 |
/** |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
63 |
* Setup an instance of the Consumer for use |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
64 |
*/ |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
65 |
$consumer = new Zend_Oauth_Consumer($configuration); |
| 119 | 66 |
|
67 |
/** |
|
68 |
* TRADUCTION |
|
69 |
**/ |
|
70 |
||
71 |
||
72 |
Zend_Loader::loadClass('Zend_Translate'); |
|
73 |
Zend_Loader::loadClass('Zend_Http_Cookie'); |
|
74 |
||
75 |
||
76 |
$client = new Zend_Http_Client(); |
|
77 |
$translate = new Zend_Translate('array', $init, 'fr'); |
|
78 |
||
79 |
$translate->addTranslation($english, 'en'); |
|
80 |
$translate->addTranslation($japan, 'ja_JP'); |
|
81 |
$translate->addTranslation($french, 'fr'); |
|
82 |
||
83 |
$actual = $translate->getLocale(); |
|
84 |
||
85 |
//$translate->setLocale("en"); |
|
86 |
// $acceptCookie = $this->_request->getCookie('acceptCookie',0); |
|
87 |
||
88 |
if(isset($_GET['lang'])==false and isset($_SESSION['lang'])==false){ |
|
89 |
||
90 |
if($actual!='fr' and $actual!='en' and $actual!='ja_JP'){ |
|
91 |
$translate->setLocale("fr"); |
|
92 |
$_SESSION['lang']="fr"; |
|
93 |
} |
|
94 |
||
95 |
} else if (isset($_GET['lang'])==true){ |
|
96 |
$translate->setLocale($_GET['lang']); |
|
97 |
$_SESSION['lang'] = $_GET['lang']; |
|
98 |
$actual = $_SESSION['lang']; |
|
99 |
||
100 |
} else if (isset($_SESSION['lang'])==true){ |
|
101 |
$translate->setLocale( $_SESSION['lang']); |
|
102 |
$actual = $_SESSION['lang']; |
|
103 |
||
104 |
} |
|
105 |
||
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
106 |
$js_registry = array( |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
107 |
'local' => array( |
|
259
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
108 |
'jquery' => URL_ROOT.'res/js/jquery-1.4.3.min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
109 |
'raphael' => URL_ROOT.'res/raphael/raphael-min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
110 |
'jquery-ui' => URL_ROOT.'res/js/jquery-ui-1.8.13.min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
111 |
'niceforms' => URL_ROOT.'res/niceforms/niceforms.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
112 |
'jquery-url' => URL_ROOT.'res/js/jquery.url.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
113 |
'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
114 |
'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
115 |
'jquery-tools' => URL_ROOT.'res/metadataplayer/res/js/jquery.tools.min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
116 |
'tw-widget' => URL_ROOT.'res/js/tw_widget.js', |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
117 |
'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', |
|
259
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
118 |
'swfobject' => URL_ROOT.'res/metadataplayer/res/js/swfobject.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
119 |
'json-js' => URL_ROOT.'res/douglascrockford-JSON-js/json2.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
120 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
121 |
), |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
122 |
'cdn' => array( |
|
259
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
123 |
'jquery' => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
124 |
'raphael' => URL_ROOT.'res/raphael/raphael-min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
125 |
'jquery-ui' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
126 |
'niceforms' => URL_ROOT.'res/niceforms/niceforms.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
127 |
'jquery-url' => URL_ROOT.'res/js/jquery.url.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
128 |
'ldtplayer' => URL_ROOT.'res/metadataplayer/src/js/LdtPlayer.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
129 |
'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
130 |
'jquery-tools' => 'http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
131 |
'tw-widget' => 'http://widgets.twimg.com/j/2/widget.js', |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
132 |
'jquery-mousewheel' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js', |
|
259
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
133 |
'swfobject' => 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
134 |
'json-js' => URL_ROOT.'res/douglascrockford-JSON-js/json2.js', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
135 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
136 |
) |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
137 |
); |
|
143
2a3599a4b0f7
add #enmi page and some litlle corrections
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
119
diff
changeset
|
138 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
139 |
$font_registry = array( |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
140 |
'local' => array( |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
141 |
'PT-Sans_Narrow' => URL_ROOT.'res/fonts/PT_Sans-Narrow-Web-Regular.css', |
|
259
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
142 |
'PT-Sans' => URL_ROOT.'res/fonts/PT_Sans-Web-Regular.css', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
143 |
'Geo' => URL_ROOT.'res/fonts/Geo-Regular.css' |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
144 |
), |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
145 |
'cdn' => array( |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
146 |
'PT-Sans_Narrow' => 'http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin', |
|
259
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
147 |
'PT-Sans' => 'http://fonts.googleapis.com/css?family=PT+Sans&subset=latin', |
|
bc17d1af15ab
stats paper chi 1
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
258
diff
changeset
|
148 |
'Geo' => 'http://fonts.googleapis.com/css?family=Geo&subset=latin' |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
149 |
) |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
150 |
); |
|
216
d8c1b7e00533
sig chi paris 2011
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
207
diff
changeset
|
151 |
|
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
152 |
|
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
153 |
$css_registry = array( |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
154 |
'local' => array( |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
155 |
'blueprint-screen' => URL_ROOT.'res/blueprint/screen.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
156 |
'blueprint-print' => URL_ROOT.'res/blueprint/print.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
157 |
'blueprint-ie' => URL_ROOT.'res/blueprint/ie.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
158 |
'blueprint-plugins-fancy-type' => URL_ROOT.'res/blueprint/plugins/fancy-type/screen.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
159 |
'custom' => URL_ROOT.'res/css/custom.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
160 |
'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css', |
|
240
ee6305b4a7dc
correct registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
235
diff
changeset
|
161 |
'jquery-ui' => URL_ROOT.'res/metadataplayer/res/css/jq-css/themes/base/jquery-ui.css', |
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
162 |
'tabs-slideshow' => URL_ROOT.'res/css/tabs-slideshow.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
163 |
), |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
164 |
'cdn' => array( |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
165 |
'blueprint-screen' => URL_ROOT.'res/blueprint/screen.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
166 |
'blueprint-print' => URL_ROOT.'res/blueprint/print.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
167 |
'blueprint-ie' => URL_ROOT.'res/blueprint/ie.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
168 |
'blueprint-plugins-fancy-type' => URL_ROOT.'res/blueprint/plugins/fancy-type/screen.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
169 |
'custom' => URL_ROOT.'res/css/custom.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
170 |
'fancybox' => URL_ROOT.'res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
171 |
'jquery-ui' => "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css", |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
172 |
'tabs-slideshow' => URL_ROOT.'res/css/tabs-slideshow.css', |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
173 |
) |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
174 |
); |
|
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
175 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
176 |
$archives_list = array( |
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
177 |
"rsln", "rsln-opendata", "rsln-mercedes-bunz", |
|
251
d81cc587cc4d
add fablab and correction on feedback
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
240
diff
changeset
|
178 |
"enmi2011-technologie-confiance", "CPV", array("fens_FabLab_Design_Metadata","fablab"), |
|
d81cc587cc4d
add fablab and correction on feedback
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
240
diff
changeset
|
179 |
array("fens_FabLab_Design_Metadata","designmd"), array("mashup","conference"), array("mashup","tableronde"), |
|
285
f1bc9fe452d5
add jane mcGonigal
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
283
diff
changeset
|
180 |
"sig-chi-paris-2011", "rwd-meetup-patrimoine", "JaneMcGonigal-gameDesign" |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
181 |
); |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
182 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
183 |
function registry_url($key, $type, $registry_def=null) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
184 |
|
|
233
10d6fd6ce9ab
- put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
229
diff
changeset
|
185 |
global $js_registry, $font_registry, $css_registry, $C_default_registry; |
|
143
2a3599a4b0f7
add #enmi page and some litlle corrections
Samuel Huron <samuel.huron@centrepompidou.fr>
parents:
119
diff
changeset
|
186 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
187 |
if($registry_def != null) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
188 |
$registry = $registry_def; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
189 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
190 |
elseif(isset($C_default_registry)) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
191 |
$registry = $C_default_registry; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
192 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
193 |
else { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
194 |
$registry = 'local'; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
195 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
196 |
$registry_name = $type."_registry"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
197 |
return ${ |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
198 |
$registry_name}[$registry][$key]; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
199 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
200 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
201 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
202 |
function get_archive_box($rep, $metadata, $url_root, $basepath) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
203 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
204 |
include("$basepath$rep/config.php"); |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
205 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
206 |
$id = "abox_$rep".(($metadata!=null)?"_$metadata":""); |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
207 |
$hash = ($metadata!=null)?"#metadata=$metadata":""; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
208 |
$tail_img = $config['archive_img']; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
209 |
if(is_array($tail_img)) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
210 |
$tail_img = $tail_img[$metadata]; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
211 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
212 |
$archive_title = $config['archive_title']; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
213 |
if(is_array($archive_title)) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
214 |
$archive_title = $archive_title[$metadata]; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
215 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
216 |
$archive_description = $config['archive_description']; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
217 |
if(is_array($archive_description)) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
218 |
$archive_description = $archive_description[$metadata]; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
219 |
} |
| 119 | 220 |
|
221 |
||
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
222 |
$res = "<div id=\"$id\" class=\"archivesVideoBox\">\n"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
223 |
$res .= " <a href=\"$rep/polemicaltimeline.php$hash\">\n"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
224 |
$res .= " <img src=\"$url_root$rep/$tail_img\" width=\"270\" height=\"150\"/>"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
225 |
$res .= " </a>"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
226 |
$res .= " <div class=\"AVBtitle\">$archive_title</div>\n"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
227 |
$res .= " <div class=\"AVBtext\">\n"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
228 |
$res .= " $archive_description\n"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
229 |
$res .= " </div>\n"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
230 |
$res .= "</div>\n"; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
231 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
232 |
return $res; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
233 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
234 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
235 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
236 |
function display_archives_list($archives_list, $box_class, $url_root, $basepath) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
237 |
for($i=0;$i<count($archives_list);$i++) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
238 |
if(($i % 3)==0) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
239 |
print(" <div class=\"$box_class\">\n"); |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
240 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
241 |
$archive_ref = $archives_list[$i]; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
242 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
243 |
$archive_name = $archive_ref; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
244 |
$metadata = null; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
245 |
if(is_array($archive_ref)) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
246 |
$archive_name = $archive_ref[0]; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
247 |
$metadata = $archive_ref[1]; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
248 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
249 |
print(get_archive_box($archive_name,$metadata, $url_root, $basepath)); |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
250 |
if(($i % 3)==2 || $i == (count($archives_list)-1)) { |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
251 |
print(" </div>\n"); |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
252 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
253 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
254 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
255 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
227
diff
changeset
|
256 |