diff options
author | MaZderMind | 2015-03-01 12:02:11 +0100 |
---|---|---|
committer | MaZderMind | 2015-03-01 12:02:11 +0100 |
commit | 787b5b657f6fa3251f8b0b4a770784f0ddaed407 (patch) | |
tree | f73c41e3107adfa617ae585efe0ce016094dc2e5 /template/assemblies/chat.phtml | |
parent | 810f165a10910a0497503bc4bb79f03c14332120 (diff) |
Chat-Panel
Diffstat (limited to 'template/assemblies/chat.phtml')
-rw-r--r-- | template/assemblies/chat.phtml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/template/assemblies/chat.phtml b/template/assemblies/chat.phtml new file mode 100644 index 0000000..e3aab6c --- /dev/null +++ b/template/assemblies/chat.phtml @@ -0,0 +1,16 @@ +<div class="chat"> + <? if(room_has_irc($room)): ?> + <div> + <a class="btn btn-primary irclink" href="<?=h(room_get_irc_url($room))?>"> + <span class="fa fa-comment"></span> <?=h(room_get_irc_display($room))?> + </a> + </div> + <? endif ?> + <? if(room_has_twitter($room)): ?> + <div> + <a class="btn btn-success twitterlink" href="https://twitter.com/intent/tweet?text=<?=h(rawurlencode(room_get_twitter_hashtag($room)))?>" target="_blank"> + <span class="fa fa-twitter"></span> <?=h(room_get_twitter_display($room))?> + </a> + </div> + <? endif ?> +</div> |