{strip} {php} $this->assign('hasAdditional', $GLOBALS['hasAdditional']); {/php} {if $item->additionalPages == true && $page.isAdditional == 'y' && $hasAdditional == false}
Additional Pages      Add Page {if $item->additionalPagesTopLevelCount > 1}  |  Reorder Additional Pages {/if} {php} $GLOBALS['hasAdditional'] = true; {/php}
{/if}
{strip} {if $page.source == 'virtual'} {$page.menuTitle|htmlspecialchars} {else} {if $page.hasDraft == 'y'}*{/if}{$page.menuTitle|htmlspecialchars} {/if} {if $page.rightSub} {php} $sub = $this->get_template_vars('page'); $sub = reset($sub['rightSub']); $this->assign('subClass', ('virtual' == $sub['source']) ? 'addlinks addlinks_big' : 'addlinks' ); {/php}  ( {foreach from = $page.rightSub item = rightSub name = 'rightSub'} {$rightSub.menuTitle|htmlspecialchars}{if !$smarty.foreach.rightSub.last} | {/if} {/foreach} ) {else}      {if $page.final == 'n' && $page.allowSubpages != 'n'} add subpage {if count($page.sub) > 1 || $page.allowDelete == 'y'} | {/if} {/if} {assign var='showSub' value=false} {foreach from = $page.sub item = sub} {if $sub.source != 'virtual'} {assign var='showSub' value=true} {/if} {/foreach} {if count($page.sub) > 1 && $showSub} reorder subpages{if $page.allowDelete == 'y'} | {/if} {/if} {if $page.allowDelete == 'y'} delete {/if} {/if}
{/strip} {if $parentEnabled == 'n' || $page.enabled == 'n'} {assign var = 'parentEnabled' value = 'n'} {else} {assign var = 'parentEnabled' value = 'y'} {/if} {include file = "Cms/sitemap-list.tpl"|SMGetTemplate siteMap = $page.sub parentEnabled = $parentEnabled}
{/strip}