aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/PageBuilder.php
Commit message (Collapse)AuthorAgeFilesLines
* namespacing: \Shaarli\Render\{PageBuilder,ThemeUtils}VirtualTam2019-01-121-205/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to application/VirtualTam2018-12-021-2/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add OpenGraph meta tags on permalink pageArthurHoaro2018-08-131-1/+1
| | | | | | | | | | | | | | 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
* Thumbnails: add a common mode to only retrieve thumbs from popular media ↵ArthurHoaro2018-07-051-1/+5
| | | | websites
* Add a page to update all thumbnails through AJAX requests in both templatesArthurHoaro2018-07-051-5/+23
|
* Use web-thumbnailer to retrieve thumbnailsArthurHoaro2018-07-051-0/+5
| | | | | | | | | | * requires PHP 5.6 * use blazy on linklist since a lot more thumbs are retrieved * thumbnails can be disabled * thumbs size is now 120x120 * thumbs are now cropped to fit the expected size Fixes #345 #425 #487 #543 #588 #590
* Login: update PageBuilder and default/vintage templatesVirtualTam2018-06-021-2/+7
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Public/private filter: use two separate buttonsArthurHoaro2018-01-241-21/+0
| | | | #1038
* Add a filter to only display public linksArthurHoaro2017-12-161-1/+23
| | | | | | When the key filter is clicked once, it only displays private link. When it is clicked on again, it becomes red and only public links are displayed. Another click and all links are displayed. The current visibility status is shown in the search banner Fixes #1030
* Refactor session token managementVirtualTam2017-10-221-2/+4
| | | | | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/issues/324 Added: - `SessionManager` class to group session-related features - unit tests Changed: - `getToken()` -> `SessionManager->generateToken()` - `tokenOk()` -> `SessionManager->checkToken()` - inject a `$token` parameter to `PageBuilder`'s constructor Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Shaarli's translationArthurHoaro2017-10-221-2/+5
| | | | | | | | | * translation system and unit tests * Translations everywhere Dont use translation merge It is not available with PHP builtin gettext, so it would have lead to inconsistency.
* Rename shaarli_version constant to uppercaseArthurHoaro2017-10-011-2/+2
|
* Add a version hash for asset loading to prevent browser's cache issueArthurHoaro2017-10-011-0/+5
| | | | | | The hash is generated using the same salt as the one used for credentials (1 salt per instance) in order to avoid exposing the instance version. Fixes #965
* Using only one form in linklist.html + adding untaggedonly filter - fix #885Lucas Cimon2017-07-301-0/+1
|
* Adding ability to display subtags in tagcloudLucas Cimon2017-05-241-1/+1
|
* Inject tag list everywhere to make autocomplete work on the fixed search barArthurHoaro2017-05-071-2/+12
|
* Change timezone data structure send to the templatesArthurHoaro2017-04-031-0/+2
| | | | | | | | | | | The goal of this is to be able to adapt the timezone form in template without hacking the HTML already rendered. * there are two arrays available: * `continents` which contains only a list of available continents * `cities` which contains a list of available timezone cities, associated with their continent Note: there are two distinct array because RainTPL doesn't support nested loop very well.
* Fixes #304: use atom feed as defaultArthurHoaro2017-03-111-1/+2
| | | | RSS feed is still available with the setting set to false
* Cleanup: explicit method visibilityVirtualTam2017-01-051-1/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* New init function for plugins, supports errors reportingArthurHoaro2016-10-141-3/+0
| | | | | | | | 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.
* Generate a token for every pagesArthurHoaro2016-08-061-0/+1
|
* Fixes #600 - Shaarli's title is not set with the new config managerArthurHoaro2016-07-191-8/+2
| | | | | - Fixed title config key - Page title (in head tag) is no longer set through the config manager
* Pass the configuration manager to templatesArthurHoaro2016-06-151-0/+2
|
* Rename configuration key for better sectionsArthurHoaro2016-06-111-8/+8
|
* ConfigManager no longer uses singleton patternArthurHoaro2016-06-111-21/+27
|
* Rename configuration keys and fix GLOBALS in templatesArthurHoaro2016-06-111-13/+12
|
* Adds ConfigJson which handle the configuration in JSON format.ArthurHoaro2016-06-111-0/+1
| | | | Also use the Updater to make the transition
* Replace $GLOBALS configuration with the configuration manager in the whole ↵ArthurHoaro2016-06-111-12/+16
| | | | code base
* Extract PageBuilder class from index.phpArthurHoaro2016-05-131-0/+145