use config.relative_path

main
psychobunny 10 years ago
parent 2ae1322f6e
commit 2945bcfa48

@ -123,7 +123,7 @@
</div>
<div class="panel-body">
<!-- BEGIN groups -->
<a href="{relative_path}/groups/{groups.slug}"><span class="label group-label inline-block" style="background-color: {groups.labelColor};"><!-- IF groups.icon --><i class="fa {groups.icon}"></i> <!-- ENDIF groups.icon -->{groups.userTitle}</span></a>
<a href="{config.relative_path}/groups/{groups.slug}"><span class="label group-label inline-block" style="background-color: {groups.labelColor};"><!-- IF groups.icon --><i class="fa {groups.icon}"></i> <!-- ENDIF groups.icon -->{groups.userTitle}</span></a>
<!-- END groups -->
</div>
</div>

@ -8,6 +8,6 @@
<p>[[notifications:email-confirm-error-message]]</p>
<!-- ENDIF !error -->
<p>
<a href="{relative_path}/">[[notifications:back_to_home, {config.siteTitle}]]</a>
<a href="{config.relative_path}/">[[notifications:back_to_home, {config.siteTitle}]]</a>
</p>
</div>

@ -37,10 +37,10 @@
<hr />
<button class="btn btn-primary btn-lg btn-block" id="login" type="submit">[[global:login]]</button>
<!-- IF allowRegistration -->
<span>[[login:dont_have_account]] <a href="{relative_path}/register">[[register:register]]</a></span>
<span>[[login:dont_have_account]] <a href="{config.relative_path}/register">[[register:register]]</a></span>
<!-- ENDIF allowRegistration -->
<!-- IF showResetLink -->
&nbsp; <a id="reset-link" href="{relative_path}/reset">[[login:forgot_password]]</a>
&nbsp; <a id="reset-link" href="{config.relative_path}/reset">[[login:forgot_password]]</a>
<!-- ENDIF showResetLink -->
</div>
</div>
@ -56,7 +56,7 @@
<h4>[[login:alternative_logins]]</h4>
<ul class="alt-logins">
<!-- BEGIN authentication -->
<li class="{authentication.name}"><a rel="nofollow" target="_top" href="{relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></a></li>
<li class="{authentication.name}"><a rel="nofollow" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></a></li>
<!-- END authentication -->
</ul>
</div>

@ -22,7 +22,7 @@
<li data-nid="{notifications.nid}" class="{notifications.readClass}" component="notifications/item">
<!-- IF notifications.image -->
<!-- IF notifications.from -->
<a class="pull-left" href="{relative_path}/user/{notifications.user.userslug}"><img class="user-img" src="{notifications.image}" /></a>
<a class="pull-left" href="{config.relative_path}/user/{notifications.user.userslug}"><img class="user-img" src="{notifications.image}" /></a>
<!-- ENDIF notifications.from -->
<!-- ELSE -->
<img class="pull-left" src="{notifications.image}" />

@ -4,7 +4,7 @@
<div component="category/posts">
<p>
<strong>{categories.posts.user.username}</strong>
<a class="permalink" href="{relative_path}/topic/{categories.posts.topic.slug}<!-- IF categories.posts.index -->/{categories.posts.index}<!-- ENDIF categories.posts.index -->">
<a class="permalink" href="{config.relative_path}/topic/{categories.posts.topic.slug}<!-- IF categories.posts.index -->/{categories.posts.index}<!-- ENDIF categories.posts.index -->">
<small class="timeago" title="{categories.posts.relativeTime}"></small>
</a>
</p>

@ -1,7 +1,7 @@
<!-- IF categories.link -->
<a href="{categories.link}" itemprop="url" target="_blank">
<!-- ELSE -->
<a href="{relative_path}/category/{categories.slug}" itemprop="url">
<a href="{config.relative_path}/category/{categories.slug}" itemprop="url">
<!-- ENDIF categories.link -->
{categories.name}
</a>

