web/client.php
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Wed, 18 Nov 2015 15:39:05 +0100
changeset 1295 03d2aa7b4967
parent 989 e4e219f7b12c
child 1366 2cebaaf18c54
permissions -rwxr-xr-x
change default protocol
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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'])) {
291
db1e6bfaa54e add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 276
diff changeset
     4
    include_once dirname(__FILE__).'/common.php';
628
17b6e5fb1bce Correction client.php
Raphael Velt <raph.velt@gmail.com>
parents: 621
diff changeset
     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'];
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 200
diff changeset
    10
include_once dirname(__FILE__).'/'.$rep.'/config.php';
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
 */
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    17
if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) {
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    18
    /**
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    19
     * Guess we 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
    20
     */
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    21
    $token = $consumer->getRequestToken();
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    22
    $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    23
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    24
    /**
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    25
     * Now redirect user to Twitter site so they can log in and
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    26
     * approve our access
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    27
     */
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    28
    $consumer->redirect();
557
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
    29
} else {
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
    30
    if (isset($_SESSION['TWITTER_REDIRECT_URL'])) {
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
    31
        unset($_SESSION['TWITTER_REDIRECT_URL']);
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
    32
    }
133
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    33
}
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    34
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    35
229
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 200
diff changeset
    36
$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
    37
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
    38
    $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
    39
}
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 200
diff changeset
    40
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 200
diff changeset
    41
$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
    42
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
    43
    $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
    44
}
458
a12229c45a6f Correct shuron bad commit
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 456
diff changeset
    45
561
e2b5cb558dcd Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents: 559
diff changeset
    46
$embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']);
e2b5cb558dcd Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents: 559
diff changeset
    47
$videoWidth = ( $embed ? 412 : 480 );
e2b5cb558dcd Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents: 559
diff changeset
    48
$videoHeight = ( $embed ? 280 : 320 );
574
ba93e2b57ece Added Clic-2012
Raphael Velt <raph.velt@gmail.com>
parents: 563
diff changeset
    49
