| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
- hide the wallabag icon for logged out users
- set API V2 as default parameter
- fix URL encoding issue with special chars
Fixes #1147
|
| |
|
| |
|
|
|
|
|
|
|
| |
Also fix note check in archiveorg plugin, and regression on vintage template.
Documentation regarding relative path has been added.
Fixes #1548
|
|
|
|
|
|
| |
Also prevent the token to be saved.
Fixes #1550
|
|
|
|
|
| |
Current behaviour only generate the custom CSS file when the plugin settings are saved, which can be annoying if the file is deleted but the settings are set.
Most common use case is Docker deployment, because the plugin directory is not mounted as a volume.
|
|
|
|
|
| |
If a PHP is raised while executing plugin hook, Shaarli will display an error instead of rendering the error page (or just ending in fatal error for default hooks).
Also added phpErrorHandler which is handled differently that regular errorHandler by Slim.:
|
| |
|
|
|
|
|
| |
Including a bunch of improvements on the container,
and helper used across new controllers.
|
| |
|
|
|
|
| |
See #1307
|
|
|
|
| |
The plugin was only reversing permalinks and failed with setting rss_permalinks set to false
|
| |
|
|
|
|
| |
Fixes #1239
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\
| |
| | |
Add OpenGraph meta tags on permalink page
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Includes:
- og:title
- og:type -> article
- og:image -> if there is a thumbnail
- og:url -> permalink
- og:description -> first 300 chars of raw description
- article:published_time
- article:modified_time
- article:tag -> one OG meta tag for each shaare tag
Fixes #258
|
|\ \
| | |
| | | |
Fix hashtags with markdown escape enabled
|
| |/
| |
| |
| |
| |
| | |
They're now transformed to markdown syntax links before processing them through Parsedown.
Fixes #1210
|
|/
|
|
| |
Fixes #1075
|
|
|
|
| |
Fixes #1134
|
| |
|
|
|
|
| |
See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
|
| |
|
|
|
|
|
|
|
| |
- for Shaare
- for markdown description links and images
Not whitelisted protocols will be replaced by `http://`
|
|
|
|
| |
Fixes #818
|
|
|
|
|
|
|
|
|
|
|
| |
Namespaces have been introduced with the REST API, and should be generalized
to the whole codebase to manage object scope and benefit from autoloading.
See:
- https://secure.php.net/manual/en/language.namespaces.php
- http://www.php-fig.org/psr/psr-4/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This setting allows to escape HTML in markdown rendering or not.
The goal behind it is to avoid XSS issue in shared instances.
More info:
* the setting is set to true by default
* it is set to false for anyone who already have the plugin enabled
(avoid breaking existing entries)
* improve the HTML sanitization when the setting is set to false - but don't consider it XSS proof
* mention the setting in the plugin README
|
|
|
|
| |
Fixes #724
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| |
|
|
|
|
|
|
|
| |
All existing link will keep their permalinks.
New links will have smallhash generated with date+id.
The purpose of this is to avoid collision between links due to their creation date.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* make sure we match exactly `nomarkdown` tag
* pass the whole link data to stripNoMarkdownTag() to:
* strip the noMD tag in taglist (array)
* strip the tag in tags (string)
Fixes #689
tmp
|
|
|
|
|
|
| |
Fixes #672
+ Markdown to HTML unit test
|
|
|
|
| |
Use Isso client to let visitors comments on permalinks
|
|
|
|
|
|
|
|
| |
All plugins can optionally add an init function named `pluginname_init()` which is called when the plugin is loaded.
This function is aware of the config, and can return initialization errors, which are displayed in the header template.
Note that the previous error system hack no longer work.
|
|
|
|
| |
Fixes #637
|
|
|
|
|
|
| |
Plugin parameter can contain a description in their meta file under the key:
parameter.<param_name>="<description>"
|
|\
| |
| | |
Introduce a configuration manager
|
| | |
|
| | |
|
|/
|
|
| |
A private tag is never loaded for visitor, making this feature useless.
|