fix: Indent Navigation broken
This commit is contained in:
parent
7d453b758c
commit
20cd9d45b3
4 changed files with 187 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
- fix: Article thumbnail not working (Len Kranendonk)
|
||||
- Fixed a bug in WebGUI::Asset::Post where userDefined and synopsis form
|
||||
elements were not populated when previewed. (Martin Kamerbeek / Procolix)
|
||||
- fix: Indent Navigation broken (Wouter van Oijen / ProcoliX)
|
||||
|
||||
|
||||
7.0.2
|
||||
|
|
|
|||
130
docs/upgrades/templates-7.0.3/traditional_with_thumbnails.tmpl
Normal file
130
docs/upgrades/templates-7.0.3/traditional_with_thumbnails.tmpl
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
#PBtmpl0000000000000097
|
||||
|
||||
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
|
||||
|
||||
<tmpl_if session.var.adminOn>
|
||||
<tmpl_var controls>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if displayTitle>
|
||||
<h2><tmpl_var title></h2>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if description>
|
||||
<tmpl_var description>
|
||||
</tmpl_if>
|
||||
|
||||
<p class="pagination">
|
||||
<tmpl_if user.canPost>
|
||||
<a href="<tmpl_var add.url>"><tmpl_var add.label></a>
|
||||
•
|
||||
</tmpl_if>
|
||||
<tmpl_unless user.isVisitor>
|
||||
<tmpl_if user.isSubscribed>
|
||||
<a href="<tmpl_var unsubscribe.url>"><tmpl_var unsubscribe.label></a>
|
||||
<tmpl_else>
|
||||
<a href="<tmpl_var subscribe.url>"><tmpl_var subscribe.label></a>
|
||||
</tmpl_if>
|
||||
•
|
||||
</tmpl_unless>
|
||||
<a href="<tmpl_var search.url>"><tmpl_var search.label></a>
|
||||
</p>
|
||||
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<tmpl_if user.isModerator>
|
||||
<td class="forumHead"><tmpl_var status.label></td>
|
||||
</tmpl_if>
|
||||
<td class="forumHead"><a href="<tmpl_var sortby.title.url>"><tmpl_var title.label></a></td>
|
||||
<td class="forumHead"><tmpl_var thumbnail.label></td>
|
||||
<td class="forumHead"><a href="<tmpl_var sortby.date.url>"><tmpl_var date.label></a></td>
|
||||
<td class="forumHead"><a href="<tmpl_var sortby.username.url>"><tmpl_var by.label></a></td>
|
||||
</tr>
|
||||
<tmpl_loop post_loop>
|
||||
<tr>
|
||||
<tmpl_if user.isModerator>
|
||||
<td class="<tmpl_if __ODD__>oddThread<tmpl_else>evenThread</tmpl_if>"><tmpl_var status></td>
|
||||
</tmpl_if>
|
||||
<td class="<tmpl_if __ODD__>oddThread<tmpl_else>evenThread</tmpl_if>"><a href="<tmpl_var url>"><tmpl_var title></a><tmpl_if user.isPoster> (<tmpl_var status>)</tmpl_if></td>
|
||||
<td class="<tmpl_if __ODD__>oddThread<tmpl_else>evenThread</tmpl_if>" style="text-align: center;">
|
||||
<tmpl_if thumbnail>
|
||||
<a href="<tmpl_var url>"><img src="<tmpl_var thumbnail>" border="0" alt="<tmpl_var title>" /></a>
|
||||
<tmpl_else>
|
||||
|
||||
</tmpl_if>
|
||||
</td>
|
||||
<td class="<tmpl_if __ODD__>oddThread<tmpl_else>evenThread</tmpl_if>"><tmpl_var dateUpdated.human></td>
|
||||
<tmpl_if user.isVisitor>
|
||||
<td class="<tmpl_if __ODD__>oddThread<tmpl_else>evenThread</tmpl_if>"><tmpl_var username></td>
|
||||
<tmpl_else>
|
||||
<td class="<tmpl_if __ODD__>oddThread<tmpl_else>evenThread</tmpl_if>"><a href="<tmpl_var userProfile.url>"><tmpl_var username></a></td>
|
||||
</tmpl_if>
|
||||
</tr>
|
||||
</tmpl_loop>
|
||||
</table>
|
||||
|
||||
<tmpl_if pagination.pageCount.isMultiple>
|
||||
<br />
|
||||
<div class="pagination">
|
||||
<tmpl_var pagination.previousPage> · <tmpl_var pagination.pageList.upTo10> · <tmpl_var pagination.nextPage>
|
||||
</div>
|
||||
</tmpl_if>
|
||||
~~~
|
||||
<style type="text/css">
|
||||
.forumHead {
|
||||
background-color: #DADADA;
|
||||
border: 2px solid #cccccc;
|
||||
padding: 2px;
|
||||
padding-bottom: 4px;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
font-family:arial;
|
||||
}
|
||||
.oddThread {
|
||||
font-size: 13px;
|
||||
border-bottom: 1px dashed #83cc83;
|
||||
padding-bottom: 4px;
|
||||
font-family:arial;
|
||||
}
|
||||
.forumHead a
|
||||
{
|
||||
color:#29587E;
|
||||
}
|
||||
.oddThread a
|
||||
{
|
||||
color:#29587E;
|
||||
}
|
||||
.evenThread a
|
||||
{
|
||||
color:#29587E;
|
||||
}
|
||||
.evenThread {
|
||||
font-size: 13px;
|
||||
border-bottom: 1px dashed #aaaaff;
|
||||
padding-bottom: 4px;
|
||||
background-color:#EEEEEE;
|
||||
font-family:arial;
|
||||
}
|
||||
.pagination {
|
||||
-moz-box-sizing:border-box;
|
||||
background:#676767;
|
||||
color:#C0C0C0;
|
||||
width:100%;
|
||||
text-align:right;
|
||||
padding:3px;
|
||||
font-size:9pt;
|
||||
font-family:arial;
|
||||
}
|
||||
.pagination a {
|
||||
color:white;
|
||||
font-size:8pt;
|
||||
text-decoration:underline;
|
||||
}
|
||||
.pagination a:hover {
|
||||
text-decoration:none;
|
||||
}
|
||||
h2
|
||||
{
|
||||
font-family:arial;
|
||||
}
|
||||
</style>
|
||||
55
docs/upgrades/templates-7.0.3/wgtemplate_indentnav.tmpl
Normal file
55
docs/upgrades/templates-7.0.3/wgtemplate_indentnav.tmpl
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
#PBnav00000000indentnav
|
||||
<tmpl_if displayTitle>
|
||||
<h2><tmpl_var title></h2>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if description>
|
||||
<p><tmpl_var description></p>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if session.var.adminOn>
|
||||
<tmpl_var controls>
|
||||
</tmpl_if>
|
||||
|
||||
<div class="mainNav">
|
||||
<tmpl_loop page_loop>
|
||||
<div class="level<tmpl_var page.relDepth>">
|
||||
<a <tmpl_if page.isCurrent> class="navOn"</tmpl_if><tmpl_if page.isAncestor> class="anAncestor" </tmpl_if><tmpl_if page.newWindow>onclick="window.open('<tmpl_var page.url>')" href="#" <tmpl_else>href="<tmpl_var page.url>"</tmpl_if>><tmpl_var page.menuTitle></a>
|
||||
</div>
|
||||
</tmpl_loop>
|
||||
</div>
|
||||
~~~
|
||||
<style type="text/css">
|
||||
.mainNav {
|
||||
|
||||
}
|
||||
.mainNav a {
|
||||
|
||||
}
|
||||
a.navOn {
|
||||
|
||||
}
|
||||
a.anAncestor {
|
||||
|
||||
}
|
||||
div.level0 a {
|
||||
margin-left:0px;
|
||||
display:block;
|
||||
}
|
||||
div.level1 a {
|
||||
margin-left:15px;
|
||||
display:block;
|
||||
}
|
||||
div.level2 a {
|
||||
margin-left:30px;
|
||||
display:block;
|
||||
}
|
||||
div.level3 a {
|
||||
margin-left:45px;
|
||||
display:block;
|
||||
}
|
||||
div.level4 a {
|
||||
margin-left:60px;
|
||||
display:block;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -18,6 +18,7 @@ my $toVersion = "7.0.3"; # make this match what version you're going to
|
|||
my $quiet; # this line required
|
||||
|
||||
|
||||
sleep(1); # to prevent duplicate timestamps
|
||||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue