summaryrefslogtreecommitdiff
path: root/templates/themes/irc
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2016-12-15 18:25:42 +0900
committerGitHub <noreply@github.com>2016-12-15 18:25:42 +0900
commitcae526e65a20f3da2d8884c4d8e8978c54120000 (patch)
tree2954153dd49f616f5018490058ff4bfbd17300d3 /templates/themes/irc
parentb58fab98147a92c8e6d22f15d23684508b6bb811 (diff)
parent5feae402cb55d49963bfd2c6f5a33d10690ecbc1 (diff)
Merge pull request #79 from lainchan/clean_prod_vichan_update
Merge vichan changes from upstream and changes directly applied to the site.
Diffstat (limited to 'templates/themes/irc')
-rw-r--r--templates/themes/irc/info.php17
-rw-r--r--templates/themes/irc/irc.html39
-rw-r--r--templates/themes/irc/radio.html29
3 files changed, 26 insertions, 59 deletions
diff --git a/templates/themes/irc/info.php b/templates/themes/irc/info.php
index 8b31b011..8ca3be0a 100644
--- a/templates/themes/irc/info.php
+++ b/templates/themes/irc/info.php
@@ -17,7 +17,22 @@ $theme = array(
array('title' => 'File',
'name' => 'file',
'type' => 'text',
- 'default' => 'irc.html')),
+ 'default' => 'irc.html'),
+
+ array('title' => 'Channel',
+ 'name' => 'channel',
+ 'type' => 'text',
+ 'default' => 'general'),
+
+ array('title' => 'Server',
+ 'name' => 'server',
+ 'type' => 'text',
+ 'default' => 'irc.lainchan.org'),
+
+ array('title' => 'Port',
+ 'name' => 'port',
+ 'type' => 'text',
+ 'default' => '6697')),
'build_function' => 'irc_build');
?>
diff --git a/templates/themes/irc/irc.html b/templates/themes/irc/irc.html
index 9fadff99..7aa617cf 100644
--- a/templates/themes/irc/irc.html
+++ b/templates/themes/irc/irc.html
@@ -1,48 +1,29 @@
{% filter remove_whitespace %}
<!DOCTYPE html>
-<html style="height:100vh; width:100%;">
+<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>{{ settings.title }}</title>
<link rel="shortcut icon" href="/favicon.png">
<link rel="stylesheet" media="screen" href="/stylesheets/style.css"/>
- <link rel="stylesheet" media="screen" href="/stylesheets/cyberpunk.css"/>
+ <link rel="stylesheet" media="screen" href="/stylesheets/dark.css"/>
+ <link rel="stylesheet" media="screen" href="/stylesheets/dark_irc.css"/>
<link rel="stylesheet" href="/stylesheets/font-awesome/css/font-awesome.min.css">
- </head>
- <body style="background-image: url(/bg.php); background-size:cover; background-repeat:no-repeat; height:100vh; width: inherit; margin:none; padding:none; overflow-x:hidden; overflow-y:hidden;">
- <div class="bar top">
- {{ boardlist.top }}
+</head>
+ <body>
+ <div class="bar top">
+ {{ boardlist.top }}
</div>
- {% if config.url_banner %}<img class="board_image" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
<header>
<h1>{{ settings.title }}</h1>
<div class="subtitle">{{ settings.subtitle }}</div>
</header>
- <img alt="mascot" src="static/lain_is_cute_datass_small.png"/>
- <div class="ban" style="background-color: black; text-align: left!important;">
- <h2>WELCOME TO CYBERIA</h2>
-
- <p>Welcome to lainchan's #BADA55 radio stream. <br/>Statistics
- about this stream such as current listeners, song title, et
- cetera will soon be added to this page.
- </p>
-
- <ul>
-
- <li><a href="https://lainchan.org/static/lain.ogg.m3u">Vorbis M3U Playlist</a></li>
- <li><a href="https://lainchan.org/static/lain.mp3.m3u">MP3 M3U Playlist</a></li>
-
- XSPF considered harmful.
- </ul>
-
- <audio controls preload="none" style="margin: 0 5% 20px 5%; width: 90%; box-shadow: 0px 0px 5px black;">
- <source src="https://lainchan.org/radio_assets/lain.ogg" type="audio/ogg">
- <source src="https://lainchan.org/radio_assets/lain.mp3" type="audio/mpeg">
- <em>Your browser lacks support for OGG Vorbis files. Please open the M3U file or XSPF file in a multimedia player.</em>
- </audio>
+ <div class="ban" style="text-align: left!important;">
+ <h2>Web Client - Point your own clients to #{{ settings.channel }} on {{ settings.server }}:+{{ settings.port }} .</h2>
+ <iframe src="https://kiwiirc.com/client/{{ settings.server }}:+{{ settings.port }}/#{{ settings.channel }}" width="800px" height="100%" scrolling="no"></iframe>
</div>
</body>
</html>
diff --git a/templates/themes/irc/radio.html b/templates/themes/irc/radio.html
deleted file mode 100644
index 7f84134b..00000000
--- a/templates/themes/irc/radio.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% filter remove_whitespace %}
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <title>{{ settings.title }}</title>
- <link rel="shortcut icon" href="/favicon.png">
- <link rel="stylesheet" media="screen" href="/stylesheets/style.css"/>
- <link rel="stylesheet" media="screen" href="/stylesheets/dark.css"/>
- <link rel="stylesheet" media="screen" href="/stylesheets/dark_irc.css"/>
- </head>
- <body>
- <div class="bar top">
- {{ boardlist.top }}
- </div>
-
- <header>
- <h1>{{ settings.title }}</h1>
- <div class="subtitle">{{ settings.subtitle }}</div>
- </header>
-
-
- <div class="ban" style="text-align: left!important;">
- <h2>Web Client - Point your own clients to #lainchan on irc.freenode.net.</h2>
- <iframe src="https://webchat.freenode.net?channels=%23lainchan&uio=MTE9MTMz98" width="766" height="400"></iframe>
- </div>
- </body>
-</html>
-{% endfilter %}