<?php

$iTotalArticles		= '-';
$iTotalOrder		= '-';
$iTotalCategories	= '-';

/*
 * Sidebar
 */

$sSidebar = 
'<section class="sidebar">';

	//$sSidebar .= '<a class="sell' . (in_array($sPage, $aVerkoopPages) ? ' active' : '') . '" href="/">
		
		//<span class="label spacing">Verkoop</span>';
		
	//$sSidebar .= '</a>';	
	
	//$sSubmenu = false;
	//$sSubmenuItems = false;
	//$sSubmenuItemsTotal = 0;
	
	//$sFirst = ' first';	
	
	//$sSubmenuItems .= '<span class="submenu-item navigate cat'.$sFirst.'" data-categoryid="">Aanmaken</span>';
	
	//$sSubmenu .= '<div class="submenu">';
		//$sSubmenu .= '<span class="submenu-item reset" >Toon alles'.(!empty($sSubmenuItemsTotal) ? ' ('.$sSubmenuItemsTotal.')' : false).'</span>';
		//$sSubmenu .= $sSubmenuItems;
	
	//$sSubmenu .= '</div>';
	
	
	//$sSidebar .= $sSubmenu;
	
	//$sSidebar .= '<a class="rental' . (in_array($sPage, $aVerhuurPages) ? ' active' : '') . '" href="/verhuur/">
		
		//<span class="label spacing">Verhuur</span>';
		
	//$sSidebar .= '</a>';
	
	//$sSidebar .= '<a class="concept' . (in_array($sPage, $aConceptPages) ? ' active' : '') . '" href="/concepten/">
		
		//<span class="label spacing">Concepten</span>';
		
	//$sSidebar .= '</a>';
	
	//$sSidebar .= '<a class="buy' . (in_array($sPage, $aInkoopPages) ? ' active' : '') . '" href="/inkoop/">
		
		//<span class="label spacing">Inkoop</span>';
		
	//$sSidebar .= '</a>';	
	
	//$sSidebar .= '<a class="shop" target="_blank" href="/shop/">
		
		//<span class="label spacing" >Shop</span>';
				
	//$sSidebar .= '</a>';
	
	//$sSidebar .= '<a class="configurator" target="_blank" href="/configurator/">
		
		//<span class="label spacing">Configurator</span>';
		
	//$sSidebar .= '</a>';
	
	//$sSidebar .= '<a class="settings' . (in_array($sPage, $aSettingsPages) ? ' active' : '') . '" href="/instellingen/">
		
		//<span class="label spacing">Instellingen</span>';		
		
	//$sSidebar .= '</a>';
	
	$sSidebar .= '<a class="saldo" href="/saldo/">
		
		<span class="label spacing">OVIS Saldo</span>';		
		
	$sSidebar .= '</a>';
	
	$sSidebar .= '<a class="marktplaats" href="/marktplaats/">
		
		<span class="label spacing">Marktplaats</span>';		
		
	$sSidebar .= '</a>';
	
	//$sSidebar .= '<a class="uitleg" href="/uitleg/">
		
	//	<span class="label spacing">Uitleg</span>';		
		
	//$sSidebar .= '</a>';
	
	$sSidebar .= '<a class="logout" href="/uitloggen/">
		
		<span class="label spacing">Uitloggen</span>';		
		
	$sSidebar .= '</a>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Instellingen <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Nieuws <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Shop <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Configurator <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Inkoop <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Kentekenadverteren <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">BOVAG Formulieren <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Pluspakket <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Bedrijfsprofiel <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">TaGGle <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Inruilvoorstel <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Intern overzicht <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Koerslijst <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Zoeken in OVIS <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	$sSidebar .= '<div class="desktop-item">
		
		<span class="label spacing">Statistieken <span class="desktop-only">DESKTOP</span></span>';		
		
	$sSidebar .= '</div>';
	
	
	
	/*
	
	if($sPage == 'opties'){
	
		$oConfiguratorCategories = $oConfigurator->getConfiguratorCategories();	
					
		if(!empty($oConfiguratorCategories) && $oConfiguratorCategories->result == true) {
			foreach($oConfiguratorCategories->categories as $aCategory) {

				if(!empty($aCategory->items)){

					foreach($aCategory->items as $aCategorySub) {
							
						$sSubmenuItemsTotal += (int) $aCategorySub->totalItems;
						
						$sFirst = false;
						
						if(empty($sSubmenuItems)){
							$sFirst = ' first';							
						}						
						
						$sSubmenuItems .= '<span class="submenu-item navigate cat'.$aCategorySub->categoryId.$sFirst.'" data-categoryid="' . $aCategorySub->categoryId . '">'.$aCategorySub->name.(!empty($aCategorySub->totalItems) ? ' ('.$aCategorySub->totalItems.')' : false).'</span>';
					
					}				
				}
			}			
			
			if(!empty($sSubmenuItems)){
				$sSubmenu .= '<div class="submenu">';
					//$sSubmenu .= '<span class="submenu-item reset" >Toon alles'.(!empty($sSubmenuItemsTotal) ? ' ('.$sSubmenuItemsTotal.')' : false).'</span>';
					$sSubmenu .= $sSubmenuItems;
				
				$sSubmenu .= '</div>';
			}						
		}
	}
	
	$sSidebar .= '<a class="options' . (in_array($sPage, $aOptionsPages) ? ' active' : '') . (!empty($sSubmenu) ? ' hassubmenu' : false) . '" href="/opties/">
		
		<span class="label spacing">Bibliotheek</span>

		<span class="tooltip"><span id="options-total">' . $iTotalOrder . '</span> item(s)</span>';
		
		
		
		
	$sSidebar .= '</a>';
	
	
	
	$sSidebar .= '<a class="categories' . (in_array($sPage, $aCategoryPages) ? ' active' : '') . '" href="/categorieen/">
		
		<span class="label spacing">Categorieën</span>

		<span class="tooltip">Overzicht</span>
		
	</a>';*/
	
	/*
	$sSidebar .= '<a class="ads' . (in_array($sPage, $aConnectPages) ? ' active' : '') . '" href="/advertenties/">
		
		<span class="label spacing">Advertenties</span>

		<span class="tooltip">' . $iTotalOrder . ' advertentie(s)</span>
		
	</a>';
	*/	
	
	//$sSidebar .= '<a class="settings' . (in_array($sPage, $aSettingPages) ? ' active' : '') . '" href="/instellingen/">
		
	//	<span class="label">Instellingen</span>
		
	//</a>';

$sSidebar .= '</section>';

return $sSidebar;