$propbag->add('description', PLUGIN_REMOTERSS_BLAHBLAH);
$propbag->add('stackable', true);
$propbag->add('author', 'Udo Gerhards, Richard Thomas Harrison');
- $propbag->add('version', '1.1');
+ $propbag->add('version', '1.2');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
$dateformat = '%A, %B %e. %Y';
}
- if (!$target || strlen($target) < 1) {
- $target = '_blank';
- }
-
if (!$cachetime || !is_numeric($cachetime)) {
$cachetime = 10800; // 3 hours in seconds
}
if (empty($item['title'])) {
continue;
}
- $content .= '<a href="' . $this->decode($item['link']) . '" target="'.$target.'">';
+ $content .= '<a href="' . $this->decode($item['link']) . '" ' . (!empty($target) ? 'target="'.$target.'"' : '') . '>';
if (!empty($bulletimg)) {
$content .= '<img src="' . $bulletimg . '" border="0" alt="*" /> ';
}
}
if ($blogrolling === true && (!empty($text) || !empty($url))) {
- $content .= '• <a href="' . $url . '" target="' . $target . '" title="' . $text . '">' . htmlspecialchars($text) . "</a>";
+ $content .= '• <a href="' . $url . (!empty($target) ? 'target="'.$target.'"' : '') . ' title="' . $text . '">' . htmlspecialchars($text) . "</a>";
if (isset($item['isRecent'])) {
$content .= ' <span style="color: Red; ">*</span>';
}
$content .= "<br />";
} elseif ((isset($item['type']) && $item['type'] == 'url') || !empty($url)) {
- $content .= '• <a href="' .$url . '" target="' . $target . '" title="' . $text . '">' . $text . "</a>";
+ $content .= '• <a href="' .$url . (!empty($target) ? 'target="'.$target.'"' : '') . ' title="' . $text . '">' . $text . "</a>";
$content .= "<br />";
}
++$i;