diff --git a/functions.php b/functions.php index ace753b67..cf78cdf30 100644 --- a/functions.php +++ b/functions.php @@ -1592,10 +1592,8 @@ if (!$icon_file) $icon_file = getFeedIcon($feed_id); - $theme_path = get_user_theme_path($link); - - if ($theme_path && strpos($icon_file, "images") !== false) { - $icon_file = $theme_path . $icon_file; + if (strpos($icon_file, "images") !== false) { + $icon_file = theme_image($link, $icon_file); } if (file_exists($icon_file) && filesize($icon_file) > 0) { @@ -1993,6 +1991,16 @@ } } + function theme_image($link, $filename) { + $theme_path = get_user_theme_path($link); + + if ($theme_path && is_file($theme_path.$filename)) { + return $theme_path.$filename; + } else { + return $filename; + } + } + function get_user_theme($link) { if (get_schema_version($link) >= 63) { @@ -4657,8 +4665,6 @@ $result = db_query($link, "SELECT rtl_content, always_display_enclosures FROM ttrss_feeds WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); - $theme_path = get_user_theme_path($link); - if (db_num_rows($result) == 1) { $rtl_content = sql_bool_to_bool(db_fetch_result($result, 0, "rtl_content")); $always_display_enclosures = sql_bool_to_bool(db_fetch_result($result, 0, "always_display_enclosures")); @@ -4757,22 +4763,23 @@ if (!$entry_comments) $entry_comments = " "; # placeholder print "
- Tags "; + Tags "; if (!$zoom_mode) { print "$tags_str (+)"; - print "Zoom"; $note_escaped = htmlspecialchars($line['note'], ENT_QUOTES); - print "PubNote"; @@ -5053,8 +5060,6 @@ $fresh_intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE") * 60 * 60; - $theme_path = get_user_theme_path($link); - while ($line = db_fetch_assoc($result)) { $class = ($lnum % 2) ? "even" : "odd"; @@ -5084,8 +5089,8 @@ if (sql_bool_to_bool($line["unread"]) && time() - strtotime($line["updated_noms"]) < $fresh_intl) { - $update_pic = "\"Fresh\""; + $update_pic = "\"Fresh\""; } if ($line["unread"] == "t" || $line["unread"] == "1") { @@ -5097,21 +5102,25 @@ } if ($line["marked"] == "t" || $line["marked"] == "1") { - $marked_pic = "\"Unstar"; + $marked_pic = "\"Unstar"; } else { - $marked_pic = "\"Star"; + $marked_pic = "\"Star"; } if ($line["published"] == "t" || $line["published"] == "1") { - $published_pic = "\"Unpublish"; } else { - $published_pic = "\"Publish"; } @@ -5503,7 +5512,8 @@ $tags_str = format_tags_string(get_article_tags($link, $id), $id); print " - Tags + Tags $tags_str (+)"; diff --git a/prefs.php b/prefs.php index 9d2d0a846..7d1ff3379 100644 --- a/prefs.php +++ b/prefs.php @@ -94,7 +94,7 @@ |
- Tiny Tiny RSS + Tiny Tiny RSS
diff --git a/themes/compact/images/archive.png b/themes/compact/images/archive.png deleted file mode 100755 index 6edd2da33..000000000 Binary files a/themes/compact/images/archive.png and /dev/null differ diff --git a/themes/compact/images/art-pub-note.png b/themes/compact/images/art-pub-note.png deleted file mode 100755 index e04832676..000000000 Binary files a/themes/compact/images/art-pub-note.png and /dev/null differ diff --git a/themes/compact/images/art-zoom.png b/themes/compact/images/art-zoom.png deleted file mode 100755 index 6311b3130..000000000 Binary files a/themes/compact/images/art-zoom.png and /dev/null differ diff --git a/themes/compact/images/fresh.png b/themes/compact/images/fresh.png deleted file mode 100755 index b6040aa9c..000000000 Binary files a/themes/compact/images/fresh.png and /dev/null differ diff --git a/themes/compact/images/fresh_sign.png b/themes/compact/images/fresh_sign.png deleted file mode 100755 index 6ec38eeb6..000000000 Binary files a/themes/compact/images/fresh_sign.png and /dev/null differ diff --git a/themes/compact/images/grad_1.png b/themes/compact/images/grad_1.png deleted file mode 100644 index 1a25a785a..000000000 Binary files a/themes/compact/images/grad_1.png and /dev/null differ diff --git a/themes/compact/images/label.png b/themes/compact/images/label.png deleted file mode 100644 index e27d0c537..000000000 Binary files a/themes/compact/images/label.png and /dev/null differ diff --git a/themes/compact/images/mark_set.png b/themes/compact/images/mark_set.png deleted file mode 100644 index b35655c85..000000000 Binary files a/themes/compact/images/mark_set.png and /dev/null differ diff --git a/themes/compact/images/mark_unset.png b/themes/compact/images/mark_unset.png deleted file mode 100644 index bf9059a32..000000000 Binary files a/themes/compact/images/mark_unset.png and /dev/null differ diff --git a/themes/compact/images/pub_set.png b/themes/compact/images/pub_set.png deleted file mode 100644 index 1aff094fd..000000000 Binary files a/themes/compact/images/pub_set.png and /dev/null differ diff --git a/themes/compact/images/pub_unset.png b/themes/compact/images/pub_unset.png deleted file mode 100644 index 14609dff7..000000000 Binary files a/themes/compact/images/pub_unset.png and /dev/null differ diff --git a/themes/compact/images/resize_handle_horiz.png b/themes/compact/images/resize_handle_horiz.png deleted file mode 100644 index a2e347e3d..000000000 Binary files a/themes/compact/images/resize_handle_horiz.png and /dev/null differ diff --git a/themes/compact/images/resize_horiz.png b/themes/compact/images/resize_horiz.png deleted file mode 100644 index cbf190971..000000000 Binary files a/themes/compact/images/resize_horiz.png and /dev/null differ diff --git a/themes/compact/images/tag.png b/themes/compact/images/tag.png deleted file mode 100644 index 5415949ee..000000000 Binary files a/themes/compact/images/tag.png and /dev/null differ diff --git a/themes/compact/images/ttrss_logo.png b/themes/compact/images/ttrss_logo.png deleted file mode 100644 index 2cedc35ed..000000000 Binary files a/themes/compact/images/ttrss_logo.png and /dev/null differ diff --git a/themes/compact/images/ttrss_logo.svg b/themes/compact/images/ttrss_logo.svg deleted file mode 100644 index f2dabbc61..000000000 --- a/themes/compact/images/ttrss_logo.svg +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - tiny tiny - rss - - diff --git a/themes/graycube/images/archive.png b/themes/graycube/images/archive.png deleted file mode 100755 index 6edd2da33..000000000 Binary files a/themes/graycube/images/archive.png and /dev/null differ diff --git a/themes/graycube/images/art-pub-note.png b/themes/graycube/images/art-pub-note.png deleted file mode 100755 index e04832676..000000000 Binary files a/themes/graycube/images/art-pub-note.png and /dev/null differ diff --git a/themes/graycube/images/art-zoom.png b/themes/graycube/images/art-zoom.png deleted file mode 100755 index 6311b3130..000000000 Binary files a/themes/graycube/images/art-zoom.png and /dev/null differ diff --git a/themes/graycube/images/fresh.png b/themes/graycube/images/fresh.png deleted file mode 100755 index b6040aa9c..000000000 Binary files a/themes/graycube/images/fresh.png and /dev/null differ diff --git a/themes/graycube/images/fresh_sign.png b/themes/graycube/images/fresh_sign.png deleted file mode 100755 index 6ec38eeb6..000000000 Binary files a/themes/graycube/images/fresh_sign.png and /dev/null differ diff --git a/themes/graycube/images/label.png b/themes/graycube/images/label.png deleted file mode 100644 index e27d0c537..000000000 Binary files a/themes/graycube/images/label.png and /dev/null differ diff --git a/themes/graycube/images/mark_set.png b/themes/graycube/images/mark_set.png deleted file mode 100644 index b35655c85..000000000 Binary files a/themes/graycube/images/mark_set.png and /dev/null differ diff --git a/themes/graycube/images/mark_unset.png b/themes/graycube/images/mark_unset.png deleted file mode 100644 index bf9059a32..000000000 Binary files a/themes/graycube/images/mark_unset.png and /dev/null differ diff --git a/themes/graycube/images/pub_set.png b/themes/graycube/images/pub_set.png deleted file mode 100644 index 1aff094fd..000000000 Binary files a/themes/graycube/images/pub_set.png and /dev/null differ diff --git a/themes/graycube/images/pub_unset.png b/themes/graycube/images/pub_unset.png deleted file mode 100644 index 14609dff7..000000000 Binary files a/themes/graycube/images/pub_unset.png and /dev/null differ diff --git a/themes/graycube/images/tag.png b/themes/graycube/images/tag.png deleted file mode 100644 index 5415949ee..000000000 Binary files a/themes/graycube/images/tag.png and /dev/null differ diff --git a/themes/old-skool/images/archive.png b/themes/old-skool/images/archive.png deleted file mode 100755 index 6edd2da33..000000000 Binary files a/themes/old-skool/images/archive.png and /dev/null differ diff --git a/themes/old-skool/images/art-pub-note.png b/themes/old-skool/images/art-pub-note.png deleted file mode 100755 index e04832676..000000000 Binary files a/themes/old-skool/images/art-pub-note.png and /dev/null differ diff --git a/themes/old-skool/images/art-zoom.png b/themes/old-skool/images/art-zoom.png deleted file mode 100755 index 6311b3130..000000000 Binary files a/themes/old-skool/images/art-zoom.png and /dev/null differ diff --git a/themes/old-skool/images/fresh.png b/themes/old-skool/images/fresh.png deleted file mode 100755 index b6040aa9c..000000000 Binary files a/themes/old-skool/images/fresh.png and /dev/null differ diff --git a/themes/old-skool/images/fresh_sign.png b/themes/old-skool/images/fresh_sign.png deleted file mode 100755 index 6ec38eeb6..000000000 Binary files a/themes/old-skool/images/fresh_sign.png and /dev/null differ diff --git a/themes/old-skool/images/label.png b/themes/old-skool/images/label.png deleted file mode 100644 index e27d0c537..000000000 Binary files a/themes/old-skool/images/label.png and /dev/null differ diff --git a/themes/old-skool/images/mark_set.png b/themes/old-skool/images/mark_set.png deleted file mode 100644 index b35655c85..000000000 Binary files a/themes/old-skool/images/mark_set.png and /dev/null differ diff --git a/themes/old-skool/images/mark_unset.png b/themes/old-skool/images/mark_unset.png deleted file mode 100644 index bf9059a32..000000000 Binary files a/themes/old-skool/images/mark_unset.png and /dev/null differ diff --git a/themes/old-skool/images/pub_set.png b/themes/old-skool/images/pub_set.png deleted file mode 100644 index 1aff094fd..000000000 Binary files a/themes/old-skool/images/pub_set.png and /dev/null differ diff --git a/themes/old-skool/images/pub_unset.png b/themes/old-skool/images/pub_unset.png deleted file mode 100644 index 14609dff7..000000000 Binary files a/themes/old-skool/images/pub_unset.png and /dev/null differ diff --git a/themes/old-skool/images/tag.png b/themes/old-skool/images/tag.png deleted file mode 100644 index 5415949ee..000000000 Binary files a/themes/old-skool/images/tag.png and /dev/null differ diff --git a/themes/triple-pane/images/archive.png b/themes/triple-pane/images/archive.png deleted file mode 100755 index 6edd2da33..000000000 Binary files a/themes/triple-pane/images/archive.png and /dev/null differ diff --git a/themes/triple-pane/images/art-pub-note.png b/themes/triple-pane/images/art-pub-note.png deleted file mode 100755 index e04832676..000000000 Binary files a/themes/triple-pane/images/art-pub-note.png and /dev/null differ diff --git a/themes/triple-pane/images/art-zoom.png b/themes/triple-pane/images/art-zoom.png deleted file mode 100755 index 6311b3130..000000000 Binary files a/themes/triple-pane/images/art-zoom.png and /dev/null differ diff --git a/themes/triple-pane/images/fresh.png b/themes/triple-pane/images/fresh.png deleted file mode 100755 index b6040aa9c..000000000 Binary files a/themes/triple-pane/images/fresh.png and /dev/null differ diff --git a/themes/triple-pane/images/fresh_sign.png b/themes/triple-pane/images/fresh_sign.png deleted file mode 100755 index 6ec38eeb6..000000000 Binary files a/themes/triple-pane/images/fresh_sign.png and /dev/null differ diff --git a/themes/triple-pane/images/grad_1.png b/themes/triple-pane/images/grad_1.png deleted file mode 100644 index 1a25a785a..000000000 Binary files a/themes/triple-pane/images/grad_1.png and /dev/null differ diff --git a/themes/triple-pane/images/label.png b/themes/triple-pane/images/label.png deleted file mode 100644 index e27d0c537..000000000 Binary files a/themes/triple-pane/images/label.png and /dev/null differ diff --git a/themes/triple-pane/images/mark_set.png b/themes/triple-pane/images/mark_set.png deleted file mode 100644 index b35655c85..000000000 Binary files a/themes/triple-pane/images/mark_set.png and /dev/null differ diff --git a/themes/triple-pane/images/mark_unset.png b/themes/triple-pane/images/mark_unset.png deleted file mode 100644 index bf9059a32..000000000 Binary files a/themes/triple-pane/images/mark_unset.png and /dev/null differ diff --git a/themes/triple-pane/images/pub_set.png b/themes/triple-pane/images/pub_set.png deleted file mode 100644 index 1aff094fd..000000000 Binary files a/themes/triple-pane/images/pub_set.png and /dev/null differ diff --git a/themes/triple-pane/images/pub_unset.png b/themes/triple-pane/images/pub_unset.png deleted file mode 100644 index 14609dff7..000000000 Binary files a/themes/triple-pane/images/pub_unset.png and /dev/null differ diff --git a/themes/triple-pane/images/resize_handle_horiz.png b/themes/triple-pane/images/resize_handle_horiz.png deleted file mode 100644 index a2e347e3d..000000000 Binary files a/themes/triple-pane/images/resize_handle_horiz.png and /dev/null differ diff --git a/themes/triple-pane/images/resize_horiz.png b/themes/triple-pane/images/resize_horiz.png deleted file mode 100644 index cbf190971..000000000 Binary files a/themes/triple-pane/images/resize_horiz.png and /dev/null differ diff --git a/themes/triple-pane/images/tag.png b/themes/triple-pane/images/tag.png deleted file mode 100644 index 5415949ee..000000000 Binary files a/themes/triple-pane/images/tag.png and /dev/null differ diff --git a/themes/triple-pane/images/ttrss_logo.png b/themes/triple-pane/images/ttrss_logo.png deleted file mode 100644 index 2cedc35ed..000000000 Binary files a/themes/triple-pane/images/ttrss_logo.png and /dev/null differ diff --git a/themes/triple-pane/images/ttrss_logo.svg b/themes/triple-pane/images/ttrss_logo.svg deleted file mode 100644 index f2dabbc61..000000000 --- a/themes/triple-pane/images/ttrss_logo.svg +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - tiny tiny - rss - - diff --git a/tt-rss.php b/tt-rss.php index 9fa3da1d8..9d4305fe1 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -159,7 +159,7 @@
- Tiny Tiny RSS + Tiny Tiny RSS
@@ -240,7 +240,8 @@
-