summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-26 18:23:15 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-26 18:23:15 +1100
commit92310f445ca443bb6c83a372ba59761b15361c3b (patch)
tree38c0ef6adc3ecb0811a1c811a060a2ad005ad9b8 /templates
parentab5bece9d54306a12ac9fa8af9d99ffc04584353 (diff)
Allow custom URLs for stylesheet/javascript/banner
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html10
-rw-r--r--templates/page.html2
-rw-r--r--templates/thread.html9
3 files changed, 12 insertions, 9 deletions
diff --git a/templates/index.html b/templates/index.html
index b14e2e4e..30cb3259 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,20 +1,22 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" media="screen" href="{index}style.css"/>
+ <link rel="stylesheet" media="screen" href="{config[url_stylesheet]}"/>
<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=no" />
- <script type="text/javascript" src="{index}main.js"></script>
+ <script type="text/javascript" src="{config[url_javascript]}"></script>
+ {config[meta_keywords]?<meta name="keywords" content="{config[meta_keywords]}" />}
</head>
<body>
{boardlist[top]}
{pm?<div class="top_notice">{pm}</div><hr/>}
+ {config[url_banner]?<img class="banner" src="{config[url_banner]}" />}
<h1>{board[url]} - {board[name]}</h1>
<div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div>
- <form onsubmit="return dopost(this);" enctype="multipart/form-data" action="{post_url}" method="post">
+ <form onsubmit="return dopost(this);" enctype="multipart/form-data" action="{config[post_url]}" method="post">
{hidden_inputs}
<input type="hidden" name="board" value="{board[uri]}" />
{mod?<input type="hidden" name="mod" value="1" />}
@@ -41,7 +43,7 @@
</th>
<td>
<input style="float:left;" type="text" name="subject" size="25" maxlength="40" autocomplete="off" />
- <input accesskey="s" style="float:right;" type="submit" name="post" value="{button=New Topic}" />
+ <input accesskey="s" style="float:right;" type="submit" name="post" value="{config[button_newtopic]=New Topic}" />
</td>
</tr>
<tr>
diff --git a/templates/page.html b/templates/page.html
index ad1ef982..f83f0191 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" media="screen" href="{index}style.css"/>
+ <link rel="stylesheet" media="screen" href="{config[url_stylesheet]}"/>
<title>{title}</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=no" />
diff --git a/templates/thread.html b/templates/thread.html
index b60e5f7a..e8df7647 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -1,20 +1,21 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" media="screen" href="{index}style.css"/>
+ <link rel="stylesheet" media="screen" href="{config[url_stylesheet]}"/>
<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=no" />
- <script type="text/javascript" src="{index}main.js"></script>
+ <script type="text/javascript" src="{config[url_javascript]}"></script>
</head>
<body>
{boardlist[top]}
{pm?<div class="top_notice">{pm}</div><hr/>}
+ {url_banner?<img class="banner" src="{url_banner}" />}
<h1>{board[url]} - {board[name]}</h1>
<div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div>
<div class="banner">Posting mode: Reply <a class="unimportant" href="{return}">[Return.]</a></div>
- <form onsubmit="return dopost(this);" enctype="multipart/form-data" action="{post_url}" method="post">{hidden_inputs}
+ <form onsubmit="return dopost(this);" enctype="multipart/form-data" action="{config[post_url]}" method="post">{hidden_inputs}
<input type="hidden" name="thread" value="{id}" />
<input type="hidden" name="board" value="{board[uri]}" />
{mod?<input type="hidden" name="mod" value="1" />}
@@ -41,7 +42,7 @@
</th>
<td>
<input style="float:left;" type="text" name="subject" size="25" maxlength="40" autocomplete="off" />
- <input accesskey="s" style="float:right;" type="submit" name="post" value="{button=New Topic}" />
+ <input accesskey="s" style="float:right;" type="submit" name="post" value="{config[button_reply]=New Reply}" />
</td>
</tr>
<tr>