Daniel Rudolf
04a1c603d0
Update changelog.txt for 1419cf1
2015-10-06 20:33:31 +02:00
Daniel Rudolf
1419cf1636
Add Pico::setConfig() method
...
Thanks @dav-m85
2015-10-06 20:23:28 +02:00
Daniel Rudolf
7aa199d77a
Update changelog.txt for 7537159
2015-10-05 01:58:11 +02:00
Daniel Rudolf
7537159868
Remove the need to register headers during onMetaHeaders()
...
Why? I'm currently writing the user docs and I really have no idea how to explain this whole process in a non-technical way... It is very likely that a normal user wants to use custom tags and it would be absurd to tell him,that he should learn a programming language to do so. On the other hand, providing a copy-and-paste template makes the whole idea of explicitly registering headers worthless. The only reasonable solution is to remove the need to register headers.
Anyway, I think @PontusHorn is right to say that registering headers makes the whole system more predictable. So plugin developers are still instructed to register their meta headers during . We actually can't check and ensure this, but that's imho the best solution.
2015-10-05 01:50:55 +02:00
Daniel Rudolf
1cbf48af79
Split PicoDeprecated::onConfigLoaded() into multiple methods
2015-10-04 23:25:32 +02:00
Daniel Rudolf
46ef63186a
Support $config['<plugin name>']['enabled'] option
...
... as a alternative to $config['<plugin name>.enabled']; Thanks @theshka for giving this hint
2015-10-04 22:52:08 +02:00
Daniel Rudolf
9d518fd722
Move sorting of $pages from Pico::getPages() to Pico::sortPages()
2015-10-04 22:39:38 +02:00
Daniel Rudolf
4f1e8667c3
Cast AbstractPicoPlugin::$dependsOn to array
...
Plugin devs could come up with the idea of setting AbstractPicoPlugin::$dependsOn to a string (single dependency) or null (no dependencies)
2015-10-04 22:30:35 +02:00
Daniel Rudolf
79e2dacdb2
Fix method docs typo
2015-10-04 22:08:04 +02:00
Daniel Rudolf
27d694697f
Fix code formatting
2015-10-04 21:34:37 +02:00
Daniel Rudolf
006afa5774
Update changelog.txt
...
The changelog only provides basic information about the enormous changes introduced with Pico 1.0-beta. Please refer to the (not yet written... 😄 ) UPGRADE section of the docs for details.
2015-10-04 19:57:20 +02:00
Daniel Rudolf
2e15e112f7
Define deprecated constants before evaluating the config.php in Picos root dir
...
This prevents E_NOTICEs when using e.g. ROOT_DIR in a old config.php, so upgrading users are usually not bothered with this BC break
2015-10-04 18:50:16 +02:00
Daniel Rudolf
ef1a9e0c33
Improve README.md
2015-10-04 16:59:38 +02:00
Daniel Rudolf
9aa62b4b44
Improve method docs of Pico::load404Content()
2015-10-04 16:57:57 +02:00
Daniel Rudolf
77f939028c
Support per-directory 404.md files
2015-10-04 15:24:38 +02:00
Daniel Rudolf
3f7b0998c6
Declare undefined $plugins variable
...
Thanks @Lomanic
2015-10-04 14:47:54 +02:00
Daniel Rudolf
3a4721a20c
SCANDIR_SORT_* constants are available since PHP 5.4
...
Thanks @Lomanic
2015-10-04 14:15:11 +02:00
Daniel Rudolf
ab8994593f
Improve README.md formatting; Run PHP web server on localhost only
2015-10-03 18:38:16 +02:00
Daniel Rudolf
fa024ce849
Fix README.md formatting
2015-10-03 18:35:17 +02:00
Daniel Rudolf
7698f18df0
Merge branch 'master' into pico1.0
...
Merging @theshka's README.md updates...
Conflicts:
README.md
2015-10-03 18:28:48 +02:00
Daniel Rudolf
00f76d1083
Update README.md
2015-10-03 17:36:43 +02:00
theshka
a8e68eaac8
Update README
2015-10-02 17:02:27 -06:00
Daniel Rudolf
9be23de897
Require PHP >= 5.3.6 until erusev/parsedown-extra#75 is solved
2015-10-02 16:53:29 +02:00
Daniel Rudolf
241a52907e
Update inline code comments
2015-10-01 22:52:10 +02:00
Daniel Rudolf
fbb744dd43
Deny access to config, content, content-sample, lib and vendor dirs
...
Send 404 Not Found instead of 403 Forbidden
2015-10-01 22:42:23 +02:00
Daniel Rudolf
012dffa856
Fix #257
2015-10-01 21:59:03 +02:00
Daniel Rudolf
fd64e4fa5e
Add a exception to alpha sorting: List index files first
...
This guarantees that e.g. sub/index.md is listed before sub/foo.md
2015-10-01 21:54:30 +02:00
Daniel Rudolf
45815e2c6d
Don't read file contents of inaccessible pages
2015-10-01 17:22:14 +02:00
Daniel Rudolf
95db5ba1a1
Drop inaccessible pages
...
e.g. drop sub.md if sub/index.md exists
2015-10-01 15:59:47 +02:00
Daniel Rudolf
cdef7a6324
Explicitly treat relative paths to be relative to Picos root dir
...
This tempers the BC break, we can now recommend to simply remove the ROOT_DIR part
2015-10-01 15:14:45 +02:00
Daniel Rudolf
fc7632b0ac
Overhaul init of Pico
...
This may break BC if you're using one of the now deprecated constants (e.g. ROOT_DIR)
2015-10-01 15:05:50 +02:00
Daniel Rudolf
5e77d862bf
Remove twig cache dir
2015-09-29 00:42:04 +02:00
Daniel Rudolf
8d88863805
Fix whitespace
2015-09-28 17:42:47 +02:00
Daniel Rudolf
13a50c7f2f
Don't change $pageData['id'], add ~dup1 to the array key only
2015-09-28 17:25:10 +02:00
Daniel Rudolf
a5755b0d39
Fix deprecated get_page_data and get_pages events
2015-09-28 17:13:26 +02:00
Daniel Rudolf
a7fd853f8f
Add striptags filter to description meta header
...
Thanks @PontusHorn
2015-09-17 23:44:05 +02:00
Daniel Rudolf
5533b07531
Re-add lost PicoPluginInterface
2015-09-15 13:20:52 +02:00
Daniel Rudolf
f76a0b75be
Use v0.7 releases of erusev/parsedown-extra
2015-09-15 13:17:00 +02:00
Daniel Rudolf
70f187fb45
Rename IPicoPlugin to PicoPluginInterface
2015-09-15 13:15:45 +02:00
Daniel Rudolf
4821454ad5
Declare in config/config.php.template to prevent a E_NOTICE
2015-09-14 23:08:02 +02:00
Daniel Rudolf
5731ede297
Allow omitting config/config.php; Fix write context on return value
...
Thanks @Lomanic for reporting
2015-09-14 23:01:08 +02:00
Daniel Rudolf
71e7da28cc
Various fixes
...
Thanks @PontusHorn for spotting!
2015-09-13 20:46:09 +02:00
Daniel Rudolf
a83b01ef4f
Access plugins by class name, not file name
...
Class name and file name can differ regarding case sensitivity
2015-09-06 14:35:23 +02:00
Daniel Rudolf
533822320e
Workaround for webservers omitting QUERY_STRING
...
Thanks @theshka for spotting
2015-08-30 21:31:47 +02:00
Daniel Rudolf
5eed6d0562
Add missing update of index.twig
2015-08-30 21:29:52 +02:00
Daniel Rudolf
df10d60846
Fixing paths in global.php
...
That shouldn't be there... Thanks @theshka for spotting
2015-08-30 21:29:20 +02:00
Daniel Rudolf
c44afd396d
Update .htaccess
2015-08-28 18:37:36 +02:00
Daniel Rudolf
5438fdb368
Rename index.html of default theme to index.twig; Update template
2015-08-28 18:35:53 +02:00
Daniel Rudolf
39e1d788c5
Update sample content
2015-08-28 18:34:14 +02:00
Daniel Rudolf
144939b978
Update config.php.template
2015-08-28 18:33:27 +02:00