web/client_pad.php
changeset 608 546e1b3c7611
child 610 f8a6c09cdd54
equal deleted inserted replaced
607:7a3d6ebae42e 608:546e1b3c7611
       
     1 <?php
       
     2 header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
       
     3 if(!isset($_REQUEST['rep'])) {
       
     4     include_once dirname(__FILE__).'/common.php';
       
     5     header('Location: ' . URL_ROOT . "$C_default_rep/client.php" );
       
     6     exit();
       
     7 }
       
     8 
       
     9 $rep = $_REQUEST['rep'];
       
    10 include_once dirname(__FILE__).'/'.$rep.'/config.php';
       
    11 
       
    12 include_once 'common.php';
       
    13 
       
    14 /**
       
    15  * Do we already have a valid Access Token or need to go get one?
       
    16  */
       
    17 if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) {
       
    18     /**
       
    19      * Guess we need to go get one!
       
    20      */
       
    21     $token = $consumer->getRequestToken();
       
    22     $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
       
    23 
       
    24     /**
       
    25      * Now redirect user to Twitter site so they can log in and
       
    26      * approve our access
       
    27      */
       
    28     $consumer->redirect();
       
    29 } else {
       
    30     if (isset($_SESSION['TWITTER_REDIRECT_URL'])) {
       
    31         unset($_SESSION['TWITTER_REDIRECT_URL']);
       
    32     }
       
    33 }
       
    34 
       
    35 
       
    36 $big_visual_url = URL_ROOT."/$rep/images/big_visuel_rsln_mb.jpg";
       
    37 if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) {
       
    38     $big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual');
       
    39 }
       
    40 
       
    41 $head_logo = URL_ROOT."$rep/images/head_logo.gif";
       
    42 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) {
       
    43     $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
       
    44 }
       
    45 
       
    46 $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']);
       
    47 $videoWidth = ( $embed ? 412 : 480 );
       
    48 $videoHeight = ( $embed ? 280 : 320 );
       
    49 if ($embed && !isset($_SESSION['TWITTER_ACCESS_TOKEN']) && (isset($_REQUEST['auth_redirect']) || isset($_SERVER['HTTP_REFERER']))) {
       
    50     $_SESSION['TWITTER_REDIRECT_URL'] = isset($_REQUEST['auth_redirect']) ? $_REQUEST['auth_redirect'] : $_SERVER['HTTP_REFERER'];
       
    51 };
       
    52 
       
    53 ?>
       
    54 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       
    55    "http://www.w3.org/TR/html4/strict.dtd">
       
    56 
       
    57 <html lang="<?php echo($actual); ?>">
       
    58   <head>
       
    59     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
       
    60     <title>Live Video and Annotation</title>
       
    61     <meta http-equiv="X-UA-Compatible" content="IE=9" />
       
    62 
       
    63     <!-- FONT -->
       
    64     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
       
    65     <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
       
    66     
       
    67     <!-- CSS -->
       
    68     <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
       
    69     <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
       
    70 
       
    71     <!-- JAVASCRIPT -->
       
    72     <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
       
    73     <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
       
    74     <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
       
    75     <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
       
    76     <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
       
    77     <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
       
    78     
       
    79     <script type="text/javascript">
       
    80         <?php
       
    81         if (isset($config['tracking_keywords']) && count($config['tracking_keywords'])) {
       
    82             echo "var tracking_keywords = ".json_encode($config['tracking_keywords']).';';
       
    83         } elseif (isset($config['hashtag'])) {
       
    84             echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";";
       
    85         }
       
    86         ?>
       
    87         <?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?>
       
    88         <?php if (isset($config['js_config'])) echo $config['js_config']; ?>
       
    89         l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
       
    90         var annotations = {
       
    91             "default" : {
       
    92                 "colors" : {
       
    93                     "h" : 0,
       
    94                     "s" : 0
       
    95                 }
       
    96             },
       
    97             "positive" : {
       
    98                 "display_name" : "++ | <?php echo $translate->_('Agree'); ?>",
       
    99                 "keywords" : [ /\+\+/ ],
       
   100                 "colors" : {
       
   101                     "h" : .3,
       
   102                     "s" : .65
       
   103                 }
       
   104             },
       
   105             "negative" : {
       
   106                 "display_name" : "-- | <?php echo $translate->_('Disagree'); ?>",
       
   107                 "keywords" : [ /\-\-/ ],
       
   108                 "colors" : {
       
   109                     "h" : 0,
       
   110                     "s" : .8
       
   111                 }
       
   112             },
       
   113             "reference" : {
       
   114                 "display_name" : "== | <?php echo $translate->_('Reference'); ?>",
       
   115                 "keywords" : [ /\=\=/ ],
       
   116                 "colors" : {
       
   117                     "h" : .16,
       
   118                     "s" : .8
       
   119                 }
       
   120             },
       
   121             "question" : {
       
   122                 "display_name" : "?? | <?php echo $translate->_('Question'); ?>",
       
   123                 "keywords" : [ /\?\?/ ],
       
   124                 "colors" : {
       
   125                     "h" : .6,
       
   126                     "s" : .8
       
   127                 }
       
   128             }
       
   129         }
       
   130     </script>
       
   131     <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
       
   132 
       
   133     <script type="text/javascript">
       
   134     
       
   135     function add_grammar(value) {
       
   136         var _st = $('#status'),
       
   137             _val = _st.val();
       
   138         _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
       
   139     }
       
   140     
       
   141     $(document).ready(function() {
       
   142         
       
   143             
       
   144             function updateCounter() {
       
   145                 var _v = $("#status").val();
       
   146                 if (_v.length > 140) {
       
   147                     _v = _v.substr(0,140);
       
   148                     $("#status").val(_v);
       
   149                 }
       
   150                 $('#tweetCounter').html(140-_v.length);
       
   151                 if(140-_v.length < 0) {
       
   152                     $('#tweetCounter').addClass("tweetCounterNegative");
       
   153                 }
       
   154                 else {
       
   155                     $('#tweetCounter').removeClass("tweetCounterNegative");
       
   156                 }
       
   157                 $(".tweetButton").each(function(_i, _e) {
       
   158                     if (_v.search($(_e).find('span.twbSyntax').text().replace(/(\W)/g, '\\$1')) > -1) {
       
   159                         $(_e).addClass('selected');
       
   160                     } else {
       
   161                         $(_e).removeClass('selected');
       
   162                     }
       
   163                 });
       
   164             }
       
   165             
       
   166             // BUTTONS
       
   167             $(".tweetButton").click(function() {
       
   168                 add_grammar($(this).find('span.twbSyntax').text());
       
   169                 updateCounter();
       
   170             })
       
   171             
       
   172             // SEND TWEETS
       
   173             $("#sendTweet").click(function(){
       
   174                 var MyStatus = $('#status').val();
       
   175                 $.post('tweet_ajax.php', {status:MyStatus}
       
   176                 ,function(data) {
       
   177                 
       
   178                     if(data=="true"){
       
   179                         $("#messageSuccess").show('fast');
       
   180                         $("#messageSuccess").delay(800).hide('slow');
       
   181                         $('#status').val("<?php echo($config['hashtag']); ?>");
       
   182                         $('#status').change();
       
   183                     }else{
       
   184                         $("#error").text(data);
       
   185                         $("#messageFailed").show('fast');
       
   186                         $("#messageFailed").delay(800).hide('slow');
       
   187                     }
       
   188                     
       
   189                 });
       
   190                 
       
   191             });
       
   192             
       
   193 
       
   194             $("#status").bind("change keyup paste blur focus",updateCounter);
       
   195             
       
   196             
       
   197             $("#Program").fancybox({
       
   198                 'width'             : '75%',
       
   199                 'height'            : '75%',
       
   200                 'autoScale'         : false,
       
   201                 'transitionIn'      : 'none',
       
   202                 'transitionOut'     : 'none',
       
   203                 'type'              : 'iframe'
       
   204             });
       
   205             $(".embedbutton").fancybox({
       
   206                 'width'             : 360,
       
   207                 'height'            : 360,
       
   208                 'autoDimensions'    : false,
       
   209                 'transitionIn'      : 'none',
       
   210                 'transitionOut'     : 'none',
       
   211                 'type'              : 'iframe'
       
   212             });
       
   213             
       
   214     $("#onglets a").click(function() {
       
   215         $("div.ifwrap").hide();
       
   216         $("#onglets li").removeClass("selected");
       
   217         $(this).parent().addClass("selected");
       
   218         var hr = $(this).attr("href");
       
   219         if (hr[0] == '#') {
       
   220             $(hr).show();
       
   221         } else {
       
   222             $("#iframeWrap").show();
       
   223             $("#graphFrame").attr("src", hr);
       
   224         }
       
   225         return false;
       
   226     });
       
   227             
       
   228 
       
   229         });
       
   230 
       
   231         //<!-- LIMIT TEXTAREA:
       
   232         // End -->
       
   233 
       
   234     </script>
       
   235     
       
   236     <script type="text/javascript">
       
   237     
       
   238       var _gaq = _gaq || [];
       
   239       _gaq.push(['_setAccount', 'UA-23581291-1']);
       
   240       _gaq.push(['_trackPageview']);
       
   241       _gaq.push(['_setAllowAnchor', true]);
       
   242     
       
   243       (function() {
       
   244         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       
   245         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       
   246         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       
   247       })();
       
   248     
       
   249     </script>
       
   250     
       
   251   </head>
       
   252   <body<?php if ($embed) { echo ' class="embed"'; } ?>>
       
   253     <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
       
   254 
       
   255         <div id="container">
       
   256             
       
   257             <div id="coldroite">
       
   258                 
       
   259                 <div class="embedbar">
       
   260                     <a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/live_embed_form.php">Intégrer</a>
       
   261                     <!-- AddThis Button BEGIN -->
       
   262                     <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
       
   263                         <a class="addthis_button_facebook"></a>
       
   264                         <a class="addthis_button_twitter"></a>
       
   265                         <a class="addthis_button_email"></a>
       
   266                         <a class="addthis_button_compact"></a>
       
   267                     </div>
       
   268                     <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
       
   269                     <!-- AddThis Button END -->
       
   270                 </div>
       
   271                 <ul id="onglets">
       
   272 <?php if (isset($config['semantic_board']) or isset($config['knowtex_url'])) { ?>
       
   273                     <li class="selected">
       
   274                         <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
       
   275                     </li>
       
   276 <?php } ?>
       
   277 <?php if (isset($config['semantic_board']) and $config['semantic_board']) { ?>
       
   278                     <li>
       
   279                         <a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a>
       
   280                     </li>
       
   281 <?php } ?>
       
   282 <?php if (isset($config['knowtex_url'])) { ?>
       
   283                     <li>
       
   284                         <a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a>
       
   285                     </li>
       
   286 <?php } ?>
       
   287                 </ul>
       
   288                 <div class="ifwrap" id="vlWrap">
       
   289                     <div id="videoLivePlayer">
       
   290                     <?php if (isset($config['islive']) && $config['islive']):?>
       
   291                         <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>">
       
   292                             <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
       
   293                             <param name="allowfullscreen" value="true" />
       
   294                             <param name="allowscriptaccess" value="always" />
       
   295                             <param name="wmode" value="transparent" />
       
   296                             <?php
       
   297 
       
   298 function flv_param($name,$default) {
       
   299     global $config;
       
   300     return ( isset($config["flv_$name"]) ? ( $config["flv_$name"] ? "&$name=".$config["flv_$name"] : "" ) : "&$name=$default" );
       
   301 }
       
   302 
       
   303 $flashvars = "autostart=true&live=true".flv_param("provider", "rtmp").flv_param("streamer", "rtmp://media.iri.centrepompidou.fr/ddc_player/").flv_param("file", "livestream")."&image=$big_visual_url&controlbar=none&autostart=true";
       
   304                             ?>
       
   305                             <param name="flashvars" value="<?php echo $flashvars; ?>" />
       
   306                             <embed
       
   307                                 type="application/x-shockwave-flash"
       
   308                                 id="player2"
       
   309                                 name="player2"
       
   310                                 src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
       
   311                                 width="<?php echo $videoWidth; ?>"
       
   312                                 height="<?php echo $videoHeight; ?>"
       
   313                                 allowscriptaccess="always"
       
   314                                 allowfullscreen="true"
       
   315                                 wmode="transparent"
       
   316                                 flashvars="<?php echo $flashvars; ?>"
       
   317                             />
       
   318                         </object>
       
   319                     <?php elseif(isset($config['islive_embed']) && $config['islive_embed']):?>
       
   320                         <?php echo str_replace(array('{{width}}','{{height}}'), array($videoWidth, $videoHeight), $config['islive_embed']); ?>
       
   321                     <?php else: ?>
       
   322                         <img class="live-thumbnail" src="<?php echo($big_visual_url); ?>" />
       
   323                     <?php endif; ?>
       
   324                     </div>
       
   325                 </div>
       
   326                 <div class="ifwrap hidden" id="iframeWrap">
       
   327                     <iframe id="graphFrame"></iframe>
       
   328                 </div>
       
   329                 <div id="out_fleche">
       
   330                 <!--    <div id="in_fleche"></div> -->
       
   331                 </div>
       
   332                 <ul id="accordeon">
       
   333                     <li class="acctitre">
       
   334                         <h3><?php echo($translate->_('config__title')); ?></h3>
       
   335                     </li>
       
   336                     <li class="acctexte">
       
   337                         <p><?php echo($translate->_('config__description')); ?></p>
       
   338                     </li>
       
   339                     <li class="acctitre">
       
   340                         <h3><?php echo($translate->_('keywords')); ?></h3>
       
   341                     </li>
       
   342                     <li>
       
   343                         <ul>
       
   344                             <li class="acctexte">
       
   345                                 <div class="accsubtitle">
       
   346                                     <div class="aroundsubtitle">
       
   347                                         <h4><?php echo($translate->_('suggested')); ?></h4>
       
   348                                     </div>
       
   349                                 </div>
       
   350                                 <div class="tagcloud" id="suggkw">
       
   351                                     <div class="clearer"></div>
       
   352                                 </div>
       
   353                             </li>
       
   354                             <li class="acctexte">
       
   355                                 <div class="accsubtitle">
       
   356                                     <div class="aroundsubtitle">
       
   357                                         <h4><?php echo($translate->_('contextual')); ?></h4>
       
   358                                     </div>
       
   359                                 </div>
       
   360                                 <div class="tagcloud" id="motscles">
       
   361                                     <div class="clearer"></div>
       
   362                                 </div>
       
   363                             </li>
       
   364                         </ul>
       
   365                     </li>
       
   366                 </ul>
       
   367             </div>
       
   368             <div id="colgauche">
       
   369                 <div class="barre">
       
   370                     <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
       
   371                     <div id="minilogo"></div>
       
   372                     <ul class="menu">
       
   373                         <li>
       
   374                             <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
       
   375                                 <?php print $translate->_("Accueil"); ?>
       
   376                             </a>
       
   377                         </li>
       
   378                         <li>
       
   379                             <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
       
   380                                 <?php print $translate->_("Programme"); ?>
       
   381                             </a>
       
   382                         </li>
       
   383                         <li>
       
   384                             <a href="../about.php" class="menuLink" >
       
   385                                 <?php print $translate->_("A propos"); ?>
       
   386                             </a>
       
   387                         </li>
       
   388                     </ul>
       
   389                     <ul class="menu">
       
   390                         <li>
       
   391                             <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
       
   392                                 <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
       
   393                                 <?php print $translate->_("Japonais"); ?>
       
   394                             </a></li>
       
   395                         <li>
       
   396                             <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink">
       
   397                                 <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
       
   398                                 <?php print $translate->_("Français"); ?>
       
   399                             </a>
       
   400                         </li>
       
   401                         <li>
       
   402                             <a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink">
       
   403                                 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
       
   404                                 <?php print $translate->_("Anglais"); ?>
       
   405                             </a>
       
   406                         </li>
       
   407                     </ul>
       
   408                 </div>
       
   409                 <div id="twwWrap">
       
   410                     <div id="tweetWriter">
       
   411                             <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
       
   412                             <div id="tweetCounter"><?php echo(140-strlen($config['hashtag']));?></div>
       
   413                             <?php endif;?>
       
   414                         <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3>
       
   415                         <form  action="tweet.php" method="post" id="statusform" >
       
   416                             <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
       
   417                                 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>");
       
   418                             } else {
       
   419                                 echo("<textarea name='status' id='status' rows='3' cols='50'>$config[hashtag]</textarea>");
       
   420                             }
       
   421                             ?>
       
   422                             <div id="messageSuccess" style="background-color:lightgreen; display: none;">
       
   423                                 <?php print $translate->_("Envoyé"); ?><br/><br/>
       
   424                             </div>
       
   425                             <div id="messageFailed" style="background-color:red; display: none;">
       
   426                                 <?php print $translate->_("Erreur1"); ?><div id="error">&nbsp;</div><br/><br/>
       
   427                             </div>
       
   428                             <a href="#"  id="sendTweet" >
       
   429                                 <span><?php print $translate->_("Envoyer"); ?></span>
       
   430                             </a>
       
   431                             <a id="positive" title="++ | <?php echo $translate->_('Agree'); ?>" class="tweetButton twbGreen">
       
   432                                 <span class="twbSyntax">++</span>
       
   433                                 <span class="twbSeparator">|</span>
       
   434                                 <span class="twbLabel"><?php echo $translate->_('Agree'); ?></span>
       
   435                             </a>
       
   436                             <a id="negative" title="-- | <?php echo $translate->_('Disagree'); ?>" class="tweetButton twbRed">
       
   437                                 <span class="twbSyntax">--</span>
       
   438                                 <span class="twbSeparator">|</span>
       
   439                                 <span class="twbLabel"><?php echo $translate->_('Disagree'); ?></span>
       
   440                             </a>
       
   441                             <a id="reference" title="== | <?php echo $translate->_('Reference'); ?>" class="tweetButton twbYellow">
       
   442                                 <span class="twbSyntax">==</span>
       
   443                                 <span class="twbSeparator">|</span>
       
   444                                 <span class="twbLabel"><?php echo $translate->_('Reference'); ?></span>
       
   445                             </a>
       
   446                             <a id="question" title="?? | <?php echo $translate->_('Question'); ?>" class="tweetButton twbBlue">
       
   447                                 <span class="twbSyntax">??</span>
       
   448                                 <span class="twbSeparator">|</span>
       
   449                                 <span class="twbLabel"><?php echo $translate->_('Question'); ?></span>
       
   450                             </a>
       
   451                             
       
   452                             <div style="clear: both;"></div>
       
   453                         </form>
       
   454                     </div>
       
   455                 </div>
       
   456                 <div id="tweetviz">
       
   457                     <div class="barre">
       
   458                         <form id="recherche">
       
   459                             <input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" />
       
   460                             <input id="inp_submit" type="submit" />
       
   461                             <input id="inp_reset" type="reset" />
       
   462                             <div id="time_controls">
       
   463                                 <div id="time_legende"></div>
       
   464                                 <div id="time_scale"></div>
       
   465                                 <a href="#" id="time_zoomout"></a>
       
   466                                 <a href="#" id="time_zoomin"></a>
       
   467                             </div>
       
   468                             <div id="recherche_annot">
       
   469                                 <?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br />
       
   470                             </div>
       
   471                         </form>
       
   472                     </div>
       
   473                     <ul id="tweetlist"></ul>
       
   474                     <div id="timeline"></div>
       
   475                     <div id="scrollcont">
       
   476                         <div id="scrollin"></div>
       
   477                     </div>
       
   478                 </div>
       
   479             </div>
       
   480             
       
   481             <div id="pad">
       
   482             <iframe src='<?php echo($translate->_('config__pad_url')); ?>' width='100%' height=400></iframe>
       
   483             </div>
       
   484             <div class="footer">
       
   485                 <hr />
       
   486          <?php
       
   487                 echo($translate->_('config__partenaires'));
       
   488                 
       
   489                 if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
       
   490                     echo("| <a href='clear.php' class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
       
   491                 }
       
   492          ?>
       
   493             </div>
       
   494         </div>
       
   495         <div id="hovertweet">
       
   496             <div id="hovercontent"></div>
       
   497             <div id="hoverarrow"></div>
       
   498         </div>
       
   499         <ul id="hoverkw">
       
   500             <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
       
   501             <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
       
   502         </ul>
       
   503   </body>
       
   504 </html>