Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 57)
+++ trunk/CHANGELOG	(revision 58)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 2.6.0 -------------------------------------
 09-Sep-2005 Stefan Braunewell
++	Added breadcrumbs code. Call using $wb->breadcrumbs().
 +	Added utf-8 character encoding meta tag into all stock templates.
 -/!	Removed initialize.php again, initialization now takes place in
 	class wb constructor.
Index: trunk/wb/framework/compatibility.php
===================================================================
--- trunk/wb/framework/compatibility.php	(revision 57)
+++ trunk/wb/framework/compatibility.php	(revision 58)
@@ -39,7 +39,7 @@
 
 function page_content($block=1) {
 	global $wb;
-	$wb->page_content($block);
+	$wb->content($block);
 }
 
 // Old menu call invokes new menu function
Index: trunk/wb/framework/class.frontend.php
===================================================================
--- trunk/wb/framework/class.frontend.php	(revision 57)
+++ trunk/wb/framework/class.frontend.php	(revision 58)
@@ -410,7 +410,7 @@
 	   }
 	}
 
-	function page_content($block = 1) {
+	function content($block = 1) {
 		// Get outside objects
 		global $TEXT,$MENU,$HEADING,$MESSAGE;
 		global $globals;
@@ -452,6 +452,32 @@
 		}
 	}
 
+	function breadcrumbs($sep=' > ',$tier=1,$links=true) {
+		$page_id=&$this->page_id;
+		if ($page_id!=0)
+		{
+	 		global $database;
+			$bca=&$this->page_trail;
+			if (sizeof($bca)==0)
+			        create_breadcrumbs($page_id);
+			$counter=0;
+			foreach ($bca as $temp)
+			{
+		        if ($counter>=(tier-1));
+		        {
+					if ($counter>=$tier) echo $sep;
+					$query_menu=$database->query("SELECT menu_title,link FROM ".TABLE_PREFIX."pages WHERE page_id=$temp");
+					$page=$query_menu->fetchRow();
+					if ($links==true AND $temp!=$page_id)
+						echo '<a href="'.page_link($page['link']).'">'.$page['menu_title'].'</a>';
+					else
+					        echo stripslashes($page['menu_title']);
+		        }
+                $counter++;
+			}
+		}
+	}
+
 	// Function for page title
 	function page_title($spacer = ' - ', $template = '[WEBSITE_TITLE][SPACER][PAGE_TITLE]') {
 		$vars = array('[WEBSITE_TITLE]', '[PAGE_TITLE]', '[MENU_TITLE]', '[SPACER]');
