Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 242077 Details for
Bug 216820
[navigation] Please add breadcrumb like navigation on eclipse.org
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
eclipse_org_common-adding_removeCrumb.patch
eclipse_org_common-adding_removeCrumb.patch (text/plain), 1.16 KB, created by
Christopher Guindon
on 2014-04-16 21:14:44 EDT
(
hide
)
Description:
eclipse_org_common-adding_removeCrumb.patch
Filename:
MIME Type:
Creator:
Christopher Guindon
Created:
2014-04-16 21:14:44 EDT
Size:
1.16 KB
patch
obsolete
>diff --git a/system/breadcrumbs.class.php b/system/breadcrumbs.class.php >index cb6037f..0714950 100644 >--- a/system/breadcrumbs.class.php >+++ b/system/breadcrumbs.class.php >@@ -126,6 +126,49 @@ class Breadcrumb extends Menu { > } > } > >+ /** >+ * Unset a link from CrumbList >+ * >+ * @param int|array $_Key >+ */ >+ private function _removeCrumb($_Key){ >+ if (isset($this->CrumbList[$_Key])) { >+ unset($this->CrumbList[$_Key]); >+ } >+ } >+ >+ /** >+ * Remove links from CrumbList >+ * >+ * Usage example: >+ * >+ * Remove more than one link with an array. >+ * $Breadcrumb->removeCrumb(array(0,3)); >+ * >+ * Remove only one link. >+ * $Breadcrumb->removeCrumb(1); >+ * >+ * @param int|array $_Key >+ */ >+ function removeCrumb($_Key = NULL) { >+ >+ if ($_Key === NULL) { >+ return; >+ } >+ >+ if (is_array($_Key)) { >+ foreach ($_Key as $k) { >+ $this->_removeCrumb($k); >+ } >+ } >+ else { >+ $this->_removeCrumb($_Key); >+ } >+ >+ // 'reindex' CrumbList. >+ $this->CrumbList = array_values($this->CrumbList); >+ } >+ > function showBreadcrumbs() { > # for debugging purposes only > echo "Breadcrumbs: ";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 216820
:
242069
| 242077