⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 breadcrumb.php

📁 每个RFC 3261信息头有一个相应的存取标识. 但是,许多信息头拥有同样的形式。 例如。To和From的信息头都是由显示名和一个URI组成。 To和From信息头用来管理与处理NameAddr实例的
💻 PHP
字号:
<?php/*  $Id: breadcrumb.php,v 1.3 2003/02/11 00:04:50 hpdl Exp $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2003 osCommerce  Released under the GNU General Public License*/  class breadcrumb {    var $_trail;    function breadcrumb() {      $this->reset();    }    function reset() {      $this->_trail = array();    }    function add($title, $link = '') {      $this->_trail[] = array('title' => $title, 'link' => $link);    }    function trail($separator = ' - ') {      $trail_string = '';      for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {        if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {          $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation">' . $this->_trail[$i]['title'] . '</a>';        } else {          $trail_string .= $this->_trail[$i]['title'];        }        if (($i+1) < $n) $trail_string .= $separator;      }      return $trail_string;    }  }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -