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.")));
}
// external link
...
...
@@ -503,7 +503,7 @@ function import_admin() {
}
functionimport_page_info(){
global$theme;
$links[]=l(t("latest news"),"import",array("title"=>t("Read the latest news from syndicated websites.")));
$links[]=l(t("news by source"),"import/feeds",array("title"=>t("View the latest headlines sorted by source.")));
...
...
@@ -514,11 +514,11 @@ function import_page_info() {
$links[]=l(t("administer news feeds"),"admin/import",array("title"=>t("View the news feed administrative pages.")));
$result=db_query("SELECT i.*, f.title AS ftitle, f.link AS flink FROM item i LEFT JOIN feed f ON i.fid = f.fid ORDER BY i.iid DESC LIMIT ".variable_get("import_page_limit",75));
...
...
@@ -530,7 +530,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.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".$theme->links($links)."</td></tr>\n";
$output.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".theme("links",$links)."</td></tr>\n";
}
if($item->description){
...
...
@@ -541,20 +541,20 @@ function import_page_last() {
}
$output.="</table>\n";
$theme->header();
$theme->box(t("News feeds"),import_page_info());
$theme->box(t("Latest news"),$output);
$theme->footer();
theme("header");
theme("box",t("News feeds"),import_page_info());
theme("box",t("Latest news"),$output);
theme("footer");
}
functionimport_page_feed($fid){
global$theme;
$feed=db_fetch_object(db_query("SELECT * FROM feed WHERE fid = '%s'",$fid));
$output.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".$theme->links($links)."</td></tr>\n";
$output.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".theme("links",$links)."</td></tr>\n";
}
if($item->description){
...
...
@@ -615,16 +615,16 @@ function import_page_bundle($bid) {
}
$output.="</table>\n";
$theme->header();
$theme->box(t("News feeds"),import_page_info());
$theme->box($bundle->title,$header);
$theme->box(t("Latest news"),$output);
$theme->footer();
theme("header");
theme("box",t("News feeds"),import_page_info());
theme("box",$bundle->title,$header);
theme("box",t("Latest news"),$output);
theme("footer");
}
functionimport_page_sources(){
global$theme;
$result=db_query("SELECT * FROM feed ORDER BY title");
...
...
@@ -633,12 +633,12 @@ function import_page_sources() {
$output.=l("<img src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />","import/fd",array("title"=>t("View the list of syndicated websites in XML format.")))."<br />";
$output.=l("<img src=\"".theme("image","xml.gif")."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />","import/fd",array("title"=>t("View the list of syndicated websites in XML format.")))."<br />";
$theme->header();
$theme->box(t("News feeds"),import_page_info());
$theme->box(t("News sources"),$output);
$theme->footer();
theme("header");
theme("box",t("News feeds"),import_page_info());
theme("box",t("News sources"),$output);
theme("footer");
}
functionimport_page_fd(){
...
...
@@ -671,10 +671,10 @@ function import_page_feeds() {
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.")));
}
// external link
...
...
@@ -503,7 +503,7 @@ function import_admin() {
}
functionimport_page_info(){
global$theme;
$links[]=l(t("latest news"),"import",array("title"=>t("Read the latest news from syndicated websites.")));
$links[]=l(t("news by source"),"import/feeds",array("title"=>t("View the latest headlines sorted by source.")));
...
...
@@ -514,11 +514,11 @@ function import_page_info() {
$links[]=l(t("administer news feeds"),"admin/import",array("title"=>t("View the news feed administrative pages.")));
$result=db_query("SELECT i.*, f.title AS ftitle, f.link AS flink FROM item i LEFT JOIN feed f ON i.fid = f.fid ORDER BY i.iid DESC LIMIT ".variable_get("import_page_limit",75));
...
...
@@ -530,7 +530,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.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".$theme->links($links)."</td></tr>\n";
$output.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".theme("links",$links)."</td></tr>\n";
}
if($item->description){
...
...
@@ -541,20 +541,20 @@ function import_page_last() {
}
$output.="</table>\n";
$theme->header();
$theme->box(t("News feeds"),import_page_info());
$theme->box(t("Latest news"),$output);
$theme->footer();
theme("header");
theme("box",t("News feeds"),import_page_info());
theme("box",t("Latest news"),$output);
theme("footer");
}
functionimport_page_feed($fid){
global$theme;
$feed=db_fetch_object(db_query("SELECT * FROM feed WHERE fid = '%s'",$fid));
$output.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".$theme->links($links)."</td></tr>\n";
$output.="<tr><td><a href=\"$item->link\">$item->title</a> · ".l($item->ftitle,"import/feed/$item->fid",array("title"=>t("View more information about this feed.")))."</td><td align=\"right\" nowrap=\"nowrap\" valign=\"top\">".theme("links",$links)."</td></tr>\n";
}
if($item->description){
...
...
@@ -615,16 +615,16 @@ function import_page_bundle($bid) {
}
$output.="</table>\n";
$theme->header();
$theme->box(t("News feeds"),import_page_info());
$theme->box($bundle->title,$header);
$theme->box(t("Latest news"),$output);
$theme->footer();
theme("header");
theme("box",t("News feeds"),import_page_info());
theme("box",$bundle->title,$header);
theme("box",t("Latest news"),$output);
theme("footer");
}
functionimport_page_sources(){
global$theme;
$result=db_query("SELECT * FROM feed ORDER BY title");
...
...
@@ -633,12 +633,12 @@ function import_page_sources() {
$output.=l("<img src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />","import/fd",array("title"=>t("View the list of syndicated websites in XML format.")))."<br />";
$output.=l("<img src=\"".theme("image","xml.gif")."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />","import/fd",array("title"=>t("View the list of syndicated websites in XML format.")))."<br />";
$theme->header();
$theme->box(t("News feeds"),import_page_info());
$theme->box(t("News sources"),$output);
$theme->footer();
theme("header");
theme("box",t("News feeds"),import_page_info());
theme("box",t("News sources"),$output);
theme("footer");
}
functionimport_page_fd(){
...
...
@@ -671,10 +671,10 @@ function import_page_feeds() {
printl("<img align=\"right\" src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed/$account->uid",array("title"=>t("View the XML version of %username's blog",array("%username"=>$account->name))));
printl("<img align=\"right\" src=\"".theme("image","xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed/$account->uid",array("title"=>t("View the XML version of %username's blog",array("%username"=>$account->name))));
}
functionblog_page_last(){
global$user,$theme;
global$user;
$result=pager_query("SELECT nid FROM node WHERE type = 'blog' AND status = 1 ORDER BY nid DESC",variable_get("default_nodes_main",10));
$output.=l("<img align=\"right\" src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed",array("title"=>t("Read the XML version of all blogs.")));
$output.=l("<img align=\"right\" src=\"".theme("image","xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed",array("title"=>t("Read the XML version of all blogs.")));
return$output;
}
...
...
@@ -220,7 +220,7 @@ function blog_form(&$node, &$help, &$error) {
printl("<img align=\"right\" src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed/$account->uid",array("title"=>t("View the XML version of %username's blog",array("%username"=>$account->name))));
printl("<img align=\"right\" src=\"".theme("image","xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed/$account->uid",array("title"=>t("View the XML version of %username's blog",array("%username"=>$account->name))));
}
functionblog_page_last(){
global$user,$theme;
global$user;
$result=pager_query("SELECT nid FROM node WHERE type = 'blog' AND status = 1 ORDER BY nid DESC",variable_get("default_nodes_main",10));
$output.=l("<img align=\"right\" src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed",array("title"=>t("Read the XML version of all blogs.")));
$output.=l("<img align=\"right\" src=\"".theme("image","xml.gif")."\" width=\"36\" height=\"14\" border=\"0\" alt=\"\" />","blog/feed",array("title"=>t("Read the XML version of all blogs.")));
return$output;
}
...
...
@@ -220,7 +220,7 @@ function blog_form(&$node, &$help, &$error) {