web/polemicaltimeline.php
author ymh <ymh.work@gmail.com>
Tue, 03 Sep 2024 11:44:24 +0200
changeset 1560 d441b50586ba
parent 1558 761ba7426984
child 1567 a805a8ee2b85
permissions -rwxr-xr-x
Remove google analytics
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     1
<?php
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     2
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     3
/**
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     4
 * include some common code (like we did in the 90s)
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     5
 * People still do this? ;)
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     6
 */
229
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
     7
$rep = $_REQUEST['rep'];
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
     8
include_once dirname(__FILE__).'/'.$rep.'/config.php';
291
db1e6bfaa54e add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 276
diff changeset
     9
// configuration
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    10
include 'common.php';
291
db1e6bfaa54e add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 276
diff changeset
    11
 // objet actuel
229
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
    12
$baseurl = URL_ROOT;
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
    13
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
    14
$div_height = 640;
291
db1e6bfaa54e add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 276
diff changeset
    15
if($translate->_('config__div_height') != 'config__div_height') {
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    16
    $div_height = $translate->_('config__div_height');
229
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
    17
}
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
    18
$tweet_explain_background = URL_ROOT.'images/tweetExplainBgd.gif';
233
10d6fd6ce9ab - put all in a registry
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 229
diff changeset
    19
if(file_exists(dirname(__FILE__)."/$rep/images/tweetExplainBgd.gif")) {
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    20
    $tweet_explain_background = URL_ROOT.$rep.'/images/tweetExplainBgd.gif';
229
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 227
diff changeset
    21
}
220
42aeb2bfc58e publish chi07 and fens Fablab
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 205
diff changeset
    22
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    23
$head_logo = URL_ROOT."$rep/images/head_logo.gif";
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    24
if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) {
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    25
    $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    26
}
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    27
202
2bf0fd3432bf put more than one content for the polemical timeline
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 197
diff changeset
    28
$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
2bf0fd3432bf put more than one content for the polemical timeline
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 197
diff changeset
    29
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    30
$protocol_level = (
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    31
    isset($_REQUEST['protocol_level'])
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    32
    ? $_REQUEST['protocol_level']
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    33
    : (
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    34
        isset($config['protocol_level'])
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    35
        ? $config['protocol_level']
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    36
        : 3
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    37
    )
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    38
);
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    39
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    40
$protocol_level = min(3,max(0, $protocol_level));
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    41
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    42
$use_protocol = (isset($_REQUEST['protocol_level']) || isset($config['protocol_level']));
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    43
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    44
if ($use_protocol && !isset($_SESSION['answered_events'])) {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    45
    $_SESSION['answered_events'] = array();
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    46
}
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    47
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    48
$show_splash = ( $use_protocol && !in_array($rep, $_SESSION['answered_events']) );
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    49
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    50
if ($show_splash) {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    51
    array_push($_SESSION['answered_events'], $rep);
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    52
}
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    53
1480
d2d28468b410 Add support for displaying new protocol
ymh <ymh.work@gmail.com>
parents: 1443
diff changeset
    54
$annotation_protocol_version = isset($config['annotation_protocol_version'])?$config['annotation_protocol_version']:"1";
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
    55
$annotations = get_default_annotations_config($config, $translate);
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
    56
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    57
?>
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    58
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    59
<html lang="<?php echo($actual); ?>">
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    60
  <head>
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    61
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
922
2ca61ac043e3 Added information about connection
Raphael Velt <raph.velt@gmail.com>
parents: 899
diff changeset
    62
    <title>Polemic tweet &mdash; <?php echo($translate->_('config__title')); ?></title>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    63
    <meta name="keywords" content="<?php echo($translate->_('config__keywords')); ?>"><!-- add timestampedmetadata -->
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    64
    <!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">-->
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    65
    <meta name="description" content="<?php echo(strip_tags($translate->_('config__description'))); ?>">
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    66
    <meta name="robots" content="index, follow">
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
    67
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    68
    <!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> -->
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    69
    <!-- JAVASCRIPT -->
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    70
    <script type="text/javascript" src="<?php echo(registry_url('json-js','js'));?>"></script>
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents: 1539
diff changeset
    71
    <script type="text/javascript" src="<?php echo(registry_url('metadataplayer','js'));?>"></script>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    72
    <script type="text/javascript" src="<?php echo(registry_url('jquery','js'));?>"></script>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    73
    <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'));?>"></script>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    74
    <script type="text/javascript" src="<?php echo(registry_url('jquery-url','js'));?>"></script>
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
    75
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    76
    <!-- Framework CSS -->
