aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/chat.phtml
diff options
context:
space:
mode:
authorMaZderMind2015-03-30 16:20:30 +0200
committerMaZderMind2015-03-30 16:20:30 +0200
commitf7d9d592745d1cb5cb2de76ed6ae99be974f1807 (patch)
tree0f9f77efe9efc70b3ac0404a46b249f809197922 /template/assemblies/chat.phtml
parentea4b6c7699a7fbb7be3d9e5ce86c84a36b63f569 (diff)
Implement MVT Pattern based on simple Config options
Diffstat (limited to '')
-rw-r--r--template/assemblies/chat.phtml13
1 files changed, 7 insertions, 6 deletions
diff --git a/template/assemblies/chat.phtml b/template/assemblies/chat.phtml
index 85245b2..8498c45 100644
--- a/template/assemblies/chat.phtml
+++ b/template/assemblies/chat.phtml
@@ -1,14 +1,15 @@
-<? if(room_has_irc($room)): ?>
+<? if($room->hasIrc()): ?>
<div>
- <a class="btn btn-primary irclink" href="<?=h(room_get_irc_url($room))?>" target="_blank">
- <span class="fa fa-comment"></span> <?=h(room_get_irc_display($room))?>
+ <a class="btn btn-primary irclink" href="<?=h($room->getIrcUrl())?>" target="_blank">
+ <span class="fa fa-comment"></span> <?=h($room->getIrcDisplay())?>
</a>
</div>
<? endif ?>
-<? if(room_has_twitter($room)): ?>
+
+<? if($room->hasTwitter($room)): ?>
<div>
- <a class="btn 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 class="btn twitterlink" href="<?=h($room->getTwitterUrl())?>" target="_blank">
+ <span class="fa fa-twitter"></span> <?=h($room->getTwitterDisplay())?>
</a>
</div>
<? endif ?>