Daniel Rudolf
311e21bcf3
Allow $markdown = null in 'markdown' Twig filter
2 years ago
Daniel Rudolf
35d894ec1a
Add 'page' Twig function to return a single page
2 years ago
Daniel Rudolf
1da5e26d57
Remove Pico's `map` Twig filter
...
Fixes #623
3 years ago
Daniel Rudolf
9a8b3da2ae
Simplify PHP class imports
3 years ago
Daniel Rudolf
a3f801b89a
Enable PHP strict typing
...
We can't enable strict typing everywhere without major BC breaks (likely Pico 4.0), so we're doing this on a best-effort basis.
Fixes #603
3 years ago
Daniel Rudolf
e33f6c8148
Update various links
3 years ago
Daniel Rudolf
1b956afc29
Code cleanup
3 years ago
Daniel Rudolf
41fc15a7e8
Remove picocms\Pico\ namespace
...
This reverts commit 812ae5c215
3 years ago
Daniel Rudolf
646aa355e5
Various small improvements
5 years ago
Daniel Rudolf
85d7573020
Update to Symfony YAML 5.0 and Twig 3.0
...
Pico now requires PHP 7.2.5+
5 years ago
Daniel Rudolf
b1a58b9300
Update code styling to PHP 7.0+
...
This commit includes no functional changes.
5 years ago
Daniel Rudolf
812ae5c215
Move Pico to picocms\Pico\ namespace
5 years ago
Daniel Rudolf
718b790b19
Kick-start development of Pico 3.0
5 years ago
Daniel Rudolf
c99f3cbbdf
Update @version phpDoc class docs
6 years ago
Daniel Rudolf
23000af64e
Add $singleLine param to Twig markdown parser
...
This allows you to parse just a single line of Markdown, i.e. the parsed output won't include a HTML paragraph element.
6 years ago
Daniel Rudolf
cb3bdd149f
Mark Twig markdown filter as HTML safe
6 years ago
Daniel Rudolf
87ced8c8bd
Improve phpDoc class docs
6 years ago
Daniel Rudolf
681ad27158
🎉 Add Twig pages function
...
This function should be used most of the time when dealing with Pico's pages array, as it allows one to easily traverse Pico's pages tree (see `Pico::getPageTree()`) to retrieve a subset of Pico's pages array in a very convenient and performant way.
6 years ago
Daniel Rudolf
6e6d80c044
Add Pico::substituteUrl() and `url` Twig filter
...
Allows theme developers and users to use URL placeholders like `%base_url%` in meta headers, e.g. to include images.
6 years ago
Daniel Rudolf
05c2c968c3
Use filter_id() for the url_param and form_param Twig functions
...
This is a follow-up to 80263a91dc
7 years ago
Daniel Rudolf
80263a91dc
Disallow the use of the callback filter for the url_param and form_param Twig functions
7 years ago
Daniel Rudolf
61319b011e
Add license/copyright file header; improve phpDoc class docs
8 years ago
Daniel Rudolf
b626782b87
Use Pico::substituteFileContent() for Twig's "markdown" filter
8 years ago
Daniel Rudolf
4cd993c50a
Fix PHP Syntax Error
8 years ago
Daniel Rudolf
fd78ec38c7
Various small improvements
8 years ago
Daniel Rudolf
793fcdb4e1
Add "remove" fallback to Twig's "sort_by" filter
8 years ago
Daniel Rudolf
82a342ba44
Various small improvements
8 years ago
Daniel Rudolf
46f5d3d56d
Move Twig link filter and url_param and form_param functions to PicoTwigExtension
9 years ago
Daniel Rudolf
8f7e4da53d
Rename Pico 1.1 to Pico 2.0
9 years ago
Daniel Rudolf
5cf47e65de
Various small improvements
9 years ago
Daniel Rudolf
94279c57f8
Improve phpDocs class docs
9 years ago
Daniel Rudolf
0a4e7443d2
Fix class doc typos
9 years ago
Daniel Rudolf
3d11b8a979
Replace is_a() function calls with instanceof operator
9 years ago
Daniel Rudolf
2ce422d907
PicoTwigExtension: Refactor error handling
10 years ago
Daniel Rudolf
10de8efa11
Move markdown filter to PicoTwigExtension
10 years ago
Daniel Rudolf
f19adc64b9
Add PicoTwigExtension with map and sort_by filters
10 years ago