899
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
    77
    <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    78
    <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" media="screen"/>
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
    79
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    80
    <!-- FONT -->
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    81
    <link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'/>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    82
    <link href='<?php echo(registry_url('PT-Sans','font'));?>' rel='stylesheet' type='text/css'/>
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
    83
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents: 1539
diff changeset
    84
    <link rel="stylesheet" href="<?php echo(registry_url('metadataplayer','css'));?>" media="screen"/>
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents: 1539
diff changeset
    85
1366
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1304
diff changeset
    86
    <link href='<?php echo(URL_ROOT); ?>res/css/common.css' rel='stylesheet' type='text/css'/>
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1304
diff changeset
    87
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
    88
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    89
    <script type="text/javascript">
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    90
          // Configuration Polemical Timeline
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    91
    if (typeof jQuery == "undefined") {
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents: 1539
diff changeset
    92
        jQuery = window.$;
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    93
    }
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    94
    <?php
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    95
          if(is_array($translate->_('config__metadata'))):
684
f59daf0830d2 less naive implementation of common LDT platform URL
Raphael Velt <raph.velt@gmail.com>
parents: 683
diff changeset
    96
            $metadataurls = array_map("get_metadata_json_url",$translate->_('config__metadata'));
f59daf0830d2 less naive implementation of common LDT platform URL
Raphael Velt <raph.velt@gmail.com>
parents: 683
diff changeset
    97
            reset($metadataurls);
f59daf0830d2 less naive implementation of common LDT platform URL
Raphael Velt <raph.velt@gmail.com>
parents: 683
diff changeset
    98
            $first_key = key($metadataurls);
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
    99
    ?>
684
f59daf0830d2 less naive implementation of common LDT platform URL
Raphael Velt <raph.velt@gmail.com>
parents: 683
diff changeset
   100
    var metadatas = jQuery.parseJSON('<?php echo(json_encode($metadataurls)); ?>');
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   101
    var url = jQuery.url();
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   102
    var metadata_key = url.fparam('metadata');
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   103
    if(typeof metadata_key === "undefined" || metadata_key.length === 0) {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   104
        metadata_key = "<?php echo($first_key);?>";
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   105
    }
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   106
    <?php else: ?>
684
f59daf0830d2 less naive implementation of common LDT platform URL
Raphael Velt <raph.velt@gmail.com>
parents: 683
diff changeset
   107
    var metadatas = { metadata: {url: "<?php echo(get_metadata_url($translate->_('config__metadata')));?>"} };
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   108
    var metadata_key = "metadata";
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   109
    <?php endif;?>
657
d563fda7b928 Traces now send Protocol Level and Cookie info
Raphael Velt <raph.velt@gmail.com>
parents: 656
diff changeset
   110
    var _protocol_level = _protocol_level,
d563fda7b928 Traces now send Protocol Level and Cookie info
Raphael Velt <raph.velt@gmail.com>
parents: 656
diff changeset
   111
        _cookiematches = document.cookie.match(/PHPSESSID=([A-Za-z0-9]+)/),
d563fda7b928 Traces now send Protocol Level and Cookie info
Raphael Velt <raph.velt@gmail.com>
parents: 656
diff changeset
   112
        _cookie = (_cookiematches && _cookiematches.length > 1 ? _cookiematches[1] : undefined);
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   113
581
7607516bd9f1 Add Tracewidget
Raphael Velt <raph.velt@gmail.com>
parents: 575
diff changeset
   114
    IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>";
