added categories navigation item, ability to change logo url

v1.18.x
barisusakli 10 years ago
parent b46da4461c
commit 65ab5733ef

@ -1,4 +1,12 @@
[ [
{
"route": "/categories",
"title": "\\[\\[global:header.categories\\]\\]",
"enabled": true,
"iconClass": "fa-list",
"textClass": "visible-xs-inline",
"text": "\\[\\[global:header.categories\\]\\]"
},
{ {
"id": "unread-count", "id": "unread-count",
"route": "/unread", "route": "/unread",

@ -28,6 +28,7 @@
"pagination.enter_index": "Enter index", "pagination.enter_index": "Enter index",
"header.admin": "Admin", "header.admin": "Admin",
"header.categories": "Categories",
"header.recent": "Recent", "header.recent": "Recent",
"header.unread": "Unread", "header.unread": "Unread",
"header.tags": "Tags", "header.tags": "Tags",

@ -198,6 +198,7 @@ middleware.renderHeader = function(req, res, callback) {
description: meta.config.description || '', description: meta.config.description || '',
'cache-buster': meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '', 'cache-buster': meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '',
'brand:logo': meta.config['brand:logo'] || '', 'brand:logo': meta.config['brand:logo'] || '',
'brand:logo:url': meta.config['brand:logo:url'] || '',
'brand:logo:display': meta.config['brand:logo']?'':'hide', 'brand:logo:display': meta.config['brand:logo']?'':'hide',
allowRegistration: registrationType === 'normal' || registrationType === 'admin-approval', allowRegistration: registrationType === 'normal' || registrationType === 'admin-approval',
searchEnabled: plugins.hasListeners('filter:search.query') searchEnabled: plugins.hasListeners('filter:search.query')

@ -32,9 +32,12 @@
<div class="panel-heading">Site Logo</div> <div class="panel-heading">Site Logo</div>
<div class="panel-body"> <div class="panel-body">
<form> <form>
<label>Site Logo</label> <label>Image</label>
<input id="logoUrl" type="text" class="form-control" placeholder="Path to a logo to display on forum header" data-field="brand:logo" /><br /> <input id="logoUrl" type="text" class="form-control" placeholder="Path to a logo to display on forum header" data-field="brand:logo" /><br />
<input data-action="upload" data-target="logoUrl" data-route="{config.relative_path}/api/admin/uploadlogo" type="button" class="btn btn-default" value="Upload Logo"></input> <input data-action="upload" data-target="logoUrl" data-route="{config.relative_path}/api/admin/uploadlogo" type="button" class="btn btn-default" value="Upload"></input>
<br/><br/>
<label>URL</label>
<input type="text" class="form-control" placeholder="The URL of the site logo" data-field="brand:logo:url" /><br />
</form> </form>
</div> </div>
</div> </div>

Loading…
Cancel
Save