| author | ymh <ymh.work@gmail.com> |
| Wed, 11 Dec 2019 11:02:15 +0100 | |
| changeset 1512 | 487ca37bb0c7 |
| parent 1091 | 89455742ba35 |
| child 1560 | d441b50586ba |
| permissions | -rw-r--r-- |
|
495
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
1 |
<?php |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
2 |
error_reporting(E_ALL); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
3 |
ini_set('display_errors', '1'); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
4 |
/** |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
5 |
* include some common code (like we did in the 90s) |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
6 |
* People still do this? ;) |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
7 |
*/ |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
8 |
include_once './common.php'; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
9 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
10 |
function special_display_archives_list($archives_list, $box_class, $url_root, $basepath, &$translate) { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
11 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
12 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
13 |
for($i=0;$i<count($archives_list);$i++) { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
14 |
print(" <div class=\"$box_class\">\n"); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
15 |
$archive_ref = $archives_list[$i]; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
16 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
17 |
$archive_name = $archive_ref; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
18 |
$metadata = null; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
19 |
if(is_array($archive_ref)) { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
20 |
$archive_name = $archive_ref[0]; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
21 |
$metadata = $archive_ref[1]; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
22 |
} |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
23 |
print(get_archive_box($archive_name,$metadata, $url_root, $basepath, $translate)); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
24 |
print(" </div>\n"); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
25 |
} |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
26 |
} |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
27 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
28 |
?> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
29 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
30 |
<html lang="<?php echo($actual); ?>"> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
31 |
<head> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
32 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
33 |
<title>Polemic tweet - Live Video and Annotation</title> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
34 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
35 |
<link rel="stylesheet" href="<?php echo(registry_url('archives-iframe','css'));?>" type="text/css" media="screen, projection"/> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
36 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
37 |
<!-- JAVASCRIPT --> |
|
1091
89455742ba35
carrousel correction
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents:
502
diff
changeset
|
38 |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> |
|
89455742ba35
carrousel correction
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents:
502
diff
changeset
|
39 |
<script type="text/javascript" src="http://cdn.jquerytools.org/1.2.7/all/jquery.tools.min.js"></script> |
|
495
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
40 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
41 |
<!-- FONT --> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
42 |
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
43 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
44 |
<script type="text/javascript"> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
45 |
var _timerJqScroll; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
46 |
function startTimer() { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
47 |
if (_timerJqScroll) { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
48 |
clearInterval(_timerJqScroll); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
49 |
} |
|
502
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
499
diff
changeset
|
50 |
_timerJqScroll = setInterval(function() { $(".scrollable").scrollable().next()}, 8000); |
|
495
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
51 |
} |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
52 |
$(function() { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
53 |
$(".archivesVideoBox").mouseover(function() { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
54 |
$(this).css({'backgroundColor':'#fff'}); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
55 |
$(this).cursor = "pointer"; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
56 |
}).mouseout(function() { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
57 |
$(this).css({'backgroundColor':'#f2f2f2'}); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
58 |
}); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
59 |
$(".scrollable").scrollable({"circular":true}); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
60 |
$(".browse, .item").click(function() { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
61 |
startTimer(); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
62 |
}) |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
63 |
startTimer(); |
| 499 | 64 |
$("a").attr("target", "_blank"); |
|
495
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
65 |
}); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
66 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
67 |
var _gaq = _gaq || []; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
68 |
_gaq.push(['_setAccount', 'UA-23581291-1']); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
69 |
_gaq.push(['_trackPageview']); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
70 |
_gaq.push(['_setAllowAnchor', true]); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
71 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
72 |
(function() { |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
73 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
74 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
75 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
76 |
})(); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
77 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
78 |
</script> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
79 |
</head> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
80 |
<body> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
81 |
<div class="archivesBoxContainer scrollable"> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
82 |
<!-- --> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
83 |
<div class="archivesTitleActionsContainer"> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
84 |
<div class="archivesActionsContainer" id="actions"> |
|
502
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
499
diff
changeset
|
85 |
<a class="prev browse left">« </a> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
499
diff
changeset
|
86 |
<a class="next browse right"> »</a> |
|
495
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
87 |
</div> |
|
502
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
499
diff
changeset
|
88 |
<h3 class="archivesTitle">Polemic Tweet</h3> |
|
495
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
89 |
</div> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
90 |
|
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
91 |
<!-- --> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
92 |
<div class="items"> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
93 |
<?php |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
94 |
$arch_list = array_reverse($archives_list); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
95 |
special_display_archives_list($arch_list, "archive_box_3 item", URL_ROOT, dirname(__FILE__)."/", $translate); |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
96 |
?> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
97 |
</div> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
98 |
</div> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
99 |
</body> |
|
34f92d5b2acf
Added an archive embed for the IRI homepage
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
100 |
</html> |