598
d366aa22bd79 New Metadataplayer version
Raphael Velt <raph.velt@gmail.com>
parents: 597
diff changeset
   115
    IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>";
638
e0d4e8431de3 Updated Metadata Player
Raphael Velt <raph.velt@gmail.com>
parents: 623
diff changeset
   116
    IriSP.libFiles.locations.jwPlayerSWF = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf";
598
d366aa22bd79 New Metadataplayer version
Raphael Velt <raph.velt@gmail.com>
parents: 597
diff changeset
   117
    IriSP.language = "<?php echo($actual) ?>";
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   118
598
d366aa22bd79 New Metadataplayer version
Raphael Velt <raph.velt@gmail.com>
parents: 597
diff changeset
   119
    var _metadata = {
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents: 1539
diff changeset
   120
        url: metadatas[metadata_key].url,
598
d366aa22bd79 New Metadataplayer version
Raphael Velt <raph.velt@gmail.com>
parents: 597
diff changeset
   121
        format: 'ldt'
d366aa22bd79 New Metadataplayer version
Raphael Velt <raph.velt@gmail.com>
parents: 597
diff changeset
   122
    };
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   123
    var _config = {
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   124
        width: 600,
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   125
        height: 800,
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   126
        container: 'LdtPlayer',
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   127
        default_options: {
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   128
            metadata: _metadata
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   129
        },
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   130
        css:'<?php echo(registry_url('metadataplayer','css'));?>',
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   131
        widgets: [
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   132
            {
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   133
                type: "AutoPlayer",
940
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   134
                height: 360,
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   135
                width: 600,
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   136
                url_transform: function(u) {
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   137
                    var res = u.replace('ddc_player/video', 'ddc_player/mp4:video');
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   138
                    //console.log(res);
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   139
                    return res;
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   140
                }
598
d366aa22bd79 New Metadataplayer version
Raphael Velt <raph.velt@gmail.com>
parents: 597
diff changeset
   141
            },
852
957175538495 reorder widgets
Raphael Velt <raph.velt@gmail.com>
parents: 779
diff changeset
   142
            { type: "Slider" },
957175538495 reorder widgets
Raphael Velt <raph.velt@gmail.com>
parents: 779
diff changeset
   143
            {
957175538495 reorder widgets
Raphael Velt <raph.velt@gmail.com>
parents: 779
diff changeset
   144
                type: "Controller",
957175538495 reorder widgets
Raphael Velt <raph.velt@gmail.com>
parents: 779
diff changeset
   145
                disable_annotate_btn: true
957175538495 reorder widgets
Raphael Velt <raph.velt@gmail.com>
parents: 779
diff changeset
   146
            },
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   147
<?php if ($protocol_level > 1): ?>
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   148
            {
980
37f7aec0b6ad mediapart fn and change polemic max_elements
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents: 940
diff changeset
   149
                type: "Polemic",
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
   150
                max_elements: 60,
1480
d2d28468b410 Add support for displaying new protocol
ymh <ymh.work@gmail.com>
parents: 1443
diff changeset
   151
                default_version: "1",
d2d28468b410 Add support for displaying new protocol
ymh <ymh.work@gmail.com>
parents: 1443
diff changeset
   152
<?php if (isset($annotations)): ?>
d2d28468b410 Add support for displaying new protocol
ymh <ymh.work@gmail.com>
parents: 1443
diff changeset
   153
                polemics : { "<?php echo($annotation_protocol_version)?>":[
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
   154
<?php foreach ($annotations as $annot_key => $annot_def): ?>
1436
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   155
    <?php 
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   156
    $hVal = (isset($annot_def['colors'])&&isset($annot_def['colors']['h']))?floatval($annot_def['colors']['h']):0.17;
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   157
    $hVal = ($hVal<1)?floor($hVal*360.0):$hVal;
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   158
    $sVal = (isset($annot_def['colors'])&&isset($annot_def['colors']['s']))?floatval($annot_def['colors']['s']):1.0;
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   159
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   160
    $polemicColor = isset($annot_def['polemic_color'])?$annot_def['polemic_color']:rgb2hex(hsl2Rgb($hVal, $sVal, 0.5));
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   161
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   162
    if($annot_key == 'default') { continue; } ?>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
   163
                    {
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
   164
                        "name" : "<?php echo $annot_def['polemic_cat']; ?>",
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
   165
                        "keywords" : <?php echo json_encode($annot_def['polemic_keywords']); ?>,
1436
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   166
                        "color" : "<?php echo $polemicColor; ?>"
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
   167
                    },
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1244
diff changeset
   168
<?php endforeach; ?>
1480
d2d28468b410 Add support for displaying new protocol
ymh <ymh.work@gmail.com>
parents: 1443
diff changeset
   169
                ]}
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   170
<?php endif; ?>
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   171
            },
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   172
<?php endif; ?>
1539
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   173
<?php if ($protocol_level > 1): ?>
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   174
            {
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   175
                type: "Polemic",
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   176
                max_elements: 60,
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   177
                default_version: "1",
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   178
                annotation_type: ["chat"],
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   179
                defaultcolor: "#9b8864",
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   180
<?php if (isset($annotations)): ?>
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   181
                polemics : { "<?php echo($annotation_protocol_version)?>":[
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   182
<?php foreach ($annotations as $annot_key => $annot_def): ?>
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   183
    <?php 
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   184
    $hVal = (isset($annot_def['colors'])&&isset($annot_def['colors']['h']))?floatval($annot_def['colors']['h']):0.17;
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   185
    $hVal = ($hVal<1)?floor($hVal*360.0):$hVal;
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   186
    $sVal = (isset($annot_def['colors'])&&isset($annot_def['colors']['s']))?floatval($annot_def['colors']['s']):1.0;
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   187
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   188
    $polemicColor = isset($annot_def['polemic_color'])?$annot_def['polemic_color']:rgb2hex(hsl2Rgb($hVal, $sVal, 0.5));
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   189
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   190
    if($annot_key == 'default') { continue; } ?>
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   191
                    {
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   192
                        "name" : "<?php echo $annot_def['polemic_cat']; ?>",
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   193
                        "keywords" : <?php echo json_encode($annot_def['polemic_keywords']); ?>,
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   194
                        "color" : "<?php echo $polemicColor; ?>"
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   195
                    },
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   196
<?php endforeach; ?>
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   197
                ]}
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   198
<?php endif; ?>
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   199
            },
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   200
<?php endif; ?>
1436
b3d23c1b791e Add hypothes.is protocol
ymh <ymh.work@gmail.com>
parents: 1366
diff changeset
   201
<?php if ($protocol_level > 1 || isset($annotations)): ?>
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   202
            {
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   203
                type: "MultiSegments",
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   204
                //annotation_type: "chap"
779
e13084ff318b Traces are back
Raphael Velt <raph.velt@gmail.com>
parents: 778
diff changeset
   205
            },
e13084ff318b Traces are back
Raphael Velt <raph.velt@gmail.com>
parents: 778
diff changeset
   206
            {
e13084ff318b Traces are back
Raphael Velt <raph.velt@gmail.com>
parents: 778
diff changeset
   207
                type: "Annotation",
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   208
                annotation_type: "découpage"
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   209
            },
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   210
            { type: "Tweet" },
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   211
            {
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   212
                type: "Tagcloud",
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   213
                container: "TagcloudContainer",
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   214
                exclude_pattern: /^@/,
709
add35aad077d Added 1st Edito/Museo of 2012-2013
Raphael Velt <raph.velt@gmail.com>
parents: 694
diff changeset
   215
                custom_stopwords: <?php echo json_encode(array($translate->_('config__hashtag'))) ?>
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   216
            },
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   217
            {
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   218
                type: "AnnotationsList",
1244
87583b020202 put ldt platform url in config
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1240
diff changeset
   219
                //ajax_url : "<?php echo(LDT_PLATFORM); ?>ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
87583b020202 put ldt platform url in config
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1240
diff changeset
   220
                //foreign_url : "<?php echo(LDT_PLATFORM); ?>ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   221
                container: "AnnotationsListContainer"
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   222
            },
1539
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   223
            // {
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   224
            //     type: "CreateAnnotation",
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   225
            //     api_endpoint_template: "<?php echo(LDT_PLATFORM); ?>ldtplatform/api/ldt/1.0/annotations/",
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   226
            //     api_method: 'POST',
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   227
            //     after_send_timeout: 8000,
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   228
            //     show_mic_record: false,
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   229
            //     close_after_send: false,
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   230
            //     slice_annotation_type: ["chap","découpage"],
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   231
            //     creator_avatar: "<?php echo(URL_ROOT); ?>images/avatar.png"
2eca6c367a75 publish enmi2020
ymh <ymh.work@gmail.com>
parents: 1518
diff changeset
   232
            // },
685
b48fe0f2d5b1 Removed Protocol on FENS 2012
Raphael Velt <raph.velt@gmail.com>
parents: 684
diff changeset
   233
<?php endif; ?>
694
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   234
            { type: "Mediafragment"},
e9400c80e1e4 Updated Metadataplayer
Raphael Velt <raph.velt@gmail.com>
parents: 685
diff changeset
   235
        ]
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   236
    };
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   237
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   238
    jQuery(document).ready(function() {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   239
<?php if ($show_splash): ?>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   240
        jQuery.fancybox(
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   241
            jQuery("#splash").html(),
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   242
            {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   243
                width: 500,
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   244
                modal: true,
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   245
                closeBtn: false
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   246
            });
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   247
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   248
        jQuery("#fancybox-content form").submit(function() {
899
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   249
            jQuery.fancybox.close();
659
44c5c0a2b6d4 Added FENS events
Raphael Velt <raph.velt@gmail.com>
parents: 658
diff changeset
   250
            var _checkboxes = [];
44c5c0a2b6d4 Added FENS events
Raphael Velt <raph.velt@gmail.com>
parents: 658
diff changeset
   251
            jQuery("#fancybox-content .checkbox:checked").each(function() { _checkboxes.push(this.value) });
44c5c0a2b6d4 Added FENS events
Raphael Velt <raph.velt@gmail.com>
parents: 658
diff changeset
   252
            var _data = {
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   253
                    eventLink: _checkboxes,
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   254
                    eMail: jQuery("#fancybox-content .eMail").val(),
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   255
                    twitterHandle: jQuery("#fancybox-content .twitterHandle").val(),
657
d563fda7b928 Traces now send Protocol Level and Cookie info
Raphael Velt <raph.velt@gmail.com>
parents: 656
diff changeset
   256
                    cookie: _cookie,
d563fda7b928 Traces now send Protocol Level and Cookie info
Raphael Velt <raph.velt@gmail.com>
parents: 656
diff changeset
   257
                    protocol_level: _protocol_level
659
44c5c0a2b6d4 Added FENS events
Raphael Velt <raph.velt@gmail.com>
parents: 658
diff changeset
   258
                };
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   259
            return false;
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   260
        });
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   261
<?php endif; ?>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   262
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   263
        jQuery("#mdselect_"+metadata_key).attr("selected","selected");
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   264
        jQuery("#mdselect").change(function() {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   265
            var metadata_key = this.options[this.selectedIndex].value;
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   266
            window.location.hash = "#metadata="+metadata_key;
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   267
            window.location.href = window.location.href;
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   268
            window.location.reload(true);
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   269
            jQuery(".embedbutton").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   270
        });
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   271
        if(metadata_key !== "metadata") {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   272
            jQuery(".embedbutton").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   273
        }
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   274
        jQuery(".embedbutton").fancybox({
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   275
            'width'                : 360,
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   276
            'height'            : 360,
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   277
            'autoDimensions'    : false,
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   278
            'transitionIn'        : 'none',
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   279
            'transitionOut'        : 'none',
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   280
            'type'                : 'iframe'
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   281
        });
899
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   282
        jQuery("#Program").fancybox({
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   283
            type: "iframe",
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   284
            width: 840,
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   285
            height: 640,
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   286
            transitionIn: "none",
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   287
            transitionOut: "none"
cdcc5249830e Fancybox for programme restored
Raphael Velt <raph.velt@gmail.com>
parents: 852
diff changeset
   288
        });
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   289
        jQuery(".acctitre").click(function() {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   290
            var _nx = jQuery(this).next();
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   291
            if (_nx.is(":hidden")) {
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   292
                jQuery(".acctexte").slideUp();
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   293
                _nx.slideDown();
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   294
            }
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   295
        })
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   296
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   297
    });
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   298
    </script>
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   299
  </head>
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   300
  <body>
