diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-29 10:18:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-29 10:18:38 +0000 |
commit | 1fc8a18c2d74ec4ce5247b6abedddaadbcde3e34 (patch) | |
tree | 746f550c09c4a827c859d32384b055e35db1fcd0 /modules/aggregator | |
parent | f7e11d3bb763d0f8c3b0551b7f5848f72c557ac0 (diff) | |
download | brdo-1fc8a18c2d74ec4ce5247b6abedddaadbcde3e34.tar.gz brdo-1fc8a18c2d74ec4ce5247b6abedddaadbcde3e34.tar.bz2 |
- Al's CSS patches. This commit improves the themability of some core
components such as lists, form items, removes an ugly hack from the
archive module and should fix the poll problem (although it doesn't
Opera/Konqueror).
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.module | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index ed70162b4..3dc3b22cc 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -71,13 +71,14 @@ function import_format_item($item, $feed = 0) { global $user; if ($user->uid && user_access("maintain personal blog")) { - $output .= l("<img src=\"". theme("image", "blog.gif") ."\" border=\"0\" width=\"12\" height=\"16\" alt=\"". t("Blog this item") ."\" />", "node/add/blog&iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."))); +// $output .= " ". l("<img src=\"". theme("image", "blog.gif") ."\" border=\"0\" width=\"12\" height=\"16\" alt=\"". t("Blog this item") ."\" />", "node/add/blog&iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."))); + $output .= "<div class=\"blog-it\">(". l("b", "node/add/blog&iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."))) .")</div>"; } // external link $output .= "<a href=\"$item->link\">$item->title</a>"; - return $output ."<br />"; + return $output; } function import_bundle_block($attributes) { @@ -89,20 +90,22 @@ function import_bundle_block($attributes) { $result = db_query_range("SELECT * FROM item WHERE ". implode(" OR ", $where) ." ORDER BY iid DESC", 0, variable_get("import_block_limit", 15)); } + $output = "<div class=\"item-list\"><ul>"; while ($item = db_fetch_object($result)) { - $output .= import_format_item($item); + $output .= "<li>". import_format_item($item) ."</li>"; } + $output .= "</ul></div>"; return $output; } function import_feed_block($feed) { $result = db_query_range("SELECT * FROM item WHERE fid = %d ORDER BY iid DESC ", $feed->fid, 0, variable_get("import_block_limit", 15)); - + $output = "<div class=\"item-list\"><ul>"; while ($item = db_fetch_object($result)) { - $output .= import_format_item($item); + $output .= "<li>". import_format_item($item) ."</li>"; } - + $output .= "</ul></div>"; return $output; } |