equal
deleted
inserted
replaced
42 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
42 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
43 $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
43 $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
44 } |
44 } |
45 |
45 |
46 $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
46 $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
|
47 $embed_video = isset($_REQUEST['embed_video']) ? boolval($_REQUEST['embed_video']) : true; |
47 $videoWidth = ( $embed ? 412 : 480 ); |
48 $videoWidth = ( $embed ? 412 : 480 ); |
48 $videoHeight = ( $embed ? 280 : 320 ); |
49 $videoHeight = ( $embed ? 280 : 320 ); |
49 if ($embed && !isset($_SESSION['TWITTER_ACCESS_TOKEN']) && (isset($_REQUEST['auth_redirect']) || isset($_SERVER['HTTP_REFERER']))) { |
50 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 $_SESSION['TWITTER_REDIRECT_URL'] = isset($_REQUEST['auth_redirect']) ? $_REQUEST['auth_redirect'] : $_SERVER['HTTP_REFERER']; |
51 }; |
52 }; |
124 _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change(); |
125 _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change(); |
125 } |
126 } |
126 |
127 |
127 $(document).ready(function() { |
128 $(document).ready(function() { |
128 |
129 |
129 |
130 const TWEET_LENGTH = <?php echo(TWEET_LENGTH)?>; |
130 function updateCounter() { |
131 function updateCounter() { |
131 var _v = $("#status").val(); |
132 var _v = $("#status").val(); |
132 if (_v.length > 140) { |
133 if (_v.length > TWEET_LENGTH) { |
133 _v = _v.substr(0,140); |
134 _v = _v.substr(0,TWEET_LENGTH); |
134 $("#status").val(_v); |
135 $("#status").val(_v); |
135 } |
136 } |
136 $('#tweetCounter').html(140-_v.length); |
137 $('#tweetCounter').html(TWEET_LENGTH-_v.length); |
137 if(140-_v.length < 0) { |
138 if(TWEET_LENGTH-_v.length < 0) { |
138 $('#tweetCounter').addClass("tweetCounterNegative"); |
139 $('#tweetCounter').addClass("tweetCounterNegative"); |
139 } |
140 } |
140 else { |
141 else { |
141 $('#tweetCounter').removeClass("tweetCounterNegative"); |
142 $('#tweetCounter').removeClass("tweetCounterNegative"); |
142 } |
143 } |
282 </li> |
283 </li> |
283 <?php } ?> |
284 <?php } ?> |
284 </ul> |
285 </ul> |
285 <div class="ifwrap" id="vlWrap"> |
286 <div class="ifwrap" id="vlWrap"> |
286 <div id="videoLivePlayer"> |
287 <div id="videoLivePlayer"> |
287 <?php if(isset($config['islive_embed']) && $config['islive_embed']):?> |
288 <?php if(!$embed_video): ?> |
|
289 <img src='<?php echo($big_visual_url); ?>' /> |
|
290 <?php elseif(isset($config['islive_embed']) && $config['islive_embed']):?> |
288 <?php echo str_replace(array('{{width}}','{{height}}'), array($videoWidth, $videoHeight), $translate->_('config__islive_embed')); ?> |
291 <?php echo str_replace(array('{{width}}','{{height}}'), array($videoWidth, $videoHeight), $translate->_('config__islive_embed')); ?> |
289 <?php else: ?> |
292 <?php else: ?> |
290 <video id="videoPlayer" width=<?php echo($videoWidth); ?> height=<?php echo($videoHeight); ?> autoplay controls poster="<?php echo($big_visual_url); ?>" class="video-js vjs-default-skin"><img class="live-thumbnail" src="<?php echo($big_visual_url); ?>" /></video> |
293 <video id="videoPlayer" width=<?php echo($videoWidth); ?> height=<?php echo($videoHeight); ?> autoplay controls poster="<?php echo($big_visual_url); ?>" class="video-js vjs-default-skin"><img class="live-thumbnail" src="<?php echo($big_visual_url); ?>" /></video> |
291 <?php endif; ?> |
294 <?php endif; ?> |
292 </div> |
295 </div> |
394 </ul> |
397 </ul> |
395 </div> |
398 </div> |
396 <div id="twwWrap"> |
399 <div id="twwWrap"> |
397 <div id="tweetWriter"> |
400 <div id="tweetWriter"> |
398 <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?> |
401 <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?> |
399 <div id="tweetCounter"><?php echo(140-strlen($config['hashtag']));?></div> |
402 <div id="tweetCounter"><?php echo(TWEET_LENGTH-strlen($config['hashtag']));?></div> |
400 <?php endif;?> |
403 <?php endif;?> |
401 <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3> |
404 <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3> |
402 <form action="tweet.php" method="post" id="statusform" > |
405 <form action="tweet.php" method="post" id="statusform" > |
403 <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
406 <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
404 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>"); |
407 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>"); |