1366
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1304
diff changeset
   301
  <!--div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div-->
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   302
291
db1e6bfaa54e add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 276
diff changeset
   303
  <!-- tooltip -->
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   304
  </div>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   305
    <div id="splash" style="display:none;">
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   306
        <div class="splash">
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   307
            <h1><?php echo $translate->_("Protocol_Head").$translate->_('config__title'); ?></h1>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   308
            <p><?php echo $translate->_("Protocol_Subtitle"); ?></p>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   309
            <?php echo $translate->_("Protocol_Explain_Level_".$protocol_level); ?>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   310
            <hr />
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   311
            <h2><?php echo $translate->_("Protocol_Questions_Head"); ?></h2>
659
44c5c0a2b6d4 Added FENS events
Raphael Velt <raph.velt@gmail.com>
parents: 658
diff changeset
   312
            <form target="_blank">
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   313
                <h3><?php echo $translate->_("Protocol_Questions_Part_1_prefix").$translate->_('config__title').$translate->_("Protocol_Questions_Part_1_suffix"); ?></h3>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   314
                <ul>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   315
                    <li><input class="checkbox" type="checkbox" value="wasThere"/><?php echo $translate->_("Protocol_Answer_WasThere"); ?></li>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   316
                    <li><input class="checkbox" type="checkbox" value="watchedStream"/><?php echo $translate->_("Protocol_Answer_WatchedStream"); ?></li>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   317
                    <li><input class="checkbox" type="checkbox" value="liveTweeted"/><?php echo $translate->_("Protocol_Answer_liveTweeted"); ?></li>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   318
                    <li><input class="checkbox" type="checkbox" value="none"/><?php echo $translate->_("Protocol_Answer_none"); ?></li>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   319
                </ul>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   320
                <h3><?php echo $translate->_("Protocol_Questions_Part_2"); ?></h3>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   321
                <ul>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   322
                    <li><label><?php echo $translate->_("Protocol_Answer_Mail"); ?></label><input class="eMail" name="eMail" /></li>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   323
                    <li><label><?php echo $translate->_("Protocol_Answer_Twitter"); ?></label><input class="twitterHandle" name="twitterHandle" /></li>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   324
                </ul>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   325
                <input type="submit" value="<?php echo $translate->_("Protocol_Submit_Label"); ?>" class="submit" />
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   326
            </form>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   327
        </div>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   328
    </div>
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   329
    <div id="container">