if ($embed && !isset($_SESSION['TWITTER_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
    50
    $_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
    51
};
e2b5cb558dcd Instrumented version for IE9 tests
Raphael Velt <raph.velt@gmail.com>
parents: 559
diff changeset
    52
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    53
$annotations = get_default_annotations_config($config, $translate);
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    54
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    55
?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    56
<!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
    57
   "http://www.w3.org/TR/html4/strict.dtd">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    58
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    59
<html lang="<?php echo($actual); ?>">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    60
  <head>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
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: 878
diff changeset
    62
    <title>Polemic Tweet &mdash; <?php echo($translate->_('config__title')); ?></title>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    63
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    64
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    65
    <!-- FONT -->
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    66
    <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    67
    <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    68
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    69
    <!-- CSS -->
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    70
    <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
621
44f90de0016f corrections
Raphael Velt <raph.velt@gmail.com>
parents: 620
diff changeset
    71
    <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>?v=210512" type="text/css" media="screen, projection"/>
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
    <!-- JAVASCRIPT -->
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    74
    <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
989
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
    75
    <?php 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
    76
    <script type="text/javascript" src="<?php echo(registry_url('jquery-ui','js'))?>"></script>
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
    77
    <?php } ?>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    78
    <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    79
    <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    80
    <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    81
    <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    82
    <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    83
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    84
    <script type="text/javascript">
546
fd35749faca9 Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents: 538
diff changeset
    85
        <?php
fd35749faca9 Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents: 538
diff changeset
    86
        if (isset($config['tracking_keywords']) && count($config['tracking_keywords'])) {
fd35749faca9 Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents: 538
diff changeset
    87
            echo "var tracking_keywords = ".json_encode($config['tracking_keywords']).';';
fd35749faca9 Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents: 538
diff changeset
    88
        } elseif (isset($config['hashtag'])) {
fd35749faca9 Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents: 538
diff changeset
    89
            echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";";
fd35749faca9 Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents: 538
diff changeset
    90
        }
fd35749faca9 Last commit before weekend
Raphael Velt <raph.velt@gmail.com>
parents: 538
diff changeset
    91
        ?>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
    92
        <?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
    93
        <?php if (isset($config['js_config'])) echo "\n".$config['js_config']."\n"; ?>
593
faaec96c4dc8 Changed language bug
Raphael Velt <raph.velt@gmail.com>
parents: 574
diff changeset
    94
        l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    95
        if (typeof annotations == "undefined" || !annotations) {
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    96
            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
    97
            for(var annot_cat in annotations) {
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    98
                if("keywords" in annotations[annot_cat]) {
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
    99
                    annotations[annot_cat]['keywords'] = [ new RegExp(annotations[annot_cat]['keywords']), ];
593
faaec96c4dc8 Changed language bug
Raphael Velt <raph.velt@gmail.com>
parents: 574
diff changeset
   100
                }
faaec96c4dc8 Changed language bug
Raphael Velt <raph.velt@gmail.com>
parents: 574
diff changeset
   101
            }
620
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   102
        }
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   103
        console.log(annotations);
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   104
    </script>
878
bead0341e247 Starting 'twitter-api-1.1' branch
Raphael Velt <raph.velt@gmail.com>
parents: 820
diff changeset
   105
    <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])) { ?>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   106
    <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
878
bead0341e247 Starting 'twitter-api-1.1' branch
Raphael Velt <raph.velt@gmail.com>
parents: 820
diff changeset
   107
    <?php } ?>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   108
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   109
    <script type="text/javascript">
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   110
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   111
    function add_grammar(value) {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   112
        var _st = $('#status'),
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   113
            _val = _st.val();
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   114
        _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
   115
    }
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   116
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   117
    $(document).ready(function() {
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   118
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   119
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   120
            function updateCounter() {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   121
                var _v = $("#status").val();
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   122
                if (_v.length > 140) {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   123
                    _v = _v.substr(0,140);
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   124
                    $("#status").val(_v);
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   125
                }
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   126
                $('#tweetCounter').html(140-_v.length);
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   127
                if(140-_v.length < 0) {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   128
                    $('#tweetCounter').addClass("tweetCounterNegative");
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   129
                }
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   130
                else {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   131
                    $('#tweetCounter').removeClass("tweetCounterNegative");
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   132
                }
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   133
                $(".tweetButton").each(function(_i, _e) {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   134
                    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
   135
                        $(_e).addClass('selected');
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   136
                    } else {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   137
                        $(_e).removeClass('selected');
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   138
                    }
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   139
                });
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   140
            }
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   141
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   142
            // BUTTONS
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   143
            $(".tweetButton").click(function() {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   144
                add_grammar($(this).find('span.twbSyntax').text());
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   145
                updateCounter();
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   146
            })
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   147
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   148
            // SEND TWEETS
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   149
            $("#sendTweet").click(function(){
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   150
                var MyStatus = $('#status').val();
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   151
                $.post('tweet_ajax.php', {status:MyStatus}
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   152
                ,function(data) {
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   153
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   154
                    if(data=="true"){
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   155
                        $("#messageSuccess").show('fast');
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   156
                        $("#messageSuccess").delay(800).hide('slow');
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   157
                        $('#status').val("<?php echo($config['hashtag']); ?>");
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   158
                        $('#status').change();
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   159
                    }else{
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   160
                        $("#error").text(data);
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   161
                        $("#messageFailed").show('fast');
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   162
                        $("#messageFailed").delay(800).hide('slow');
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   163
                    }
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   164
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   165
                });
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   166
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   167
            });
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   168
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   169
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   170
            $("#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
   171
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   172
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   173
            $("#Program").fancybox({
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   174
                'width'             : '75%',
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   175
                'height'            : '75%',
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   176
                'autoScale'         : false,
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   177
                'transitionIn'      : 'none',
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   178
                'transitionOut'     : 'none',
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   179
                'type'              : 'iframe'
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   180
            });
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   181
            $(".embedbutton").fancybox({
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   182
                'width'             : 360,
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   183
                'height'            : 360,
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   184
                'autoDimensions'    : false,
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   185
                'transitionIn'      : 'none',
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   186
                'transitionOut'     : 'none',
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   187
                'type'              : 'iframe'
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   188
            });
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   189
989
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   190
            $("#onglets a").click(function() {
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   191
                $("div.ifwrap").hide();
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   192
                $("#onglets li").removeClass("selected");
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   193
                $(this).parent().addClass("selected");
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   194
                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
   195
                if (hr[0] == '#') {
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   196
                    $(hr).show();
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   197
                } else {
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   198
                    $("#iframeWrap").show();
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   199
                    $("#graphFrame").attr("src", hr);
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   200
                }
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   201
                return false;
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   202
            });
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
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   205
        });
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   206
989
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   207
        // hightlight
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   208
        <?php
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   209
        $effect = "highlight";
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   210
        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
   211
            $effect = $_REQUEST['highlight_effect'];
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   212
        }
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   213
        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
   214
        $(function() {
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   215
            $("<?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
   216
        });
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   217
        <?php } ?>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   218
        //<!-- LIMIT TEXTAREA:
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   219
        // End -->
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   220
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   221
    </script>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   222
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   223
    <script type="text/javascript">
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   224
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   225
      var _gaq = _gaq || [];
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   226
      _gaq.push(['_setAccount', 'UA-23581291-1']);
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   227
      _gaq.push(['_trackPageview']);
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   228
      _gaq.push(['_setAllowAnchor', true]);
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   229
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   230
      (function() {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   231
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   232
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   233
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   234
      })();
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   235
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   236
    </script>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   237
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   238
  </head>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   239
  <body<?php if ($embed) { echo ' class="embed"'; } ?>>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   240
    <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
   241
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   242
        <div id="container">
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   243
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   244
            <div id="coldroite">
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   245
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   246
                <div class="embedbar">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   247
                    <a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/live_embed_form.php">Intégrer</a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   248
                    <!-- AddThis Button BEGIN -->
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   249
                    <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   250
                        <a class="addthis_button_facebook"></a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   251
                        <a class="addthis_button_twitter"></a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   252
                        <a class="addthis_button_email"></a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   253
                        <a class="addthis_button_compact"></a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   254
                    </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   255
                    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   256
                    <!-- AddThis Button END -->
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   257
                </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   258
                <ul id="onglets">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   259
