| 804 |
* Make a pathway string for display |
* Make a pathway string for display |
| 805 |
*/ |
*/ |
| 806 |
function makePathway () { |
function makePathway () { |
|
$last = count($this->_names) - 1; |
|
|
if ($last == 0) return ''; |
|
| 807 |
$mainframe =& mosMainFrame::getInstance(); |
$mainframe =& mosMainFrame::getInstance(); |
| 808 |
|
$customs = $mainframe->getCustomPathWay(); |
| 809 |
|
$last = count($this->_names) - 1; |
| 810 |
|
if ($last == 0 AND count($customs == 0)) return ''; |
| 811 |
$result = "<span class='pathway'>"; |
$result = "<span class='pathway'>"; |
| 812 |
$config =& mamboCore::getMamboCore(); |
$config =& mamboCore::getMamboCore(); |
| 813 |
$rootpath = $config->rootPath(); |
$rootpath = $config->rootPath(); |
| 819 |
else $img = '>'; |
else $img = '>'; |
| 820 |
} |
} |
| 821 |
foreach ($this->_names as $i=>$name) { |
foreach ($this->_names as $i=>$name) { |
| 822 |
if ($i === $last) $result .= "$name"; |
if ($i === $last AND count($customs) == 0) $result .= "$name</span>"; |
| 823 |
else { |
else { |
| 824 |
$sefurl = sefRelToAbs($this->_urls[$i]); |
$sefurl = sefRelToAbs($this->_urls[$i]); |
| 825 |
$result .= "<a href='$sefurl' class='pathway'>$name</a>"; |
$result .= "<a href='$sefurl' class='pathway'>$name</a>"; |
| 826 |
$result .= " $img "; |
$result .= " $img "; |
| 827 |
} |
} |
| 828 |
} |
} |
|
$customs = $mainframe->getCustomPathWay(); |
|
| 829 |
foreach ($customs as $custom) $result .= $custom; |
foreach ($customs as $custom) $result .= $custom; |
| 830 |
$result .= '</span>'; |
if (count($customs)) $result .= '</span>'; |
| 831 |
return $result; |
return $result; |
| 832 |
} |
} |
| 833 |
|
|