Daniel Rudolf
a654b1585b
phpDocumentor 2.8.5 currently doesn't support the Generic notations
...
This will likely be implemented as soon as the proposed PSR-5: PHPDoc is accepted
10 years ago
Daniel Rudolf
92af554d14
Improve inline code comments; preparing use of phpDocumentor
10 years ago
theshka
01122f2901
fix spelling
10 years ago
Daniel Rudolf
b09433a37b
Allow multiple calls to Pico::setConfig()
10 years ago
Daniel Rudolf
1419cf1636
Add Pico::setConfig() method
...
Thanks @dav-m85
10 years ago
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.
10 years ago
Daniel Rudolf
9d518fd722
Move sorting of $pages from Pico::getPages() to Pico::sortPages()
10 years ago
Daniel Rudolf
27d694697f
Fix code formatting
10 years ago
Daniel Rudolf
9aa62b4b44
Improve method docs of Pico::load404Content()
10 years ago
Daniel Rudolf
77f939028c
Support per-directory 404.md files
10 years ago
Daniel Rudolf
3a4721a20c
SCANDIR_SORT_* constants are available since PHP 5.4
...
Thanks @Lomanic
10 years ago
Daniel Rudolf
241a52907e
Update inline code comments
10 years ago
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
10 years ago
Daniel Rudolf
45815e2c6d
Don't read file contents of inaccessible pages
10 years ago
Daniel Rudolf
95db5ba1a1
Drop inaccessible pages
...
e.g. drop sub.md if sub/index.md exists
10 years ago
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
10 years ago
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)
10 years ago
Daniel Rudolf
70f187fb45
Rename IPicoPlugin to PicoPluginInterface
10 years ago
Daniel Rudolf
5731ede297
Allow omitting config/config.php; Fix write context on return value
...
Thanks @Lomanic for reporting
10 years ago
Daniel Rudolf
71e7da28cc
Various fixes
...
Thanks @PontusHorn for spotting!
10 years ago
Daniel Rudolf
a83b01ef4f
Access plugins by class name, not file name
...
Class name and file name can differ regarding case sensitivity
10 years ago
Daniel Rudolf
533822320e
Workaround for webservers omitting QUERY_STRING
...
Thanks @theshka for spotting
10 years ago
Daniel Rudolf
cd145821ba
Remove pull request message
10 years ago
Daniel Rudolf
92c307d8be
Pico 1.0
...
I unfortunately messed up my repo so this is just a single commit... :(
10 years ago
Daniel Rudolf
c496297c44
Class files should exactly match the class name
10 years ago
Daniel Rudolf
399b73aa3b
Move config.php to config/; Add CONFIG_DIR and VENDOR_DIR constants
10 years ago
Danyel Bayraktar
8d82cde120
Use scandir instead of opendir to ensure alphabetical order.
10 years ago
theshka
f4cc9727ff
Fix call on method of an object just created with new/PHP 5.3.10 compatibility error.
10 years ago
Wojciech Grzebieniowski
577160b109
Apply PSR1/PSR2 coding standards.
...
Mostly - use consistent indentation. Currently some methods in Pico
class are indented with space ( get_files() ), some with tabs.
10 years ago
Wojciech Grzebieniowski
83a3313e53
Fixed indent
10 years ago
Wojciech Grzebieniowski
23b90e2a92
Avoid using global config variable.
...
Instead config is keeped in Pico::$config private variable, and the
config.php returns $config.
10 years ago
theshka
eb368d31e1
fix date_formatted issue
10 years ago
theshka
529e268d5b
fix namespace error
10 years ago
theshka
968dc183db
Upgrade to Parsedown-extra
10 years ago
gregfedorov
d6df89ad2c
Typo causes error on php 5.6.7
10 years ago
Diogo Oliveira de Melo
196d3cf283
Move content to content-sample
...
- move the directory content to content-sample
- remove CONTENT_DIR as a define on index.php
- create config value "content_dir" and replace all CONTENT_DIR by it's
correspondent $config['content_dir']
- add the content_dir config on config.php.template
10 years ago
raptor
8efa97accc
fix get_protocol bug.
...
$_SERVER['HTTPS'] == '' on nginx http
10 years ago
Curtis Mattoon
dfb5900835
Update pico.php
...
Added ignore for tmp file extensions in the get_files() method. When editing plugins with emacs, the get_files() method also grabs the temp files, which leads to a "Can't redclare class [PluginName]" error.
Side note: Would these arrays be better in a property (ala DRY)?
11 years ago
picocms
364a395226
Update pico.php
...
Updated link
11 years ago
Philipp Schmitt
a2331c1b53
UTF-8 encoding for date meta
11 years ago
Philipp Schmitt
553a5ea010
Localize date meta
...
Use strftime() instead of date() so that non-english websites can
display the date meta in their locale. The locale can be set with
setLocale(LC_ALL, 'YOURLOCALE').
Please note that this changes the date format.
More information: http://php.net/strftime
11 years ago
sergeweyland
aea6779195
Update pico.php
...
Fixes an issue wherein the alphabetical sorting of pages did not happen, because array key was not, in fact, the page's filename.
12 years ago
Cristian
2194dd1bdb
Fix comment
12 years ago
Snip1
395011c770
Update pico.php
...
Adding 'description' => isset($page_meta['description']) ? $page_meta['description'] : '',
to $data=array allows for use of the description meta in place of the excerpt.
12 years ago
Christopher
b136780988
Dont remove all comments from *.md. Only first one (other may be code)
12 years ago
Gilbert Pellegrom
aa59661ff8
v0.8
...
Added ability to set template in content meta
12 years ago
Gilbert Pellegrom
b2fa0a4abe
Changed Pico methods to protected.
12 years ago
Gilbert Pellegrom
022334ff13
Added before_parse_content & after_parse_content hooks. content_parsed
...
hook is depreciated. Updated get_protocol() method.
12 years ago
Benedict Etzel
f665564a79
only append ellipsis in limit_words when string was actually limited
12 years ago
Frank Nägler
3d91c03979
[BUGFIX] load config and call hook before the other hooks
...
this bugfix is very important, because other hooks like "after_load_content" can not use the config.
12 years ago