diff --git a/templates/themes/stream/info.php b/templates/themes/stream/info.php new file mode 100644 index 00000000..169cbe46 --- /dev/null +++ b/templates/themes/stream/info.php @@ -0,0 +1,74 @@ + 'Site title', + 'name' => 'title', + 'type' => 'text' + ); + + $theme['config'][] = Array( + 'title' => 'Slogan', + 'name' => 'subtitle', + 'type' => 'text', + 'comment' => '(optional)' + ); + + $theme['config'][] = Array( + 'title' => 'File', + 'name' => 'file', + 'type' => 'text', + 'default' => 'stream.html', + 'comment' => '(eg. "stream.html")' + ); + $theme['config'][] = Array( + 'title' => 'OGV stream URL', + 'name' => 'ogvurl', + 'type' => 'text', + 'default' => 'https://lainchan.org/radio_assets/lainstream.ogg') + ); + $theme['config'][] = Array( + 'title' => 'RTMP stream URL', + 'name' => 'rtmpurl', + 'type' => 'text', + 'default' => 'rtmp://lainchan.org/live/&stream') + ); + + $theme['config'][] = Array( + 'title' => 'OGV Status URL', + 'name' => 'ogvstatus', + 'type' => 'text', + 'default' => '/radio_assets/status.xsl') + ); + + $theme['config'][] = Array( + 'title' => 'RTMP Status URL', + 'name' => 'rtmpstatus', + 'type' => 'text', + 'default' => '/live/status?app=live&name=stream') + ); + $theme['config'][] = Array( + 'title' => 'RTMP Viewers URL', + 'name' => 'rtmpviewers', + 'type' => 'text', + 'default' => '/live/subs?app=live&name=stream') + ); + + + // Unique function name for building everything + $theme['build_function'] = 'stream_build'; + $theme['install_callback'] = 'stream_install'; + if (!function_exists('stream_install')) { + function stream_install($settings) { + } + } + diff --git a/templates/themes/stream/stream.html b/templates/themes/stream/stream.html new file mode 100644 index 00000000..cf952366 --- /dev/null +++ b/templates/themes/stream/stream.html @@ -0,0 +1,84 @@ +{% filter remove_whitespace %} + + + + + + + {{ settings.title }} + {% if config.meta_keywords %}{% endif %} + + {% if config.url_favicon %}{% endif %} + + + {% if config.font_awesome %}{% endif %} + + + + + +
+ {{ boardlist.top }} +
+
+

{{ settings.title }}

+
{{ settings.subtitle }}
+
+ +
+ + +
+

Now Streaming RTMP unknown

+

Now Streaming OGV unknown

+

Current RTMP viewers: unknown

+

Current OGV viewers: unknown

+
+

Raw stream URLs for Mplayer, mpv, VLC, etc:

+

RTMP : {{ setings.rtmpurl }}

+

OGV : {{ setings.ogvurl }}

+

+
+ + + +
+ + + + +{% endfilter %} diff --git a/templates/themes/stream/theme.php b/templates/themes/stream/theme.php new file mode 100644 index 00000000..6d11a0dc --- /dev/null +++ b/templates/themes/stream/theme.php @@ -0,0 +1,34 @@ + $settings, + 'config' => $config, + 'boardlist' => createBoardlist(), + )); + } + }; + +?> diff --git a/templates/themes/stream/thumb.png b/templates/themes/stream/thumb.png new file mode 100644 index 00000000..d0c3c771 Binary files /dev/null and b/templates/themes/stream/thumb.png differ