Allow custom URLs for stylesheet/javascript/banner

This commit is contained in:
Savetheinternet 2011-03-26 18:23:15 +11:00
parent ab5bece9d5
commit 92310f445c
7 changed files with 42 additions and 33 deletions

View file

@ -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>

View file

@ -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" />

View file

@ -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>