@ -15,7 +15,7 @@
<!-- IF children.link -->
<a href="{children.link}" itemprop="url" target="_blank">
<!-- ELSE -->
<a href="{relative_path}/category/{children.slug}" itemprop="url">
<a href="{config.relative_path}/category/{children.slug}" itemprop="url">
<!-- ENDIF children.link -->
{children.name}
</a><br />
@ -38,7 +38,7 @@
<!-- IF @first -->
<p>
<strong>{children.posts.user.username}</strong>
<a class="permalink" href="{relative_path}/topic/{children.posts.topic.slug}<!-- IF children.posts.index -->/{children.posts.index}<!-- ENDIF children.posts.index -->">
<a class="permalink" href="{config.relative_path}/topic/{children.posts.topic.slug}<!-- IF children.posts.index -->/{children.posts.index}<!-- ENDIF children.posts.index -->">
<small class="timeago" title="{children.posts.relativeTime}"></small>
</a>
</p>

@ -1,5 +1,5 @@
<!-- IF topics.tags.length -->
<!-- BEGIN tags -->
<a href="{relative_path}/tags/{topics.tags.value}"><span class="tag-item" data-tag="{topics.tags.value}" style="<!-- IF topics.tags.color -->color: {topics.tags.color};<!-- ENDIF topics.tags.color --><!-- IF topics.tags.bgColor -->background-color: {topics.tags.bgColor};<!-- ENDIF topics.tags.bgColor -->">{topics.tags.value}</span><span class="tag-topic-count">{topics.tags.score}</span></a>
<a href="{config.relative_path}/tags/{topics.tags.value}"><span class="tag-item" data-tag="{topics.tags.value}" style="<!-- IF topics.tags.color -->color: {topics.tags.color};<!-- ENDIF topics.tags.color --><!-- IF topics.tags.bgColor -->background-color: {topics.tags.bgColor};<!-- ENDIF topics.tags.bgColor -->">{topics.tags.value}</span><span class="tag-topic-count">{topics.tags.score}</span></a>
<!-- END tags -->
<!-- ENDIF topics.tags.length -->

@ -8,7 +8,7 @@
<ul class="members">
<!-- BEGIN members -->
<li>
<a href="{relative_path}/user/{groups.members.userslug}">
<a href="{config.relative_path}/user/{groups.members.userslug}">
<img src="{groups.members.picture}" title="{groups.members.userslug}" />
</a>
</li>

@ -1,13 +1,13 @@
<h3>Upvoters <small>({upvoteCount})</small></h3>
<!-- BEGIN upvoters -->
<a href="{relative_path}/user/{upvoters.userslug}">
<a href="{config.relative_path}/user/{upvoters.userslug}">
<img class="profile-image small" src="{upvoters.picture}" title="{upvoters.username}"/>
</a>
<!-- END upvoters -->
<h3>Downvoters <small>({downvoteCount})</small></h3>
<!-- BEGIN downvoters -->
<a href="{relative_path}/user/{downvoters.userslug}">
<a href="{config.relative_path}/user/{downvoters.userslug}">
<img class="profile-image small" src="{downvoters.picture}" title="{downvoters.username}"/>
</a>
<!-- END downvoters -->

@ -7,7 +7,7 @@
<li class="{notifications.readClass}" data-nid="{notifications.nid}">
<!-- IF notifications.image -->
<!-- IF notifications.from -->
<a href="{relative_path}/user/{notifications.user.userslug}"><img src="{notifications.image}" /></a>
<a href="{config.relative_path}/user/{notifications.user.userslug}"><img src="{notifications.image}" /></a>
<!-- ENDIF notifications.from -->
<!-- ELSE -->
<img src="{notifications.image}" />

@ -1,6 +1,6 @@
<span class="tags">
<!-- BEGIN tags -->
<a href="{relative_path}/tags/{tags.value}">
<a href="{config.relative_path}/tags/{tags.value}">
<span class="tag-item" data-tag="{tags.value}" style="<!-- IF tags.color -->color: {tags.color};<!-- ENDIF tags.color --><!-- IF tags.bgColor -->background-color: {tags.bgColor};<!-- ENDIF tags.bgColor -->">{tags.value}</span>
<span class="tag-topic-count">{tags.score}</span></a>
<!-- END tags -->

