irc channel name & twitter link

This commit is contained in:
MaZderMind 2014-12-12 01:13:34 +01:00
parent b817d50b16
commit f60e25ece5
5 changed files with 15 additions and 2 deletions

View file

@ -5569,6 +5569,8 @@ a.inverted {
font-size: 60px; }
.room .click-to-irc .activator a {
font-size: 40px; }
.room .click-to-irc .activator a.twitterlink {
font-size: 30px; }
.room .click-to-irc iframe {
display: none; }
.room .click-to-irc.active {

File diff suppressed because one or more lines are too long

View file

@ -387,6 +387,10 @@ a.inverted {
a {
font-size: 40px;
}
a.twitterlink {
font-size: 30px;
}
}
iframe { display: none; }

View file

@ -64,6 +64,11 @@ function irc_channel($room)
return '31C3-hall-'.strtoupper(substr($room, 4, 1));
}
function twitter_hashtag($room)
{
return '#hall'.strtoupper(substr($room, 4, 1));
}
function format_text($format)
{
return @$GLOBALS['CONFIG']['FORMAT_TEXT'][$format] ?: '';

View file

@ -2,7 +2,9 @@
<div class="activator">
Click to Activate
<br />
<a class="irclink" href="irc://irc.hackint.eu:6667/<?=h(irc_channel($room))?>">(Directlink)</a>
<a class="irclink" href="irc://irc.hackint.eu:6667/<?=h(urlencode(irc_channel($room)))?>">#<?=h(irc_channel($room))?> @ hackint</a>
<br />
<a class="twitterlink" href="https://twitter.com/intent/tweet?text=<?=h(urlencode(twitter_hashtag($room)))?>" target="_blank"><?=h(twitter_hashtag($room))?> @ twitter</a>
</div>
<iframe data-src="https://kthx.de:9090/?channels=<?=h(irc_channel($room))?>-<?=h($room)?>&uio=d4" width="1020" height="372" border="0"></iframe>
</div>