<?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
   260
                    <li class="selected">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   261
                        <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   262
                    </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   263
<?php } ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   264
<?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
   265
                    <li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   266
                        <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
   267
                    </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   268
<?php } ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   269
<?php if (isset($config['knowtex_url'])) { ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   270
                    <li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   271
                        <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
   272
                    </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   273
<?php } ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   274
                </ul>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   275
                <div class="ifwrap" id="vlWrap">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   276
                    <div id="videoLivePlayer">
940
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   277
                    <?php if(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
   278
                        <?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
   279
                    <?php else: ?>
574
ba93e2b57ece Added Clic-2012
Raphael Velt <raph.velt@gmail.com>
parents: 563
diff changeset
   280
                        <img class="live-thumbnail" src="<?php echo($big_visual_url); ?>" />
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   281
                    <?php endif; ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   282
                    </div>
940
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   283
<?php
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   284
    if (isset($config['islive']) && $config['islive']) {
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   285
        $videofile = $translate->_('config__video_file');
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   286
        if ($videofile == 'config__video_file') $videofile = "rtmp://media.iri.centrepompidou.fr/ddc_player/livestream";
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   287
        $jwpconfig = array(
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   288
            "width" => $videoWidth,
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   289
            "height" => $videoHeight,
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   290
            "file" => $videofile,
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   291
            "image" => $big_visual_url,
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   292
            "primary" => "flash",
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   293
            "flashplayer" => URL_ROOT."res/mediaplayer/player.swf",
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   294
            "fallback" => false,
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   295
            "autostart" => true
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   296
        );
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   297
?>
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   298
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   299
                    <script type="text/javascript" src="<?php echo(registry_url('jwplayer-js','js'))?>"></script>
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   300
                    <script type="text/javascript">
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   301
                        jwplayer('videoLivePlayer').setup(<?php echo json_encode($jwpconfig); ?>);
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   302
                    </script>
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   303
<?php
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   304
    }
843f96e4eebd JwPlayer upgrade
Raphael Velt <raph.velt@gmail.com>
parents: 926
diff changeset
   305
?>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   306
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   307
                </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   308
                <div class="ifwrap hidden" id="iframeWrap">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   309
                    <iframe id="graphFrame"></iframe>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   310
                </div>
620
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   311
                <ul class="accordeon">
989
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   312
                    <li class="acctitre" id="event-title">
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   313
                        <h3><?php echo($translate->_('config__title')); ?></h3>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   314
                    </li>
989
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   315
                    <li class="acctexte acclimited" id="event-description">
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   316
                        <p><?php echo($translate->_('config__description')); ?></p>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   317
                    </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   318
                    <li class="acctitre">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   319
                        <h3><?php echo($translate->_('keywords')); ?></h3>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   320
                    </li>
557
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   321
                    <li>
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   322
                        <ul>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   323
                            <li class="acctexte">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   324
                                <div class="accsubtitle">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   325
                                    <div class="aroundsubtitle">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   326
                                        <h4><?php echo($translate->_('suggested')); ?></h4>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   327
                                    </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   328
                                </div>
557
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   329
                                <div class="tagcloud" id="suggkw">
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   330
                                    <div class="clearer"></div>
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   331
                                </div>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   332
                            </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   333
                            <li class="acctexte">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   334
                                <div class="accsubtitle">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   335
                                    <div class="aroundsubtitle">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   336
                                        <h4><?php echo($translate->_('contextual')); ?></h4>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   337
                                    </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   338
                                </div>
557
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   339
                                <div class="tagcloud" id="motscles">
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   340
                                    <div class="clearer"></div>
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   341
                                </div>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   342
                            </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   343
                        </ul>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   344
                    </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   345
                </ul>
976
d3c6e4ae0d50 add iri logo
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents: 940
diff changeset
   346
                <p id="iri_logo" style="text-align:right;">
d3c6e4ae0d50 add iri logo
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents: 940
diff changeset
   347
                    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
d3c6e4ae0d50 add iri logo
Thibaut Cavalié <thibaut.cavalie@iri.centrepompidou.fr>
parents: 940
diff changeset
   348
                </p>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   349
            </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   350
            <div id="colgauche">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   351
                <div class="barre">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   352
                    <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
   353
                    <div id="minilogo"></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   354
                    <ul class="menu">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   355
                        <li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   356
                            <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   357
                                <?php print $translate->_("Accueil"); ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   358
                            </a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   359
                        </li>
989
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   360
                        <li id="event-link">
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   361
                            <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
   362
                                <?php print $translate->_("Programme"); ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   363
                            </a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   364
                        </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   365
                        <li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   366
                            <a href="../about.php" class="menuLink" >
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   367
                                <?php print $translate->_("A propos"); ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   368
                            </a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   369
                        </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   370
                    </ul>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   371
                    <ul class="menu">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   372
                        <li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   373
                            <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   374
                                <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   375
                                <?php print $translate->_("Japonais"); ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   376
                            </a></li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   377
                        <li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   378
                            <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
   379
                                <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
   380
                                <?php print $translate->_("Français"); ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   381
                            </a>
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>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   384
                            <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
   385
                                <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
   386
                                <?php print $translate->_("Anglais"); ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   387
                            </a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   388
                        </li>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   389
                    </ul>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   390
                </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   391
                <div id="twwWrap">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   392
                    <div id="tweetWriter">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   393
                            <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   394
                            <div id="tweetCounter"><?php echo(140-strlen($config['hashtag']));?></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   395
                            <?php endif;?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   396
                        <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   397
                        <form  action="tweet.php" method="post" id="statusform" >
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   398
                            <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
557
636258d3fe4b Allow iframe authentication
Raphael Velt <raph.velt@gmail.com>
parents: 553
diff changeset
   399
                                echo("<div class='loginbutton'><a href='".URL_ROOT."$rep/client.php?CONNECT=true' target='_top' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   400
                            } else {
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   401
                                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
   402
                            }
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   403
                            ?>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   404
                            <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
   405
                                <?php print $translate->_("Envoyé"); ?><br/><br/>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   406
                            </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   407
                            <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
   408
                                <?php print $translate->_("Erreur1"); ?><div id="error">&nbsp;</div><br/><br/>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   409
                            </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   410
                            <a href="#"  id="sendTweet" >
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   411
                                <span><?php print $translate->_("Envoyer"); ?></span>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   412
                            </a>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   413
                            <?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
   414
                                if($annot_cat == "default") {
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   415
                                    continue;
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   416
                                }
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   417
                                $display_parts = explode(" | ", $annot_def['display_name']);
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   418
                                ?>
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   419
                                <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
   420
                                    <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
   421
                                    <span class="twbSeparator">|</span>
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   422
                                    <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
   423
                                </a>
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   424
                            <?php } ?>
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   425
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   426
                            <div style="clear: both;"></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   427
                        </form>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   428
                    </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   429
                </div>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   430
