Commit Graph

400 Commits (05744bb474e55c4f85acd236dd2883679c278e70)

Author SHA1 Message Date
Andrew Dolgov 0086a89740 move some label stuff to labels.php
move getfeedcategory() to Feeds
8 years ago
Andrew Dolgov 4a0da0e5bf move get_article_labels to Article 8 years ago
Andrew Dolgov 2ed0d6c433 move counter cache to a separate class
fix references to get_article_tags
8 years ago
Andrew Dolgov aeb1abedb2 move a bunch of functions into Feeds/Article namespaces
+       static function catchupArticlesById($ids, $cmode, $owner_uid = false) {
+       static function getLastArticleId() {
+       static function queryFeedHeadlines($params) {
+       static function getParentCategories($cat, $owner_uid) {
+       static function getChildCategories($cat, $owner_uid) {

move the rest of functions2.php back to functions.php as it is of more manageable size, remove the former
8 years ago
Andrew Dolgov a230bf88a9 move to Article:
+       static function purge_orphans($do_output = false) {

move to Feeds

+       static function getGlobalUnread($user_id = false) {
+       static function getCategoryTitle($cat_id) {
+       static function getLabelUnread($label_id, $owner_uid = false) {
8 years ago
Andrew Dolgov 86a8351ca2 move the following to Feeds:
+       static function catchup_feed($feed, $cat_view, $owner_uid = false, $mode = 'all', $search = false) {
+       static function getFeedArticles($feed, $is_cat = false, $unread_only = false,
+       static function subscribe_to_feed($url, $cat_id = 0,
+       static function getFeedIcon($id) {
+       static function getFeedTitle($id, $cat = false) {
+       static function getCategoryUnread($cat, $owner_uid = false) {
+       static function getCategoryChildrenUnread($cat, $owner_uid = false) {
8 years ago
Andrew Dolgov 7e5f8d9fb3 move the following to Article:
+       static function format_article_enclosures($id, $always_display_enclosures,
+       static function format_article($id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) {
+       static function get_article_tags($id, $owner_uid = 0, $tag_cache = false) {
+       static function format_tags_string($tags) {
+       static function format_article_labels($labels) {
+       static function format_article_note($id, $note, $allow_edit = true) {
+       static function get_article_enclosures($id) {
8 years ago
Andrew Dolgov 4122da0290 move getArticleFeed to Article
move print_label_select to controls
8 years ago
Andrew Dolgov 7b55001eee fix various issues reported by static analysis
update gitlab-ci config
8 years ago
Andrew Dolgov 337535416f filter by search results while marking feed as read 8 years ago
Andrew Dolgov 63f0ed3d9c cdmClicked: do not use event.target.parents to figure out if clicked on a heading 8 years ago
Andrew Dolgov b835a52814 rework the way headlines menus identify calling row 8 years ago
Andrew Dolgov 5161460048 bind headlines menu to a selector to avoid remaking it unnecessarily 8 years ago
Jérémy DECOOL ba2853caac Prevent target='_blank' vulnerability on dynamic link 8 years ago
Andrew Dolgov 328118d12e use print_hidden() for hidden dojo form fields 8 years ago
Andrew Dolgov 24c7e4132d subscribe dialog: do not report errors via alert()
fetch_file_contents: reset all globals on start, return error message body when not using curl
subscribe_to_feed: report if cloudflare is in the error message
8 years ago
Andrew Dolgov ad326dbf78 unpackVisibleHeadlines: do not iterate over all RROWs all the time 8 years ago
Andrew Dolgov 967f0619c7 force ngettext() count argument type to string 8 years ago
Andrew Dolgov 6b06a609af headlines toolbar: move selection links into the dropdown 8 years ago
Andrew Dolgov c9a5903bcc disable autocomplete in subscription dialog 9 years ago
Andrew Dolgov b6b5554db4 normalize some html5 custom attributes 9 years ago
Andrew Dolgov 2d052e42b5 getLoadedArticleIds: consider visible rows only
catchupFeedInGroup: hide articles when catching up, with caveats
9 years ago
Andrew Dolgov d9de136c39 inline feed update: set feed as needing update if open_basedir is set + plugins need curl 9 years ago
Andrew Dolgov 71b75bb7fa fix multiple issues with archived feeds 9 years ago
Andrew Dolgov 41245888f1 only stop inline feed updates with open_basedir enabled if there are any plugins that require CURL enabled
add plugin->flags() returning array with additional plugin information, currently only CURL requirement (optional)
9 years ago
Andrew Dolgov 29c92d7b08 prevent frontend updating of feeds on view if open_basedir is set to prevent plugins potentially not working correctly (i.e. if backend system has open_basedir disabled) 9 years ago
Andrew Dolgov f61f2a2699 format_headlines_list: fix pg_num_rows() called incorrectly when firstid check failed 9 years ago
Andrew Dolgov 1bd552ee31 compat patches for php7 9 years ago
Andrew Dolgov 19e47ad60b queryFeedHeadlines: don't check first_id when sorting by oldest first 9 years ago
Andrew Dolgov dcbe36b2a2 fix some remaining old-style viewfeed() calls 9 years ago
Andrew Dolgov 90da4ada66 move attachments back to cdm content 9 years ago
Andrew Dolgov 6901ec6659 fix subtoolbar links lack of margin 9 years ago
Andrew Dolgov bc20cb9fad move attachment dropdown to cdmFooter, use table styles for cdmFooter 9 years ago
Andrew Dolgov 6810a1de42 use dijit form widget for attachments dropdown 9 years ago
Andrew Dolgov 60e680599d allow selecting stemming language in search dialog 9 years ago
Andrew Dolgov 0d0cb8fe1e fix missing cdmFeedTitle 10 years ago
Andrew Dolgov 33c4bd8968 fix error feed (i.e. when requested feed no longer exists) not display properly 10 years ago
Andrew Dolgov f17069960c roll back separate headline transport 10 years ago
Andrew Dolgov 6b954c0a83 fix dashboard feed 10 years ago
Andrew Dolgov 9f5eca992b headlines: fix whitebox reply not returned in an updated format 10 years ago
Andrew Dolgov ac4c1383ae bring cdmFeedTitle style in line with the rest of the UI
send headline rows as separate JSON objects
10 years ago
Andrew Dolgov 48fefe2f6b fixes for first_id stuff 10 years ago
Andrew Dolgov ec57104d6e apparently it's a bad idea to do is_resource() on a mysqli result 10 years ago
Andrew Dolgov 3444020100 report top id changed in headlines buffer 10 years ago
Andrew Dolgov f5a0fb8b64 queryFeedHeadlines: move to array-based arguments, optionally check if first element changed when paginating 10 years ago
Andrew Dolgov 9090b874ab simplify search, remove search_mode as useless
remove dialog to select by tags, simplify browsing by tag query
10 years ago
Andrew Dolgov b6714c77d2 limit smart_date_time stuff to headlines only 10 years ago
Andrew Dolgov 5a45821ec9 prevent event propagation when clicking on CDM article footer 10 years ago
Andrew Dolgov 86b05f8661 better feed debugger ui for f D 10 years ago
Andrew Dolgov 415a3b50c9 fix some minor typos and stuff 10 years ago
Matthieu Sarter 469d9ad16a Added a "title" attribute in the link to an article.
Added a "title" attribute in the link to an article.
Makes TTRSS more usable on a small windows, allowing to see the complete title of an article in the tooltip, without opening the article.
10 years ago
Andrew Dolgov 7eb87b80d5 add pluginhost HOOK_HEADLINES_BEFORE (refs #814) 10 years ago
Pavel Voronin 647a39ddf3 Copypaste error fix 10 years ago
Rob Hoelz baaf4c3043 Make search mechanism pluggable
Currently, TinyTinyRSS can use raw SQL or the Sphinx search engine
for searching.  It would be nice if other search engines (such as
Xapian) could be used, or if features of the underlying SQL engine
(such as MySQL's FULLTEXT indexes) could be leveraged.  This commit
makes searching into a plugin hook, falling back to the builtin behavior
if no search plugin is active.  The Sphinx search behavior has been
broken out into a plugin.
11 years ago
Andrew Dolgov 8993937d13 fix alignment of a feed error icon in headlines subtoolbar 11 years ago
Grant Pannell a0d9bc160f Fix end tag for small feed icons when using combined display mode 11 years ago
Andrew Dolgov ad593e4393 disable headlines grouping for recently read vfeed 11 years ago
Andrew Dolgov 4a80c57c50 remove some unused code reported by phpmd 11 years ago
Andrew Dolgov 878a0083ff revert max ui feed title length, tweak truncate_string a bit 11 years ago
Andrew Dolgov 66684d8149 subtoolbar: layout fix, shorten max feed title length 11 years ago
Andrew Dolgov 029005c49b minor style updates to make 3panel headlines mode look closer to cdm 11 years ago
Andrew Dolgov 4e2f219c16 fix selected prompt position 11 years ago
Andrew Dolgov 1bffd1068f unify main and headlines toolbar 11 years ago
Andrew Dolgov d44f3da4be default theme updates 11 years ago
Andrew Dolgov bf5bcb8e27 queryFeedHeadlines: remove obsolete content_preview 11 years ago
Andrew Dolgov 4ad04ee227 report all libxml errors in updater debug output
force utf8 encoding if devforceupdate is on
parser: try to convert non-unicode feeds with specified encoding to utf8
before trying to remove dangling utf8 characters in case of utf8-related
libxml errors because doing so produces garbage content
11 years ago
Andrew Dolgov 87065739cd add context menu for cdmFeedTitle; change mark as read prompt for grouped headlines more clear 11 years ago
Andrew Dolgov 8f7a020e1b add notification to subscribe dialog when multiple feeds are detected 11 years ago
Andrew Dolgov 19ab809633 add i18n to the search syntax link 11 years ago
Andrew Dolgov ff04fe0625 use plurals for comment/comments link in article, properly translate comments string, add feed title to article in zoom mode 11 years ago
Andrew Dolgov 910592b49a add plugin to cache images in starred articles; pass article_id to
sanitize
11 years ago
Andrew Dolgov 34dad84414 support term highlighting in cdm title 11 years ago
Andrew Dolgov dd90eb2c7a search keyword highlighting (combined mode only) 11 years ago
Andrew Dolgov 07eb36583c lang: default to 'en' 11 years ago
Andrew Dolgov 6b4617970f add text_languagedetect to guess article language for better hyphenation
(bump schema)
11 years ago
Andrew Dolgov ac57b9dd19 add experimental css hyphens support for english language 11 years ago
Andrew Dolgov 12d17734f6 properly escape feed error message in headlines toolbar 12 years ago
Andrew Dolgov 7a7a0dc2dd make cdmExcert respect SHOW_CONTENT_PREVIEW 12 years ago
Andrew Dolgov 1a545dcb44 mark feed with error in headlines toolbar, use error icon in feed editor 12 years ago
Andrew Dolgov 65f0eb01aa support headlines context menu in floating title 12 years ago
Andrew Dolgov 6bd7913e20 Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS 12 years ago
Andrew Dolgov 4ab1eb9c94 move reassigning content_preview after hook to a more sensible place 12 years ago
Andrew Dolgov f48d89fd58 Merge branch 'hookhead' of git://github.com/justauserx/Tiny-Tiny-RSS into justauserx-hookhead 12 years ago
Andrew Dolgov 6371963dbc use error image for feed errors in headlines toolbar 12 years ago
Andrew Dolgov 2f20dd58d2 integrate silk icons by Mark James 12 years ago
justauser 425a6edc6b forgot one file 12 years ago
justauser 3b96b0ed7c Merge branch 'master' into hookhead
Conflicts:
	include/functions.php

changes for conflicts with master
12 years ago
Andrew Dolgov 4b7ebe93a8 fix broken highlighting of high-scored rows 12 years ago
Andrew Dolgov e9687f67e0 date_reverse view mode: take scoring into account 12 years ago
justauser 6763143835 Changed the implementation of HOOK_QUERY_HEADLINES to deal with issue Fox raised 12 years ago
Andrew Dolgov fac0964053 do not show lone dash in collapsed cdm when content preview is disabled 12 years ago
justauser 2e18843845 one more change to merge to origin 12 years ago
justauser 0708046b4f change for HOOK_QUERY_HEADLINES. See example for details. 12 years ago
justauser 7171f32dc5 Merge remote-tracking branch 'origin' into hookhead
Conflicts:
	classes/feeds.php

fix for merging up to the origin
12 years ago
justauser 891e36f57e Changes to add a new hook: HOOK_QUERY_HEADLINES. An example is provided. 12 years ago
Andrew Dolgov 08820be70b add experimental floating title when scrolling long articles in combined mode 12 years ago
supahgreg 13e283ed45 Exclude the article author from the cdm title link 12 years ago
Andrew Dolgov d310348460 remove gradients, update favicon avg color display 12 years ago
Andrew Dolgov 14c53e4e60 tweak visual for headlines 12 years ago
Andrew Dolgov 8d090a910b use css nth-child instead of old even/odd class hacks for normal mode 12 years ago
Andrew Dolgov 54b7590c7f format_article_tags: improve performance 12 years ago
Andrew Dolgov f8a25082b3 make tag cache processing faster in cdm 12 years ago
Andrew Dolgov 27372ddac6 fix editArticleTags() call broken on archived feed 12 years ago
Andrew Dolgov 5e1f7be5f1 enlarge headline excerpt length 12 years ago
Andrew Dolgov 90e5f4f1de base if-modified-since on last received article, not feed update timestamp 12 years ago
Andrew Dolgov 90a372f51d fix warning when creating feed last updated timestamp 12 years ago
Andrew Dolgov 6e3e8db915 subtoolbar: add last updated when hovering over originating site link 12 years ago
Andrew Dolgov db29ea0d8d correct faildient case 12 years ago
Andrew Dolgov 7d90d06de0 do not try to draw a fail-gradient (faildient?) 12 years ago
supahgreg 6704bb2cb9 minor: remove an unnecessary quotation mark 12 years ago
Andrew Dolgov 1ffe3391f9 make pluginhost a singleton 12 years ago
Andrew Dolgov d9c85e0f11 classes: use OO DB interface 12 years ago
Andrew Dolgov a42c55f02b fix blank character after opening bracket in function calls 12 years ago
Andrew Dolgov 6322ac79a0 remove $link 12 years ago
Andrew Dolgov 86f7d2a9f2 make gradient less visible on read headlines 12 years ago
Andrew Dolgov 12a6bd28ac remove hsl stuff from classes/feeds, we take care of this when choosing the color 12 years ago
Andrew Dolgov e7480cc13b do not color predominantly white/black rows 12 years ago
Andrew Dolgov bfaf90e364 add row backgrounds in normal mode 12 years ago
Andrew Dolgov 85eea71e0e use w3c gradient definition 12 years ago
Andrew Dolgov e0deff3933 implement basic moz gradient for feedicon color 12 years ago
Andrew Dolgov 63c323f736 only enable colored favicons in vfeeds; fix RGB triplet packing 12 years ago
moontear 2cfbb448fb Added average color calculation of feeds' favicons for banded display. 12 years ago
Andrew Dolgov e43a9c4a01 add a %d articles selected element 12 years ago
Andrew Dolgov 884f2aee91 use mdash as a separator between title and author 12 years ago
Andrew Dolgov 3ab417c277 remove label gradients 12 years ago
Andrew Dolgov ccb2b8dd42 add HOOK_ARTICLE_LEFT_BUTTON 12 years ago
Andrew Dolgov 035d7a5a8f implement support for multiple pub/mark buttons, add plugin which adds a separate mark button to article botton in combined mode (closes #382) 12 years ago
Andrew Dolgov 814fa4ef11 Revert "remove RTITLE"
This reverts commit ecac674ade.
12 years ago
Andrew Dolgov ecac674ade remove RTITLE 12 years ago
Andrew Dolgov 7e27c91409 remove RCHK 12 years ago
Andrew Dolgov f3b2e7d41f add back sorting by title 12 years ago
Andrew Dolgov f17cac6b26 retire DEFAULT_ARTICLE_LIMIT, infinite scrolling is fast enough to make it superfluous 12 years ago
Andrew Dolgov 8d192d025b update 'no articles in label' hint 12 years ago
Andrew Dolgov ceb7847108 add HOOK_TOOLBAR_BUTTON, HOOK_ACTION_ITEM, HOOK_HEADLINE_TOOLBAR_BUTTON 12 years ago
Andrew Dolgov 417591034a remove experimental view_settings stuff from master 12 years ago
Andrew Dolgov 1c9bda915b move several methods from dlg; fix displayed tags not updated after editing 12 years ago
Andrew Dolgov fb54e3b188 remove xml stuff from backend/dlg 12 years ago
Andrew Dolgov a2a3d5a3aa add (disabled) per-feed view_settings handling placeholder 12 years ago
Andrew Dolgov 3dd0306f3e subtoolbar: remove catchupPage, label confusing with upper toolbar catchup function 12 years ago
Andrew Dolgov a7c0e150b6 fix invisible active headline in 3pane mode 12 years ago
Andrew Dolgov a0ddecb98d remove cdm tiles; update cdm stylesheet as to stop reading on yellow 12 years ago
Andrew Dolgov e92a353b1f feeds: fix browsing by labels broken by pfeeds 12 years ago
Andrew Dolgov 19a206578f fix date_reverse sorting 12 years ago
Andrew Dolgov 8aa01d7989 disable SORT_HEADLINES_BY_FEED_DATE; replace with a toolbar newest first order 12 years ago
Andrew Dolgov b9a06a0e39 retire frankly ridiculous sorting by score/title/date/default
keep defaul and oldest first instead of REVERSE_HEADLINES
12 years ago
Andrew Dolgov 250b2e10cb use new double-date sorting in non-default sorting modes 12 years ago
Andrew Dolgov 919984a436 css cleanup; change notify css a bit 12 years ago
Andrew Dolgov a413f53ebf add experimental base for plugin vfeeds (3 pane mode not yet
implemented)
12 years ago
Andrew Dolgov af2941dbb3 truncate feed title length in vfeeds 12 years ago
Andrew Dolgov be574731fc modify sorting by date_entered: set date_entered per-batch; use updated as a secondary criteria 12 years ago
Andrew Dolgov f822a8e56c experimentally rebase labels; make base index configurable 12 years ago
Andrew Dolgov d2f3467bb6 add a simple appearing preview for unexpanded cdm and normal mode 12 years ago
Andrew Dolgov bf1dc420b9 Revert "title escaping: do not double-encode entities"
This reverts commit d6ce708930.
12 years ago
Andrew Dolgov d6ce708930 title escaping: do not double-encode entities 12 years ago
Andrew Dolgov 06b0777fa7 feeds/view: periodically bump login timestamp 12 years ago
Andrew Dolgov 5defc29ff8 remove PTITLE kludge; use ajax 12 years ago
Andrew Dolgov 3972bf5981 db_escape_string: specify link parameter for consistency; sessions: do not force-close db connection in _close() 12 years ago
Joschasa b830cca7ee In "normal mode" don't show feed title, when articles are grouped by feed
Got removed here: e17e99fbcf
12 years ago
Andrew Dolgov 33de3d37af make sure rendering image enclosures respect hide_image setting 12 years ago
Andrew Dolgov b74c513428 experimental: limit initialized html content for expanded cdm 12 years ago
Joschasa ca5d9be49f Remove deprecated $match_on 12 years ago
Joschasa 2a3b6de0ef remove deprecated theme_image() 12 years ago
Andrew Dolgov f0540b598a add a hack to prevent loading of stuff for hidden content in unexpanded combined mode (refs #602) 12 years ago
Andrew Dolgov 3ac153f1b3 update styling for unexpanded cdm; misc fixes related to collapsing 12 years ago
Andrew Dolgov 414191d428 make a separate headline button to collapse current article in
unexpanded cdm mode; modify a q hotkey to collapse article in unexpanded
mode and dismiss article in expanded mode
12 years ago
Andrew Dolgov bfd61d3f85 rework STRIP_IMAGES to remove embedding; add per-feed control over embedded images (bump schema) 12 years ago
Andrew Dolgov 36b4cf2f64 tweak vfeed grouped title display a bit to make it more similar to other modes 12 years ago
Andrew Dolgov 1d5cf085a3 implement mail plugin using mailto: links; deprecate mail plugin 12 years ago
Andrew Dolgov 82d69730cb rename titleAuthor to author to unify class names with normal mode 12 years ago
Daniel Andersson b5459be1f2 Enable styling of author in feed item title by adding span class. 12 years ago
Andrew Dolgov 08dfc22391 in combined mode, when viewing vfeeds relative urls are rewritten incorrectly (fixes #586) 12 years ago
Andrew Dolgov cf2f643edb hlFeed: remove unnecessary br 12 years ago
Andrew Dolgov e17e99fbcf add back vfeed title display, optimize layout; do some layout tweaks on combined mode 12 years ago
Andrew Dolgov d56ec7005e cdm: fix alignment of feed title in vfeeds 12 years ago
Andrew Dolgov 8349a32e75 remove cache_content remnants 12 years ago
Andrew Dolgov bb9c6cc513 disable label row gradient in cdm, looks weird 12 years ago
Andrew Dolgov b251d917c7 remove gray/white content tiling in cdm because headers make a better job to distinguish between posts 12 years ago
Andrew Dolgov bdb7d62e9f tweak cdm header button alignment 12 years ago
Andrew Dolgov ef69681b93 enable feed titles in vfeeds in combined mode, align to date 12 years ago
Andrew Dolgov b999f4c75a slightly better article note display in CDM 12 years ago
Andrew Dolgov b389aeb7fc headlines renderer: do not attach topmost article ids 12 years ago
Andrew Dolgov 524de8dcf6 Revert "headlines buffer: remove dijit-based RCHK elements"
This reverts commit f7945c99d0.
12 years ago
Andrew Dolgov f7945c99d0 headlines buffer: remove dijit-based RCHK elements 12 years ago
Andrew Dolgov 831408f0e8 fix cdm checkbox not selecting entire cell 12 years ago
Andrew Dolgov fa9e88c367 replace getmicrotime() wrapper with microtime(true) 12 years ago
Andrew Dolgov 88918ca637 remove server-side feedtree collapse implementation 12 years ago
Andrew Dolgov 1bad74ea7c change various catchup stuff to only affect unread articles 12 years ago
Andrew Dolgov 5321e775f9 remove update on checksum change (updated status has been removed); rtl stuff (unused) 12 years ago
Andrew Dolgov 42ecc25ba5 cdm: fix tags display 12 years ago
Andrew Dolgov 84d952f141 implement article render hooks 12 years ago
Andrew Dolgov 6afcbcd1a5 fix wrong DOS line-endings 12 years ago
Andrew Dolgov 1ff1374325 remove nonworking article zoom buttons (closes #535) 12 years ago
Andrew Dolgov 2c8e90c3fa rename subtoolbar actions dropdown 12 years ago
Andrew Dolgov d147154cca subtoolbar: only show mail action if plugin is enabled 12 years ago
Andrew Dolgov 2cda431400 add a q shortcut; remove close_article button 12 years ago
Andrew Dolgov c2cd348b75 rename digest_checkbox 12 years ago
Andrew Dolgov 87d7e8507a split some more functions from functions.php 12 years ago
Andrew Dolgov 1ae948ed08 force text/plain when DevForceUpdate is set 12 years ago
Andrew Dolgov 7d5e162073 fix dijit checkbox in CDM 12 years ago
Andrew Dolgov f947467aa8 remove fupdpic and related images 12 years ago