|
From: Sebastian D. <se...@us...> - 2006-03-06 15:40:07
|
Update of /cvsroot/wackofork/wiki/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24482 Modified Files: feed.php Log Message: - ->Link() verwendet Index: feed.php =================================================================== RCS file: /cvsroot/wackofork/wiki/actions/feed.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** feed.php 6 Mar 2006 00:12:12 -0000 1.2 --- feed.php 6 Mar 2006 15:39:57 -0000 1.3 *************** *** 64,82 **** #$max=5; #$time="yes"; if (!$url) ! echo "<i>Please specify a Feed with the Parameter url. (e.g. {{feed url=\"http://del.icio.us/rss/seebi/ldap+client\"}}</i><br />\n"; else { $rss = fetch_rss( $url ); if (!$rss) ! echo "<i>Could not load or parse feed $url.<i><br />\n"; else { ! if ($divclass) # the new div-way ! { ! echo "<div class='$divclass'><div class='inner'>\n"; ! if ($title!="no") ! { if ($title!="") echo "<div class='legend'>$title</div>\n"; --- 64,89 ---- #$max=5; #$time="yes"; + $rss = fetch_rss( $url ); + + if ($divclass) # the new div-way + { + echo "<div class='$divclass'><div class='inner'>\n"; + } + else # the taditional fieldset-table-way + { + echo "<fieldset>"; + } if (!$url) ! echo "<p><i>Please specify a Feed with the Parameter url. (e.g. {{feed url=\"http://del.icio.us/rss/seebi/ldap+client\"}}</i></p>\n"; else { $rss = fetch_rss( $url ); if (!$rss) ! echo "<p><i>Could not load or parse feed $url.</i></p>\n"; else { ! if ($title!="no") ! if ($divclass) # the new div-way if ($title!="") echo "<div class='legend'>$title</div>\n"; *************** *** 87,102 **** echo "</div>\n"; } ! } ! } ! else # the taditional fieldset-table-way ! { ! echo "<fieldset>"; ! if ($title!="no") { ! echo "<legend>Feed Title: <strong><a target=\"_blank\" class=\"outerlink\" href=\"" . $rss->channel['link'] . "\">" . $rss->channel['title'] ."</a></strong>"; if (($max)&&($max>0)) echo " (last $max items)"; echo "</legend>\n"; } - } $current=1; --- 94,103 ---- echo "</div>\n"; } ! else { ! echo "<legend>".$this->GetResourceValue('FeedTitle').": <strong>".$this->Link($rss->channel['link'], "", $rss->channel['title'], 1, 1)."</strong>"; if (($max)&&($max>0)) echo " (last $max items)"; echo "</legend>\n"; } $current=1; *************** *** 124,128 **** # headline ! echo "<a target=\"_blank\" href=\"$href\" class=\"outerlink\">$title</a>"; if (($time == "yes")&&($date!=0)) --- 125,130 ---- # headline ! #echo "<a target=\"_blank\" href=\"$href\" class=\"outerlink\">$title</a>"; ! echo $this->Link($href, "", $title, 1, 1); if (($time == "yes")&&($date!=0)) *************** *** 139,149 **** $current++; } - - if ($divclass) # the new div-way - echo "</div></div>\n"; - else # the taditional fieldset-table-way - echo "<fieldset>"; } } ?> --- 141,151 ---- $current++; } } } + if ($divclass) # the new div-way + echo "</div></div>\n"; + else # the taditional fieldset-table-way + echo "</fieldset>"; + ?> |