569
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   330
        <div class="barre">
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   331
            <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   332
            <div id="minilogo"></div>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   333
            <ul class="menu">
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   334
                <li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   335
                    <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   336
                        <?php print $translate->_("Accueil"); ?>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   337
                    </a>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   338
                </li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   339
                <li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   340
                    <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   341
                        <?php print $translate->_("Programme"); ?>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   342
                    </a>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   343
                </li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   344
                <li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   345
                    <a href="../about.php" class="menuLink" >
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   346
                        <?php print $translate->_("A propos"); ?>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   347
                    </a>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   348
                </li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   349
            </ul>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   350
            <ul class="menu">
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   351
                <li>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   352
                    <a href="<?php URL_ROOT ?>polemicaltimeline.php?lang=ja_JP" class="menuLink" >
569
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   353
                        <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   354
                        <?php print $translate->_("Japonais"); ?>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   355
                    </a></li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   356
                <li>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   357
                    <a href="<?php URL_ROOT ?>polemicaltimeline.php?lang=fr" class="menuLink">
569
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   358
                        <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   359
                        <?php print $translate->_("Français"); ?>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   360
                    </a>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   361
                </li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   362
                <li>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   363
                    <a href="<?php URL_ROOT ?>polemicaltimeline.php?lang=en" class="menuLink">
