New Paste

 

Recent Pastes

Administrate




PageLines PasteBin.

PasteID: 12
Pasted by Anonymous, 2012-04-07 14:18:48 GMT
Expires Never
Paste size 1.48 Kb
Toggle Expand   Wrap   Raw
Copy Contents   Copy URL
 
  1. <?php
  2. /*
  3. 	Section: NavXT
  4. 	Author: PageLines
  5. 	Author URI: http://www.pagelines.com
  6. 	Description: NavXT Breadcrumbs.
  7. 	Class Name: BreadCrumbs
  8. 	Workswith: main, header
  9. 	Edition: pro
  10. */
  11.  
  12. /**
  13.  * NavXT Section
  14.  *
  15.  * @package PageLines Framework
  16.  * @author PageLines
  17.  */
  18. class BreadCrumbs extends PageLinesSection {
  19.  
  20.  
  21. 	function section_persistent() {
  22.  
  23. 		$options = array(
  24. 			'breadcrumb_no_link' => array(
  25. 					'default'	=> false,
  26. 					'version'	=> 'pro',
  27. 					'type'		=> 'check',
  28. 					'inputlabel'=> __( 'Disable Breadcrumb Links?', 'pagelines' ),
  29. 					'title'		=> __( 'Breadcrumb Links', 'pagelines' ),
  30. 					'shortexp'	=> __( 'Removes the links that are included in the breadcrumb nav.', 'pagelines' ),
  31. 					'exp'		=> __( 'This option removes links from the breadcrumb navigation.', 'pagelines' )
  32. 				),
  33. 		);
  34.  
  35. 		pl_global_option( array( 'menu' => 'header_and_footer', 'options' => $options, 'location' => 'top' ) );		
  36. 	}
  37.  
  38. 	/**
  39. 	* Section template.
  40. 	*/
  41.    function section_template() { 
  42.  
  43. 		if( function_exists( 'bcn_display' ) )
  44. 			printf( '<div class="breadcrumb subtext">%s</div>', $this->get_breadcrumb() );
  45. 	}
  46.  
  47. 	function get_breadcrumb() {
  48.  
  49. 		ob_start();	
  50. 		if( ploption( 'breadcrumb_no_link' ) ) {
  51. 			//Make new breadcrumb object
  52. 			$breadcrumb_trail = new bcn_breadcrumb_trail;
  53. 			$breadcrumb_trail->fill();
  54. 			bcn_display(false,false);
  55. 		}else{
  56. 			bcn_display();
  57. 		}	
  58. 	return ob_get_clean();		
  59. 	}
  60. }
 
 
 

 
 
 
 
 
Written by Xan Manning, 2010.
YOU NEED FLASH!