<?php
global $hooks;
	
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$hooks->add_action('silex_action','the_track_order'); 
function track_order_title(){
    echo "Track Order";
}

function track_order_css() {
	?>
	<link href="/assets/global/plugins/jstree/dist/themes/default/style.min.css" rel="stylesheet" type="text/css" />
	<link href="/assets/global/css/todo-2.min.css" rel="stylesheet" type="text/css" />
    
	<?php
}

function track_order_js() {
	?>
	<script src="/assets/global/plugins/jstree/dist/jstree.min.js" type="text/javascript"></script>
	<script src="/assets/modul-js/common/messenger/ui-tree.min.js" type="text/javascript"></script>
	<script src="/assets/global/plugins/horizontal-timeline/horizontal-timeline.js" type="text/javascript"></script>
 <?php
} 

function the_track_order(){
	global $app;
	
	$app->get('/track-order', function(){ 
		global $hooks;
		global $app;
		
		$hooks->add_action('global_css',"track_order_css");
		$hooks->add_action('global_js',"track_order_js");
		$hooks->add_action('the_title',"track_order_title");
	
		the_head();
		include 'track-order.tpl.php';
		the_footer();
	
	
		return "";
	}); 
}
	
include 'track-order.func.php';
	