569
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   364
                        <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   365
                        <?php print $translate->_("Anglais"); ?>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   366
                    </a>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   367
                </li>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   368
            </ul>
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   369
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   370
    <?php if(is_array($translate->_('config__metadata'))): ?>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   371
    <ul id="content_select_ul" class="menu mdselect">
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   372
        <span><?php print $translate->_("changer de contenu"); ?></span><br/>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   373
        <select id="mdselect">
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   374
            <?php foreach ($translate->_('config__metadata') as $key => $value):?>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   375
            <option value="<?php echo($key); ?>" id="mdselect_<?php echo($key); ?>" ><?php echo($value['display']); ?></option>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   376
            <?php endforeach;?>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   377
        </select>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   378
    </ul>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   379
    <?php endif;?>
569
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   380
            <div class="embedbar">
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   381
                <a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/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
   382
                <?php
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   383
                    $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
   384
                    $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
   385
                    $share_description = strip_tags(preg_replace('/<\s?br\s*\\?>/i', "\n", str_replace("&nbsp;", " ", $translate->_('config__abstract'))));
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   386
                ?>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   387
                <!-- cf. https://sharingbuttons.io/ -->
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   388
                <div class="share_toolbox">
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   389
                    <!-- Sharingbutton Twitter -->
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   390
                    <a class="resp-sharing-button__link" href="https://twitter.com/intent/tweet/?text=<?php echo urlencode("$share_title - $share_url"); ?>&amp;url=<?php echo rawurlencode($share_url); ?>" target="_blank" rel="noopener" aria-label="">
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   391
                      <div class="resp-sharing-button resp-sharing-button--twitter 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
   392
                        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z"/></svg>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   393
                        </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   394
                      </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   395
                    </a>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   396
                    <!-- Sharingbutton Facebook -->
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   397
                    <a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?t=<?php echo rawurlencode($share_title); ?>&amp;u=<?php echo rawurlencode($share_url); ?>" target="_blank" rel="noopener" aria-label="">
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   398
                      <div class="resp-sharing-button resp-sharing-button--facebook 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
   399
                        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z"/></svg>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   400
                        </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   401
                      </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   402
                    </a>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   403
                    <!-- Sharingbutton Telegram -->
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   404
                    <a class="resp-sharing-button__link" href="https://telegram.me/share/url?text=<?php echo rawurlencode("$share_description"); ?>&amp;url=<?php echo rawurlencode($share_url); ?>" target="_blank" rel="noopener" aria-label="">
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   405
                      <div class="resp-sharing-button resp-sharing-button--telegram 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
   406
                          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.707 8.475C.275 8.64 0 9.508 0 9.508s.284.867.718 1.03l5.09 1.897 1.986 6.38a1.102 1.102 0 0 0 1.75.527l2.96-2.41a.405.405 0 0 1 .494-.013l5.34 3.87a1.1 1.1 0 0 0 1.046.135 1.1 1.1 0 0 0 .682-.803l3.91-18.795A1.102 1.102 0 0 0 22.5.075L.706 8.475z"/></svg>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   407
                        </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   408
                      </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   409
                    </a>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   410
                    <!-- Sharingbutton E-Mail -->
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   411
                    <a class="resp-sharing-button__link" href="mailto:?subject=<?php echo rawurlencode($share_title); ?>&amp;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
   412
                      <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
   413
                        <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
   414
                        </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   415
                      </div>
