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 80375 Details for
Bug 205848
Header Menu RSS link override.
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]
Patch to override default RSS
patch.txt (text/plain), 2.80 KB, created by
Denis Roy
on 2007-10-15 13:17:26 EDT
(
hide
)
Description:
Patch to override default RSS
Filename:
MIME Type:
Creator:
Denis Roy
Created:
2007-10-15 13:17:26 EDT
Size:
2.80 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.phoenix >Index: eclipse.org-common/system/app.class.php >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.phoenix/eclipse.org-common/system/app.class.php,v >retrieving revision 1.27 >diff -u -r1.27 app.class.php >--- eclipse.org-common/system/app.class.php 12 Sep 2007 15:26:17 -0000 1.27 >+++ eclipse.org-common/system/app.class.php 15 Oct 2007 15:39:32 -0000 >@@ -38,7 +38,10 @@ > > var $WWW_PREFIX = ""; # default is relative > >+ # Additional page-related variables > var $ExtraHtmlHeaders = ""; >+ var $PageRSS = ""; >+ var $PageRSSTitle = ""; > > var $THEME_LIST = array("", "Phoenix", "Miasma", "Lazarus"); > >@@ -335,6 +338,14 @@ > if($pageTitle == "") { > $pageTitle = "eclipse.org page"; > } >+ >+ # page-specific RSS feed >+ if($this->PageRSS != "") { >+ if ($this->PageRSSTitle != "") { >+ $this->PageRSSTitle = "Eclipse RSS Feed"; >+ } >+ $this->ExtraHtmlHeaders .= '<link rel="alternate" title="' . $this->PageRSSTitle . '" href="' . $this->PageRSS . '" type="application/rss+xml">'; >+ } > > $extraHtmlHeaders = $this->ExtraHtmlHeaders; > >Index: eclipse.org-common/themes/Phoenix/menu.php >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.phoenix/eclipse.org-common/themes/Phoenix/menu.php,v >retrieving revision 1.10 >diff -u -r1.10 menu.php >--- eclipse.org-common/themes/Phoenix/menu.php 29 Aug 2007 14:33:02 -0000 1.10 >+++ eclipse.org-common/themes/Phoenix/menu.php 15 Oct 2007 15:39:32 -0000 >@@ -14,6 +14,18 @@ > <div id="header-nav"> > <ul> > <?php >+ global $App; >+ $www_prefix = ""; >+ $pageRSS = "http://www.eclipse.org/home/eclipsenews.rss"; >+ >+ if(isset($App)) { >+ $www_prefix = $App->getWWWPrefix(); >+ >+ if($App->PageRSS != "") { >+ $pageRSS = $App->PageRSS; >+ } >+ } >+ > $firstClass = "class=\"first_one\""; > $nextclass = ""; > >@@ -42,7 +54,7 @@ > <input class="button" type="image" onclick="this.submit();" alt="Search" title="Search" src="/eclipse.org-common/themes/Phoenix/images/search_btn.gif" width="54" height="18" /> > </form> > <ul> >- <li class="rss_feed"><a href="http://www.eclipse.org/home/eclipsenews.rss" target="_blank"><img src="/eclipse.org-common/themes/Phoenix/images/rss_btn.gif" alt="RSS" height="16" width="16" border="0" class="rss_icon" /></a></li> >+ <li class="rss_feed"><a href="<?= $pageRSS ?>" target="_blank"><img src="/eclipse.org-common/themes/Phoenix/images/rss_btn.gif" alt="RSS" height="16" width="16" border="0" class="rss_icon" /></a></li> > <li class="text_size"><a class="smallText" title="Small Text" href="#" onclick="setActiveStyleSheet('small');return false;">A</a> <a class="largeText" title="Large Text" href="#" onclick="setActiveStyleSheet('large');return false;">A</a></li> > </ul> > </div>
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
Flags:
denis.roy
:
review?
Actions:
View
|
Diff
Attachments on
bug 205848
: 80375