Login   Register  
PHP Classes
elePHPant
Icontem

File: Breadcrumb

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of njau ndirangu  >  Trail breadcrumbs  >  Breadcrumb  >  Download  
File: Breadcrumb
Role: Example script
Content type: text/plain
Description: Example of how to use the breadcrumb class with navigation trails
Class: Trail breadcrumbs
Keep track of visited pages in session variables
Author: By
Last change:
Date: 5 years ago
Size: 638 bytes
 

Contents

Class file image Download
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/classes/clsBreadcrumb.php');
$trail = new Breadcrumb();
$output=$trail->add('About Us''/html/aboutus.php');
//Breadcrumb CSS
        
echo "
        <style>
         #breadcrumb ul li{
           list-style-image: none;
           display:inline;
           padding: 0 3px 0 0; 
           margin: 3px 0 0 0;
           font-family: Verdana, Arial, Helvetica, sans-serif;
           color: #0066FF; 
         }
         #breadcrumb ul{
           margin:0;padding:0;
           list-style-type: none;
           padding-left: 1em;
           font-family: Verdana, Arial, Helvetica, sans-serif;
           color: #0066FF; 
         }
        </style>
        "
;
echo 
$output;

?>