summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSimon McFarlane <simon@piston.pw>2015-02-14 06:12:54 +0100
committerSimon McFarlane <simon@piston.pw>2015-02-14 06:12:54 +0100
commit2049f4d8f8f41d897d2bc0376e32804f31a11b87 (patch)
tree15d9c708c12ca9a8c06fb07a12fc88efa069dbb8 /templates
parentaddf730393f931d2eb3b8ef06fc1a1aa3fa3ebab (diff)
Update templates for new stylesheets
Diffstat (limited to 'templates')
-rw-r--r--templates/themes/basic/index.html5
-rw-r--r--templates/themes/donate/donate.html1
-rw-r--r--templates/themes/irc/info.php23
-rw-r--r--templates/themes/irc/irc.html58
-rw-r--r--templates/themes/irc/radio.html29
-rw-r--r--templates/themes/irc/theme.php27
-rw-r--r--templates/themes/irc/thumb.pngbin0 -> 10730 bytes
-rw-r--r--templates/themes/radio/radio.html3
-rwxr-xr-x[-rw-r--r--]templates/themes/rules/info.php0
-rwxr-xr-x[-rw-r--r--]templates/themes/rules/rules.html1
-rwxr-xr-x[-rw-r--r--]templates/themes/rules/theme.php0
-rwxr-xr-x[-rw-r--r--]templates/themes/rules/thumb.pngbin19899 -> 19899 bytes
-rw-r--r--templates/thread.html10
13 files changed, 148 insertions, 9 deletions
diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html
index 755c970e..7bccdf4c 100644
--- a/templates/themes/basic/index.html
+++ b/templates/themes/basic/index.html
@@ -20,10 +20,7 @@
<h1>{{ settings.title }}</h1>
<div class="subtitle">{{ settings.subtitle }}</div>
</header>
-<center>
-
- <img src="static/lain_is_cute_datass_small_teal.png" alt="mascot"/>
- </center>
+ <img src="static/lain_is_cute_datass_small_teal.png" alt="mascot"/>
<div class="ban">
{% if news|count == 0 %}
<p style="text-align:center" class="unimportant">(No news to show.)</p>
diff --git a/templates/themes/donate/donate.html b/templates/themes/donate/donate.html
index 067feb29..582697ce 100644
--- a/templates/themes/donate/donate.html
+++ b/templates/themes/donate/donate.html
@@ -7,6 +7,7 @@
<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"/>
+ {% if config.font_awesome %}<link rel="stylesheet" href="{{ config.root }}{{ config.font_awesome_css }}">{% endif %}
</head>
<body>
<div class="bar top">{{ boardlist.top }}</div>
diff --git a/templates/themes/irc/info.php b/templates/themes/irc/info.php
new file mode 100644
index 00000000..8b31b011
--- /dev/null
+++ b/templates/themes/irc/info.php
@@ -0,0 +1,23 @@
+<?php
+$theme = array(
+ 'name' => 'IRC',
+ 'description' => 'Display a link to the lainchan irc',
+ 'version' => 'v1',
+
+ 'config' => array(
+ array('title' => 'Page title',
+ 'name' => 'title',
+ 'type' => 'text'),
+
+ array('title' => 'Slogan',
+ 'name' => 'subtitle',
+ 'type' => 'text',
+ 'comment' => '(optional)'),
+
+ array('title' => 'File',
+ 'name' => 'file',
+ 'type' => 'text',
+ 'default' => 'irc.html')),
+
+ 'build_function' => 'irc_build');
+?>
diff --git a/templates/themes/irc/irc.html b/templates/themes/irc/irc.html
new file mode 100644
index 00000000..ed9dc5ff
--- /dev/null
+++ b/templates/themes/irc/irc.html
@@ -0,0 +1,58 @@
+{% 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" href="/stylesheets/font-awesome/css/font-awesome.min.css">
+ </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="text-align: left!important;">
+ <h2>WELCOME TO CYBERIA</h2>
+
+ <p>Welcome to lainchan's very own internet radio!<br/><!--Statistics
+ about this stream such as current listeners, song title, et
+ cetera will soon be added to this page.!-->
+ Unfortunately, due to our usage of HSTS, and the fact that our radio is http-only means that we can't properly place a player &lt;audio&gt; element at the current moment. In the next few days, we should have a proper reverse proxy set up, and the player will support https and therefore work on this page. Until then, please use any of the following playlists in your media player of choice.
+ </p>
+
+<!-- <p><strong>NOTE:</strong> Some experimental browsers, namely
+ very recent versions of Chromium, have been known to break with
+ OGG streams. If your connection is choppy, try a either running
+ the stream in a different browser, or opening one of the
+ playlists in a media player:</p>!-->
+
+ <ul>
+
+ <li><a href="http://lainchan.org/static/live.ogg.m3u">Vorbis M3U Playlist</a></li>
+ <li><a href="http://lainchan.org/static/live.ogg.xspf">Vorbis XSPF Playlist</a></li>
+ <li><a href="http://lainchan.org/static/live.mp3.m3u">MP3 M3U Playlist</a></li>
+ <li><a href="http://lainchan.org/static/live.mp3.xspf">MP3 XSPF Playlist</a></li>
+ </ul>
+
+ <!--<audio controls=""
+ preload="none"
+ src="http://lainchan.org/static/live.ogg"
+ type="application/ogg"
+ style="margin: 0 5%; width: 90%; box-shadow: 0px 0px 5px black;">
+ <em>Your browser lacks support for OGG Vorbis files. Please open the M3U file or XSPF file in a multimedia player.</em>
+ </audio>!-->
+ </div>
+ </body>
+</html>
+{% endfilter %}
diff --git a/templates/themes/irc/radio.html b/templates/themes/irc/radio.html
new file mode 100644
index 00000000..7f84134b
--- /dev/null
+++ b/templates/themes/irc/radio.html
@@ -0,0 +1,29 @@
+{% 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 %}
diff --git a/templates/themes/irc/theme.php b/templates/themes/irc/theme.php
new file mode 100644
index 00000000..c9b45c33
--- /dev/null
+++ b/templates/themes/irc/theme.php
@@ -0,0 +1,27 @@
+<?php
+require 'info.php';
+
+function irc_build($action, $settings, $board) {
+ irc::build($action, $settings);
+}
+
+class irc {
+ public static function build($action, $settings) {
+ global $config;
+
+ if ($action == 'all') {
+ file_write($config['dir']['home'] . $settings['file'], irc::install($settings));
+ }
+ }
+
+ public static function install($settings) {
+ global $config;
+
+ return Element('themes/irc/irc.html',
+ array('settings' => $settings,
+ 'config' => $config,
+ 'boardlist' => createBoardlist()));
+ }
+}
+
+?>
diff --git a/templates/themes/irc/thumb.png b/templates/themes/irc/thumb.png
new file mode 100644
index 00000000..0988ca68
--- /dev/null
+++ b/templates/themes/irc/thumb.png
Binary files differ
diff --git a/templates/themes/radio/radio.html b/templates/themes/radio/radio.html
index 7f84134b..2828b6e0 100644
--- a/templates/themes/radio/radio.html
+++ b/templates/themes/radio/radio.html
@@ -8,7 +8,8 @@
<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>
+ <link rel="stylesheet" href="/stylesheets/font-awesome/css/font-awesome.min.css">
+</head>
<body>
<div class="bar top">
{{ boardlist.top }}
diff --git a/templates/themes/rules/info.php b/templates/themes/rules/info.php
index 7faaedc6..7faaedc6 100644..100755
--- a/templates/themes/rules/info.php
+++ b/templates/themes/rules/info.php
diff --git a/templates/themes/rules/rules.html b/templates/themes/rules/rules.html
index d31b064a..ea339381 100644..100755
--- a/templates/themes/rules/rules.html
+++ b/templates/themes/rules/rules.html
@@ -7,6 +7,7 @@
<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" href="/stylesheets/font-awesome/css/font-awesome.min.css">
</head>
<body>
<div class="bar top">
diff --git a/templates/themes/rules/theme.php b/templates/themes/rules/theme.php
index fc50437f..fc50437f 100644..100755
--- a/templates/themes/rules/theme.php
+++ b/templates/themes/rules/theme.php
diff --git a/templates/themes/rules/thumb.png b/templates/themes/rules/thumb.png
index bd6b129f..bd6b129f 100644..100755
--- a/templates/themes/rules/thumb.png
+++ b/templates/themes/rules/thumb.png
Binary files differ
diff --git a/templates/thread.html b/templates/thread.html
index 6de24aef..e533883d 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -48,10 +48,12 @@
<footer>
{% include 'badges.html' %}
- <p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +
- <a href='https://int.vichan.net/devel/'>vichan</a> {{ config.version }} -
- <br><a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2014 Tinyboard Development Group
- <br><a href="https://int.vichan.net/devel/">vichan</a> Copyright &copy; 2012-2014 vichan-devel</p>
+ <p class="unimportant" style="margin-top:20px;text-align:center;">
+ - <a href="http://tinyboard.org/">Tinyboard</a> + <a href="https://int.vichan.net/devel/">vichan</a> + <a href="https://github.com/lainchan/lainchan">lainchan</a> {{ config.version }} -<br>
+ <a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2014 Tinyboard Development Group<br/>
+ <a href="https://int.vichan.net/devel/">vichan</a> Copyright &copy; 2012-2014 vichan-devel<br/>
+ <a href="https://github.com/lainchan/lainchan">lainchan</a> Copyright &copy; 2014-2015 lainchan Administration
+ </p>
{% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
</footer>
<div class="bar bottom">