diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2013-01-09 08:35:27 +0100 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2013-01-09 08:35:27 +0100 |
| commit | c18ed4e51a8fa9d7d67fdd14f957f0e6fc0cbea3 (patch) | |
| tree | 7ec8c4076cf8c1863f443dbd0dcfd717f00c1a1b /templates | |
| parent | f6e9dbed1333f6761de0e748a6a41b6b365158dc (diff) | |
| parent | e145a0ea890f6973f349d8fb342e38a9be4c649b (diff) | |
Merge branch 'master' of https://github.com/asiekierka/Tinyboard
Conflicts:
mod.php
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/generic_page.html | 31 | ||||
| -rw-r--r-- | templates/header.html | 28 | ||||
| -rw-r--r-- | templates/index.html | 28 | ||||
| -rw-r--r-- | templates/mod/edit_post_form.html | 40 | ||||
| -rw-r--r-- | templates/page.html | 7 | ||||
| -rw-r--r-- | templates/themes/recent/info.php | 8 | ||||
| -rw-r--r-- | templates/themes/recent/recent_fs.css | 57 | ||||
| -rw-r--r-- | templates/themes/recent/theme.php | 2 |
8 files changed, 138 insertions, 63 deletions
diff --git a/templates/generic_page.html b/templates/generic_page.html index c50fb5dd..539cfdd3 100644 --- a/templates/generic_page.html +++ b/templates/generic_page.html @@ -2,35 +2,8 @@ <html> <head> {% block head %} - <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}"> - {% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %} - <title>{{ board.url }} - {{ board.name }}</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes"> - {% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %} - {% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %} - <script type="text/javascript">var configRoot="{{ config.root }}";</script> - {% if not nojavascript %} - <script type="text/javascript" src="{{ config.url_javascript }}"></script> - {% if not config.additional_javascript_compile %} - {% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %} - {% endif %} - {% endif %} - {% if config.recaptcha %}<style type="text/css">{% raw %} - .recaptcha_image_cell { - background: none !important; - } - table.recaptchatable { - border: none !important; - } - #recaptcha_logo, #recaptcha_tagline { - display: none; - float: right; - } - .recaptchatable a { - display: block; - } - {% endraw %}</style>{% endif %} + {% include 'header.html' %} + <title>{{ board.url }} - {{ board.name }}</title> {% endblock %} </head> <body> diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 00000000..95e0bc09 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,28 @@ + <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}"> + {% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %} + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes"> + {% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %} + {% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %} + <script type="text/javascript">var configRoot="{{ config.root }}";</script> + {% if not nojavascript %} + <script type="text/javascript" src="{{ config.url_javascript }}"></script> + {% if not config.additional_javascript_compile %} + {% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %} + {% endif %} + {% endif %} + {% if config.recaptcha %}<style type="text/css">{% raw %} + .recaptcha_image_cell { + background: none !important; + } + table.recaptchatable { + border: none !important; + } + #recaptcha_logo, #recaptcha_tagline { + display: none; + float: right; + } + .recaptchatable a { + display: block; + } + {% endraw %}</style>{% endif %} diff --git a/templates/index.html b/templates/index.html index d7910416..41c47af4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,35 +1,9 @@ <!doctype html>
<html>
<head>
+ {% include 'header.html' %}
<meta charset="utf-8">
- <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
- {% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %}
<title>{{ board.url }} - {{ board.name }}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
- {% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %}
- {% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %}
- <script type="text/javascript">var configRoot="{{ config.root }}";</script>
- {% if not nojavascript %}
- <script type="text/javascript" src="{{ config.url_javascript }}"></script>
- {% if not config.additional_javascript_compile %}
- {% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
- {% endif %}
- {% endif %}
- {% if config.recaptcha %}<style type="text/css">{% raw %}
- .recaptcha_image_cell {
- background: none !important;
- }
- table.recaptchatable {
- border: none !important;
- }
- #recaptcha_logo, #recaptcha_tagline {
- display: none;
- float: right;
- }
- .recaptchatable a {
- display: block;
- }
- {% endraw %}</style>{% endif %}
</head>
<body>
{{ boardlist.top }}
diff --git a/templates/mod/edit_post_form.html b/templates/mod/edit_post_form.html new file mode 100644 index 00000000..6748435e --- /dev/null +++ b/templates/mod/edit_post_form.html @@ -0,0 +1,40 @@ +<form name="post" enctype="multipart/form-data" action="{{ action }}" method="post"> + <table> + <tr> + <th> + {% trans %}Name{% endtrans %} + </th> + <td> + <input type="text" name="name" size="25" maxlength="35" autocomplete="off" value="{{ name }}"> + </td> + </tr> + <tr> + <th> + {% trans %}Email{% endtrans %} + </th> + <td> + <input type="text" name="email" size="25" maxlength="40" autocomplete="off" value="{{ email }}"> + </td> + </tr> + <tr> + <th> + {% trans %}Subject{% endtrans %} + </th> + <td> + <input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" value="{{ subject }}"> + </td> + </tr> + <tr> + <th> + {% trans %}Comment{% endtrans %} + </th> + <td> + <textarea name="body" id="body" rows="5" cols="35">{{ body }}</textarea> + </td> + </tr> + <tr> + <th><input type="hidden" name="mode" value="{{ mode }}"></th> + <td><input name="sub" type="submit" value="{% trans 'Submit' %}"></td> + </tr> + </table> +</form> diff --git a/templates/page.html b/templates/page.html index 8fbc49cd..457971af 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,14 +1,9 @@ <!doctype html>
<html>
<head>
+ {% include 'header.html' %}
<meta charset="utf-8">
- <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
- {% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %}
<title>{{ title }}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
- {% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %}
- <script type="text/javascript">var configRoot="{{ config.root }}";</script>
- {% if not nojavascript %}<script type="text/javascript" src="{{ config.url_javascript }}"></script>{% endif %}
</head>
<body>
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr>{% endif %}
diff --git a/templates/themes/recent/info.php b/templates/themes/recent/info.php index d4cf1029..58448b3d 100644 --- a/templates/themes/recent/info.php +++ b/templates/themes/recent/info.php @@ -55,6 +55,14 @@ 'default' => 'recent.css', 'comment' => '(eg. "recent.css")' ); + + $theme['config'][] = Array( + 'title' => 'CSS stylesheet name', + 'name' => 'basecss', + 'type' => 'text', + 'default' => 'recent.css', + 'comment' => '(eg. "recent.css" - see templates/themes/recent for details)' + ); // Unique function name for building everything $theme['build_function'] = 'recentposts_build'; diff --git a/templates/themes/recent/recent_fs.css b/templates/themes/recent/recent_fs.css new file mode 100644 index 00000000..26aed668 --- /dev/null +++ b/templates/themes/recent/recent_fs.css @@ -0,0 +1,57 @@ +.box-wrap { + max-width: 670px; + min-width: 332px; + margin: 30px auto; + overflow: auto; + padding: 0; +} +.box { + background: white; + border: 1px solid #98E; + width: 330px; + margin: 8px 0; + padding: 0; +} +.box ul { + padding: 2px 15px; +} +.box ul li { + list-style: none; + margin: 0; +} +.box.left { + background: #FDF6AF; + color: #9E914F; + border: 1px solid #9E914F; + float: left; +} +.box.right { + background: #F2DCE5; + color: #525; + border: 1px solid #CA759E; + float: right; +} + +.box h2 { + padding: 3px 7px; + font-size: 12pt; +} +.box img { + float: none; + margin: 10px auto; +} +.box.left h2 { + background: #FEE78F; + color: #9E914F; +} +.box.right h2 { + background: #EB81B4; + color: #F8F8F8; +} + +body { + background: #F7F8F9; +} +header div.subtitle, h1 { + color: #888A8C; +} diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index 986fac6a..b436ab0f 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -18,7 +18,7 @@ global $config, $_theme; if ($action == 'all') { - copy('templates/themes/recent/recent.css', $config['dir']['home'] . $settings['css']); + copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']); } $this->excluded = explode(' ', $settings['exclude']); |
