From dbad425b0edd753657cf660f2a41ad72e889afce Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 10 Nov 2006 05:59:29 +0000 Subject: [PATCH] Add sidebar boxes for various list feeds. [SVN r120] --- common/code/feed.php | 7 +++++++ common/menu-announce-feed.php | 18 ++++++++++++++++++ common/menu-build-feed.php | 18 ++++++++++++++++++ common/menu-devel-feed.php | 18 ++++++++++++++++++ common/menu-documentation-feed.php | 18 ++++++++++++++++++ common/menu-interest-feed.php | 18 ++++++++++++++++++ common/menu-testing-feed.php | 18 ++++++++++++++++++ common/menu-user-feed.php | 18 ++++++++++++++++++ common/sidebar-boost.html | 3 +++ common/sidebar-community.html | 6 ++++++ common/sidebar-development.html | 3 +++ common/sidebar-doc.html | 3 +++ common/sidebar-welcome.html | 3 +++ doc/display.php | 4 ++-- doc/libraries.php | 4 ++-- doc/wiki.php | 2 +- index.php | 2 +- style/css_0/sidebar.css | 17 +++++++++++++++++ users/download/entry.php | 2 +- users/download/index.php | 2 +- users/news/entry.php | 2 +- users/news/index.php | 2 +- 22 files changed, 178 insertions(+), 10 deletions(-) create mode 100644 common/menu-announce-feed.php create mode 100644 common/menu-build-feed.php create mode 100644 common/menu-devel-feed.php create mode 100644 common/menu-documentation-feed.php create mode 100644 common/menu-interest-feed.php create mode 100644 common/menu-testing-feed.php create mode 100644 common/menu-user-feed.php diff --git a/common/code/feed.php b/common/code/feed.php index 53685cd3..95dceb1a 100644 --- a/common/code/feed.php +++ b/common/code/feed.php @@ -61,6 +61,8 @@ class boost_feed case 'description': case 'guid': case 'pubdate': + case 'link': + case 'dc:date': { if (isset($val['value'])) { @@ -71,6 +73,11 @@ class boost_feed $item['pubdate'] = strtotime($item['pubdate']); $item['date'] = gmdate('F jS, Y H:i ',$item['pubdate']).'GMT'; break; + + case 'dc:date': + $item['pubdate'] = strtotime($item['dc:date']); + $item['date'] = gmdate('F jS, Y H:i ',$item['pubdate']).'GMT'; + break; } } else { $item[$val['tag']] = ''; } diff --git a/common/menu-announce-feed.php b/common/menu-announce-feed.php new file mode 100644 index 00000000..6614be08 --- /dev/null +++ b/common/menu-announce-feed.php @@ -0,0 +1,18 @@ +sort_by('pubdate'); +?> +

Recent + Announcements >

+ + diff --git a/common/menu-build-feed.php b/common/menu-build-feed.php new file mode 100644 index 00000000..f0834a1e --- /dev/null +++ b/common/menu-build-feed.php @@ -0,0 +1,18 @@ +sort_by('pubdate'); +?> +

Recent + Build Topics >

+ + diff --git a/common/menu-devel-feed.php b/common/menu-devel-feed.php new file mode 100644 index 00000000..2cc24dea --- /dev/null +++ b/common/menu-devel-feed.php @@ -0,0 +1,18 @@ +sort_by('pubdate'); +?> +

Recent + Developer Topics >

+ + diff --git a/common/menu-documentation-feed.php b/common/menu-documentation-feed.php new file mode 100644 index 00000000..40b8bf36 --- /dev/null +++ b/common/menu-documentation-feed.php @@ -0,0 +1,18 @@ +sort_by('pubdate'); +?> +

Recent + Documentation Topics >

+ + diff --git a/common/menu-interest-feed.php b/common/menu-interest-feed.php new file mode 100644 index 00000000..84d9f196 --- /dev/null +++ b/common/menu-interest-feed.php @@ -0,0 +1,18 @@ +sort_by('pubdate'); +?> +

Recent + Interest Topics >

