| author | ymh <ymh.work@gmail.com> |
| Fri, 15 Nov 2024 01:29:53 +0100 | |
| changeset 1575 | ce1d5b0d1479 |
| parent 1573 | 43dc356e3ff8 |
| child 1579 | c88b8cc7b2b8 |
| permissions | -rwxr-xr-x |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
1 |
<?php |
|
563
0dd745105665
Tests for IE9 cookie issues
Raphael Velt <raph.velt@gmail.com>
parents:
561
diff
changeset
|
2 |
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
3 |
if(!isset($_REQUEST['rep'])) { |
|
1427
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
diff
changeset
|
4 |
include_once __DIR__.'/common.php'; |
| 628 | 5 |
header('Location: ' . URL_ROOT . "$C_default_rep/client.php" ); |
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
6 |
exit(); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
7 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
8 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
9 |
$rep = $_REQUEST['rep']; |
|
1427
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
diff
changeset
|
10 |
include_once __DIR__.'/'.$rep.'/config.php'; |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
11 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
12 |
include_once 'common.php'; |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
13 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
14 |
/** |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
15 |
* Do we already have a valid Access Token or need to go get one? |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
16 |
*/ |
| 1571 | 17 |
if ((!isset($_SESSION['SOCIAL_ACCESS_TOKEN'])) && isset($_GET['CONNECT']) ) { |
18 |
||
|
1427
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
diff
changeset
|
19 |
// /** |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
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:
1406
diff
changeset
|
21 |
// */ |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
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:
1406
diff
changeset
|
23 |
// $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
24 |
|
|
1427
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
diff
changeset
|
25 |
// /** |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
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:
1406
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:
1406
diff
changeset
|
28 |
// */ |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1406
diff
changeset
|
29 |
// $consumer->redirect(); |
| 1557 | 30 |
$socialDomain = $_GET['CONNECT']; |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
31 |
if (isset($_SESSION['SOCIAL_AUTH_STATE'])) { |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
32 |
unset($_SESSION['SOCIAL_AUTH_STATE']); |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
33 |
} |
| 1557 | 34 |
$get_social_request_token($socialDomain, $config); |
|
557
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
35 |
} else { |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
36 |
if (isset($_SESSION['TWITTER_REDIRECT_URL'])) { |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
37 |
unset($_SESSION['TWITTER_REDIRECT_URL']); |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
38 |
} |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
39 |
} |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
40 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
41 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
42 |
$big_visual_url = URL_ROOT."/$rep/images/big_visuel_rsln_mb.jpg"; |
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
43 |
if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) { |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
44 |
$big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual'); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
45 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
46 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
47 |
$head_logo = URL_ROOT."$rep/images/head_logo.gif"; |
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
48 |
if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
49 |
$head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
50 |
} |
|
458
a12229c45a6f
Correct shuron bad commit
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
456
diff
changeset
|
51 |
|
|
561
e2b5cb558dcd
Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents:
559
diff
changeset
|
52 |
$embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
|
1439
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
53 |
$embed_video = isset($_REQUEST['embed_video']) ? |
|
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
54 |
boolval($_REQUEST['embed_video']) : |
|
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
55 |
(isset($config['islive_embed']) && $config['islive_embed']) || (isset($config['islive']) && $config['islive']); |
|
561
e2b5cb558dcd
Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents:
559
diff
changeset
|
56 |
$videoWidth = ( $embed ? 412 : 480 ); |
|
e2b5cb558dcd
Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents:
559
diff
changeset
|
57 |
$videoHeight = ( $embed ? 280 : 320 ); |
| 1557 | 58 |
if ($embed && !isset($_SESSION['SOCIAL_ACCESS_TOKEN']) && (isset($_REQUEST['auth_redirect']) || isset($_SERVER['HTTP_REFERER']))) { |
|
561
e2b5cb558dcd
Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents:
559
diff
changeset
|
59 |
$_SESSION['TWITTER_REDIRECT_URL'] = isset($_REQUEST['auth_redirect']) ? $_REQUEST['auth_redirect'] : $_SERVER['HTTP_REFERER']; |
|
e2b5cb558dcd
Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents:
559
diff
changeset
|
60 |
}; |
|
e2b5cb558dcd
Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents:
559
diff
changeset
|
61 |
|
| 1436 | 62 |
$defaultAnnotations = get_default_annotations_config($config, $translate); |
63 |
$annotations = array(); |
|
64 |
foreach ($defaultAnnotations as $annot_cat => $annot_def) { |
|
65 |
if($annot_cat !== 'default' && !isset($annot_def['colors_class'])) { |
|
66 |
$annot_def['colors_class'] = 'tweetButton_'.md5($annot_cat); |
|
67 |
} |
|
68 |
$annotations[$annot_cat] = $annot_def; |
|
69 |
} |
|
70 |
||
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
71 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
72 |
?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
73 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
74 |
"http://www.w3.org/TR/html4/strict.dtd"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
75 |
|
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
76 |
<html lang="<?php echo($actual); ?>"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
77 |
<head> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
78 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
922
2ca61ac043e3
Added information about connection
Raphael Velt <raph.velt@gmail.com>
parents:
878
diff
changeset
|
79 |
<title>Polemic Tweet — <?php echo($translate->_('config__title')); ?></title> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
80 |
<meta http-equiv="X-UA-Compatible" content="IE=9" /> |
| 1557 | 81 |
<link rel="icon" type="image/x-icon" href="<?php echo(URL_ROOT); ?>images/favico.png"> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
82 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
83 |
<!-- CSS --> |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
84 |
<link href='<?php echo(URL_ROOT); ?>res/css/main.css' rel='stylesheet' type='text/css'/> |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
85 |
<link href='<?php echo(URL_ROOT); ?>res/css/vendors.css' rel='stylesheet' type='text/css'/> |
|
1366
2cebaaf18c54
enmi16
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1295
diff
changeset
|
86 |
<link href='<?php echo(URL_ROOT); ?>res/css/common.css' rel='stylesheet' type='text/css'/> |
|
2cebaaf18c54
enmi16
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1295
diff
changeset
|
87 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
88 |
<!-- JAVASCRIPT --> |
|
1439
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
89 |
<?php if( isset($config['additional_js']) && !empty($config['additional_js'])) { |
|
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
90 |
foreach ($config['additional_js'] as $jsUrl) {?> |
|
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
91 |
<script type="text/javascript" src="<?php echo($jsUrl)?>"></script> |
|
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
92 |
<?php } |
|
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
93 |
} ?> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
94 |
|
|
1368
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
95 |
<style> |
|
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
96 |
video { |
|
1370
d9711e6b1f17
correct video size in embed mode
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1368
diff
changeset
|
97 |
width: <?php echo($videoWidth); ?>px; |
|
d9711e6b1f17
correct video size in embed mode
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1368
diff
changeset
|
98 |
height: <?php echo($videoHeight); ?>px; |
|
1368
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
99 |
} |
| 1436 | 100 |
<?php |
101 |
foreach ($annotations as $annot_cat => $annot_def) { |
|
102 |
if($annot_cat === 'default') { |
|
103 |
continue; |
|
104 |
} |
|
105 |
$hVal = intval(($annot_def['colors']['h']<1.0)?floatval($annot_def['colors']['h']) * 360.0:$annot_def['colors']['h']); |
|
106 |
$sVal = intval(floatval($annot_def['colors']['s']) * 100.0); |
|
107 |
||
| 1557 | 108 |
$baseColor = "hsl($hVal, {$sVal}%, 90%)"; |
109 |
$borderColor = "hsl($hVal, {$sVal}%, 60%)"; |
|
| 1436 | 110 |
$selectedColor = "hsl($hVal, 15%, 70%)"; |
111 |
$selectedBorderColor = "hsl($hVal, 15%, 60%)"; |
|
| 1557 | 112 |
$gradientColor = "hsl($hVal, {$sVal}%, 50%)"; |
| 1436 | 113 |
?> |
114 |
.tweetButton.<?php echo($annot_def['colors_class']) ?> { |
|
115 |
background: <?php echo($baseColor); ?>; |
|
116 |
border: solid <?php echo($borderColor); ?> 1px; |
|
117 |
background-image: -webkit-linear-gradient(top, <?php echo($baseColor); ?>, <?php echo($gradientColor); ?>); |
|
118 |
background-image: -moz-linear-gradient(top, <?php echo($baseColor); ?>, <?php echo($gradientColor); ?>); |
|
119 |
background-image: -ms-linear-gradient(top, <?php echo($baseColor); ?>, <?php echo($gradientColor); ?>); |
|
120 |
background-image: -o-linear-gradient(top, <?php echo($baseColor); ?>, <?php echo($gradientColor); ?>); |
|
|
1573
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
121 |
background-image: linear-gradient(to bottom, <?php echo($baseColor); ?>, <?php echo($gradientColor); ?>); |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
122 |
} <?php // eslint-disable-line ?> |
| 1436 | 123 |
.tweetButton.<?php echo($annot_def['colors_class']) ?>.selected,.tweetButton:active.<?php echo($annot_def['colors_class']) ?>:active,.tweetButton:hover.<?php echo($annot_def['colors_class']) ?>:hover.selected { |
124 |
background: <?php echo($selectedColor); ?>; |
|
125 |
border: solid <?php echo($selectedBorderColor); ?> 1px; |
|
|
1573
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
126 |
} <?php // eslint-disable-line ?> |
| 1436 | 127 |
.tweetButton.<?php echo($annot_def['colors_class']) ?>:hover { |
128 |
background-image: -webkit-linear-gradient(top, <?php echo($gradientColor); ?>, <?php echo($baseColor); ?>); |
|
129 |
background-image: -moz-linear-gradient(top, <?php echo($gradientColor); ?>, <?php echo($baseColor); ?>); |
|
130 |
background-image: -ms-linear-gradient(top, <?php echo($gradientColor); ?>, <?php echo($baseColor); ?>); |
|
131 |
background-image: -o-linear-gradient(top, <?php echo($gradientColor); ?>, <?php echo($baseColor); ?>); |
|
132 |
background-image: linear-gradient(to bottom, <?php echo($gradientColor); ?>, <?php echo($baseColor); ?>); |
|
|
1573
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
133 |
} <?php // eslint-disable-line ?> |
| 1436 | 134 |
<?php } ?> |
|
1368
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
135 |
</style> |
|
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
136 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
137 |
<script type="text/javascript"> |
| 1571 | 138 |
var social_login_domain = "<?php echo($_SESSION['SOCIAL_LOGIN_DOMAIN']); ?>"; |
139 |
var social_access_token = "<?php echo(unserialize($_SESSION['SOCIAL_ACCESS_TOKEN'])); ?>"; |
|
140 |
var social_network = '<?php echo($config['social_network']); ?>' || 'Twitter'; |
|
141 |
var social_group = "<?php echo($config['group']); ?>"; |
|
|
546
fd35749faca9
Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents:
538
diff
changeset
|
142 |
<?php |
|
fd35749faca9
Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents:
538
diff
changeset
|
143 |
if (isset($config['tracking_keywords']) && count($config['tracking_keywords'])) { |
|
fd35749faca9
Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents:
538
diff
changeset
|
144 |
echo "var tracking_keywords = ".json_encode($config['tracking_keywords']).';'; |
|
fd35749faca9
Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents:
538
diff
changeset
|
145 |
} elseif (isset($config['hashtag'])) { |
|
fd35749faca9
Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents:
538
diff
changeset
|
146 |
echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; |
|
fd35749faca9
Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents:
538
diff
changeset
|
147 |
} |
|
fd35749faca9
Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents:
538
diff
changeset
|
148 |
?> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
149 |
<?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
150 |
<?php if (isset($config['js_config'])) echo "\n".$config['js_config']."\n"; ?> |
| 593 | 151 |
l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" } |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
152 |
if (typeof annotations == "undefined" || !annotations) { |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
153 |
var annotations = JSON.parse("<?php echo addslashes(json_encode($annotations)); ?>"); |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
154 |
for(var annot_cat in annotations) { |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
155 |
if("keywords" in annotations[annot_cat]) { |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
156 |
annotations[annot_cat]['keywords'] = [ new RegExp(annotations[annot_cat]['keywords']), ]; |
| 593 | 157 |
} |
158 |
} |
|
|
620
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
159 |
} |
| 1575 | 160 |
global.annotations = annotations; |
161 |
console.log("ANNOTATIONS",annotations); |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
162 |
</script> |
| 1557 | 163 |
<?php if (isset($_SESSION['SOCIAL_ACCESS_TOKEN'])) { ?> |
| 1571 | 164 |
<script type="text/javascript" src="<?php echo(URL_ROOT); ?>res/js/live-polemic.js" ></script> |
|
878
bead0341e247
Starting 'twitter-api-1.1' branch
Raphael Velt <raph.velt@gmail.com>
parents:
820
diff
changeset
|
165 |
<?php } ?> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
166 |
<script type="text/javascript"> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
167 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
168 |
function add_grammar(value) { |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
169 |
var _st = $('#status'), |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
170 |
_val = _st.val(); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
171 |
_st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change(); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
172 |
} |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
173 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
174 |
$(document).ready(function() { |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
175 |
|
|
1404
70805de82cb3
Add url parameter to avoid embedding the video
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1370
diff
changeset
|
176 |
const TWEET_LENGTH = <?php echo(TWEET_LENGTH)?>; |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
177 |
function updateCounter() { |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
178 |
var _v = $("#status").val(); |
| 1557 | 179 |
if(!_v) { |
180 |
return; |
|
181 |
} |
|
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
182 |
var _tRes = twitter.parseTweet(_v); |
|
1499
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
183 |
if(_tRes.valid) { |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
184 |
$('#tweetCounter').removeClass("tweetCounterNegative"); |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
185 |
$('#sendTweet').prop("disabled",false); |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
186 |
$('#sendTweet').removeClass("sendTweetDisabled"); |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
187 |
$('#tweetCounter').html(""); |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
188 |
} else { |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
189 |
$('#tweetCounter').addClass("tweetCounterNegative"); |
|
1499
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
190 |
$('#sendTweet').prop("disabled",true); |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
191 |
$('#sendTweet').addClass("sendTweetDisabled"); |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
192 |
$('#tweetCounter').html(_tRes.validRangeEnd - _tRes.displayRangeEnd); |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
193 |
} |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
194 |
$(".tweetButton").each(function(_i, _e) { |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
195 |
if (_v.search($(_e).find('span.twbSyntax').text().replace(/(\W)/g, '\\$1')) > -1) { |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
196 |
$(_e).addClass('selected'); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
197 |
} else { |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
198 |
$(_e).removeClass('selected'); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
199 |
} |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
200 |
}); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
201 |
} |
|
1499
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
202 |
updateCounter(); |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
203 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
204 |
// BUTTONS |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
205 |
$(".tweetButton").click(function() { |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
206 |
add_grammar($(this).find('span.twbSyntax').text()); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
207 |
updateCounter(); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
208 |
}) |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
209 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
210 |
// SEND TWEETS |
|
1499
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
211 |
$("#sendTweet").click(function(e){ |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
212 |
if($('#sendTweet').prop('disabled')) { |
| 1575 | 213 |
console.log("Send disabled") |
|
1499
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
214 |
return; |
|
641ced48fd5a
Improve counter display in client by using twitter-text
ymh <ymh.work@gmail.com>
parents:
1443
diff
changeset
|
215 |
} |
| 1575 | 216 |
$('#sendTweet').prop('disabled', true); |
217 |
$('#sendTweet').toggleClass('sending'); |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
218 |
var MyStatus = $('#status').val(); |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
219 |
$.post('tweet_ajax.php', { |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
220 |
status:MyStatus, |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
221 |
social_network: "<?php echo($config['social_network']) ?>", |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
222 |
domain: "<?php echo(isset($_SESSION['SOCIAL_LOGIN_DOMAIN'])?$_SESSION['SOCIAL_LOGIN_DOMAIN']:'') ?>", |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
223 |
hashtag: "<?php echo($config['hashtag']) ?>", |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
224 |
group: "<?php echo($config['group'] ?? "") ?>" |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
225 |
} |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
226 |
,function(data) { |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
227 |
|
| 1575 | 228 |
$('#sendTweet').toggleClass('sending'); |
229 |
$('#sendTweet').prop('disabled', false); |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
230 |
if(data=="true"){ |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
231 |
$("#messageSuccess").show('fast'); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
232 |
$("#messageSuccess").delay(800).hide('slow'); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
233 |
$('#status').val("<?php echo($config['hashtag']); ?>"); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
234 |
$('#status').change(); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
235 |
}else{ |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
236 |
$("#error").text(data); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
237 |
$("#messageFailed").show('fast'); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
238 |
$("#messageFailed").delay(800).hide('slow'); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
239 |
} |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
240 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
241 |
}); |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
242 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
243 |
}); |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
244 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
245 |
|
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
246 |
$("#status").bind("change keyup paste blur focus",updateCounter); |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
247 |
|
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
248 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
249 |
$("#Program").fancybox({ |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
250 |
'width' : '75%', |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
251 |
'height' : '75%', |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
252 |
'autoScale' : false, |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
253 |
'transitionIn' : 'none', |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
254 |
'transitionOut' : 'none', |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
255 |
'type' : 'iframe' |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
256 |
}); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
257 |
$(".embedbutton").fancybox({ |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
258 |
'width' : 360, |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
259 |
'height' : 360, |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
260 |
'autoDimensions' : false, |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
261 |
'transitionIn' : 'none', |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
262 |
'transitionOut' : 'none', |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
263 |
'type' : 'iframe' |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
264 |
}); |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
265 |
|
|
989
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
266 |
$("#onglets a").click(function() { |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
267 |
$("div.ifwrap").hide(); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
268 |
$("#onglets li").removeClass("selected"); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
269 |
$(this).parent().addClass("selected"); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
270 |
var hr = $(this).attr("href"); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
271 |
if (hr[0] == '#') { |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
272 |
$(hr).show(); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
273 |
} else { |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
274 |
$("#iframeWrap").show(); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
275 |
$("#graphFrame").attr("src", hr); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
276 |
} |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
277 |
return false; |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
278 |
}); |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
279 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
280 |
}); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
281 |
|
|
989
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
282 |
// hightlight |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
283 |
<?php |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
284 |
$effect = "highlight"; |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
285 |
if(isset($_REQUEST['highlight_effect']) && !empty($_REQUEST['highlight_effect'])) { |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
286 |
$effect = $_REQUEST['highlight_effect']; |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
287 |
} |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
288 |
if( isset($_REQUEST['highlight']) && !empty($_REQUEST['highlight'])) { ?> |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
289 |
$(function() { |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
290 |
$("<?php echo $_REQUEST['highlight'];?>").delay(1000).effect("<?php echo $effect; ?>", {}, 5000); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
291 |
}); |
|
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
292 |
<?php } ?> |
| 1571 | 293 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
294 |
//<!-- LIMIT TEXTAREA: |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
295 |
// End --> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
296 |
|
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
297 |
</script> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
298 |
</head> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
299 |
<body<?php if ($embed) { echo ' class="embed"'; } ?>> |
|
1366
2cebaaf18c54
enmi16
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1295
diff
changeset
|
300 |
<!--div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div--> |
|
563
0dd745105665
Tests for IE9 cookie issues
Raphael Velt <raph.velt@gmail.com>
parents:
561
diff
changeset
|
301 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
302 |
<div id="container"> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
303 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
304 |
<div id="coldroite"> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
305 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
306 |
<div class="embedbar"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
307 |
<a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/live_embed_form.php">Intégrer</a> |
|
1518
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
308 |
<?php |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
309 |
$share_title = "Polemic Tweet - ".$translate->_('config__title'); |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
310 |
$share_url = rtrim(URL_ROOT,"/").$rep; |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
311 |
$share_description = strip_tags(preg_replace('/<\s?br\s*\\?>/i', "\n", str_replace(" ", " ", $translate->_('config__abstract')))); |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
312 |
?> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
313 |
<!-- cf. https://sharingbuttons.io/ --> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
314 |
<div class="share_toolbox"> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
315 |
<!-- Sharingbutton E-Mail --> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
316 |
<a class="resp-sharing-button__link" href="mailto:?subject=<?php echo rawurlencode($share_title); ?>&body=<?php echo rawurlencode("$share_description - $share_url"); ?>" target="_self" rel="noopener" aria-label=""> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
317 |
<div class="resp-sharing-button resp-sharing-button--email resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid"> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
318 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z"/></svg> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
319 |
</div> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
320 |
</div> |
|
a3c6f244dbc1
Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents:
1514
diff
changeset
|
321 |
</a> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
322 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
323 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
324 |
<ul id="onglets"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
325 |
<?php if (isset($config['semantic_board']) or isset($config['knowtex_url'])) { ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
326 |
<li class="selected"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
327 |
<a href="#vlWrap"><?php echo($translate->_('Video')); ?></a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
328 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
329 |
<?php } ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
330 |
<?php if (isset($config['semantic_board']) and $config['semantic_board']) { ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
331 |
<li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
332 |
<a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
333 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
334 |
<?php } ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
335 |
<?php if (isset($config['knowtex_url'])) { ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
336 |
<li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
337 |
<a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
338 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
339 |
<?php } ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
340 |
</ul> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
341 |
<div class="ifwrap" id="vlWrap"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
342 |
<div id="videoLivePlayer"> |
|
1404
70805de82cb3
Add url parameter to avoid embedding the video
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1370
diff
changeset
|
343 |
<?php if(!$embed_video): ?> |
|
1406
cb671a36143a
Add url parameter to avoid embedding the video - correct size
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1404
diff
changeset
|
344 |
<?php if(!$embed): ?> |
|
cb671a36143a
Add url parameter to avoid embedding the video - correct size
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1404
diff
changeset
|
345 |
<img src='<?php echo($big_visual_url); ?>' /> |
|
cb671a36143a
Add url parameter to avoid embedding the video - correct size
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1404
diff
changeset
|
346 |
<?php else: ?> |
|
cb671a36143a
Add url parameter to avoid embedding the video - correct size
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1404
diff
changeset
|
347 |
<img width=<?php echo($videoWidth); ?> height=<?php echo($videoHeight); ?> src='<?php echo($big_visual_url); ?>' /> |
|
cb671a36143a
Add url parameter to avoid embedding the video - correct size
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1404
diff
changeset
|
348 |
<?php endif; ?> |
|
1404
70805de82cb3
Add url parameter to avoid embedding the video
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1370
diff
changeset
|
349 |
<?php elseif(isset($config['islive_embed']) && $config['islive_embed']):?> |
|
620
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
350 |
<?php echo str_replace(array('{{width}}','{{height}}'), array($videoWidth, $videoHeight), $translate->_('config__islive_embed')); ?> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
351 |
<?php else: ?> |
|
1368
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
352 |
<video id="videoPlayer" width=<?php echo($videoWidth); ?> height=<?php echo($videoHeight); ?> autoplay controls poster="<?php echo($big_visual_url); ?>" class="video-js vjs-default-skin"><img class="live-thumbnail" src="<?php echo($big_visual_url); ?>" /></video> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
353 |
<?php endif; ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
354 |
</div> |
| 940 | 355 |
<?php |
356 |
if (isset($config['islive']) && $config['islive']) { |
|
357 |
$videofile = $translate->_('config__video_file'); |
|
|
1439
df4c992749ea
Add dynamic code for youtube code and a automatic reloader
ymh <ymh.work@gmail.com>
parents:
1436
diff
changeset
|
358 |
if ($videofile === 'config__video_file') $videofile = "https://media.iri.centrepompidou.fr/dash/livestream.mpd"; |
| 940 | 359 |
?> |
360 |
||
361 |
<script type="text/javascript"> |
|
|
1368
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
362 |
(function(){ |
|
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
363 |
var url = "<?php echo($videofile)?>"; |
|
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
364 |
var player = dashjs.MediaPlayer().create(); |
|
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
365 |
player.initialize(document.querySelector("#videoPlayer"), url, true); |
|
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1366
diff
changeset
|
366 |
})(); |
| 940 | 367 |
</script> |
368 |
<?php |
|
369 |
} |
|
370 |
?> |
|
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
371 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
372 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
373 |
<div class="ifwrap hidden" id="iframeWrap"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
374 |
<iframe id="graphFrame"></iframe> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
375 |
</div> |
|
620
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
376 |
<ul class="accordeon"> |
|
989
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
377 |
<li class="acctitre" id="event-title"> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
378 |
<h3><?php echo($translate->_('config__title')); ?></h3> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
379 |
</li> |
|
989
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
380 |
<li class="acctexte acclimited" id="event-description"> |
| 1571 | 381 |
<?php echo($translate->_('config__description')); ?> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
382 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
383 |
<li class="acctitre"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
384 |
<h3><?php echo($translate->_('keywords')); ?></h3> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
385 |
</li> |
|
557
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
386 |
<li> |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
387 |
<ul> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
388 |
<li class="acctexte"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
389 |
<div class="accsubtitle"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
390 |
<div class="aroundsubtitle"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
391 |
<h4><?php echo($translate->_('suggested')); ?></h4> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
392 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
393 |
</div> |
|
557
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
394 |
<div class="tagcloud" id="suggkw"> |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
395 |
<div class="clearer"></div> |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
396 |
</div> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
397 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
398 |
<li class="acctexte"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
399 |
<div class="accsubtitle"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
400 |
<div class="aroundsubtitle"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
401 |
<h4><?php echo($translate->_('contextual')); ?></h4> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
402 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
403 |
</div> |
|
557
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
404 |
<div class="tagcloud" id="motscles"> |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
405 |
<div class="clearer"></div> |
|
636258d3fe4b
Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents:
553
diff
changeset
|
406 |
</div> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
407 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
408 |
</ul> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
409 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
410 |
</ul> |
|
976
d3c6e4ae0d50
add iri logo
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents:
940
diff
changeset
|
411 |
<p id="iri_logo" style="text-align:right;"> |
| 1571 | 412 |
Powered by <a href="http://www.iri.centrepompidou.fr" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/logo_iri_bleu_transparent_petit.png" alt="logo IRI"/></a> |
|
976
d3c6e4ae0d50
add iri logo
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents:
940
diff
changeset
|
413 |
</p> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
414 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
415 |
<div id="colgauche"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
416 |
<div class="barre"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
417 |
<img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
418 |
<div id="minilogo"></div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
419 |
<ul class="menu"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
420 |
<li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
421 |
<a href="<?php echo(URL_ROOT); ?>" class="menuLink"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
422 |
<?php print $translate->_("Accueil"); ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
423 |
</a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
424 |
</li> |
|
989
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
425 |
<li id="event-link"> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
426 |
<a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
427 |
<?php print $translate->_("Programme"); ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
428 |
</a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
429 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
430 |
<li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
431 |
<a href="../about.php" class="menuLink" > |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
432 |
<?php print $translate->_("A propos"); ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
433 |
</a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
434 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
435 |
</ul> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
436 |
<ul class="menu"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
437 |
<li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
438 |
<a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" > |
| 1571 | 439 |
<img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif' <?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
440 |
<?php print $translate->_("Japonais"); ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
441 |
</a></li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
442 |
<li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
443 |
<a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
444 |
<img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
445 |
<?php print $translate->_("Français"); ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
446 |
</a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
447 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
448 |
<li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
449 |
<a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
450 |
<img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
451 |
<?php print $translate->_("Anglais"); ?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
452 |
</a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
453 |
</li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
454 |
</ul> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
455 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
456 |
<div id="twwWrap"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
457 |
<div id="tweetWriter"> |
| 1557 | 458 |
<?php if (isset($_SESSION['SOCIAL_ACCESS_TOKEN'])): ?> |
|
1404
70805de82cb3
Add url parameter to avoid embedding the video
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1370
diff
changeset
|
459 |
<div id="tweetCounter"><?php echo(TWEET_LENGTH-strlen($config['hashtag']));?></div> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
460 |
<?php endif;?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
461 |
<h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3> |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
462 |
|
| 1557 | 463 |
<?php if (!isset($_SESSION['SOCIAL_ACCESS_TOKEN'])){ |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
464 |
$loginform = "<div class='loginbutton'>"; |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
465 |
$socialNetwork = isset($config['social_network'])?$config['social_network']:'Twitter'; |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
466 |
if($socialNetwork === 'Twitter') { |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
467 |
$loginform .= "<a href='".URL_ROOT."$rep/client.php?CONNECT=true' target='_top' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a>"; |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
468 |
} else { |
|
1573
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
469 |
$loginform .= "<form action='".URL_ROOT."$rep/client.php' method='GET' target='_top'>"; |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
470 |
$loginform .= "<div class='loginlink'>".$translate->_("Vous n'êtes pas connecté à Mastodon.")."</div>"; |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
471 |
$loginform .= "<ol class='loginlist'>"; |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
472 |
$loginform .= "<li><input type='text' id='social_domain' name='CONNECT' value='mastodon.svc.iri-research.org'/>"; |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
473 |
$loginform .= "<input type='submit' value='Connect'/>".$translate->_("Connexion Mastodon 1")."</li>"; |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
474 |
$loginform .= "</form>"; |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
475 |
$loginform .= "<li>".$translate->_("Connexion Mastodon 2")."<code>".$config['group']."</code></li>"; |
|
43dc356e3ff8
Improve mastodon login text and add test event
ymh <ymh.work@gmail.com>
parents:
1571
diff
changeset
|
476 |
$loginform .= "</ol>"; |
| 1571 | 477 |
|
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
478 |
} |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
479 |
$loginform .= "</div>"; |
|
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
480 |
echo($loginform); |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
481 |
} else { |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
482 |
echo('<form action="tweet.php" method="post" id="statusform" >'); |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
483 |
echo("<textarea name='status' id='status' rows='3' cols='50'>$config[hashtag]</textarea>"); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
484 |
} |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
485 |
?> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
486 |
<div id="messageSuccess" style="background-color:lightgreen; display: none;"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
487 |
<?php print $translate->_("Envoyé"); ?><br/><br/> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
488 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
489 |
<div id="messageFailed" style="background-color:red; display: none;"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
490 |
<?php print $translate->_("Erreur1"); ?><div id="error"> </div><br/><br/> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
491 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
492 |
<a href="#" id="sendTweet" > |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
493 |
<span><?php print $translate->_("Envoyer"); ?></span> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
494 |
</a> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
495 |
<?php foreach ($annotations as $annot_cat => $annot_def) { |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
496 |
if($annot_cat == "default") { |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
497 |
continue; |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
498 |
} |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
499 |
$display_parts = explode(" | ", $annot_def['display_name']); |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
500 |
?> |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
501 |
<a id="<?php echo $annot_cat; ?>" title="<?php echo $annot_def['display_name']; ?>" class="tweetButton <?php echo $annot_def['colors_class']; ?>"> |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
502 |
<span class="twbSyntax"><?php echo $display_parts[0]; ?></span> |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
503 |
<span class="twbSeparator">|</span> |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
504 |
<span class="twbLabel"><?php echo $display_parts[1]; ?></span> |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
505 |
</a> |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
506 |
<?php } ?> |
|
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
507 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
508 |
<div style="clear: both;"></div> |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
509 |
<?php if (isset($_SESSION['SOCIAL_ACCESS_TOKEN'])){ ?> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
510 |
</form> |
|
1558
761ba7426984
upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
1557
diff
changeset
|
511 |
<?php } ?> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
512 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
513 |
</div> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
514 |
|
| 1557 | 515 |
<?php if (isset($_SESSION['SOCIAL_ACCESS_TOKEN'])) { ?> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
516 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
517 |
<div id="tweetviz"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
518 |
<div class="barre"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
519 |
<form id="recherche"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
520 |
<input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
521 |
<input id="inp_submit" type="submit" /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
522 |
<input id="inp_reset" type="reset" /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
523 |
<div id="time_controls"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
524 |
<div id="time_legende"></div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
525 |
<div id="time_scale"></div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
526 |
<a href="#" id="time_zoomout"></a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
527 |
<a href="#" id="time_zoomin"></a> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
528 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
529 |
<div id="recherche_annot"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
530 |
<?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
531 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
532 |
</form> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
533 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
534 |
<ul id="tweetlist"></ul> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
535 |
<div id="timeline"></div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
536 |
<div id="scrollcont"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
537 |
<div id="scrollin"></div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
538 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
539 |
</div> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
540 |
|
|
922
2ca61ac043e3
Added information about connection
Raphael Velt <raph.velt@gmail.com>
parents:
878
diff
changeset
|
541 |
<?php } else {?> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
542 |
|
| 1571 | 543 |
<p class="connect-message"><a href="<?php echo URL_ROOT.$rep; ?>/client.php?CONNECT=mastodon.svc.iri-research.org"><?php echo $translate->_('You must be connected with your account to read the conversation'); ?></a></p> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
544 |
|
|
878
bead0341e247
Starting 'twitter-api-1.1' branch
Raphael Velt <raph.velt@gmail.com>
parents:
820
diff
changeset
|
545 |
<?php } ?> |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
546 |
|
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
547 |
</div> |
|
620
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
548 |
<?php $pad_url = $translate->_('config__pad_url');?> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
549 |
<?php if ($pad_url !== "config__pad_url"):?> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
550 |
<ul class="accordeon"> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
551 |
<li class="acctitre"> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
552 |
<h3><?php echo $translate->_('CollaborativePad');?></h3> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
553 |
</li> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
554 |
<li class="acctexte"> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
555 |
<?php echo $translate->_('ThisIsTheCollaborativePad');?> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
556 |
<iframe src='<?php echo($pad_url); ?>' width='100%' height=400></iframe> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
557 |
</li> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
558 |
</ul> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
559 |
</div> |
|
953c68b4da79
Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents:
616
diff
changeset
|
560 |
<?php endif;?> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
561 |
<div class="footer"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
562 |
<hr /> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
563 |
<?php |
|
989
e4e219f7b12c
add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
976
diff
changeset
|
564 |
echo("<span id=\"event-partenaires\">".$translate->_('config__partenaires')."</span>"); |
|
1295
03d2aa7b4967
change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
989
diff
changeset
|
565 |
|
| 1557 | 566 |
if (isset($_SESSION['SOCIAL_ACCESS_TOKEN'])){ |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
567 |
echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>"); |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
568 |
} |
|
1366
2cebaaf18c54
enmi16
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1295
diff
changeset
|
569 |
?><br> |
|
536
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
570 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
571 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
572 |
<div id="hovertweet"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
573 |
<div id="hovercontent"></div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
574 |
<div id="hoverarrow"></div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
575 |
</div> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
576 |
<ul id="hoverkw"> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
577 |
<li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
578 |
<li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
579 |
</ul> |
|
5dd170a735e9
new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents:
489
diff
changeset
|
580 |
</body> |