<?php

//check which sections should be enabled or disabled

  	if($_SESSION[ecommerce_pkg]==1){$ecommerce_url = "index.php?panel=small&area=ecommerce"; $ecommerce_class="class='active-link'";} else {$ecommerce_url ="#"; $ecommerce_class="class='inactive'";}

	if($_SESSION[restaurant_pkg]==1){$menu_url = "index.php?panel=small&area=menu"; $menu_class="class='active-link'";} else {$menu_url ="#"; $menu_class="class='inactive'";}

	if($_SESSION[menu_boards]>0){$menu_board_url = "index.php?admin-page=5"; $menu_board_class="class='active-link'";} else {$menu_board_url ="#"; $menu_board_class="class='inactive'";}

	if($_SESSION[menu_board_only]!=1 && $_SESSION[text_only]!=1){$content_url = "index.php?panel=small&area=content"; $content_class="class='active-link'";} else {$content_url ="#"; $content_class="class='inactive'";}

	if($_SESSION[restaurant_pkg]==1 && $_SESSION[menu_board_only]!=1 && $_SESSION[text_only]!=1){$online_ordering_url = "index.php?panel=small&area=ordering"; $online_ordering_class="class='active-link'";} else {$online_ordering_url ="#"; $online_ordering_class="class='inactive'";}

	if(1==1){$prefs_url = "index.php?panel=small&area=preferences"; $prefs_class="class='active-link'";} else {$prefs_url ="#"; $prefs_class="class='inactive'";}

	if($_SESSION[menu_board_only]!=1 && $_SESSION[text_only]!=1){$marketing_url = "index.php?panel=small&area=marketing"; $marketing_class="class='active-link'";} else {$marketing_url ="#"; $marketing_class="class='inactive'";}

	if($_SESSION[menu_board_only]!=1 && $_SESSION[text_only]!=1){$quicklinks_url = "index.php?panel=small&area=quicklinks"; $quicklinks_class="class='active-link'";} else {$quicklinks_url ="#"; $quicklinks_class="class='inactive'";}





//build bottom link section to include on all admin pages

	$bottom_links = '<div id="bottom-admin-wrapper"><ul id="bottom-admin-nav">';

	

	$bottom_links.= '<li><a href="index.php"><img src="images/admin-home-icon_blue.png" alt="Home" title="Home"></a></li>';

	$bottom_links.= '<li><a '.$menu_class.' href="'.$menu_url.'"><img src="images/admin-menu-icon_blue.png" alt="Menu Management" title="Menu Management"></a></li>';

	$bottom_links.= '<li><a '.$ecommerce_class.' href="'.$ecommerce_url.'"><img src="images/admin-ecommerce-icon_blue.png" alt="E-Commerce" title="E-Commerce"></a></li>';

	$bottom_links.= '<li><a '.$content_class.' href="'.$content_url.'"><img src="images/admin-web-icon_blue.png" alt="Web Content" title="Web Content"></a></li>';

	$bottom_links.= '<li><a '.$online_ordering_class.' href="'.$online_ordering_url.'"><img src="images/admin-online-order-icon_blue.png" alt="Online Ordering" title="Online Ordering"></a></li>';

	$bottom_links.= '<li><a '.$prefs_class.' href="'.$prefs_url.'"><img src="images/admin-preferences-icon_blue.png" alt="Business Preferences" title="Business Preferences"></a></li>';

	$bottom_links.= '<li><a '.$menu_board_class.' href="'.$menu_board_url.'"><img src="images/admin-board-icon_blue.png" alt="Digital Display" title="Digital Display"></a></li>';

	$bottom_links.= '<li><a '.$marketing_class.' href="'.$marketing_url.'"><img src="images/admin-marketing-icon_blue.png" alt="Marketing" title="Marketing"></a></li>';

	$bottom_links.= '<li><a '.$quicklinks_class.' href="'.$quicklinks_url.'"><img src="images/admin-quick-icon_blue.png" alt="Quick Links" title="Quick Links"></a></li>';

	

	$bottom_links.= '</ul></div>';

	

	



?>