+ + diff --git a/common/menu-testing-feed.php b/common/menu-testing-feed.php new file mode 100644 index 00000000..bfbdd99d --- /dev/null +++ b/common/menu-testing-feed.php @@ -0,0 +1,18 @@ +sort_by('pubdate'); +?> +

Recent + Testing Topics >

+ + diff --git a/common/menu-user-feed.php b/common/menu-user-feed.php new file mode 100644 index 00000000..ccace572 --- /dev/null +++ b/common/menu-user-feed.php @@ -0,0 +1,18 @@ +sort_by('pubdate'); +?> +

Recent + User Topics >

+ + diff --git a/common/sidebar-boost.html b/common/sidebar-boost.html index bd7ef30d..ae01d1e3 100644 --- a/common/sidebar-boost.html +++ b/common/sidebar-boost.html @@ -14,6 +14,9 @@
  • + +
  • +
  • diff --git a/common/sidebar-community.html b/common/sidebar-community.html index bd7ef30d..05a5f432 100644 --- a/common/sidebar-community.html +++ b/common/sidebar-community.html @@ -14,6 +14,12 @@
  • + +
  • +
  • + +
  • +
  • diff --git a/common/sidebar-development.html b/common/sidebar-development.html index bd7ef30d..66ab7817 100644 --- a/common/sidebar-development.html +++ b/common/sidebar-development.html @@ -14,6 +14,9 @@
  • + +
  • +
  • diff --git a/common/sidebar-doc.html b/common/sidebar-doc.html index bd7ef30d..ff4c622f 100644 --- a/common/sidebar-doc.html +++ b/common/sidebar-doc.html @@ -14,6 +14,9 @@
  • + +
  • +
  • diff --git a/common/sidebar-welcome.html b/common/sidebar-welcome.html index bd7ef30d..ae01d1e3 100644 --- a/common/sidebar-welcome.html +++ b/common/sidebar-welcome.html @@ -14,6 +14,9 @@
  • + +
  • +
  • diff --git a/doc/display.php b/doc/display.php index bf7aa2e8..44947e40 100644 --- a/doc/display.php +++ b/doc/display.php @@ -1,9 +1,9 @@ is_raw()) { #~ require dirname(__FILE__) . '/../common/code/webnotes.php'; +if (!$_file->is_raw()) { #~ require_once(dirname(__FILE__) . '/../common/code/webnotes.php'); ?> diff --git a/doc/libraries.php b/doc/libraries.php index 21b6c1e6..a37430ea 100644 --- a/doc/libraries.php +++ b/doc/libraries.php @@ -1,6 +1,6 @@ sort_by('pubdate'); $_downloads = new boost_feed(dirname(__FILE__) . '/feed/downloads.rss', '/users/download'); diff --git a/style/css_0/sidebar.css b/style/css_0/sidebar.css index a11636d5..3b351d3e 100644 --- a/style/css_0/sidebar.css +++ b/style/css_0/sidebar.css @@ -83,6 +83,23 @@ right: 2.25em; } +/**** RSS feed menus ****/ +#rss-menu ul { + display: block !important; +} +#rss-menu ul li { + overflow: hidden; +} +#rss-menu .news-date { + /* display: block !important; */ + clear: both; + margin-left: 4px !important; + margin-right: 4px !important; + padding: 0em 0em 0.25em 0.5em !important; + color: #777 !important; + font-size: 90% !important; +} + /**** Search... ****/ /* Search box */ #sidebar #search { diff --git a/users/download/entry.php b/users/download/entry.php index 84d87f1d..cfdb89f7 100644 --- a/users/download/entry.php +++ b/users/download/entry.php @@ -1,5 +1,5 @@ diff --git a/users/download/index.php b/users/download/index.php index 4e5f45bf..7a6dea0f 100644 --- a/users/download/index.php +++ b/users/download/index.php @@ -1,5 +1,5 @@ diff --git a/users/news/index.php b/users/news/index.php index c07c4a78..c68af8ad 100644 --- a/users/news/index.php +++ b/users/news/index.php @@ -1,5 +1,5 @@ sort_by('pubdate'); ?>