| author | Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> |
| Thu, 07 May 2015 15:20:17 +0200 | |
| changeset 1232 | af57ea059504 |
| parent 797 | c3543cde84c8 |
| child 1366 | 2cebaaf18c54 |
| permissions | -rw-r--r-- |
| 546 | 1 |
<?php |
2 |
||
3 |
if(!isset($_REQUEST['rep'])) { |
|
4 |
include_once dirname(__FILE__).'/common.php'; |
|
5 |
header('Location: ' . URL_ROOT . "$C_default_rep/select.php" ); |
|
6 |
exit(); |
|
7 |
} |
|
8 |
||
9 |
$rep = $_REQUEST['rep']; |
|
10 |
include dirname(__FILE__).'/'.$rep.'/config.php'; |
|
11 |
||
12 |
include_once 'common.php'; |
|
13 |
||
14 |
/** |
|
15 |
* Do we already have a valid Access Token or need to go get one? |
|
16 |
*/ |
|
17 |
if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) { |
|
18 |
/** |
|
19 |
* Guess we need to go get one! |
|
20 |
*/ |
|
21 |
$token = $consumer->getRequestToken(); |
|
22 |
$_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); |
|
23 |
||
24 |
/** |
|
25 |
* Now redirect user to Twitter site so they can log in and |
|
26 |
* approve our access |
|
27 |
*/ |
|
28 |
$consumer->redirect(); |
|
29 |
} |
|
30 |
||
31 |
||
| 633 | 32 |
$big_visual_url = URL_ROOT."/$rep/images/big-visuel.jpg"; |
| 546 | 33 |
if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) { |
34 |
$big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual'); |
|
35 |
} |
|
36 |
||
| 633 | 37 |
$head_logo = URL_ROOT."$rep/images/head-logo.png"; |
| 546 | 38 |
if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
39 |
$head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
|
40 |
} |
|
41 |
||
42 |
$embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
|
43 |
$videoWidth = ( $embed ? 442 : 480 ); |
|
44 |
$videoHeight = ( $embed ? 250 : 320 ); |
|
45 |
?> |
|
46 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
47 |
"http://www.w3.org/TR/html4/strict.dtd"> |
|
48 |
||
49 |
<html lang="<?php echo($actual); ?>"> |
|
50 |
<head> |
|
51 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
52 |
<title>Live Video and Annotation</title> |
|
53 |
<meta http-equiv="X-UA-Compatible" content="IE=9" /> |
|
54 |
||
55 |
<!-- FONT --> |
|
56 |
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
|
57 |
<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
|
58 |
|
|
59 |
<!-- CSS --> |
|
60 |
<link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen"> |
|
61 |
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>?42" type="text/css" media="screen, projection"/> |
|
62 |
||
63 |
<!-- JAVASCRIPT --> |
|
64 |
<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
65 |
|
|
66 |
<script type="text/javascript"> |
|
67 |
|
|
68 |
var _gaq = _gaq || []; |
|
69 |
_gaq.push(['_setAccount', 'UA-23581291-1']); |
|
70 |
_gaq.push(['_trackPageview']); |
|
71 |
_gaq.push(['_setAllowAnchor', true]); |
|
72 |
|
|
73 |
(function() { |
|
74 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
75 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
76 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
77 |
})(); |
|
78 |
|
|
79 |
</script> |
|
80 |
|
|
81 |
</head> |
|
82 |
<body> |
|
83 |
<div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div> |
|
84 |
||
85 |
<div id="container"> |
|
86 |
|
|
87 |
<div class="barre"> |
|
88 |
<img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" /> |
|
89 |
<div id="minilogo"></div> |
|
90 |
<ul class="menu"> |
|
91 |
<li> |
|
92 |
<a href="<?php echo(URL_ROOT); ?>" class="menuLink"> |
|
93 |
<?php print $translate->_("Accueil"); ?> |
|
94 |
</a> |
|
95 |
</li> |
|
96 |
<li> |
|
97 |
<a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'> |
|
98 |
<?php print $translate->_("Programme"); ?> |
|
99 |
</a> |
|
100 |
</li> |
|
101 |
<li> |
|
102 |
<a href="../about.php" class="menuLink" > |
|
103 |
<?php print $translate->_("A propos"); ?> |
|
104 |
</a> |
|
105 |
</li> |
|
106 |
</ul> |
|
107 |
<ul class="menu"> |
|
108 |
<li> |
|
109 |
<a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" > |
|
110 |
<img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
111 |
<?php print $translate->_("Japonais"); ?> |
|
112 |
</a></li> |
|
113 |
<li> |
|
114 |
<a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink"> |
|
115 |
<img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
116 |
<?php print $translate->_("Français"); ?> |
|
117 |
</a> |
|
118 |
</li> |
|
119 |
<li> |
|
120 |
<a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink"> |
|
121 |
<img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
122 |
<?php print $translate->_("Anglais"); ?> |
|
123 |
</a> |
|
124 |
</li> |
|
125 |
</ul> |
|
126 |
</div> |
|
|
797
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
127 |
<ul> |
| 549 | 128 |
<?php |
129 |
$basepath = dirname(__FILE__)."/"; |
|
| 633 | 130 |
$partenaires = $translate->_('config__partenaires'); |
| 549 | 131 |
foreach ($config['event_list'] as $i => $rep) { |
132 |
||
133 |
include("$basepath$rep/config.php"); |
|
134 |
||
135 |
set_config_translations($config, $translate); |
|
136 |
||
137 |
$tail_img = $translate->_('config__archive_img'); |
|
138 |
if(is_array($tail_img)) { |
|
139 |
$tail_img = $tail_img[0]; |
|
140 |
} |
|
141 |
$archive_title = $translate->_('config__archive_title'); |
|
142 |
if(is_array($archive_title)) { |
|
143 |
$archive_title = $archive_title[0]; |
|
144 |
} |
|
145 |
$archive_description = $translate->_('config__archive_description'); |
|
146 |
if(is_array($archive_description)) { |
|
147 |
$archive_description = $archive_description[0]; |
|
148 |
} |
|
149 |
||
150 |
?> |
|
|
797
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
151 |
<div class="archivesVideoBox"> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
152 |
<a href="<?php echo URL_ROOT . $rep ?>"> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
153 |
<img src="<?php echo URL_ROOT . "$rep/$tail_img" ?>" width="270" height="150"/> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
154 |
</a> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
155 |
<h3 class="AVBtitle"><?php echo $archive_title ?></h3> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
156 |
<p class="AVBtext"><?php echo $archive_description; ?></p> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
157 |
</div> |
| 549 | 158 |
<?php |
159 |
||
160 |
} |
|
161 |
||
162 |
?> |
|
|
797
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
163 |
</ul> |
| 546 | 164 |
</div> |
165 |
<div class="footer"> |
|
166 |
<hr /> |
|
167 |
<?php |
|
168 |
include dirname(__FILE__).'/'.$rep.'/config.php'; |
|
| 633 | 169 |
echo $partenaires; |
| 546 | 170 |
|
171 |
if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
172 |
echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>"); |
|
173 |
} |
|
174 |
?> |
|
175 |
</div> |
|
176 |
</div> |
|
177 |
</body> |
|
178 |
</html> |