a3c6f244dbc1 Remove sharethis button and replace them by a passive solution
ymh <ymh.work@gmail.com>
parents: 1514
diff changeset
   416
                    </a>
535
8276f3ff7a3f Added new player in player_embed
Raphael Velt <raph.velt@gmail.com>
parents: 534
diff changeset
   417
                </div>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 535
diff changeset
   418
            </div>
569
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   419
        </div>
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   420
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   421
    <!-- EXPLICATION  -->
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   422
    <div id="mdpgauche">
620
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 598
diff changeset
   423
        <ul class="accordeon">
776
e73b0c98d2db Added Slideshare
Raphael Velt <raph.velt@gmail.com>
parents: 766
diff changeset
   424
            <div id="Slideshare"></div>
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   425
            <li class="acctitre">
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 535
diff changeset
   426
                <h3><?php echo($translate->_('config__title')); ?></h3>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 535
diff changeset
   427
            </li>
620
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 598
diff changeset
   428
            <li class="acctexte mdpacclimited">
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 535
diff changeset
   429
                <p><?php echo($translate->_('config__description')); ?></p>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 535
diff changeset
   430
            </li>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   431
679
383c2fd568d7 Fix on Sam's fix: Tagcloud+List now displayed on non-protocol events
Raphael Velt <raph.velt@gmail.com>
parents: 673
diff changeset
   432
