Commit 60782450a6bf8ad9344bce0269510b55816e4a57
1 parent
119cb5b5
Add breadcrumb display support
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3784 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
12 additions
and
0 deletions
templates/ktcore/standard_page.smarty
| @@ -65,6 +65,18 @@ | @@ -65,6 +65,18 @@ | ||
| 65 | { assign var="cbgcolour" value="bgcolor=\"$cbgcolour\"" } | 65 | { assign var="cbgcolour" value="bgcolor=\"$cbgcolour\"" } |
| 66 | { /if } | 66 | { /if } |
| 67 | <td valign="top" {$cbgcolour}> | 67 | <td valign="top" {$cbgcolour}> |
| 68 | + { if $breadcrumbs} | ||
| 69 | + { foreach name=bc from=$breadcrumbs item=breadcrumb } | ||
| 70 | + { if $smarty.foreach.bc.first } | ||
| 71 | + <a class="primary" href="{$breadcrumb.url}">{$breadcrumb.name}</a> | ||
| 72 | + { else } | ||
| 73 | + <a href="{$breadcrumb.url}">{$breadcrumb.name}</a> | ||
| 74 | + { /if } | ||
| 75 | + { if !$smarty.foreach.bc.last } | ||
| 76 | + » | ||
| 77 | + { /if } | ||
| 78 | + { /foreach } | ||
| 79 | + { /if } | ||
| 68 | { foreach item=errorMessage from=$errormessages } | 80 | { foreach item=errorMessage from=$errormessages } |
| 69 | <table border="0"><tr><td><p class="errorText">{$errorMessage}</p></td></tr></table> | 81 | <table border="0"><tr><td><p class="errorText">{$errorMessage}</p></td></tr></table> |
| 70 | { /foreach } | 82 | { /foreach } |