equal
deleted
inserted
replaced
44 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
44 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
45 $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
45 $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
46 } |
46 } |
47 |
47 |
48 $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
48 $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
49 $embed_video = isset($_REQUEST['embed_video']) ? boolval($_REQUEST['embed_video']) : true; |
49 $embed_video = isset($_REQUEST['embed_video']) ? |
|
50 boolval($_REQUEST['embed_video']) : |
|
51 (isset($config['islive_embed']) && $config['islive_embed']) || (isset($config['islive']) && $config['islive']); |
50 $videoWidth = ( $embed ? 412 : 480 ); |
52 $videoWidth = ( $embed ? 412 : 480 ); |
51 $videoHeight = ( $embed ? 280 : 320 ); |
53 $videoHeight = ( $embed ? 280 : 320 ); |
52 if ($embed && !isset($_SESSION['TWITTER_ACCESS_TOKEN']) && (isset($_REQUEST['auth_redirect']) || isset($_SERVER['HTTP_REFERER']))) { |
54 if ($embed && !isset($_SESSION['TWITTER_ACCESS_TOKEN']) && (isset($_REQUEST['auth_redirect']) || isset($_SERVER['HTTP_REFERER']))) { |
53 $_SESSION['TWITTER_REDIRECT_URL'] = isset($_REQUEST['auth_redirect']) ? $_REQUEST['auth_redirect'] : $_SERVER['HTTP_REFERER']; |
55 $_SESSION['TWITTER_REDIRECT_URL'] = isset($_REQUEST['auth_redirect']) ? $_REQUEST['auth_redirect'] : $_SERVER['HTTP_REFERER']; |
54 }; |
56 }; |
92 <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
94 <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
93 <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script> |
95 <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script> |
94 <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
96 <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
95 <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
97 <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
96 <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script> |
98 <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script> |
|
99 <?php if( isset($config['additional_js']) && !empty($config['additional_js'])) { |
|
100 foreach ($config['additional_js'] as $jsUrl) {?> |
|
101 <script type="text/javascript" src="<?php echo($jsUrl)?>"></script> |
|
102 <?php } |
|
103 } ?> |
97 |
104 |
98 <style> |
105 <style> |
99 video { |
106 video { |
100 width: <?php echo($videoWidth); ?>px; |
107 width: <?php echo($videoWidth); ?>px; |
101 height: <?php echo($videoHeight); ?>px; |
108 height: <?php echo($videoHeight); ?>px; |
342 <?php endif; ?> |
349 <?php endif; ?> |
343 </div> |
350 </div> |
344 <?php |
351 <?php |
345 if (isset($config['islive']) && $config['islive']) { |
352 if (isset($config['islive']) && $config['islive']) { |
346 $videofile = $translate->_('config__video_file'); |
353 $videofile = $translate->_('config__video_file'); |
347 if ($videofile == 'config__video_file') $videofile = "https://media.iri.centrepompidou.fr/dash/livestream.mpd"; |
354 if ($videofile === 'config__video_file') $videofile = "https://media.iri.centrepompidou.fr/dash/livestream.mpd"; |
348 ?> |
355 ?> |
349 |
356 |
350 <script type="text/javascript" src="<?php echo(registry_url('dashjs','js'))?>"></script> |
357 <script type="text/javascript" src="<?php echo(registry_url('dashjs','js'))?>"></script> |
351 |
358 |
352 <script type="text/javascript"> |
359 <script type="text/javascript"> |