summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2013-04-04 15:11:53 -0400
committerspiderr <spider@viovio.com>2013-04-04 15:11:53 -0400
commit332f8a05c4c61a7ab28b7eb5733b6795d2015da9 (patch)
tree52ac05ea3ae670e7eb8548b47e753b466c94aab3
parent0b0770a4f549f30d155755b2e70f2ab9ba132175 (diff)
downloadliberty-332f8a05c4c61a7ab28b7eb5733b6795d2015da9.tar.gz
liberty-332f8a05c4c61a7ab28b7eb5733b6795d2015da9.tar.bz2
liberty-332f8a05c4c61a7ab28b7eb5733b6795d2015da9.zip
move book_toc_* templates from wiki to liberty structures where they belong
-rwxr-xr-xtemplates/structure_toc.tpl1
-rwxr-xr-xtemplates/structure_toc_endul.tpl1
-rwxr-xr-xtemplates/structure_toc_leaf.tpl4
-rwxr-xr-xtemplates/structure_toc_level.tpl1
-rwxr-xr-xtemplates/structure_toc_startul.tpl1
5 files changed, 8 insertions, 0 deletions
diff --git a/templates/structure_toc.tpl b/templates/structure_toc.tpl
new file mode 100755
index 0000000..cd7c434
--- /dev/null
+++ b/templates/structure_toc.tpl
@@ -0,0 +1 @@
+<ul class="toc">{section name=sitem loop=$structure_tree}{include file="structures_toc_level.tpl" that=$structure_tree[sitem]}{/section}</ul>
diff --git a/templates/structure_toc_endul.tpl b/templates/structure_toc_endul.tpl
new file mode 100755
index 0000000..3d3a44c
--- /dev/null
+++ b/templates/structure_toc_endul.tpl
@@ -0,0 +1 @@
+</ul>
diff --git a/templates/structure_toc_leaf.tpl b/templates/structure_toc_leaf.tpl
new file mode 100755
index 0000000..271edaa
--- /dev/null
+++ b/templates/structure_toc_leaf.tpl
@@ -0,0 +1,4 @@
+<li {if $structure_tree.structure_id==$smarty.request.structure_id}class="highlight"{/if}>
+ {if $numbering && $structure_tree.prefix}<span class="numbering">{$structure_tree.prefix}</span>{/if}
+ <a href="{$structure_tree.display_url|default:"`$smarty.const.WIKI_PKG_URL`index.php?structure_id=`$structure_tree.structure_id`"}">{$structure_tree.title|escape}</a>
+</li>
diff --git a/templates/structure_toc_level.tpl b/templates/structure_toc_level.tpl
new file mode 100755
index 0000000..6c369f3
--- /dev/null
+++ b/templates/structure_toc_level.tpl
@@ -0,0 +1 @@
+<li {if $that.structure_id==$smarty.request.structure_id}class="highlight"{/if}><a href="{$smarty.const.WIKI_PKG_URL}index.php?structure_id={$that.structure_id}">{$that.title|escape}</a></li>{if $that.sub}<li><ul>{section name=xitem loop=$that.sub}{include file="structures_toc_level.tpl" that=$that.sub[xitem]}{/section}</ul></li>{/if}
diff --git a/templates/structure_toc_startul.tpl b/templates/structure_toc_startul.tpl
new file mode 100755
index 0000000..be10942
--- /dev/null
+++ b/templates/structure_toc_startul.tpl
@@ -0,0 +1 @@
+<ul class="toc">