Location: PHPKode > scripts > Dornbase > scripts/links.php
<?php
//print links
function print_links($arr) {
	if(!is_array($arr)) {
		return;
	}

	global $site_root;
	foreach($arr as $link) {
		if($link['newgroup']) echo "<br />\n";
		echo "\n\t\t<a ";
		
		$display = (!isset($link['condition']) || $link['condition']);
		
		$class = array();
		if(!$display) $class[] = 'ui-state-disabled';
		elseif($link['class']) $class[] = $link['class'];
		
		if($class) echo "class='".implode(" ",$class)."' ";
		
		if($display) echo "href=\"".$link['href']."\"";
		
		if($link['target']) echo " target='".$link['target']."'";
		
		echo "><span class='ui-icon ui-icon-".$link['icon']."'></span> " . $link['text']."</a>";
	}
}
?>
Return current item: Dornbase