Update templates for new stylesheets
This commit is contained in:
parent
addf730393
commit
2049f4d8f8
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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');
|
||||
?>
|
|
@ -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 <audio> 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 %}
|
|
@ -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 %}
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
|
@ -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 }}
|
||||
|
|
|
@ -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">
|
||||
|
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
@ -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 © 2010-2014 Tinyboard Development Group
|
||||
<br><a href="https://int.vichan.net/devel/">vichan</a> Copyright © 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 © 2010-2014 Tinyboard Development Group<br/>
|
||||
<a href="https://int.vichan.net/devel/">vichan</a> Copyright © 2012-2014 vichan-devel<br/>
|
||||
<a href="https://github.com/lainchan/lainchan">lainchan</a> Copyright © 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">
|
||||
|
|
Loading…
Reference in New Issue