@ -5,11 +5,11 @@
<div class="panel panel-default">
<div class="panel-body">
<a href="{relative_path}/user/{posts.user.userslug}">
<a href="{config.relative_path}/user/{posts.user.userslug}">
<img title="{posts.user.username}" class="img-rounded user-img" src="{posts.user.picture}">
</a>
<a href="{relative_path}/user/{posts.user.userslug}">
<a href="{config.relative_path}/user/{posts.user.userslug}">
<strong><span>{posts.user.username}</span></strong>
</a>
<div component="post/content" class="content">
@ -18,8 +18,8 @@
</div>
<small>
<span class="pull-right">
[[global:posted_in_ago, <a href="{relative_path}/category/{posts.category.slug}"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.relativeTime}"></span>]] &bull;
<a href="{relative_path}/topic/{posts.topic.slug}/{posts.index}">[[global:read_more]]</a>
[[global:posted_in_ago, <a href="{config.relative_path}/category/{posts.category.slug}"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.relativeTime}"></span>]] &bull;
<a href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}">[[global:read_more]]</a>
</span>
</small>
</div>

@ -1,5 +1,5 @@
<!-- BEGIN tags -->
<h3 class="pull-left tag-container">
<a href="{relative_path}/tags/{tags.value}" data-value="{tags.value}"><span class="tag-item" data-tag="{tags.value}" style="<!-- IF tags.color -->color: {tags.color};<!-- ENDIF tags.color --><!-- IF tags.bgColor -->background-color: {tags.bgColor};<!-- ENDIF tags.bgColor -->">{tags.value}</span><span class="tag-topic-count">{tags.score}</span></a>
<a href="{config.relative_path}/tags/{tags.value}" data-value="{tags.value}"><span class="tag-item" data-tag="{tags.value}" style="<!-- IF tags.color -->color: {tags.color};<!-- ENDIF tags.color --><!-- IF tags.bgColor -->background-color: {tags.bgColor};<!-- ENDIF tags.bgColor -->">{tags.value}</span><span class="tag-topic-count">{tags.score}</span></a>
</h3>
<!-- END tags -->

@ -1,9 +1,9 @@
<!-- IF posts.user.groups.length -->
<!-- BEGIN groups -->
<!-- IF groups.selected -->
<!-- IF groups.userTitleEnabled -->
<a href="{relative_path}/groups/{posts.user.groups.slug}"><small class="label group-label inline-block" style="background-color: {posts.user.groups.labelColor};"><!-- IF posts.user.groups.icon --><i class="fa {posts.user.groups.icon}"></i> <!-- ENDIF posts.user.groups.icon -->{posts.user.groups.userTitle}</small></a>
<!-- ENDIF groups.userTitleEnabled -->
<!-- ENDIF groups.selected -->
<!-- IF ../selected -->
<!-- IF ../userTitleEnabled -->
<a href="{config.relative_path}/groups/{../slug}"><small class="label group-label inline-block" style="background-color: {../labelColor};"><!-- IF ../icon --><i class="fa {../icon}"></i> <!-- ENDIF ../icon -->{../userTitle}</small></a>
<!-- ENDIF ../userTitleEnabled -->
<!-- ENDIF ../selected -->
<!-- END groups -->
<!-- ENDIF posts.user.groups.length -->

@ -1 +1 @@
<small component="post/editor" class="pull-right <!-- IF !editor.username -->hidden<!-- ENDIF !editor.username -->">[[global:last_edited_by_ago, <strong><a href="{relative_path}/user/{editor.userslug}">{editor.username}</a></strong>, <span class="timeago" title="{relativeEditTime}"></span>]]</small>
<small component="post/editor" class="pull-right <!-- IF !editor.username -->hidden<!-- ENDIF !editor.username -->">[[global:last_edited_by_ago, <strong><a href="{config.relative_path}/user/{editor.userslug}">{editor.username}</a></strong>, <span class="timeago" title="{relativeEditTime}"></span>]]</small>

@ -1,6 +1,6 @@
<div class="clearfix">
<div class="icon pull-left">
<a href="<!-- IF posts.user.userslug -->{relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
<img src="{posts.user.picture}" align="left" itemprop="image" />
<!-- IF posts.user.banned -->
<span class="label label-danger">[[user:banned]]</span>
@ -11,7 +11,7 @@
<small class="pull-left">
<i component="user/status" class="fa fa-circle status {posts.user.status}" title="[[global:{posts.user.status}]]"></i>
<strong>
<a href="<!-- IF posts.user.userslug -->{relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" itemprop="author" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user.username}</a>
<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" itemprop="author" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user.username}</a>
</strong>
<!-- IMPORT partials/topic/badge.tpl -->
@ -49,7 +49,7 @@
</div>
<small component="post/editor" class="pull-right <!-- IF !posts.editor.username -->hidden<!-- ENDIF !posts.editor.username -->">[[global:last_edited_by_ago, <strong><a href="{relative_path}/user/{posts.editor.userslug}">{posts.editor.username}</a></strong>, <span class="timeago" title="{posts.relativeEditTime}"></span>]]</small>
<small component="post/editor" class="pull-right <!-- IF !posts.editor.username -->hidden<!-- ENDIF !posts.editor.username -->">[[global:last_edited_by_ago, <strong><a href="{config.relative_path}/user/{posts.editor.userslug}">{posts.editor.username}</a></strong>, <span class="timeago" title="{posts.relativeEditTime}"></span>]]</small>
<hr />

