| 4 |
$link_count = count($links); |
$link_count = count($links); |
| 5 |
$current = 1; |
$current = 1; |
| 6 |
foreach ( $links as $lnk ) { |
foreach ( $links as $lnk ) { |
| 7 |
// Print the link |
// Print the link |
| 8 |
if (strstr($lnk , ' comment')) { |
if ($lnk['title'] == 'Add new comment') { |
| 9 |
print "<img alt=\"\" src=" . $path . "/images/comment.gif>"; |
print "<img alt=\"\" src=" . $path . "/images/comment.gif>"; |
| 10 |
} |
} |
| 11 |
if (strstr($lnk , 'read more')) { |
if ($lnk['title'] == 'Read more') { |
| 12 |
print "<img alt=\"\" src=" . $path . "/images/more.gif>"; |
print "<img alt=\"\" src=" . $path . "/images/more.gif>"; |
| 13 |
} |
} |
| 14 |
print $lnk; |
print l($lnk['title'], $lnk['href'], |
| 15 |
|
$lnk['attributes'], $lnk['query'], |
| 16 |
|
$lnk['fragment'], FALSE, $lnk['html']); |
| 17 |
// Only print the delimiter if not the last link |
// Only print the delimiter if not the last link |
| 18 |
if ( $current < $link_count ) { |
if ( $current < $link_count ) { |
| 19 |
print $delimiter; |
print $delimiter; |