Example #1
0
function fof_view_title($feed = NULL, $what = "new", $when = NULL, $start = NULL, $limit = NULL)
{
    $title = "feed on feeds";
    if (!is_null($when) && $when != "") {
        $title .= ' - ' . $when;
    }
    if (!is_null($feed) && $feed != "") {
        $r = fof_feed_row($feed);
        $title .= ' - ' . htmlspecialchars($r['title']);
    }
    if (is_numeric($start)) {
        if (!is_numeric($limit)) {
            $limit = FOF_HOWMANY;
        }
        $title .= " - items {$start} to " . ($start + $limit);
    }
    if ($what != "all") {
        $title .= ' - new items';
    } else {
        $title .= ' - all items';
    }
    return $title;
}
Example #2
0
function fof_view_title($feed = NULL, $what = "new", $when = NULL, $start = NULL, $limit = NULL)
{
    $title = "";
    $pieces = explode("::", $_COOKIE["mc_info"]);
    $user_name = $pieces[0];
    $title = "<i>[" . $user_name . ":" . current_user() . "]</i> - ";
    $title .= "MonkeyChow";
    if (!is_null($when) && $when != "") {
        $title .= ' - ' . $when;
    }
    if (!is_null($feed) && $feed != "") {
        $r = fof_feed_row($feed);
        $title .= ' - <a href="' . $r['link'] . '" title="' . htmlspecialchars($r['feed_description']) . '">' . htmlspecialchars($r['title']) . '</a> ';
    }
    if (is_numeric($start)) {
        if (!is_numeric($limit)) {
            $limit = FOF_HOWMANY;
        }
        $title .= " - items {$start} to " . ($start + $limit);
    }
    if ($what == "published") {
        $title .= ' - ' . _("published items");
    } else {
        if ($what == "search") {
            $title .= ' - ' . _("custom search");
        } else {
            if ($what != "all") {
                $title .= ' - ' . _("new items");
            } else {
                $title .= ' - ' . _("all items");
            }
        }
    }
    return $title;
}