db_query($link, "COMMIT");
- if (file_exists(ICONS_DIR . "/$id.ico")) {
+/* if (file_exists(ICONS_DIR . "/$id.ico")) {
unlink(ICONS_DIR . "/$id.ico");
- }
+ } */
ccache_remove($link, $id, $owner_uid);
<input class=\"button\"
id=\"fadd_submit_btn\" disabled=\"true\"
type=\"submit\" onclick=\"return subscribeToFeed()\" value=\"".__('Subscribe')."\">
+ <input class=\"button\"
+ type=\"submit\" onclick=\"return browseFeeds()\" value=\"".__('More feeds')."\">
+
<input class=\"button\"
type=\"submit\" onclick=\"return closeInfoBox()\"
value=\"".__('Cancel')."\"></div>";
type=\"submit\" id=\"subscribe_to_feed_btn\"
class=\"button\" value=\"".__('Subscribe to feed')."\">";
- if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
+/* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
print " <input type=\"submit\" class=\"button\"
id=\"top25_feeds_btn\"
onclick=\"javascript:browseFeeds()\" value=\"".__('More feeds')."\">";
- }
+ } */
$feeds_sort = db_escape_string($_REQUEST["sort"]);
} else if ($mode == 2) {
$feed_url = $line["feed_url"];
+
+ $icon_file = ICONS_DIR . "/" . $line["id"] . ".ico";
+ if (file_exists($icon_file) && filesize($icon_file) > 0) {
+ $feed_icon = "<img class=\"tinyFeedIcon\" src=\"" . ICONS_URL .
+ "/".$line["id"].".ico\">";
+ } else {
+ $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
+ }
+
$check_box = "<input onclick='toggleSelectListRow(this)' class='feedBrowseCB'
type=\"checkbox\" id=\"FBCHK-" . $line["id"] . "\">";
}
print "<li class='$class' id=\"FBROW-".$line["id"]."\">$check_box".
- $line["title"] . $site_url . "</li>";
+ "$feed_icon " . $line["title"] . $site_url . "</li>";
}
<div id="dispSwitch">
<a id="dispSwitchPrompt"
href="javascript:toggleTags()"><?php echo __("tag cloud") ?></a>
- <?php if (!SINGLE_USER_MODE && ENABLE_FEED_BROWSER) { ?>
- <br/>
- <a id="feedBrowserPrompt" onclick="return browseFeeds()" href="#"
- title="<?php echo __('More feeds...') ?>">+</a>
- <?php } ?>
</div>
<div id="feeds-frame"> </div>
</div>