Beispiel #1
0
	function d3download_breadcrumbs_tree( $mydirname, $cid, $whr, $path='', $halfway=0 )
	{
		include_once dirname( dirname(__FILE__) ).'/class/mycategory.php' ;
		$mycategory = new MyCategory( $mydirname, 'Show' ) ;

		$i = 0 ;
		$breadcrumbs = array() ;
		$funcURL = ( empty( $path ) ) ? "index.php?" : $path ;
		$bc_arr = $mycategory->getNicePathArrayFromId( $cid, $whr, $funcURL ) ;
		$count = count( $bc_arr ) ;
		if( ! empty( $bc_arr ) ) foreach( $bc_arr as $bc ) {
			$i++ ;
			if( empty( $halfway ) && $i == $count )  $breadcrumbs[] = array( 'name' => $bc['title'] ) ;
			else $breadcrumbs[] = array( 'name' => $bc['title'] ,'url' => $bc['url'] ) ;
		}
		return $breadcrumbs ;
	}