@ -12,7 +12,7 @@
<i class="fa fa-check"></i>
</div>
<!-- ELSE -->
<a href="{relative_path}/user/{topics.user.userslug}" class="pull-left">
<a href="{config.relative_path}/user/{topics.user.userslug}" class="pull-left">
<img src="{topics.user.picture}" class="img-circle user-img" title="{topics.user.username}"/>
</a>
<!-- ENDIF showSelect -->
@ -21,7 +21,7 @@
<h1 component="topic/header" class="title pull-left">
<i component="topic/pinned" class="fa fa-thumb-tack <!-- IF !topics.pinned -->hide<!-- ENDIF !topics.pinned -->"></i>
<i component="topic/locked" class="fa fa-lock <!-- IF !topics.locked -->hide<!-- ENDIF !topics.locked -->"></i>
<a href="{relative_path}/topic/{topics.slug}" itemprop="url">{topics.title}</a><br />
<a href="{config.relative_path}/topic/{topics.slug}" itemprop="url">{topics.title}</a><br />
<!-- IF template.category -->
<small>
@ -34,9 +34,9 @@
<!-- ELSE -->
<small>
<!-- IF topics.user.userslug -->
[[global:posted_in_ago_by, <a href="{relative_path}/category/{topics.category.slug}"><i class="fa {topics.category.icon}"></i> {topics.category.name}</a>, <span class="timeago" title="{topics.relativeTime}"></span>, <strong>{topics.user.username}</strong>]]
[[global:posted_in_ago_by, <a href="{config.relative_path}/category/{topics.category.slug}"><i class="fa {topics.category.icon}"></i> {topics.category.name}</a>, <span class="timeago" title="{topics.relativeTime}"></span>, <strong>{topics.user.username}</strong>]]
<!-- ELSE -->
[[global:posted_in_ago_by_guest, <a href="{relative_path}/category/{topics.category.slug}"><i class="fa {topics.category.icon}"></i> {topics.category.name}</a>, <span class="timeago" title="{topics.relativeTime}"></span>]]
[[global:posted_in_ago_by_guest, <a href="{config.relative_path}/category/{topics.category.slug}"><i class="fa {topics.category.icon}"></i> {topics.category.name}</a>, <span class="timeago" title="{topics.relativeTime}"></span>]]
<!-- ENDIF topics.user.userslug -->
</small>
<!-- ENDIF template.category -->
@ -60,7 +60,7 @@
<!-- ELSE -->
<p class="hidden-xs">
<strong>{topics.teaser.user.username}</strong>
<a class="permalink" href="{relative_path}/topic/{topics.slug}/{topics.teaser.index}">
<a class="permalink" href="{config.relative_path}/topic/{topics.slug}/{topics.teaser.index}">
<small class="timeago" title="{topics.teaser.timestamp}"></small>
</a>
</p>

@ -1,11 +1,11 @@
<!-- BEGIN users -->
<li class="users-box registered-user" data-uid="{users.uid}">
<a href="{relative_path}/user/{users.userslug}"><img src="{users.picture}" /></a>
<a href="{config.relative_path}/user/{users.userslug}"><img src="{users.picture}" /></a>
<br/>
<div class="user-info">
<span>
<i component="user/status" class="fa fa-circle status {users.status}" title="[[global:{users.status}]]"></i>
<a href="{relative_path}/user/{users.userslug}">{users.username}</a>
<a href="{config.relative_path}/user/{users.userslug}">{users.username}</a>
</span>
<br/>

