From 787b5b657f6fa3251f8b0b4a770784f0ddaed407 Mon Sep 17 00:00:00 2001
From: MaZderMind
Date: Sun, 1 Mar 2015 12:02:11 +0100
Subject: Chat-Panel
---
template/assemblies/chat.phtml | 16 ++++++++++++++++
template/assemblies/irc.phtml | 10 ----------
template/room.phtml | 4 ++--
3 files changed, 18 insertions(+), 12 deletions(-)
create mode 100644 template/assemblies/chat.phtml
delete mode 100644 template/assemblies/irc.phtml
(limited to 'template')
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 @@
+
+ if(room_has_irc($room)): ?>
+
+ endif ?>
+ if(room_has_twitter($room)): ?>
+
+
+
+ endif ?>
+
diff --git a/template/assemblies/irc.phtml b/template/assemblies/irc.phtml
deleted file mode 100644
index abca8ac..0000000
--- a/template/assemblies/irc.phtml
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/template/room.phtml b/template/room.phtml
index aa489fc..3a186df 100644
--- a/template/room.phtml
+++ b/template/room.phtml
@@ -27,7 +27,7 @@
Formats
- if((get("ROOMS.$room.IRC") && has("IRC")) || (get("ROOMS.$room.TWITTER") && has("TWITTER"))): ?>
+ if(room_has_chat($room)): ?>
Chat
@@ -48,7 +48,7 @@
include("$assemblies/switcher/$tab.phtml") ?>
- if((get("ROOMS.$room.IRC") && has("IRC")) || (get("ROOMS.$room.TWITTER") && has("TWITTER"))): ?>
+ if(room_has_chat($room)): ?>
include("$assemblies/chat.phtml") ?>
--
cgit v1.2.3