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 58906 Details for
Bug 129098
Convert Web Site to Phoenix Style
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]
Better way to center the news
NewCenterNews.txt (text/plain), 2.61 KB, created by
Bob Fraser
on 2007-02-13 16:54:08 EST
(
hide
)
Description:
Better way to center the news
Filename:
MIME Type:
Creator:
Bob Fraser
Created:
2007-02-13 16:54:08 EST
Size:
2.61 KB
patch
obsolete
>Index: main.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/webtools/main.php,v >retrieving revision 1.4 >diff -u -r1.4 main.php >--- main.php 25 Jan 2007 17:37:17 -0000 1.4 >+++ main.php 13 Feb 2007 21:48:13 -0000 >@@ -25,59 +25,11 @@ > require_once ($root . '/webtools/common.php'); > require_once ($root . '/community/news/scripts/news.php'); > >- function getWTPNews($rssfile, $rssurl, $count) >- { >- $rss = get_news($rssfile); >- $html = ""; >-// if($rss->channel == "") >-// { >-// return "empty"; >-// } >-// return $rss; >- foreach ($rss->channel as $channel) >- { >- $html .= "<h6>"; >- >- // Add the RSS image on the right >- $html .= "<a href=\"$rssurl\"><img src=\"/images/rss.gif\" align=\"right\" alt=\"More...\" /></a>"; >- >- // Add the title of the channel >- $html .= "WTP News"; >- // If we're displaying short format, provide a link to >- // show news in long format. >- $html .= " <a href=\"/webtools/news.html\"><img src=\"/images/more.gif\" title=\"More...\" alt=\"More...\" /></a>"; >- >- $html .= "</h6>"; >- >-// $description = $channel->description; >-// if (strlen($description) > 0) { >-// $html .= $description; >-// } >- $html .= "<ul class=\"midlist\">"; >- >- foreach ($channel->item as $item) >- { >- if ($count == 0) break; >- $html .= "<li>"; >- $date = $item->pubDate ? (" posted " . date("d‑m‑Y", $item->pubDate)) : ""; >- $html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a>$date<br/>"; >- $html .= $item->description; >- $html .= "</li>"; >- $count--; >- if($count != 0) >- { >- $html .= "<br/>"; >- } >- } >- $html .= "</ul>"; >- } >- return $html; >- } > // Generate the HTML content for the news based on the rss files > // that appear in the root directory. > $rssurl = "/webtools/wtpnews.rss"; >- $wtpnews = getWTPNews($root . $rssurl, $rssurl, 5);//xml_to_html("news", "news-rss20", "long", "5"); >- >+ $wtpnews = rss_to_html($root . $rssurl, $rssurl, "/webtools/news.html", "long", "5"); >+ > // Get the project descriptions > $wtpoverview = read_file('project-info/description.html'); > $wstoverview = read_file('project-info/wst-description.html'); >@@ -114,6 +66,9 @@ > </tr> > </table> > <div class="homeitem3col"> >+ $wtpnews >+ </div> >+ <div class="homeitem3col"> > <h3>Subprojects</h3> > <ul> > <li> >@@ -163,9 +118,6 @@ > <li><a href="/newsgroups/main.html#wtp">Newsgroup</a></li> > </ul> > </div> >- <div class="sideitem"> >- $wtpnews >- </div> > </div> > </div> > EOHTML;
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 129098
:
56731
|
56739
|
56792
|
56810
|
56844
|
57526
|
57527
|
58615
|
58813
|
58880
| 58906