<?php if (!$use_protocol): ?>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 535
diff changeset
   433
            <li class="acctitre">
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   434
                <h3>Liste des Annotations</h3>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   435
            </li>
620
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 598
diff changeset
   436
            <li class="acctexte mdpacclimited" style="display: none;">
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   437
                <div id="AnnotationsListContainer"></div>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   438
            </li>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   439
            <li class="acctitre">
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   440
                <h3>Mots-clés</h3>
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   441
            </li>
620
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 598
diff changeset
   442
            <li class="acctexte mdpacclimited" style="display: none;">
598
d366aa22bd79 New Metadataplayer version
Raphael Velt <raph.velt@gmail.com>
parents: 597
diff changeset
   443
                <div id="TagcloudContainer"></div>
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   444
            </li>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   445
<?php endif; ?>
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   446
        </ul>
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   447
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   448
      </div>
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   449
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   450
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   451
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   452
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   453
      <div id="mdpdroite" >
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   454
        <div id="LdtPlayer"></div>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   455
      </div>
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   456
<script type="text/javascript">
638
e0d4e8431de3 Updated Metadata Player
Raphael Velt <raph.velt@gmail.com>
parents: 623
diff changeset
   457
    var _myPlayer = new IriSP.Metadataplayer(_config);
534
0a2505c3b547 New metadata player and big directory reorganization
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   458
</script>
569
76ee1291e0c8 corrected player placement bug
Raphael Velt <raph.velt@gmail.com>
parents: 537
diff changeset
   459
  </div>
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   460
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   461
      <div class="footer">
1198
ff4b567d51f2 upgrade metadataplayer and add annotation creation
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 980
diff changeset
   462
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   463
        <hr>
1366
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 1304
diff changeset
   464
            <?php echo($translate->_('config__partenaires')); ?><br>
656
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   465
      </div>
635a86f25fe7 First tests for PT Protocol implementation
Raphael Velt <raph.velt@gmail.com>
parents: 654
diff changeset
   466
197
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   467
    </div>
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   468
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   469
  </body>
77e3207456b7 rename MashUp to mashup step 2
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
   470
</html>