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