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
5e77d862bf
Remove twig cache dir
10 years ago
Daniel Rudolf
5533b07531
Re-add lost PicoPluginInterface
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
07ae26789c
Add AbstractPicoPlugin
...
The plugin magic takes place here...
10 years ago
Daniel Rudolf
43a7540f46
Add IPicoPlugin
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
adc356251e
Remove index.html
...
A empty index.html is a solution for nothing...
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
Gilbert Pellegrom
45cd4ca5b7
v0.7
...
* [New] Added before_read_file_meta and get_page_data plugin hooks to
customize page meta data
* [Changed] Make get_files() ignore dotfiles
* [Changed] Make get_pages() ignore Emacs and temp files
* [Changed] Use composer version of Markdown
* [Changed] Other small tweaks
* [Fixed] Date warnings and other small bugs
12 years ago
Curtis Mattoon
2e26edaa13
Replaced spaces with tabs... d'oh
12 years ago
Curtis Mattoon
8141ccaeb5
Merge branch 'master' of https://github.com/cmattoon/Pico
...
Conflicts:
lib/pico.php
12 years ago
Curtis Mattoon
10eeea80c1
Modified Pico::get_pages() to ignore Emacs (~) and Nano (#) temp files
12 years ago
Curtis Mattoon
9fa454499d
Modified Pico::get_pages() to ignore Emacs (~) and Nano (#) temp files
12 years ago
Konrad Riedel
145915346c
using composer for markdown
12 years ago
David Cochran
adf440a9dd
get_files() will ignore dotfiles now
12 years ago