878
bead0341e247 Starting 'twitter-api-1.1' branch
Raphael Velt <raph.velt@gmail.com>
parents: 820
diff changeset
   431
            <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])) { ?>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   432
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   433
                <div id="tweetviz">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   434
                    <div class="barre">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   435
                        <form id="recherche">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   436
                            <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
   437
                            <input id="inp_submit" type="submit" />
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   438
                            <input id="inp_reset" type="reset" />
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   439
                            <div id="time_controls">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   440
                                <div id="time_legende"></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   441
                                <div id="time_scale"></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   442
                                <a href="#" id="time_zoomout"></a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   443
                                <a href="#" id="time_zoomin"></a>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   444
                            </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   445
                            <div id="recherche_annot">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   446
                                <?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
   447
                            </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   448
                        </form>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   449
                    </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   450
                    <ul id="tweetlist"></ul>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   451
                    <div id="timeline"></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   452
                    <div id="scrollcont">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   453
                        <div id="scrollin"></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   454
                    </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   455
                </div>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   456
922
2ca61ac043e3 Added information about connection
Raphael Velt <raph.velt@gmail.com>
parents: 878
diff changeset
   457
            <?php } else {?>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   458
926
Raphael Velt <raph.velt@gmail.com>
parents: 922
diff changeset
   459
                <p class="connect-message"><a href="<?php echo URL_ROOT.$rep; ?>/client.php?CONNECT=true"><?php echo $translate->_('You must be connected with your Twitter 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
   460
878
bead0341e247 Starting 'twitter-api-1.1' branch
Raphael Velt <raph.velt@gmail.com>
parents: 820
diff changeset
   461
            <?php } ?>
1295
03d2aa7b4967 change default protocol
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 989
diff changeset
   462
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   463
            </div>
620
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   464
            <?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
   465
            <?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
   466
                <ul class="accordeon">
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   467
                    <li class="acctitre">
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   468
                        <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
   469
                    </li>
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   470
                    <li class="acctexte">
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   471
                        <?php echo $translate->_('ThisIsTheCollaborativePad');?>
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   472
                        <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
   473
                    </li>
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   474
                </ul>
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   475
            </div>
953c68b4da79 Added Edito 24.05 + embed code now relaying mediafragment
Raphael Velt <raph.velt@gmail.com>
parents: 616
diff changeset
   476
            <?php endif;?>
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   477
            <div class="footer">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   478
                <hr />
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   479
         <?php
989
e4e219f7b12c add example link + upgrade jquery tools
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 976
diff changeset
   480
                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
   481
536
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   482
                if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   483
                    echo("| <a href='clear.php' class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
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>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   487
        </div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   488
        <div id="hovertweet">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   489
            <div id="hovercontent"></div>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   490
            <div id="hoverarrow"></div>
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
        <ul id="hoverkw">
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   493
            <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
   494
            <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
   495
        </ul>
5dd170a735e9 new embed and share buttons
Raphael Velt <raph.velt@gmail.com>
parents: 489
diff changeset
   496
  </body>