From eb030cb9d8839bd08cb2bd1e4f954efe37047303 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Jun 2003 19:06:25 +0000 Subject: - Improvements: XHTML-ifications. Patch by GmbH. --- modules/aggregator.module | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index 3b4fcdeff..2b80d20c9 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -71,7 +71,7 @@ function import_format_item($item, $feed = 0) { global $user; if ($user->uid && user_access("maintain personal blog")) { - $output .= "
". l("\"".", "node/add/blog&iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."), "class" => "blog-it")) ."
"; + $output .= "
". l("\"".", "node/add/blog&iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."), "class" => "blog-it")) ."
"; } // external link @@ -136,13 +136,13 @@ function import_block($op, $delta) { case "feed": $feed = db_fetch_object(db_query("SELECT * FROM feed WHERE fid = %d", $id)); $block["subject"] = $feed->title; - $block["content"] .= import_feed_block($feed) ."
". l(t("more"), "import/feed/$feed->fid", array("title" => t("View this feed's recent news."))) ."
"; + $block["content"] .= import_feed_block($feed) ."
". l(t("more"), "import/feed/$feed->fid", array("title" => t("View this feed's recent news."))) ."
"; break; case "bundle": $bundle = db_fetch_object(db_query("SELECT * FROM bundle WHERE bid = %d", $id)); $block["subject"] = $bundle->title; - $block["content"] .= import_bundle_block($bundle->attributes) ."
". l(t("more"), "import/bundle/$bundle->bid", array("title" => t("View this bundle's recent news."))) ."
"; + $block["content"] .= import_bundle_block($bundle->attributes) ."
". l(t("more"), "import/bundle/$bundle->bid", array("title" => t("View this bundle's recent news."))) ."
"; break; } @@ -157,7 +157,7 @@ function import_get_bundles($attributes = 0) { $result = db_query("SELECT * FROM bundle ORDER BY title"); while ($bundle = db_fetch_object($result)) { $block["bundle:$bundle->bid"]["subject"] = $bundle->title; - $block["bundle:$bundle->bid"]["content"] = import_bundle_block($bundle->attributes) ."
". + $block["bundle:$bundle->bid"]["content"] = import_bundle_block($bundle->attributes) ."
". l(t("more"), "import/bundle/$bundle->bid", array("title" => t("View this bundle's recent news."))) ."
"; $block["bundle:$bundle->bid"]["info"] = "$bundle->title bundle"; @@ -173,7 +173,7 @@ function import_get_feeds($attributes = 0) { $result = db_query("SELECT * FROM feed ORDER BY fid"); while ($feed = db_fetch_object($result)) { $block["feed:$feed->fid"]["subject"] = $feed->title; - $block["feed:$feed->fid"]["content"] = import_feed_block($feed) ."
". + $block["feed:$feed->fid"]["content"] = import_feed_block($feed) ."
". l(t("more"), "import/feed/$feed->fid", array("title" => t("View this feed's recent news."))) ."
"; $block["feed:$feed->fid"]["info"] = "$feed->title feed"; @@ -574,7 +574,7 @@ function import_page_info() { $links[] = l(t("administer news feeds"), "admin/syndication/news", array("title" => t("View the news feed administrative pages."))); } - return "
". theme("links", $links) ."
"; + return "
". theme("links", $links) ."
"; } function import_page_last() { @@ -590,7 +590,7 @@ function import_page_last() { $links[] = l(t("feed"), "import/feed/$item->fid", array("title" => t("Read more syndicated news from this feed."))); if ($item->link) { - $output .= "link\">$item->title · ". l($item->ftitle, "import/feed/$item->fid", array("title" => t("View more information about this feed."))) ."". theme("links", $links) ."\n"; + $output .= "link\">$item->title · ". l($item->ftitle, "import/feed/$item->fid", array("title" => t("View more information about this feed."))) ."". theme("links", $links) ."\n"; } if ($item->description) { @@ -614,7 +614,7 @@ function import_page_feed($fid) { $header .= "

". t("Website") .":

link\">$feed->link

"; $header .= "

". t("Description") .":

$feed->description

"; - $header .= "

". t("Last update") .":

". format_interval(time() - $feed->timestamp) ." ". t("ago") ." url\">\"\"

\n"; + $header .= "

". t("Last update") .":

". format_interval(time() - $feed->timestamp) ." ". t("ago") ." url\">\"\"

\n"; $result = db_query_range("SELECT * FROM item WHERE fid = %d ORDER BY iid DESC", $fid, 0, variable_get("import_page_limit", 75)); @@ -626,7 +626,7 @@ function import_page_feed($fid) { $links[] = "link\">". t("visit") .""; if ($item->link) { - $output .= "link\">$item->title". theme("links", $links) ."\n"; + $output .= "link\">$item->title". theme("links", $links) ."\n"; } if ($item->description) { $output .= "
$item->description

"; @@ -664,7 +664,7 @@ function import_page_bundle($bid) { $links[] = "link\">". t("visit") .""; if ($item->link) { - $output .= "link\">$item->title · ". l($item->ftitle, "import/feed/$item->fid", array("title" => t("View more information about this feed."))) ."". theme("links", $links) ."\n"; + $output .= "link\">$item->title · ". l($item->ftitle, "import/feed/$item->fid", array("title" => t("View more information about this feed."))) ."". theme("links", $links) ."\n"; } if ($item->description) { @@ -693,7 +693,7 @@ function import_page_sources() { $output .= "
$feed->description

"; } - $output .= l("", "import/fd", array("title" => t("View the list of syndicated web sites in XML format."))) ."
"; + $output .= "
" . l("", "import/fd", array("title" => t("View the list of syndicated web sites in XML format."))) . "

"; theme("header"); theme("box", t("News feeds"), import_page_info()); @@ -740,7 +740,7 @@ function import_page_blocks($blocks) { for ($t = 0; $t < 3; $t++) { $i = 1; - print " \n"; + print " \n"; while ($block = each($blocks)) { theme("box", $block["value"]["subject"], $block["value"]["content"]); if ($i == ceil(count($blocks) / 3)) { -- cgit v1.2.3