@ -2,10 +2,10 @@
<!-- IMPORT partials/breadcrumbs.tpl -->
<ul class="nav nav-pills">
<li><a href='{relative_path}/popular/daily'>[[recent:day]]</a></li>
<li><a href='{relative_path}/popular/weekly'>[[recent:week]]</a></li>
<li><a href='{relative_path}/popular/monthly'>[[recent:month]]</a></li>
<li><a href='{relative_path}/popular/alltime'>[[recent:alltime]]</a></li>
<li><a href='{config.relative_path}/popular/daily'>[[recent:day]]</a></li>
<li><a href='{config.relative_path}/popular/weekly'>[[recent:week]]</a></li>
<li><a href='{config.relative_path}/popular/monthly'>[[recent:month]]</a></li>
<li><a href='{config.relative_path}/popular/alltime'>[[recent:alltime]]</a></li>
</ul>
<br />

@ -22,7 +22,7 @@
</div>
<!-- ENDIF !topics.length -->
<a href="{relative_path}/recent">
<a href="{config.relative_path}/recent">
<div class="alert alert-warning hide" id="new-topics-alert"></div>
</a>

@ -8,7 +8,7 @@
<strong>[[error:registration-error]]</strong>
<p>{error}</p>
</div>
<form class="form-horizontal" role="form" action="{relative_path}/register" method="post">
<form class="form-horizontal" role="form" action="{config.relative_path}/register" method="post">
<div class="form-group">
<label for="email" class="col-lg-4 control-label">[[register:email_address]]</label>
<div class="col-lg-8">
@ -98,7 +98,7 @@
<h4>[[register:alternative_registration]]</h4>
<ul class="alt-logins">
<!-- BEGIN authentication -->
<li class="{authentication.name}"><a rel="nofollow" target="_top" href="{relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></i></a></li>
<li class="{authentication.name}"><a rel="nofollow" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></i></a></li>
<!-- END authentication -->
</ul>
</div>

@ -148,7 +148,7 @@
<div class="topic-row panel panel-default clearfix">
<div class="panel-body">
<a href="{relative_path}/topic/{posts.topic.slug}/{posts.index}" class="search-result-text">
<a href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}" class="search-result-text">
<h4>{posts.topic.title}</h4>
</a>
<!-- IF showAsPosts -->
@ -160,8 +160,8 @@
<small>
<span class="pull-right post-preview-footer">
<a href="{relative_path}/user/{posts.user.userslug}"><img class="user-img" title="{posts.user.username}" src="{posts.user.picture}"/></a>
[[global:posted_in_ago, <a href="{relative_path}/category/{posts.category.slug}"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.relativeTime}"></span>]]
<a href="{config.relative_path}/user/{posts.user.userslug}"><img class="user-img" title="{posts.user.username}" src="{posts.user.picture}"/></a>
[[global:posted_in_ago, <a href="{config.relative_path}/category/{posts.category.slug}"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.relativeTime}"></span>]]
</span>
</small>
</div>

@ -30,7 +30,7 @@
<strong>[[unread:no_unread_topics]]</strong>
</div>
<a href="{relative_path}/unread">
<a href="{config.relative_path}/unread">
<div class="alert alert-warning hide" id="new-topics-alert"></div>
</a>

@ -1,11 +1,11 @@
<div class="users">
<ul class="nav nav-pills">
<li class=''><a href='{relative_path}/users/online'>[[global:online]]</a></li>
<li class=''><a href='{relative_path}/users/latest'>[[users:latest_users]]</a></li>
<li class=''><a href='{relative_path}/users/sort-posts'>[[users:top_posters]]</a></li>
<li class=''><a href='{relative_path}/users/sort-reputation'>[[users:most_reputation]]</a></li>
<li class=''><a href='{config.relative_path}/users/online'>[[global:online]]</a></li>
<li class=''><a href='{config.relative_path}/users/latest'>[[users:latest_users]]</a></li>
<li class=''><a href='{config.relative_path}/users/sort-posts'>[[users:top_posters]]</a></li>
<li class=''><a href='{config.relative_path}/users/sort-reputation'>[[users:most_reputation]]</a></li>
<!-- IF loggedIn -->
<li class=''><a href='{relative_path}/users/search'>[[users:search]]</a></li>
<li class=''><a href='{config.relative_path}/users/search'>[[users:search]]</a></li>
<!-- ENDIF loggedIn -->
</ul>

Loading…
Cancel
Save