フォーマットが選択されていません。
";
} else {
$i = 1;
foreach ($rss->items as $item) {
$title = $item['title'];
$titlecut =mb_strimwidth ($title, 0, 50, " ...", utf8);
$link = $item['link'];
$date = formattime ($item['dc']['date'], $dateformat );
// linktype set
$acodebase = "";
} else if ($linkformat=="wo") {
$acode = $acodebase." onclick=\"window.open(this.href,''); return false;\">";
} else if ($linkformat=="external") {
$acode = $acodebase." rel=\"external\">";
}
// htmltype set
if ($htmlformat=="ul"){
$entrys .= "$acode$titlecut$date\n";
} else if ($htmlformat=="dl"){
$entrys .= "$date$acode$title\n";
}
$i++;
if($i>$soe) break;
}
if ($htmlformat=="ul") {
$fhtml .= "\n";
$fhtml .= $entrys;
$fhtml .= "
\n";
} else if ($htmlformat=="dl") {
$fhtml .= "\n";
$fhtml .= $entrys;
$fhtml .= "
\n";
}
}
return $fhtml;
}
function formattitle ( $title, $siteurl, $tmark, $linkformat ) {
$acodebase = "";
} else if ($linkformat=="wo") {
$acode = $acodebase." onclick=\"window.open(this.href,''); return false;\">";
} else if ($linkformat=="external") {
$acode = $acodebase." rel=\"external\">";
}
$thtml = "<".$tmark." class=\"sitename\">".$acode.$title."".$tmark.">\n";
return $thtml;
}
?>