24 |
if ($name == "entry") { |
if ($name == "entry") { |
25 |
if (count($attribs) && isset($attribs["date"])) { |
if (count($attribs) && isset($attribs["date"])) { |
26 |
$d = $attribs["date"]; |
$d = $attribs["date"]; |
27 |
echo "<div class=\"news\">"; |
// pack into a (single cell) table so (flaoting) images wont vertically overlap out of the news block border |
28 |
|
echo "<div class=\"news\"><table><tr><td>"; |
29 |
echo "<span class=\"news_date\">$d</span> "; |
echo "<span class=\"news_date\">$d</span> "; |
30 |
} else echo "<b>???</b> "; |
} else echo "<b>???</b> "; |
31 |
} else if ($name == "link") { |
} else if ($name == "link") { |
32 |
$current_link_ref = (isset($attribs["ref"])) ? $attribs["ref"] : ""; |
$current_link_ref = (isset($attribs["ref"])) ? $attribs["ref"] : ""; |
33 |
echo "<a href=\"$current_link_ref\">"; |
echo "<a href=\"$current_link_ref\">"; |
34 |
|
if (count($attribs) && isset($attribs["img"])) { |
35 |
|
$pic = $attribs["img"]); |
36 |
|
echo "<img src=\"$pic\" style=\"float: left; margin: 4px;\">"; |
37 |
|
$current_tag_body_is_empty = false; |
38 |
|
} |
39 |
} else if ($name == "list") { |
} else if ($name == "list") { |
40 |
echo "<ul class=\"news\">"; |
echo "<ul class=\"news\">"; |
41 |
} else if ($name == "li") { |
} else if ($name == "li") { |
53 |
|
|
54 |
array_pop($current_tag); |
array_pop($current_tag); |
55 |
|
|
56 |
if ($name == "entry") { echo "</div>\n"; |
if ($name == "entry") { |
57 |
|
echo "</td></tr></table></div>\n"; |
58 |
if ($max_items > 0) $max_items--; |
if ($max_items > 0) $max_items--; |
59 |
} |
} |
60 |
else if ($name == "link") { |
else if ($name == "link") { |