/[svn]/web/trunk/www.linuxsampler.org/news_internal.php
ViewVC logotype

Diff of /web/trunk/www.linuxsampler.org/news_internal.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2156 by schoenebeck, Fri Oct 12 14:42:58 2007 UTC revision 2157 by schoenebeck, Sun Jan 16 19:00:42 2011 UTC
# Line 24  function startElement($parser, $name, $a Line 24  function startElement($parser, $name, $a
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") {
# Line 47  function endElement($parser, $name) { Line 53  function endElement($parser, $name) {
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") {

Legend:
Removed from v.2156  
changed lines
  Added in v.2157

  ViewVC Help
Powered by ViewVC