aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark/Bookmark.php
Commit message (Collapse)AuthorAgeFilesLines
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-201-0/+18
| | | | | | | | | This feature is based general.enable_async_metadata setting and works with existing metadata.js file. The script is compatible with any template: - the thumbnail div bloc must have attribute - the bookmark bloc must have attribute with the bookmark ID as value Fixes #1564
* Feature: highlight fulltext search resultsArthurHoaro2020-10-161-0/+46
| | | | | | | | | | | | | | | | | | | | How it works: 1. when a fulltext search is made, Shaarli looks for the first occurence position of every term matching the search. No change here, but we store these positions in an array, in Bookmark's additionalContent. 2. when formatting bookmarks (through BookmarkFormatter implementation): 1. first we insert specific tokens at every search result positions 2. we format the content (escape HTML, apply markdown, etc.) 3. as a last step, we replace our token with displayable span elements Cons: this tightens coupling between search filters and formatters Pros: it was absolutely necessary not to perform the search twice. this solution has close to no impact on performances. Fixes #205
* Add strict types for bookmarks managementArthurHoaro2020-10-131-60/+61
| | | | | | | | Parameters typing and using strict types overall increase the codebase quality by enforcing the a given parameter will have the expected type. It also removes the need to unnecessary unit tests checking methods behavior with invalid input.
* Bookmark's thumbnails PHPDoc improvementArthurHoaro2020-08-011-3/+3
|
* Better support for notes permalinkArthurHoaro2020-07-281-2/+2
|
* Process Daily RSS feed through Slim controllerArthurHoaro2020-07-231-7/+8
| | | | The daily RSS template has been entirely rewritten to handle the whole feed through the template engine.
* Process picwall rendering through Slim controller + UTArthurHoaro2020-07-231-1/+1
|
* Add and update unit test for the new system (Bookmark + Service)ArthurHoaro2020-01-181-2/+2
| | | | See #1307
* Introduce Bookmark object and Service layer to retrieve themArthurHoaro2020-01-171-0/+461
See https://github.com/shaarli/Shaarli/issues/1307 for details