Results 1 to 1 of 1

Thread: Breadcrumb Navigation

  1. #1
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default Breadcrumb Navigation

    This works, but as usual I think there must be a simpler way. Any suggestions?

    // $str equals $pagetitle minus spaces and commas. This PHP sits below the common navigation div for the entire site.

    if(($str=="healthcare") || ($str=="hospitality") || ($str=="manufacturing_distribution_and_warehousing") || ($str=="pharmaceutical") || ($str=="property_management") || ($str=="restaurant") || ($str=="retail")) {

    echo "<div><p class=\"nav-helper\"><a href=\"/\">Home</a> | <a href=\"/pest_control_solutions.php\">Specific Solutions</a> | <strong>$pagetitle</strong></p></div>";

    } elseif (($str=="specific_solutions") || ($str=="frequently_asked_questions") || ($str=="request_a_quote")) {

    echo "<div><p class=\"nav-helper\"><a href=\"/\">Home</a> | <strong>$pagetitle</strong></p></div>";

    } else {

    echo "";

    }

    Thanks in advance,

    Jason
    Last edited by JasonDFR; 06-28-2008 at 08:28 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •