aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
Commit message (Collapse)AuthorAgeFilesLines
* Update German translations, added new strings to server.htmlbschwede2021-01-251-8/+8
|
* Merge pull request #1689 from ArthurHoaro/fix/bulk-add-html-labelArthurHoaro2021-01-192-11/+13
|\ | | | | Fix: bulk add - use unique HTML ID
| * Fix: bulk add - use unique HTML IDArthurHoaro2021-01-192-11/+13
| | | | | | | | | | | | Use links loop ID to make ID unique and fix browser labels behaviour. Fixes #1685
* | Fix: error when using bulk shaare with a single URLArthurHoaro2021-01-192-2/+2
|/ | | | | | Make sure that header metadata associated with permalink is only used in linklist template. Fixes #1686
* Plugin system: allow plugins to provide custom routesArthurHoaro2020-11-151-0/+13
| | | | | | | | | | - each route will be prefixed by `/plugin/<plugin_name>` - add a new template for plugins rendering - add a live example in the demo_plugin Check out the "Plugin System" documentation for more detail. Related to #143
* Vintage theme: fix routes in daily pageArthurHoaro2020-11-091-4/+4
|
* Vintage theme: display global messagesArthurHoaro2020-11-091-0/+24
|
* Vintage theme: support async metadata retrievalArthurHoaro2020-11-091-7/+25
|
* Merge pull request #1621 from ArthurHoaro/feature/tag-separatorsArthurHoaro2020-11-087-9/+35
|\
| * Tags separator: vintage theme compatibilityArthurHoaro2020-11-053-5/+7
| |
| * Feature: support any tag separatorArthurHoaro2020-11-054-4/+28
| | | | | | | | | | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* | Display error details even with dev.debug set to falseArthurHoaro2020-11-051-2/+6
|/ | | | | | | It makes more sense to display the error even if it's unexpected. Only for logged in users. Fixes #1606
* Fix confirm popup before bookmark deletionArthurHoaro2020-11-052-3/+5
| | | | | | Regression introduced by #1596 Fixes #1623
* Bulk creation: displays a progress bar when saving all displayed formsArthurHoaro2020-10-271-0/+9
|
* Bulk creation: fix private status based on the first formArthurHoaro2020-10-272-3/+3
|
* Feature: bulk creation of bookmarksArthurHoaro2020-10-273-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | This changes creates a new form in addlink page allowing to create multiple bookmarks at once more easily. It focuses on re-using as much existing code and template component as possible. These changes includes: - a new form in addlink (hidden behind a button by default), containing a text area for URL, and tags/private status to apply to created links - this form displays a new template called editlink.batch, itself including editlink template multiple times - User interation in this new templates are handle by a new JS script (shaare-batch.js) making AJAX requests, and therefore does not need page reloading - ManageShaareController has been split into 3 distinct controllers: + ShaareAdd: displays addlink template + ShaareManage: various operation applied on existing shaares (change visibility, pin, deletion, etc.) + ShaarePublish: handles creation/edit forms and saving Shaare's form - Updated translations Fixes #137
* Feature: add weekly and monthly view/RSS feed for daily pageArthurHoaro2020-10-272-15/+28
| | | | | | | | | - Heavy refactoring of DailyController - Add a banner like in tag cloud to display monthly and weekly links - Translations: t() now supports variables with optional first letter uppercase Fixes #160
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-271-0/+7
| | | | | | | | | | - Add a share link next to « Permalink » in linklist (using share icon from fork awesome) - This link generates a private key associated to the bookmark - Accessing the bookmark while logged out with the proper key will display it Fixes #475
* Feature: add a Server administration pageArthurHoaro2020-10-214-8/+213
| | | | | | | | | | | | It contains mostly read only information about the current Shaarli instance, PHP version, extensions, file and folder permissions, etc. Also action buttons to clear the cache or sync thumbnails. Part of the content of this page is also displayed on the install page, to check server requirement before installing Shaarli config file. Fixes #40 Fixes #185
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-202-6/+12
| | | | | | | | | 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
* Merge pull request #1567 from ArthurHoaro/feature/async-title-retrievalArthurHoaro2020-10-201-4/+18
|\
| * Add a setting to retrieve bookmark metadata asynchrounouslyArthurHoaro2020-10-151-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - There is a new standalone script (metadata.js) which requests a new controller to get bookmark metadata and fill the form async - This feature is enabled with the new setting: general.enable_async_metadata (enabled by default) - general.retrieve_description is now enabled by default - A small rotating loader animation has a been added to bookmark inputs when metadata is being retrieved (default template) - Custom JS htmlentities has been removed and mathiasbynens/he library is used instead Fixes #1563
* | Feature: highlight fulltext search resultsArthurHoaro2020-10-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Improve Manage tags pageArthurHoaro2020-10-162-3/+3
| | | | | | | | Fixes #1125
* | Support using Shaarli without URL rewritingArthurHoaro2020-10-166-8/+8
|/ | | | | | | | | - Shaarli can be fully used by prefixing any URL with /index.php/ - {$base_path} used in templates already works with this configuration - Assets path (outside of theme's assets) must be prefixed with {$root_url}/ - Documentation section in « Server configuration » Fixes #1590
* Add Markdown Extra formatterArthurHoaro2020-10-131-1/+1
| | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* Security: fix multiple XSS vulnerabilities + fix search tags with special charsArthurHoaro2020-10-063-10/+10
| | | | | | XSS vulnerabilities fixed in editlink, linklist, tag.cloud and tag.list. Also fixed tag search with special characters: urlencode function needs to be applied on raw data, before espaping, otherwise the rendered URL is wrong.
* Issue #1437 - Make tag cloud/list views buttons more obvioussprak30002020-10-021-2/+2
| | | | This work alters the markup and CSS for the tag sort UI to match the button feel filters and links per page uses.
* Fix undefined linkdate variable in vintage themeArthurHoaro2020-09-251-1/+0
| | | | Fixes #1371
* Fix plugin base path in core pluginsArthurHoaro2020-09-221-1/+1
| | | | | | | Also fix note check in archiveorg plugin, and regression on vintage template. Documentation regarding relative path has been added. Fixes #1548
* Merge pull request #1519 from ArthurHoaro/fix/mobile-pin-linkArthurHoaro2020-09-031-1/+11
|\ | | | | Default template: display pin button in mobile view
| * Default template: display pin button in mobile viewArthurHoaro2020-08-271-1/+11
| | | | | | | | Fixes #1347
* | Merge pull request #1526 from kcaran/links_per_pageArthurHoaro2020-09-031-4/+9
|\ \
| * | Added $links_per_page variable to template and display on defaultKeith Carangelo2020-08-291-4/+9
| |/
* / Fix broken route to filter not tagged bookmarksArthurHoaro2020-08-311-21/+23
|/ | | | | | Also display the filter for visitors. Fixes #1529
* Move all admin controller into a dedicated groupArthurHoaro2020-08-134-6/+6
| | | | Also handle authentication check in a new middleware for the admin group.
* Better support for notes permalinkArthurHoaro2020-07-281-1/+1
|
* New basePath: fix officiel plugin paths and vintage templateArthurHoaro2020-07-2612-29/+30
|
* Fix: header search action should be on linklistArthurHoaro2020-07-241-1/+1
|
* Multiple small fixesArthurHoaro2020-07-231-1/+2
|
* Process Shaarli install through Slim controllerArthurHoaro2020-07-233-5/+5
|
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-231-1/+1
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Process thumbnail synchronize page through Slim controllersArthurHoaro2020-07-235-6/+6
|
* Process plugins administration page through Slim controllersArthurHoaro2020-07-236-9/+10
|
* Process bookmarks import through Slim controllerArthurHoaro2020-07-234-4/+4
|
* Process bookmark exports through Slim controllersArthurHoaro2020-07-234-6/+4
|
* Pin bookmarks through Slim controllerArthurHoaro2020-07-231-1/+1
|
* Fix bookmarklet with new routesArthurHoaro2020-07-234-6/+4
| | | | | * Use the new shaare route * Add source hidden input in editlink template to close the popup after saving
* Use multi-level routes for existing controllers instead of 1 level everywhereArthurHoaro2020-07-2318-43/+43
| | | | Also prefix most admin routes with /admin/
* Explicitly define base and asset path in templatesArthurHoaro2020-07-2340-132/+134
| | | | | | | With the new routes, all pages are not all at the same folder level anymore (e.g. /shaare and /shaare/123), so we can't just use './' everywhere. The most consistent way to handle this is to prefix all path with the proper variable, and handle the actual path in controllers.