<?php 
$basket = $this->session->get('basket');

echo "<div class=\"ui-widget\">\n";
echo "<div class=\"p2 ui-widget-header ui-corner-top\">\n";
echo Kohana::lang('common.basket-box-header')."</div>\n";
echo "<div class=\"p4 ui-widget-content ui-corner-bottom\">\n";
echo '<div id="basket_items">';
if(is_array($basket) && sizeof($basket) > 0 ){
	foreach($basket as $key=>$item){
		echo "<span id=\"basket_action_remove\"><a title=\"Remove ".$item."\" id=\"".$item."\"><img width=12px height=12px src=\"".url::base()."media/images/remove.png\"></a>".pnp::shorten($item)."</span><br>\n";
	}
}
if(is_array($basket) && sizeof($basket) > 0 ){
	echo "<div><a class=\"multi0\" href=\"".url::base(TRUE)."page/basket\">show basket</a></div>\n";
}else{
	echo "<div>Basket is empty</div>\n";
}
echo "</div>\n";
echo "</div>\n";
echo "</div><br>\n";
?>
<div id="basket_box"></div>
