From: Andrew Dolgov Date: Wed, 7 Sep 2005 07:19:14 +0000 (+0100) Subject: big interface overhaul, new logo X-Git-Tag: 1.0.3~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e828e31e83e8d487ad02fd9831690b8d113218fe;p=tt-rss.git big interface overhaul, new logo --- diff --git a/backend.php b/backend.php index bb8f8653..a9a66142 100644 --- a/backend.php +++ b/backend.php @@ -40,7 +40,9 @@ $actid = $_GET["actid"]; - print ""; +// print "
"; + + print ""; +// print ""; $icon_file = ICONS_DIR . "/$feed_id.ico"; if ($subop != "piggie") { if (file_exists($icon_file) && filesize($icon_file) > 0) { - $feed_icon = ""; + $feed_icon = ""; } else { - $feed_icon = " "; + $feed_icon = ""; } } else { $feed_icon = "$feed"; - if (ENABLE_FEED_ICONS) { + +/* if (ENABLE_FEED_ICONS) { print ""; } + print ""; print ""; - print ""; - ++$lnum; - } + print ""; */ + + print "
  • "; + if (ENABLE_FEED_ICONS) { + print "$feed_icon"; + } + print "$feed"; -// print "
  • "; + if ($unread > 0) { + print " +  ($unread)"; + } + + print ""; -// print ""; + ++$lnum; + } print "
    $feed_icon$feed"; print "$unread / "; print "$total"; print "
    -// Update all feeds
     "; -// print "
    "; print "
    $total_unread
    "; print "
    $actid
    "; -/* - print "

    All feeds: - Update"; - - print " Mark as read

    "; - - print "
    $total_unread
    "; -*/ - - - } @@ -226,7 +226,23 @@ $feed_icon = " "; } - print ""; + + print "
    "; + + print " + "; + print " + "; + + print "
    Title:" . $line["title"] . "
    Link:" . $line["link"] . "
    "; + + print "
    " . $feed_icon . "
    "; + print "
    " . $line["content"] . "
    "; + + print ""; + +/* print ""; print " @@ -244,7 +260,7 @@ colspan=\"2\" width=\"100%\">" . $line["content"] . ""; - print "
    Title: $feed_icon
    "; + print ""; */ } @@ -629,26 +645,30 @@ if ($subop == "edit") { print "Edit feed:  - Cancel  - Save"; + + "; } else { print " Selection:  - Edit  - Remove "; + + "; + if (ENABLE_PREFS_CATCHUP_UNCATCHUP) { print " - Mark as read  - Mark as unread "; + +  "; } print " - All feeds:  - Export OPML"; + All feeds: + "; } @@ -808,20 +828,29 @@ print "

    "; if ($subop == "edit") { - print "Edit feed:  - Cancel  - Save"; + print "Edit feed: + + "; } else { print " - Selection:  - Edit  - Remove "; + Selection: + + "; } } + if ($op == "error") { + print "

    "; + $msg = $_GET["msg"]; + print $msg; + print "
    "; + } + pg_close($link); ?> diff --git a/feedlist.js b/feedlist.js index dd0d0491..5ea9fffe 100644 --- a/feedlist.js +++ b/feedlist.js @@ -74,11 +74,12 @@ function viewfeed(feed, skip, subop, doc) { headlines_frame.location.href = query + "&addheader=true"; - cleanSelected("feedsList"); + cleanSelectedList("feedList"); + var feedr = document.getElementById("FEEDR-" + feed); if (feedr) { feedr.className = feedr.className + "Selected"; - } + } disableContainerChildren("headlinesToolbar", false, doc); diff --git a/functions.js b/functions.js index 7faf4287..ebb1bb8f 100644 --- a/functions.js +++ b/functions.js @@ -124,10 +124,18 @@ function hotkey_handler(e) { } -function cleanSelected(element) { +function cleanSelectedList(element) { var content = document.getElementById(element); - var rows = new Array(); + for (i = 0; i < content.childNodes.length; i++) { + content.childNodes[i].className = content.childNodes[i].className.replace("Selected", ""); + } + +} + + +function cleanSelected(element) { + var content = document.getElementById(element); for (i = 0; i < content.rows.length; i++) { content.rows[i].className = content.rows[i].className.replace("Selected", ""); @@ -247,4 +255,12 @@ function disableContainerChildren(id, disable, doc) { } +function gotoPreferences() { + document.location.href = "prefs.php"; +} + +function gotoMain() { + document.location.href = "tt-rss.php"; +} + diff --git a/images/blank_icon.png b/images/blank_icon.png new file mode 100644 index 00000000..a2f10731 Binary files /dev/null and b/images/blank_icon.png differ diff --git a/images/ttrss_logo.png b/images/ttrss_logo.png new file mode 100644 index 00000000..0cfde81c Binary files /dev/null and b/images/ttrss_logo.png differ diff --git a/images/ttrss_logo.svg b/images/ttrss_logo.svg new file mode 100644 index 00000000..0291cf93 --- /dev/null +++ b/images/ttrss_logo.svg @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + tiny tiny rss + + diff --git a/images/vgrad_light.png b/images/vgrad_light.png new file mode 100644 index 00000000..31322e6a Binary files /dev/null and b/images/vgrad_light.png differ diff --git a/images/vgrad_light_rev.png b/images/vgrad_light_rev.png new file mode 100644 index 00000000..36f0b559 Binary files /dev/null and b/images/vgrad_light_rev.png differ diff --git a/images/vgrad_light_rev2.png b/images/vgrad_light_rev2.png new file mode 100644 index 00000000..d69a31c4 Binary files /dev/null and b/images/vgrad_light_rev2.png differ diff --git a/prefs.php b/prefs.php index 52eedc6d..5f0adf7d 100644 --- a/prefs.php +++ b/prefs.php @@ -1,6 +1,6 @@ - Tiny Tiny RSS + Tiny Tiny RSS : Preferences @@ -12,27 +12,26 @@ - +
    - - - + - -
    - Preferences + + logo
    - -
     Close
    -
    - Return to main - + + + + +
    +
    +

    Feed Configuration

     
    -
    Expand section > @@ -61,7 +60,7 @@
    +