<nav class="navbar navbar-attached" data-sticky>
{-foreach:$_CP,$k,$cp-}
	{-if:count($_CP)==$k+2-}
		{-if:!empty($cp['url'])-}
			<a class="navbar-brand" href="{-:$cp['url']-}"><i class="icon-chevron-left"></i></a>
		{-else:-}
			<a class="navbar-brand" href="{-:*__APP__-}"><i class="icon-chevron-left"></i></a>
		{-:/if-}
	{-:/if-}
{-:/foreach-}
	<a class="navbar-icon navbar-flip" href="#menuMain" data-offcanvas><i class="icon-bars"></i></a>
	<div class="navbar-content navbar-center">
		{-foreach:$_CP,$k,$cp-}
			{-if:count($_CP)==$k+1-}
				{-:$cp['name']-}
			{-:/if-}
		{-:/foreach-}
	</div>
</nav>
<div id="menuMain" class="offcanvas">
	<div class="offcanvas-bar offcanvas-bar-flip">
	{-if:$_G['interaction']['search_switch']-}
		<div class="panel panel-offcanvas">
			<div class="panel-body">
				<form class="form" method="post" action="{-url:home@search/search_do-}">
					<div class="form-group">
						<div class="input-icon">
							<i class="icon-zoom"></i>
							<input required="required" type="text" name="keyword" size="16" placeholder="{-:@KEYWORDS-}" class="control-input" />
						</div>
					</div>
					<div class="form-group">
						<select name="type" class="control-input">
							<option value="A" selected="selected">{-:@ARTICLE-}</option>
							<option value="S">{-:@SINGLE_PAGE-}</option>
						</select>
					</div>
				</form>
			</div>
			<div class="panel-footer"></div>
		</div>
	{-:/if-}
		<ul class="nav nav-offcanvas" data-nav>
			<li class="nav-divider"></li>
		<loga:menu alias="main">
		{-if:!empty($m['m_sub'])-}
			<li class="nav-parent {-if:get_url($_GCAP,true) == $m['url']-} active{-:/if-}">
				<a href="#" title="{-:$m['m_tip']-}">{-:$m['m_name']-}</a>
				<ul class="nav-sub">
			{-foreach:$m['m_sub'],$ms-}
					<li {-if:get_url($_GCAP,true) == $ms['url']-} class="active"{-:/if-}><a href="{-:$ms['url']-}" title="{-:$ms['m_tip']-}">{-:$ms['m_name']-}</a></li>
			{-:/foreach-}
				</ul>
			</li>
		{-else:-}
			<li {-if:get_url($_GCAP,true) == $m['url']-} class="active"{-:/if-}><a href="{-:$m['url']-}" title="{-:$m['m_tip']-}">{-:$m['m_name']-}<div>{-:$m['m_tip']-}</div></a></li>
		{-:/if-}
		</loga:menu>
		</ul>
	</div>
</div>
