File: D:/HostingSpaces/SBogers10/keystud.komma-mediadesign.nl/wwwroot/app/views/includes/v_header.php
<?php
// MENU
// Is there news in the menu ?
$Db = new DatabaseHandler();
$Db->setTableName(TABLE_PREFIX . 'news_items');
$Db->addRule('active',1);
$Db->setActiveOnly(TRUE,5);
$items = $Db->select();
$showNews = false;
if( ! empty($items)) $showNews = true;
// Whats the last year ?
$Db = new DatabaseHandler();
$Db->setData(array('birthYear'=>''));
$Db->addRule('active',1);
$Db->setOrder('birthYear','DESC');
$Db->setScope(0,1);
$Db->setActiveOnly(TRUE,1);
$Db->setTableName(TABLE_PREFIX . 'foals_items');
$foals = $Db->select();
$Db->setActiveOnly(TRUE,3);
$Db->setTableName(TABLE_PREFIX . 'youngsters_items');
$youngsters = $Db->select();
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="Author" content="Komma, (c) Komma Mediadesign, 2013. All Rights Reserved." />
<title><?php $this->getData('page_title'); ?></title>
<meta name="Description" content="Op Keystud worden de sportpaarden van de toekomst geboren! Wij hebben voor u de geschikte fokmerrie, veulen of jong (sport)paard. Tevens verzorgen we de opfok van uw jong paard. En begeleiden we de dracht/geboorte van het veulen van uw fokmerrie." />
<meta name="Keywords" content=""/>
<meta name="Robots" content="All" />
<meta name="viewport" content="width=1280">
<!--[if lte IE 8]>
<script type="text/javascript" src="/public/js/css3-mediaqueries.js"></script>
<![endif]-->
<link href="<?php echo SITE_ROOT; ?>public/css/screen.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]>
<link href="<?php echo SITE_ROOT; ?>public/css/screen_ie8.css" rel="stylesheet" type="text/css">
<![endif]-->
<link type="text/css" rel="stylesheet" href="http://fast.fonts.net/cssapi/dde839f0-2122-4cb0-9eb8-e70f80eb10bf.css"/>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:600,400' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="/public/favicon.ico" type="image/x-icon" />
</head>
<body class="<?php $this->getData('page_name'); ?>" id="<?php $this->getData('page_id'); ?>">
<div id="header">
<div class="col logo_holder">
<a href="<?php echo LANG_ROOT; ?>">
<img src="/public/images/structure/keystud_logo.<?php if(IE8){ echo 'png'; }else{ echo 'svg'; }?>" alt="Keystud Logo" class="logo" />
</a>
</div>
<div class="col nav">
<ul class="menu">
<li<?php if( ! defined('URL_PAGE')) echo ' class="active"';?>><span class="line"></span><a href="<?php echo LANG_ROOT; ?>">Home</a></li>
<?php if($showNews){ ?><li<?php if( defined('URL_PAGE') && URL_PAGE == $this->urls['news']) echo ' class="active"';?>><span class="line"></span><?php echo '<a href="' . LANG_ROOT . $this->urls['news'] . '">' . $this->lang['news'] . '</a>'; ?></li><?php } ?>
<li<?php if( defined('URL_PAGE') && URL_PAGE == 'keystud') echo ' class="active"';?>><span class="line"></span><a href="<?php echo LANG_ROOT; ?>keystud">Keystud</a></li>
<li<?php if( defined('URL_PAGE') && URL_PAGE == $this->urls['foals']) echo ' class="active"';?>><span class="line"></span><?php echo '<a href="' . LANG_ROOT . $this->urls['foals'] . '/' . $foals['birthYear'] . '">' . $this->lang['foals'] . '</a>'; ?></li>
<li class="line_break"></li>
<li<?php if( defined('URL_PAGE') && URL_PAGE == 'youngsters') echo ' class="active"';?>><span class="line"></span><a href="<?php echo LANG_ROOT . 'youngsters/' . $youngsters['birthYear']; ?>">Youngsters</a></li>
<li<?php if( defined('URL_PAGE') && URL_PAGE == $this->urls['mares']) echo ' class="active"';?>><span class="line"></span><?php echo '<a href="' . LANG_ROOT . $this->urls['mares'] . '">' . $this->lang['mares'] . '</a>'; ?></li>
<li<?php if( defined('URL_PAGE') && URL_PAGE == $this->urls['references']) echo ' class="active"';?>><span class="line"></span><?php echo '<a href="' . LANG_ROOT . $this->urls['references'] . '">' . $this->lang['references'] . '</a>'; ?></li>
<li class="last<?php if( defined('URL_PAGE') && URL_PAGE == 'contact') echo ' active';?>"><span class="line"></span><a href="<?php echo LANG_ROOT; ?>contact">Contact</a></li>
<li class="clear"></li>
</ul>
<div class="flags">
<?php //$this->getData('lang_menu'); ?>
</div>
</div>
<div class="clear"></div>
</div>
<div id="content">