Browse Source

update pico blog framework base

Karathan 6 years ago
parent
commit
5bb5af1686
15 changed files with 1469 additions and 46 deletions
  1. 15
    0
      .gitignore
  2. 22
    0
      .htaccess
  3. 520
    0
      CHANGELOG.md
  4. 209
    0
      CONTRIBUTING.md
  5. 21
    46
      LICENSE
  6. 1
    0
      assets/.gitignore
  7. 29
    0
      composer.json
  8. 511
    0
      composer.lock
  9. 1
    0
      config/.gitignore
  10. 50
    0
      config/config.yml.template
  11. 1
    0
      content/.gitignore
  12. 39
    0
      index.php
  13. 2
    0
      plugins/.gitignore
  14. 2
    0
      themes/.gitignore
  15. 46
    0
      themes/stellar/LICENSE

+ 15
- 0
.gitignore View File

@@ -0,0 +1,15 @@
1
+# Linux
2
+*~
3
+*.swp
4
+
5
+# Windows
6
+Thumbs.db
7
+desktop.ini
8
+
9
+# Mac OS X
10
+.DS_Store
11
+._*
12
+
13
+# Composer
14
+/composer.phar
15
+/vendor

+ 22
- 0
.htaccess View File

@@ -0,0 +1,22 @@
1
+<IfModule mod_rewrite.c>
2
+    RewriteEngine On
3
+    # May be required to access sub directories
4
+    #RewriteBase /
5
+
6
+    # Deny access to internal dirs and files by passing the URL to Pico
7
+    RewriteRule ^(config|content|vendor|CHANGELOG\.md|composer\.(json|lock|phar))(/|$) index.php [L]
8
+    RewriteRule (^\.|/\.)(?!well-known(/|$)) index.php [L]
9
+
10
+    # Enable URL rewriting
11
+    RewriteCond %{REQUEST_FILENAME} !-f
12
+    RewriteCond %{REQUEST_FILENAME} !-d
13
+    RewriteRule ^ index.php [L]
14
+
15
+    <IfModule mod_env.c>
16
+        # Let Pico know about available URL rewriting
17
+        SetEnv PICO_URL_REWRITING 1
18
+    </IfModule>
19
+</IfModule>
20
+
21
+# Prevent file browsing
22
+Options -Indexes -MultiViews

+ 520
- 0
CHANGELOG.md View File

@@ -0,0 +1,520 @@
1
+Pico Changelog
2
+==============
3
+
4
+**Note:** This changelog only provides technical information about the changes
5
+          introduced with a particular Pico version, and is meant to supplement
6
+          the actual code changes. The information in this changelog are often
7
+          insufficient to understand the implications of larger changes. Please
8
+          refer to both the UPGRADE and NEWS sections of the docs for more
9
+          details.
10
+
11
+**Note:** Changes breaking backwards compatibility (BC) are marked with an `!`
12
+          (exclamation mark). This doesn't include changes for which BC is
13
+          preserved by Pico's official `PicoDeprecated` plugin. If a previously
14
+          deprecated feature is later removed in `PicoDeprecated`, this change
15
+          is going to be marked as BC-breaking change in both Pico's and
16
+          `PicoDeprecated`'s changelog. Please note that BC-breaking changes
17
+          are only possible with a new major version.
18
+
19
+### Version 2.0.2
20
+Released: 2018-08-12
21
+
22
+```
23
+* [Fixed] Support Windows paths (`\` instead of `/`) in `Pico::evaluateRequestUrl()`
24
+```
25
+
26
+### Version 2.0.1
27
+Released: 2018-07-29
28
+
29
+```
30
+* [Changed] Improve documentation
31
+* [Changed] Add missing "Formatted Date", "Time" and "Hidden" meta headers; use
32
+            the "Hidden" meta header to manually hide a page in the pages list
33
+```
34
+
35
+### Version 2.0.0
36
+Released: 2018-07-01
37
+
38
+```
39
+* [New] Add Bountysource
40
+* [Changed] Improve documentation
41
+* [Changed] Improve release & build process
42
+* [Changed] Add `Pico::setConfig()` example to `index.php.dist`
43
+* [Fixed] Don't load `config/config.yml` multiple times
44
+```
45
+
46
+### Version 2.0.0-beta.3
47
+Released: 2018-04-07
48
+
49
+```
50
+* [Changed] Add `README.md`, `CONTRIBUTING.md` and `CHANGELOG.md` of main repo
51
+            to pre-bundled releases, keep `.gitignore`
52
+* [Changed] Deny access to a possibly existing `composer.phar` in `.htaccess`
53
+* [Changed] Disallow the use of the `callback` filter for the `url_param` and
54
+            `form_param` Twig functions
55
+* [Changed] Improve documentation
56
+* [Fixed] Fix page tree when sorting pages by arbitrary values
57
+* [Fixed] Fix sorting of `Pico::$nativePlugins`
58
+```
59
+
60
+### Version 2.0.0-beta.2
61
+Released: 2018-01-21
62
+
63
+```
64
+* [New] Improve release & build process and move most build tools to the new
65
+        `picocms/ci-tools` repo, allowing them to be used by other projects
66
+* [New] Add page tree; refer to the `Pico::buildPageTree()` method for more
67
+        details; also see the `onPageTreeBuilt` event
68
+* [Changed] Update dependencies: Twig 1.35
69
+* [Changed] ! Improve `.htaccess` and deny access to all dot files by default
70
+* [Changed] ! Throw a `RuntimeException` when non-native plugins are loaded,
71
+            but Pico's `PicoDeprecated` plugin is not loaded
72
+* [Changed] ! Change `AbstractPicoPlugin::$enabled`'s behavior: setting it to
73
+            TRUE now leads to throwing a `RuntimeException` when the plugin's
74
+            dependencies aren't fulfilled; use NULL to maintain old behavior
75
+* [Changed] ! Force themes to use `.twig` as file extension for Twig templates
76
+* [Changed] Improve PHP class docs
77
+* [Changed] Various small improvements
78
+```
79
+
80
+### Version 2.0.0-beta.1
81
+Released: 2017-11-05
82
+
83
+```
84
+* [New] Pico is on its way to its second major release!
85
+* [New] Improve Pico's release & build process
86
+* [New] Add "Developer Certificate of Origin" to `CONTRIBUTING.md`
87
+* [New] Add license & copyright header to all relevant files
88
+* [New] Add Pico version constants (`Pico::VERSION` and `Pico::VERSION_ID`),
89
+        and add a `version` Twig variable and `%version%` Markdown placeholder
90
+* [New] Add Pico API versioning for plugins (see `Pico::API_VERSION` constant);
91
+        Pico now triggers events on plugins using the latest API version only
92
+        ("native" plugins), `PicoDeprecated` takes care of all other plugins;
93
+        as a result, old plugin's always depend on `PicoDeprecated` now
94
+* [New] Add a theme and plugin installer for composer; Pico now additionally
95
+        uses the new `vendor/pico-plugin.php` file to discover plugins
96
+        installed by composer and loads them using composer's autoloader;
97
+        see the `picocms/composer-installer` repo for more details; Pico
98
+        loads plugins installed by composer first and ignores conflicting
99
+        plugins in Pico's `plugins/` dir
100
+* [New] Add `$enableLocalPlugins` parameter to `Pico::__construct()` to allow
101
+        website developers to disable local plugin discovery by scanning the
102
+        `plugins/` dir (i.e. load plugins from `vendor/pico-plugin.php` only)
103
+* [New] Add public `AbstractPicoPlugin::getPluginConfig()` method
104
+* [New] Add public `Pico::loadPlugin()` method and the corresponding
105
+        `onPluginManuallyLoaded` event
106
+* [New] Add public `Pico::resolveFilePath()` method (replaces the protected
107
+        `Pico::discoverRequestFile()` method)
108
+* [New] Add public `Pico::is404Content()` method
109
+* [New] Add public `Pico::getYamlParser()` method and the corresponding
110
+        `onYamlParserRegistered` event
111
+* [New] Add public `Pico::substituteFileContent()` method
112
+* [New] Add public `Pico::getPageId()` method
113
+* [New] Add public `Pico::getFilesGlob()` method
114
+* [New] Add public `Pico::getVendorDir()` method, returning Pico's installation
115
+        directory (i.e. `/var/www/pico/vendor/picocms/pico`); don't confuse
116
+        this with composer's `vendor/` dir!
117
+* [New] Add `$default` parameter to `Pico::getConfig()` method
118
+* [New] Add empty `assets/` and `content/` dirs
119
+* [New] #305: Add `url_param` and `form_param` Twig functions, and the public
120
+        `Pico::getUrlParameter()` and `Pico::getFormParameter()` methods,
121
+        allowing theme developers to access URL GET and HTTP POST parameters
122
+* [New] Add `$meta` parameter to `markdown` Twig filter
123
+* [New] Add `remove` fallback to `sort_by` Twig filter
124
+* [New] Add `theme_url` config parameter
125
+* [New] Add public `Pico::getBaseThemeUrl()` method
126
+* [New] Add `REQUEST_URI` routing method, allowing one to simply rewrite all
127
+        requests to `index.php` (e.g. use `FallbackResource` or `mod_rewrite`
128
+        in your `.htaccess` for Apache, or use `try_files` for nginx)
129
+* [New] #299: Add built-in 404 page as fallback when no `404.md` is found
130
+* [New] Allow sorting pages by arbitrary meta values
131
+* [New] Add `onSinglePageLoading` event, allowing one to skip a page
132
+* [New] Add `onSinglePageContent` event
133
+* [New] Add some config parameters to change Parsedown's behavior
134
+* [Changed] ! Disallow running the same Pico instance multiple times by
135
+            throwing a `RuntimeException` when calling `Pico::run()`
136
+* [Changed] ! #203: Load plugins from `plugins/<plugin name>/<plugin name>.php`
137
+            and `plugins/<plugin name>.php` only (directory and file name must
138
+            match case-sensitive), and throw a `RuntimeException` when Pico is
139
+            unable to load a plugin; also throw a `RuntimeException` when
140
+            superfluous files or directories in `plugins/` are found; use a
141
+            scope-isolated `require()` to include plugin files
142
+* [Changed] ! Use a plugin dependency topology to sort `Pico::$plugins`,
143
+            changing the execution order of plugins so that plugins, on which
144
+            other plugins depend, are always executed before their dependants
145
+* [Changed] ! Don't pass `$plugins` parameter to `onPluginsLoaded` event by
146
+            reference anymore; use `Pico::loadPlugin()` instead
147
+* [Changed] ! Leave `Pico::$pages` unsorted when a unknown sort method was
148
+            configured; this usually means that a plugin wants to sort it
149
+* [Changed] Overhaul page discovery events: add `onPagesDiscovered` event which
150
+            is triggered right before `Pico::$pages` is sorted and move the
151
+            `$currentPage`, `$previousPage` and `$nextPage` parameters of the
152
+            `onPagesLoaded` event to the new `onCurrentPageDiscovered` event
153
+* [Changed] Move the `$twig` parameter of the `onPageRendering` event to the
154
+            `onTwigRegistered` event, replacing the `onTwigRegistration` event
155
+* [Changed] Unify the `onParsedownRegistration` event by renaming it to
156
+            `onParsedownRegistered` and add the `$parsedown` parameter
157
+* [Changed] #330: Replace `config/config.php` by a modular YAML-based approach;
158
+            you can now use a arbitrary number of `config/*.yml` files to
159
+            configure Pico
160
+* [Changed] ! When trying to auto-detect Pico's `content` dir, Pico no longer
161
+            searches just for a (possibly empty) directory, but rather checks
162
+            whether a `index.md` exists in this directory
163
+* [Changed] ! Use the relative path between `index.php` and `Pico::$themesDir`
164
+            for Pico's theme URL (also refer to the new `theme_url` config and
165
+            the public `Pico::getBaseThemeUrl()` method for more details)
166
+* [Changed] #347: Drop the superfluous trailing "/index" from Pico's URLs
167
+* [Changed] Flip registered meta headers array, so that the array key is used
168
+            to search for a meta value and the array value is used to store the
169
+            found meta value (previously it was the other way round)
170
+* [Changed] ! Add lazy loading for `Pico::$yamlParser`, `Pico::$parsedown` and
171
+            `Pico::$twig`; the corresponding events are no longer part of
172
+            Pico's event flow and are triggered on demand
173
+* [Changed] ! Trigger the `onMetaHeaders` event just once; the event is no
174
+            longer part of Pico's event flow and is triggered on demand
175
+* [Changed] Don't lower meta headers on the first level of a page's meta data
176
+            (i.e. `SomeKey: value` is accessible using `$meta['SomeKey']`)
177
+* [Changed] Don't compare registered meta headers case-insensitive, require
178
+            matching case
179
+* [Changed] Allow users to explicitly set values for the `date_formatted` and
180
+            `time` meta headers in a page's YAML front matter
181
+* [Changed] Add page siblings for all pages
182
+* [Changed] ! Treat pages or directories that are prefixed by `_` as hidden;
183
+            when requesting a hidden page, Pico responds with a 404 page;
184
+            hidden pages are still in `Pico::$pages`, but are moved to the end
185
+            of the pages array when sorted alphabetically or by date
186
+* [Changed] ! Don't treat explicit requests to a 404 page as successful request
187
+* [Changed] Change method visibility of `Pico::getFiles()` to public
188
+* [Changed] Change method visibility of `Pico::triggerEvent()` to public;
189
+            at first glance this method triggers events on native plugins only,
190
+            however, `PicoDeprecated` takes care of triggering events for other
191
+            plugins, thus you can use this method to trigger (custom) events on
192
+            all plugins; never use it to trigger Pico core events!
193
+* [Changed] Move Pico's default theme to the new `picocms/pico-theme` repo; the
194
+            theme was completely rewritten from scratch and is a much better
195
+            starting point for creating your own theme; refer to the theme's
196
+            `CHANGELOG.md` for more details
197
+* [Changed] Move `PicoDeprecated` plugin to the new `picocms/pico-deprecated`
198
+            repo; refer to the plugin's `CHANGELOG.md` for more details
199
+* [Changed] Update dependencies: Twig 1.34, Symfony YAML 2.8, Parsedown 1.6
200
+* [Changed] Improve Pico docs and PHP class docs
201
+* [Changed] A vast number of small improvements and changes...
202
+* [Removed] ! Remove `PicoParsePagesContent` plugin
203
+* [Removed] ! Remove `PicoExcerpt` plugin
204
+* [Removed] Remove `rewrite_url` and `is_front_page` Twig variables
205
+* [Removed] Remove superfluous parameters of various events to reduce Pico's
206
+            error-proneness (plugins hopefully interfere with each other less)
207
+```
208
+
209
+### Version 1.0.6
210
+Released: 2017-07-25
211
+
212
+```
213
+* [Changed] Improve documentation
214
+* [Changed] Improve handling of Pico's Twig config (`$config['twig_config']`)
215
+* [Changed] Improve PHP platform requirement checks
216
+```
217
+
218
+### Version 1.0.5
219
+Released: 2017-05-02
220
+
221
+```
222
+* [Changed] Improve documentation
223
+* [Fixed] Improve hostname detection with proxies
224
+* [Fixed] Fix detection of Windows-based server environments
225
+* [Removed] Remove Twitter links
226
+```
227
+
228
+### Version 1.0.4
229
+Released: 2016-10-04
230
+
231
+```
232
+* [New] Add Pico's social icons to default theme
233
+* [Changed] Improve documentation
234
+* [Changed] Add CSS flexbox rules to default theme
235
+* [Fixed] Fix handling of non-YAML 1-line front matters
236
+* [Fixed] Fix responsiveness in default theme
237
+```
238
+
239
+### Version 1.0.3
240
+Released: 2016-05-11
241
+
242
+```
243
+* [Changed] Improve documentation
244
+* [Changed] Heavily extend nginx configuration docs
245
+* [Changed] Add CSS rules for definition lists to default theme
246
+* [Changed] Always use `on404Content...` execution path when serving a `404.md`
247
+* [Changed] Deny access to `.git` directory, `CHANGELOG.md`, `composer.json`
248
+            and `composer.lock` (`.htaccess` file)
249
+* [Changed] Use Pico's `404.md` to deny access to `.git`, `config`, `content`,
250
+*           `content-sample`, `lib` and `vendor` dirs (`.htaccess` file)
251
+* [Fixed] #342: Fix responsiveness in default theme
252
+* [Fixed] #344: Improve HTTPS detection with proxies
253
+* [Fixed] #346: Force HTTPS to load Google Fonts in default theme
254
+```
255
+
256
+### Version 1.0.2
257
+Released: 2016-03-16
258
+
259
+```
260
+* [Changed] Various small improvements and changes...
261
+* [Fixed] Check dependencies when a plugin is enabled by default
262
+* [Fixed] Allow `Pico::$requestFile` to point to somewhere outside `content_dir`
263
+* [Fixed] #336: Fix `Date` meta header parsing with ISO-8601 datetime strings
264
+```
265
+
266
+### Version 1.0.1
267
+Released: 2016-02-27
268
+
269
+```
270
+* [Changed] Improve documentation
271
+* [Changed] Replace `version_compare()` with `PHP_VERSION_ID` in
272
+            `index.php.dist` (available since PHP 5.2.7)
273
+* [Fixed] Suppress PHP warning when using `date_default_timezone_get()`
274
+* [Fixed] #329: Force Apache's `MultiViews` feature to be disabled
275
+```
276
+
277
+### Version 1.0.0
278
+Released: 2015-12-24
279
+
280
+```
281
+* [New] On Christmas Eve, we are happy to announce Pico's first stable release!
282
+        The Pico Community wants to thank all contributors and users who made
283
+        this possible. Merry Christmas and a Happy New Year 2016!
284
+* [New] Adding `$queryData` parameter to `Pico::getPageUrl()` method
285
+* [Changed] Improve documentation
286
+* [Changed] Moving `LICENSE` to `LICENSE.md`
287
+* [Changed] Throw `LogicException` instead of `RuntimeException` when calling
288
+            `Pico::setConfig()` after processing has started
289
+* [Changed] Default theme now highlights the current page and shows pages with
290
+            a title in the navigation only
291
+* [Changed] #292: Ignore YAML parse errors (meta data) in `Pico::readPages()`
292
+* [Changed] Various small improvements and changes...
293
+* [Fixed] Support empty meta header
294
+* [Fixed] #307: Fix path handling on Windows
295
+```
296
+
297
+### Version 1.0.0-beta.2
298
+Released: 2015-11-30
299
+
300
+```
301
+* [New] Introducing the `PicoTwigExtension` Twig extension
302
+* [New] New `markdown` filter for Twig to parse markdown strings; Note: If you
303
+        want to parse the contents of a page, use the `content` filter instead
304
+* [New] New `sort_by` filter to sort an array by a specified key or key path
305
+* [New] New `map` filter to get the values of the given key or key path
306
+* [New] Introducing `index.php.dist` (used for pre-bundled releases)
307
+* [New] Use PHP_CodeSniffer to auto-check source code (see `.phpcs.xml`)
308
+* [New] Use Travis CI to generate phpDocs class docs automatically
309
+* [Changed] Improve documentation
310
+* [Changed] Improve table styling in default theme
311
+* [Changed] Update composer version constraints; almost all dependencies will
312
+            have pending updates, run `composer update`
313
+* [Changed] Throw a RuntimeException when the `content` dir isn't accessible
314
+* [Changed] Reuse `ParsedownExtra` object; new `onParsedownRegistration` event
315
+* [Changed] `$config['rewrite_url']` is now always available
316
+* [Changed] `DummyPlugin` class is now final
317
+* [Changed] Remove `.git` dirs from `vendor/` when deploying
318
+* [Changed] Various small improvements and changes...
319
+* [Fixed] `PicoDeprecated`: Sanitize `content_dir` and `base_url` options when
320
+          reading `config.php` in Picos root dir
321
+* [Fixed] Replace `urldecode()` (deprecated RFC 1738) with `rawurldecode()`
322
+          (RFC 3986) in `Page::evaluateRequestUrl()`
323
+* [Fixed] #272: Encode URLs using `rawurlencode()` in `Pico::getPageUrl()`
324
+* [Fixed] #274: Prevent double slashes in `base_url`
325
+* [Fixed] #285: Make `index.php` work when installed as a composer dependency
326
+* [Fixed] #291: Force `Pico::$requestUrl` to have no leading/trailing slash
327
+```
328
+
329
+### Version 1.0.0-beta.1
330
+Released: 2015-11-06
331
+
332
+```
333
+* [Security] (9e2604a) Prevent content_dir breakouts using malicious URLs
334
+* [New] Pico is on its way to its first stable release!
335
+* [New] Provide pre-bundled releases
336
+* [New] Heavily expanded documentation (inline code docs, user docs, dev docs)
337
+* [New] New routing system using the QUERY_STRING method; Pico now works
338
+        out-of-the-box with any webserver and without URL rewriting; use
339
+        `%base_url%?sub/page` in markdown files and `{{ "sub/page"|link }}`
340
+        in Twig templates to declare internal links
341
+* [New] Brand new plugin system with dependencies (see `PicoPluginInterface`
342
+        and `AbstractPicoPlugin`); if you're plugin dev, you really should
343
+        take a look at the UPGRADE section of the docs!
344
+* [New] Introducing the `PicoDeprecated` plugin to maintain full backward
345
+        compatibility with Pico 0.9 and Pico 0.8
346
+* [New] Support YAML-style meta header comments (`---`)
347
+* [New] Various new placeholders to use in content files (e.g. `%site_title%`)
348
+* [New] Provide access to all meta headers in content files (`%meta.*%`)
349
+* [New] Provide access to meta headers in `$page` arrays (`$page['meta']`)
350
+* [New] The file extension of content files is now configurable
351
+* [New] Add `Pico::setConfig()` method to predefine config variables
352
+* [New] Supporting per-directory `404.md` files
353
+* [New] #103: Providing access to `sub.md` even when the `sub` directory
354
+        exists, provided that there is no `sub/index.md`
355
+* [New] #249: Support the `.twig` file extension for templates
356
+* [New] #268, 269: Now using Travis CI; performing basic code tests and
357
+        implementing an automatic release process
358
+* [Changed] Complete code refactoring
359
+* [Changed] Source code now follows PSR code styling
360
+* [Changed] Replacing constants (e.g. `ROOT_DIR`) with constructor parameters
361
+* [Changed] Paths (e.g. `content_dir`) are now relative to Pico's root dir
362
+* [Changed] Adding `Pico::run()` method that performs Pico's processing and
363
+            returns the rendered contents
364
+* [Changed] Renaming all plugin events; adding some new events
365
+* [Changed] `Pico_Plugin` is now the fully documented `DummyPlugin`
366
+* [Changed] Meta data must start on the first line of the file now
367
+* [Changed] Dropping the need to register meta headers for the convenience of
368
+            users and pure (!) theme devs; plugin devs are still REQUIRED to
369
+            register their meta headers during `onMetaHeaders`
370
+* [Changed] Exclude inaccessible files from pages list
371
+* [Changed] With alphabetical order, index files (e.g. `sub/index.md`) are
372
+            now always placed before their sub pages (e.g. `sub/foo.md`)
373
+* [Changed] Pico requires PHP >= 5.3.6 (due to `erusev/parsedown-extra`)
374
+* [Changed] Pico now implicitly uses a existing `content` directory without
375
+            the need to configure this in the `config/config.php` explicitly
376
+* [Changed] Composer: Require a v0.7 release of `erusev/parsedown-extra`
377
+* [Changed] Moving `license.txt` to `LICENSE`
378
+* [Changed] Moving and reformatting `changelog.txt` to `CHANGELOG.md`
379
+* [Changed] #116: Parse meta headers using the Symfony YAML component
380
+* [Changed] #244: Replace opendir() with scandir()
381
+* [Changed] #246: Move `config.php` to `config/` directory
382
+* [Changed] #253: Assume HTTPS if page is requested through port 443
383
+* [Changed] A vast number of small improvements and changes...
384
+* [Fixed] Sorting by date now uses timestamps and works as expected
385
+* [Fixed] Fixing `$currentPage`, `$nextPage` and `$previousPage`
386
+* [Fixed] #99: Support content filenames with spaces
387
+* [Fixed] #140, #241: Use file paths as page identifiers rather than titles
388
+* [Fixed] #248: Always set a timezone; adding `$config['timezone']` option
389
+* [Fixed] A vast number of small bugs...
390
+* [Removed] Removing the default Twig cache dir
391
+* [Removed] Removing various empty `index.html` files
392
+* [Removed] Removing `$pageData['excerpt']`; recoverable with `PicoExcerpt`
393
+* [Removed] #93, #158: Pico doesn't parse all content files anymore; moved to
394
+            `PicoParsePagesContent`; i.e. `$pageData['content']` doesn't exist
395
+            anymore, use `$pageData['raw_content']` when possible; otherwise
396
+            use Twigs new `content` filter (e.g. `{{ "sub/page"|content }}`)
397
+```
398
+
399
+### Version 0.9
400
+Released: 2015-04-28
401
+
402
+```
403
+* [New] Default theme is now mobile-friendly
404
+* [New] Description meta now available in content areas
405
+* [New] Add description to composer.json
406
+* [Changed] content folder is now content-sample
407
+* [Changed] config.php moved to config.php.template
408
+* [Changed] Updated documentation & wiki
409
+* [Changed] Removed Composer, Twig files in /vendor, you must run composer
410
+            install now
411
+* [Changed] Localized date format; strftime() instead of date()
412
+* [Changed] Added ignore for tmp file extensions in the get_files() method
413
+* [Changed] michelf/php-markdown is replaced with erusev/parsedown-extra
414
+* [Changed] $config is no global variable anymore
415
+* [Fixed] Pico now only removes the 1st comment block in .md files
416
+* [Fixed] Issue wherein the alphabetical sorting of pages did not happen
417
+```
418
+
419
+### Version 0.8
420
+Released: 2013-10-23
421
+
422
+```
423
+* [New] Added ability to set template in content meta
424
+* [New] Added before_parse_content and after_parse_content hooks
425
+* [Changed] content_parsed hook is now deprecated
426
+* [Changed] Moved loading the config to nearer the beginning of the class
427
+* [Changed] Only append ellipsis in limit_words() when word count exceeds max
428
+* [Changed] Made private methods protected for better inheritance
429
+* [Fixed] Fixed get_protocol() method to work in more situations
430
+```
431
+
432
+### Version 0.7
433
+Released: 2013-09-04
434
+
435
+```
436
+* [New] Added before_read_file_meta and get_page_data plugin hooks to customize
437
+        page meta data
438
+* [Changed] Make get_files() ignore dotfiles
439
+* [Changed] Make get_pages() ignore Emacs and temp files
440
+* [Changed] Use composer version of Markdown
441
+* [Changed] Other small tweaks
442
+* [Fixed] Date warnings and other small bugs
443
+```
444
+
445
+### Version 0.6.2
446
+Released: 2013-05-07
447
+
448
+```
449
+* [Changed] Replaced glob_recursive with get_files
450
+```
451
+
452
+### Version 0.6.1
453
+Released: 2013-05-07
454
+
455
+```
456
+* [New] Added "content" and "excerpt" fields to pages
457
+* [New] Added excerpt_length config setting
458
+```
459
+
460
+### Version 0.6
461
+Released: 2013-05-06
462
+
463
+```
464
+* [New] Added plugin functionality
465
+* [Changed] Other small cleanup
466
+```
467
+
468
+### Version 0.5
469
+Released: 2013-05-03
470
+
471
+```
472
+* [New] Added ability to order pages by "alpha" or "date" (asc or desc)
473
+* [New] Added prev_page, current_page, next_page and is_front_page template vars
474
+* [New] Added "Author" and "Date" title meta fields
475
+* [Changed] Added "twig_config" to settings
476
+* [Changed] Updated documentation
477
+* [Fixed] Query string 404 bug
478
+```
479
+
480
+### Version 0.4.1
481
+Released: 2013-05-01
482
+
483
+```
484
+* [New] Added CONTENT_EXT global
485
+* [Changed] Use .md files instead of .txt
486
+```
487
+
488
+### Version 0.4
489
+Released: 2013-05-01
490
+
491
+```
492
+* [New] Add get_pages() function for listing content
493
+* [New] Added changelog.txt
494
+* [Changed] Updated default theme
495
+* [Changed] Updated documentation
496
+```
497
+
498
+### Version 0.3
499
+Released: 2013-04-27
500
+
501
+```
502
+* [Fixed] get_config() function
503
+```
504
+
505
+### Version 0.2
506
+Released: 2013-04-26
507
+
508
+```
509
+* [Changed] Updated Twig
510
+* [Changed] Better checking for HTTPS
511
+* [Fixed] Add 404 header to 404 page
512
+* [Fixed] Case sensitive folder bug
513
+```
514
+
515
+### Version 0.1
516
+Released: 2012-04-04
517
+
518
+```
519
+* Initial release
520
+```

+ 209
- 0
CONTRIBUTING.md View File

@@ -0,0 +1,209 @@
1
+Contributing to Pico
2
+====================
3
+
4
+Pico aims to be a high quality Content Management System (CMS) but at the same time wants to give contributors freedom when submitting fixes or improvements.
5
+
6
+By contributing to Pico, you accept and agree to the *Developer Certificate of Origin* for your present and future contributions submitted to Pico. Please refer to the *Developer Certificate of Origin* section below.
7
+
8
+Aside from this, we want to *encourage*, but not obligate you, the contributor, to follow the following guidelines. The only exception to this are the guidelines elucidated in the *Prevent `merge-hell`* section. Having said that: we really appreciate it when you apply the guidelines in part or wholly as that will save us time which, in turn, we can spend on bugfixes and new features.
9
+
10
+Issues
11
+------
12
+
13
+If you want to report an *issue* with Pico's core, please create a new [Issue](https://github.com/picocms/Pico/issues) on GitHub. Concerning problems with plugins or themes, please refer to the website of the developer of this plugin or theme.
14
+
15
+Before creating a [new Issue on GitHub](https://github.com/picocms/Pico/issues/new), please make sure the problem wasn't reported yet using [GitHubs search engine](https://github.com/picocms/Pico/search?type=Issues).
16
+
17
+Please describe your issue as clear as possible and always include the *Pico version* you're using. Provided that you're using *plugins*, include a list of them too. We need information about the *actual and expected behavior*, the *steps to reproduce* the problem, and what steps you have taken to resolve the problem by yourself (i.e. *your own troubleshooting*).
18
+
19
+Contributing
20
+------------
21
+
22
+Once you decide you want to contribute to *Pico's core* (which we really appreciate!) you can fork the project from https://github.com/picocms/Pico. If you're interested in developing a *plugin* or *theme* for Pico, please refer to the [development section](http://picocms.org/development/) of our website.
23
+
24
+### Developer Certificate of Origin
25
+
26
+By contributing to Pico, you accept and agree to the following terms and conditions for your present and future contributions submitted to Pico. Except for the license granted herein to Pico and recipients of software distributed by Pico, you reserve all right, title, and interest in and to your contributions. All contributions are subject to the following DCO + license terms.
27
+
28
+```
29
+Developer Certificate of Origin
30
+Version 1.1
31
+
32
+Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
33
+1 Letterman Drive
34
+Suite D4700
35
+San Francisco, CA, 94129
36
+
37
+Everyone is permitted to copy and distribute verbatim copies of this
38
+license document, but changing it is not allowed.
39
+
40
+
41
+Developer's Certificate of Origin 1.1
42
+
43
+By making a contribution to this project, I certify that:
44
+
45
+(a) The contribution was created in whole or in part by me and I
46
+    have the right to submit it under the open source license
47
+    indicated in the file; or
48
+
49
+(b) The contribution is based upon previous work that, to the best
50
+    of my knowledge, is covered under an appropriate open source
51
+    license and I have the right under that license to submit that
52
+    work with modifications, whether created in whole or in part
53
+    by me, under the same open source license (unless I am
54
+    permitted to submit under a different license), as indicated
55
+    in the file; or
56
+
57
+(c) The contribution was provided directly to me by some other
58
+    person who certified (a), (b) or (c) and I have not modified
59
+    it.
60
+
61
+(d) I understand and agree that this project and the contribution
62
+    are public and that a record of the contribution (including all
63
+    personal information I submit with it, including my sign-off) is
64
+    maintained indefinitely and may be redistributed consistent with
65
+    this project or the open source license(s) involved.
66
+```
67
+
68
+All contributions to this project are licensed under the following MIT License:
69
+
70
+```
71
+Copyright (c) <YEAR> <COPYRIGHT HOLDER>
72
+
73
+Permission is hereby granted, free of charge, to any person
74
+obtaining a copy of this software and associated documentation
75
+files (the "Software"), to deal in the Software without
76
+restriction, including without limitation the rights to use,
77
+copy, modify, merge, publish, distribute, sublicense, and/or sell
78
+copies of the Software, and to permit persons to whom the
79
+Software is furnished to do so, subject to the following
80
+conditions:
81
+
82
+The above copyright notice and this permission notice shall be
83
+included in all copies or substantial portions of the Software.
84
+
85
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
87
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
88
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
89
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
92
+OTHER DEALINGS IN THE SOFTWARE.
93
+```
94
+
95
+Please note that developing a *plugin* or *theme* for Pico is *not* assumed to be a contribution to Pico itself. By developing a plugin or theme you rather create a 3rd-party project that just uses Pico. Following the spirit of open source, we want to *encourage* you to release your plugin or theme under the terms of a [OSI-approved open source license](https://opensource.org/licenses). After all, Pico is open source, too!
96
+
97
+### Prevent `merge-hell`
98
+
99
+Please do *not* develop your contribution on the `master` branch of your fork, but create a separate feature branch, that is based off the `master` branch, for each feature that you want to contribute.
100
+
101
+> Not doing so means that if you decide to work on two separate features and place a pull request for one of them, that the changes of the other issue that you are working on is also submitted. Even if it is not completely finished.
102
+
103
+To get more information about the usage of Git, please refer to the [Pro Git book](https://git-scm.com/book) written by Scott Chacon and/or [this help page of GitHub](https://help.github.com/articles/using-pull-requests).
104
+
105
+### Pull Requests
106
+
107
+Please keep in mind that pull requests should be small (i.e. one feature per request), stick to existing coding conventions and documentation should be updated if required. It's encouraged to make commits of logical units and check for unnecessary whitespace before committing (try `git diff --check`). Please reference issue numbers in your commit messages where appropriate.
108
+
109
+### Coding Standards
110
+
111
+Pico uses the [PSR-2 Coding Standard](http://www.php-fig.org/psr/psr-2/) as defined by the [PHP Framework Interoperability Group (PHP-FIG)](http://www.php-fig.org/).
112
+
113
+For historical reasons we don't use formal namespaces. Markdown files in the `content-sample` folder (the inline documentation) must follow a hard limit of 80 characters line length.
114
+
115
+It is recommended to check your code using [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) using Pico's `.phpcs.xml` standard. Use the following command:
116
+
117
+    $ ./vendor/bin/phpcs --standard=.phpcs.xml [file]...
118
+
119
+With this command you can specify a file or folder to limit which files it will check or omit that argument altogether, in which case the current working directory is checked.
120
+
121
+### Keep documentation in sync
122
+
123
+Pico accepts the problems of having redundant documentation on different places (concretely Pico's inline user docs, the `README.md` and the website) for the sake of a better user experience. When updating the docs, please make sure to keep them in sync.
124
+
125
+If you update the [`README.md`](https://github.com/picocms/Pico/blob/master/README.md) or [`content-sample/index.md`](https://github.com/picocms/Pico/blob/master/content-sample/index.md), please make sure to update the corresponding files in the [`_docs`](https://github.com/picocms/picocms.github.io/tree/master/_docs/) folder of the `picocms.github.io` repo (i.e. [Pico's website](http://picocms.org/docs/)) and vice versa. Unfortunately this involves three (!) different markdown parsers. If you're experiencing problems, use Pico's [`erusev/parsedown-extra`](https://github.com/erusev/parsedown-extra) as a reference. You can try to make the contents compatible to [Kramdown](http://kramdown.gettalong.org/) (Pico's website) and [CommonMarker](https://github.com/gjtorikian/commonmarker) (`README.md`) by yourself, otherwise please address the issues in your pull request message and we'll take care of it.
126
+
127
+Versioning
128
+----------
129
+
130
+Pico follows [Semantic Versioning 2.0](http://semver.org) and uses version numbers like `MAJOR`.`MINOR`.`PATCH`. We will increment the:
131
+
132
+- `MAJOR` version when we make incompatible API changes,
133
+- `MINOR` version when we add functionality in a backwards-compatible manner, and
134
+- `PATCH` version when we make backwards-compatible bug fixes.
135
+
136
+For more information please refer to the http://semver.org website.
137
+
138
+Branching
139
+---------
140
+
141
+The `master` branch contains the current development version of Pico. It is likely *unstable* and *not ready for production use*.
142
+
143
+However, the `master` branch always consists of a deployable (but not necessarily deployed) version of Pico. As soon as development of a new `MAJOR` or `MINOR` release starts, a separate branch (e.g. `pico-1.1`) is created and a [pull request](https://github.com/picocms/Pico/pulls) is opened to receive the desired feedback.
144
+
145
+Pico's actual development happens in separate development branches. Development branches are prefixed by:
146
+
147
+- `feature/` for bigger features,
148
+- `enhancement/` for smaller improvements, and
149
+- `bugfix/` for non-trivial bug fixes.
150
+
151
+As soon as development reaches a point where feedback is appreciated, a pull request is opened. After some time (very soon for bug fixes, and other improvements should have a reasonable feedback phase) the pull request is merged and the development branch will be deleted. Trivial bug fixes that will be part of the next `PATCH` version will be merged directly into `master`.
152
+
153
+Build & Release process
154
+-----------------------
155
+
156
+We're using [Travis CI](https://travis-ci.com) to automate the build & release process of Pico. It generates and deploys a [PHP class documentation](http://picocms.org/phpDoc/) (powered by [phpDoc](http://phpdoc.org)) for new releases and on every commit to the `master` branch. Travis also prepares new releases by generating Pico's pre-built release packages, a version badge, code statistics (powered by [cloc](https://github.com/AlDanial/cloc)) and updates our website (the [`picocms.github.io` repo](https://github.com/picocms/picocms.github.io)). Please refer to our [`.travis.yml`](https://github.com/picocms/Pico/blob/master/.travis.yml), the [`picocms/ci-tools` repo](https://github.com/picocms/ci-tools) and the [`.build` directory](https://github.com/picocms/Pico/tree/master/.build) for details.
157
+
158
+As insinuated above, it is important that each commit to `master` is deployable. Once development of a new Pico release is finished, trigger Pico's build & release process by pushing a new Git tag. This tag should reference a (usually empty) commit on `master`, which message should adhere to the following template:
159
+
160
+```
161
+Version 1.0.0
162
+
163
+* [Security] ...
164
+* [New] ...
165
+* [Changed] ...
166
+* [Fixed] ...
167
+* [Removed] ...
168
+```
169
+
170
+Before pushing a new Git tag, make sure to update the `Pico::VERSION` and `Pico::VERSION_ID` constants. The versions of Pico's official [default theme](https://github.com/picocms/pico-theme) and the [`PicoDeprecated` plugin](https://github.com/picocms/pico-deprecated) both strictly follow Pico's version. Since Pico's pre-built release package contains them, you must always create a new release of them (even though nothing has changed) before creating a new Pico release.
171
+
172
+If you're pushing a new major or minor release of Pico, you should also update Pico's `composer.json` to require the latest minor releases of Pico's dependencies. Besides, don't forget to update the `@version` tags in the PHP class docs.
173
+
174
+Travis CI will draft the new [release on GitHub](https://github.com/picocms/Pico/releases) automatically, but will require you to manually amend the descriptions formatting. The latest Pico version is always available at https://github.com/picocms/Pico/releases/latest, so please make sure to publish this URL rather than version-specific URLs. [Packagist](http://packagist.org/packages/picocms/pico) will be updated automatically.
175
+
176
+Labeling of Issues & Pull Requests
177
+----------------------------------
178
+
179
+Pico makes use of GitHub's label and milestone features, to aide developers in quickly identifying and prioritizing which issues need to be worked on. The starting point for labeling issues and pull requests is the `type` label, which is explained in greater detail below. The `type` label might get combined with a `pri` label, describing the issue's priority, and a `status` label, describing the current status of the issue.
180
+
181
+Issues and pull requests labeled with `info: Feedback Needed` indicate that feedback from others is highly appreciated. We always appreciate feedback at any time and from anyone, but when this label is present, we explicitly *ask* you to give feedback. It would be great if you leave a comment!
182
+
183
+- The `type: Bug` label is assigned to issues or pull requests, which have been identified as bugs or security issues in Pico's core. It might get combined with the `pri: High` label, when the problem was identified as security issue, or as a so-called "show stopper" bug. In contrast, uncritical problems might get labeled with `pri: Low`. `type: Bug` issues and pull requests are usually labeled with one of the following `status` labels when being closed:
184
+  - `status: Resolved` is used when the issue has been resolved.
185
+  - `status: Conflict` indicates a conflict with another issue or behavior of Pico, making it impossible to resolve the problem at the moment.
186
+  - `status: Won't Fix` means, that there is indeed a problem, but for some reason we made the decision that resolving it isn't reasonable, making it intended behavior.
187
+  - `status: Rejected` is used when the issue was rejected for another reason.
188
+
189
+- The `type: Enhancement` and `type: Feature` labels are used to tag pull requests, which introduce either a comparatively small enhancement, or a "big" new feature. As with the `type: Bug` label, they might get combined with the `pri: High` or `pri: Low` labels to indicate the pull request's priority. If a pull request isn't mergeable at the moment, it is labeled with `status: Work In Progress` until development of the pull request is finished. After merging or closing the pull request, it is labeled with one of the `status` labels as described above for the `type: Bug` label.
190
+
191
+- The `type: Idea` label is similar to the `type: Enhancement` and `type: Feature` labels, but is used for issues or incomplete and abandoned pull requests. It is otherwise used in the exact same way as `type: Enhancement` and `type: Feature`.
192
+
193
+- The `type: Release` label is used in the exact same way as `type: Feature` and indicates the primary pull request of a new Pico release (please refer to the *Branching* and *Build & Release process* sections above).
194
+
195
+- The `type: Notice`, `type: Question` and `type: Discussion` labels are used to indicate "fyi" issues, issues opened by users or developers asking questions, and issues with disucssions about arbitrary topics related to Pico. They are neither combined with `pri` labels, nor with `status` labels.
196
+
197
+- The `type: Duplicate` label is used when there is already another issue or pull request related to this problem or feature request. Issues labeled with `type: Duplicate` are immediately closed.
198
+
199
+- The `type: Invalid` label is used for everything else, e.g. issues or pull requests not related to Pico, or invalid bug reports. This includes supposed bug reports that concern actually intended behavior.
200
+
201
+The `status: Deferred` label might get added to any open issue or pull request to indicate that it is still unresolved and will be resolved later. This is also true for the `info: Pinned` label: It indicates a important issue or pull request that remains open on purpose.
202
+
203
+After resolving a issue, we usually keep it open for about a week to give users some more time for feedback and further questions. This is especially true for issues with the `type: Notice`, `type: Question`, `type: Discussion` and `type: Invalid` labels. After 7 days with no interaction, [Probot](https://probot.github.io/)'s [Stale](https://github.com/apps/stale) bot adds the `info: Stale` label to the issue to ask the participants whether the issue has been resolved. If no more activity occurs, the issue will be automatically closed by Stale bot 2 days later.
204
+
205
+Issues and pull requests labeled with `info: Information Needed` indicate that we have asked one of the participants for further information and didn't receive any feedback yet. It is usually added after Stale bot adds the `info: Stale` label to give the participants some more days to give the necessary information.
206
+
207
+Issues and pull requests, which are rather related to upstream projects (i.e. projects Pico depends on, like Twig), are additionally labeled with `info: Upstream`.
208
+
209
+When a issue or pull request isn't directly related to Pico's core, but the project as a whole, it is labeled with `info: Meta`.  The same applies to the `info: Website` label, however, in this case it is usually expedient to move the issue to the [`picocms.github.io` repo](https://github.com/picocms/picocms.github.io) containing Pico's website.

+ 21
- 46
LICENSE View File

@@ -1,46 +1,21 @@
1
-Creative Commons Attribution 3.0 Unported CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
2
-License
3
-THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
4
-BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
5
-   1. Definitions
6
-      a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
7
-      b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
8
-      c. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
9
-      d. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
10
-      e. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
11
-      f. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
12
-      g. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
13
-      h. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
14
-      i. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
15
-   2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
16
-   3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
17
-      a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
18
-      b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
19
-      c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
20
-      d. to Distribute and Publicly Perform Adaptations.
21
-      e. For the avoidance of doubt:
22
-         i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
23
-         ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
24
-         iii. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
25
-   The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
26
-   4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
27
-      a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
28
-      b. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv), consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
29
-      c. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
30
-   5. Representations, Warranties and Disclaimer
31
-   UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
32
-   6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
33
-   7. Termination
34
-      a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
35
-      b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
36
-   8. Miscellaneous
37
-      a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
38
-      b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
39
-      c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
40
-      d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You.
41
-      e. This License may not be modified without the mutual written agreement of the Licensor and You.
42
-      f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
43
-Creative Commons Notice
44
-Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
45
-Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of this License.
46
-Creative Commons may be contacted at http://creativecommons.org/.
1
+The MIT License (MIT)
2
+
3
+Copyright (c) 2012 The Pico Community
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 1
- 0
assets/.gitignore View File

@@ -0,0 +1 @@
1
+# This file is meant to be empty

+ 29
- 0
composer.json View File

@@ -0,0 +1,29 @@
1
+{
2
+    "name": "picocms/pico-composer",
3
+    "type": "project",
4
+    "description": "Pico is a flat file CMS, this means there is no administration backend and database to deal with. You simply create .md files in the \"content\" folder and that becomes a page.",
5
+    "keywords": [ "pico", "picocms", "pico-cms", "simple", "flat-file", "cms", "content-management", "website", "markdown-to-html", "php", "markdown", "yaml", "twig", "composer-project" ],
6
+    "homepage": "http://picocms.org/",
7
+    "license": "MIT",
8
+    "authors": [
9
+        {
10
+            "name": "The Pico Community",
11
+            "homepage": "http://picocms.org/"
12
+        },
13
+        {
14
+            "name": "Contributors",
15
+            "homepage": "https://github.com/picocms/pico-composer/graphs/contributors"
16
+        }
17
+    ],
18
+    "support": {
19
+        "docs": "http://picocms.org/docs",
20
+        "issues": "https://github.com/picocms/Pico/issues",
21
+        "source": "https://github.com/picocms/Pico"
22
+    },
23
+    "require": {
24
+        "picocms/pico": "^2.0",
25
+        "picocms/pico-theme": "^2.0",
26
+        "picocms/pico-deprecated": "^2.0",
27
+        "picocms/composer-installer": "^1.0"
28
+    }
29
+}

+ 511
- 0
composer.lock View File

@@ -0,0 +1,511 @@
1
+{
2
+    "_readme": [
3
+        "This file locks the dependencies of your project to a known state",
4
+        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
+        "This file is @generated automatically"
6
+    ],
7
+    "content-hash": "2ffc225e314482600813086614bab2e8",
8
+    "packages": [
9
+        {
10
+            "name": "erusev/parsedown",
11
+            "version": "1.7.1",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/erusev/parsedown.git",
15
+                "reference": "92e9c27ba0e74b8b028b111d1b6f956a15c01fc1"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/erusev/parsedown/zipball/92e9c27ba0e74b8b028b111d1b6f956a15c01fc1",
20
+                "reference": "92e9c27ba0e74b8b028b111d1b6f956a15c01fc1",
21
+                "shasum": ""
22
+            },
23
+            "require": {
24
+                "ext-mbstring": "*",
25
+                "php": ">=5.3.0"
26
+            },
27
+            "require-dev": {
28
+                "phpunit/phpunit": "^4.8.35"
29
+            },
30
+            "type": "library",
31
+            "autoload": {
32
+                "psr-0": {
33
+                    "Parsedown": ""
34
+                }
35
+            },
36
+            "notification-url": "https://packagist.org/downloads/",
37
+            "license": [
38
+                "MIT"
39
+            ],
40
+            "authors": [
41
+                {
42
+                    "name": "Emanuil Rusev",
43
+                    "email": "hello@erusev.com",
44
+                    "homepage": "http://erusev.com"
45
+                }
46
+            ],
47
+            "description": "Parser for Markdown.",
48
+            "homepage": "http://parsedown.org",
49
+            "keywords": [
50
+                "markdown",
51
+                "parser"
52
+            ],
53
+            "time": "2018-03-08T01:11:30+00:00"
54
+        },
55
+        {
56
+            "name": "erusev/parsedown-extra",
57
+            "version": "0.7.1",
58
+            "source": {
59
+                "type": "git",
60
+                "url": "https://github.com/erusev/parsedown-extra.git",
61
+                "reference": "0db5cce7354e4b76f155d092ab5eb3981c21258c"
62
+            },
63
+            "dist": {
64
+                "type": "zip",
65
+                "url": "https://api.github.com/repos/erusev/parsedown-extra/zipball/0db5cce7354e4b76f155d092ab5eb3981c21258c",
66
+                "reference": "0db5cce7354e4b76f155d092ab5eb3981c21258c",
67
+                "shasum": ""
68
+            },
69
+            "require": {
70
+                "erusev/parsedown": "~1.4"
71
+            },
72
+            "type": "library",
73
+            "autoload": {
74
+                "psr-0": {
75
+                    "ParsedownExtra": ""
76
+                }
77
+            },
78
+            "notification-url": "https://packagist.org/downloads/",
79
+            "license": [
80
+                "MIT"
81
+            ],
82
+            "authors": [
83
+                {
84
+                    "name": "Emanuil Rusev",
85
+                    "email": "hello@erusev.com",
86
+                    "homepage": "http://erusev.com"
87
+                }
88
+            ],
89
+            "description": "An extension of Parsedown that adds support for Markdown Extra.",
90
+            "homepage": "https://github.com/erusev/parsedown-extra",
91
+            "keywords": [
92
+                "markdown",
93
+                "markdown extra",
94
+                "parsedown",
95
+                "parser"
96
+            ],
97
+            "time": "2015-11-01T10:19:22+00:00"
98
+        },
99
+        {
100
+            "name": "picocms/composer-installer",
101
+            "version": "v1.0.0",
102
+            "source": {
103
+                "type": "git",
104
+                "url": "https://github.com/picocms/composer-installer.git",
105
+                "reference": "67f53e73232c2c7a9b669e36c3fc716cf1f55b58"
106
+            },
107
+            "dist": {
108
+                "type": "zip",
109
+                "url": "https://api.github.com/repos/picocms/composer-installer/zipball/67f53e73232c2c7a9b669e36c3fc716cf1f55b58",
110
+                "reference": "67f53e73232c2c7a9b669e36c3fc716cf1f55b58",
111
+                "shasum": ""
112
+            },
113
+            "type": "composer-installer",
114
+            "extra": {
115
+                "class": "Pico\\Composer\\Installer\\PluginInstaller"
116
+            },
117
+            "autoload": {
118
+                "psr-4": {
119
+                    "Pico\\Composer\\": "src"
120
+                }
121
+            },
122
+            "notification-url": "https://packagist.org/downloads/",
123
+            "license": [
124
+                "MIT"
125
+            ],
126
+            "authors": [
127
+                {
128
+                    "name": "The Pico Community",
129
+                    "homepage": "http://picocms.org/"
130
+                },
131
+                {
132
+                    "name": "Contributors",
133
+                    "homepage": "https://github.com/picocms/composer-installer/graphs/contributors"
134
+                }
135
+            ],
136
+            "description": "A composer plugin responsible for installing plugins and themes for Pico, a stupidly simple, blazing fast, flat file CMS.",
137
+            "homepage": "http://picocms.org/",
138
+            "keywords": [
139
+                "composer",
140
+                "composer-installer",
141
+                "composer-plugin",
142
+                "pico",
143
+                "pico-cms",
144
+                "picocms",
145
+                "picocms-installer",
146
+                "picocms-plugin",
147
+                "picocms-theme"
148
+            ],
149
+            "time": "2017-10-13T20:16:18+00:00"
150
+        },
151
+        {
152
+            "name": "picocms/pico",
153
+            "version": "v2.0.2",
154
+            "source": {
155
+                "type": "git",
156
+                "url": "https://github.com/picocms/Pico.git",
157
+                "reference": "bbe7f620432b97918f95cc3c8a20b22f9b015226"
158
+            },
159
+            "dist": {
160
+                "type": "zip",
161
+                "url": "https://api.github.com/repos/picocms/Pico/zipball/bbe7f620432b97918f95cc3c8a20b22f9b015226",
162
+                "reference": "bbe7f620432b97918f95cc3c8a20b22f9b015226",
163
+                "shasum": ""
164
+            },
165
+            "require": {
166
+                "erusev/parsedown": "^1.7",
167
+                "erusev/parsedown-extra": "^0.7",
168
+                "ext-dom": "*",
169
+                "php": ">=5.3.6",
170
+                "symfony/yaml": "^2.8",
171
+                "twig/twig": "^1.35"
172
+            },
173
+            "require-dev": {
174
+                "phpdocumentor/phpdocumentor": "^2.8",
175
+                "squizlabs/php_codesniffer": "^2.4"
176
+            },
177
+            "suggest": {
178
+                "picocms/composer-installer": "This Composer plugin is responsible for installing Pico plugins and themes using the Composer package manager.",
179
+                "picocms/pico-deprecated": "PicoDeprecated's purpose is to maintain backward compatibility to older versions of Pico.",
180
+                "picocms/pico-theme": "Pico requires a theme to actually display the contents of your website. This is Pico's official default theme."
181
+            },
182
+            "type": "library",
183
+            "autoload": {
184
+                "psr-0": {
185
+                    "Pico": "lib/",
186
+                    "PicoPluginInterface": "lib/",
187
+                    "AbstractPicoPlugin": "lib/"
188
+                }
189
+            },
190
+            "notification-url": "https://packagist.org/downloads/",
191
+            "license": [
192
+                "MIT"
193
+            ],
194
+            "authors": [
195
+                {
196
+                    "name": "Gilbert Pellegrom",
197
+                    "email": "gilbert@pellegrom.me",
198
+                    "role": "Project Founder"
199
+                },
200
+                {
201
+                    "name": "The Pico Community",
202
+                    "homepage": "http://picocms.org/"
203
+                },
204
+                {
205
+                    "name": "Contributors",
206
+                    "homepage": "https://github.com/picocms/Pico/graphs/contributors"
207
+                }
208
+            ],
209
+            "description": "Pico is a flat file CMS, this means there is no administration backend and database to deal with. You simply create .md files in the \"content\" folder and that becomes a page.",
210
+            "homepage": "http://picocms.org/",
211
+            "keywords": [
212
+                "Simple",
213
+                "cms",
214
+                "content-management",
215
+                "flat-file",
216
+                "markdown",
217
+                "markdown-to-html",
218
+                "php",
219
+                "pico",
220
+                "pico-cms",
221
+                "picocms",
222
+                "twig",
223
+                "website",
224
+                "yaml"
225
+            ],
226
+            "time": "2018-08-12T11:50:09+00:00"
227
+        },
228
+        {
229
+            "name": "picocms/pico-deprecated",
230
+            "version": "v2.0.2",
231
+            "source": {
232
+                "type": "git",
233
+                "url": "https://github.com/picocms/pico-deprecated.git",
234
+                "reference": "5bda9998dc3c9c6e2bac64777b4742bc83256810"
235
+            },
236
+            "dist": {
237
+                "type": "zip",
238
+                "url": "https://api.github.com/repos/picocms/pico-deprecated/zipball/5bda9998dc3c9c6e2bac64777b4742bc83256810",
239
+                "reference": "5bda9998dc3c9c6e2bac64777b4742bc83256810",
240
+                "shasum": ""
241
+            },
242
+            "require": {
243
+                "php": ">=5.3.0",
244
+                "picocms/pico": "self.version"
245
+            },
246
+            "type": "pico-plugin",
247
+            "autoload": {
248
+                "classmap": [
249
+                    "PicoDeprecated.php"
250
+                ]
251
+            },
252
+            "notification-url": "https://packagist.org/downloads/",
253
+            "license": [
254
+                "MIT"
255
+            ],
256
+            "authors": [
257
+                {
258
+                    "name": "The Pico Community",
259
+                    "homepage": "http://picocms.org/"
260
+                },
261
+                {
262
+                    "name": "Contributors",
263
+                    "homepage": "https://github.com/picocms/pico-deprecated/graphs/contributors"
264
+                }
265
+            ],
266
+            "description": "This is Pico's official PicoDeprecated plugin. Pico is a stupidly simple, blazing fast, flat file CMS.",
267
+            "homepage": "http://picocms.org/",
268
+            "keywords": [
269
+                "compatibility",
270
+                "deprecation",
271
+                "pico",
272
+                "pico-deprecated",
273
+                "picocms",
274
+                "picocms-plugin"
275
+            ],
276
+            "time": "2018-08-12T11:52:13+00:00"
277
+        },
278
+        {
279
+            "name": "picocms/pico-theme",
280
+            "version": "v2.0.2",
281
+            "source": {
282
+                "type": "git",
283
+                "url": "https://github.com/picocms/pico-theme.git",
284
+                "reference": "5af338c40881333d993e6b7678e4e4283805a7df"
285
+            },
286
+            "dist": {
287
+                "type": "zip",
288
+                "url": "https://api.github.com/repos/picocms/pico-theme/zipball/5af338c40881333d993e6b7678e4e4283805a7df",
289
+                "reference": "5af338c40881333d993e6b7678e4e4283805a7df",
290
+                "shasum": ""
291
+            },
292
+            "require": {
293
+                "picocms/pico": "self.version"
294
+            },
295
+            "type": "pico-theme",
296
+            "extra": {
297
+                "installer-name": "default"
298
+            },
299
+            "notification-url": "https://packagist.org/downloads/",
300
+            "license": [
301
+                "MIT"
302
+            ],
303
+            "authors": [
304
+                {
305
+                    "name": "The Pico Community",
306
+                    "homepage": "http://picocms.org/"
307
+                },
308
+                {
309
+                    "name": "Contributors",
310
+                    "homepage": "https://github.com/picocms/pico-theme/graphs/contributors"
311
+                }
312
+            ],
313
+            "description": "This is Pico's official default theme. Pico is a stupidly simple, blazing fast, flat file CMS.",
314
+            "homepage": "http://picocms.org/",
315
+            "keywords": [
316
+                "default-theme",
317
+                "pico",
318
+                "pico-theme",
319
+                "picocms",
320
+                "picocms-theme"
321
+            ],
322
+            "time": "2018-08-12T11:51:04+00:00"
323
+        },
324
+        {
325
+            "name": "symfony/polyfill-ctype",
326
+            "version": "v1.9.0",
327
+            "source": {
328
+                "type": "git",
329
+                "url": "https://github.com/symfony/polyfill-ctype.git",
330
+                "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
331
+            },
332
+            "dist": {
333
+                "type": "zip",
334
+                "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
335
+                "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
336
+                "shasum": ""
337
+            },
338
+            "require": {
339
+                "php": ">=5.3.3"
340
+            },
341
+            "suggest": {
342
+                "ext-ctype": "For best performance"
343
+            },
344
+            "type": "library",
345
+            "extra": {
346
+                "branch-alias": {
347
+                    "dev-master": "1.9-dev"
348
+                }
349
+            },
350
+            "autoload": {
351
+                "psr-4": {
352
+                    "Symfony\\Polyfill\\Ctype\\": ""
353
+                },
354
+                "files": [
355
+                    "bootstrap.php"
356
+                ]
357
+            },
358
+            "notification-url": "https://packagist.org/downloads/",
359
+            "license": [
360
+                "MIT"
361
+            ],
362
+            "authors": [
363
+                {
364
+                    "name": "Symfony Community",
365
+                    "homepage": "https://symfony.com/contributors"
366
+                },
367
+                {
368
+                    "name": "Gert de Pagter",
369
+                    "email": "BackEndTea@gmail.com"
370
+                }
371
+            ],
372
+            "description": "Symfony polyfill for ctype functions",
373
+            "homepage": "https://symfony.com",
374
+            "keywords": [
375
+                "compatibility",
376
+                "ctype",
377
+                "polyfill",
378
+                "portable"
379
+            ],
380
+            "time": "2018-08-06T14:22:27+00:00"
381
+        },
382
+        {
383
+            "name": "symfony/yaml",
384
+            "version": "v2.8.44",
385
+            "source": {
386
+                "type": "git",
387
+                "url": "https://github.com/symfony/yaml.git",
388
+                "reference": "fbf876678e29dc634430dcf0096e216eb0004467"
389
+            },
390
+            "dist": {
391
+                "type": "zip",
392
+                "url": "https://api.github.com/repos/symfony/yaml/zipball/fbf876678e29dc634430dcf0096e216eb0004467",
393
+                "reference": "fbf876678e29dc634430dcf0096e216eb0004467",
394
+                "shasum": ""
395
+            },
396
+            "require": {
397
+                "php": ">=5.3.9",
398
+                "symfony/polyfill-ctype": "~1.8"
399
+            },
400
+            "type": "library",
401
+            "extra": {
402
+                "branch-alias": {
403
+                    "dev-master": "2.8-dev"
404
+                }
405
+            },
406
+            "autoload": {
407
+                "psr-4": {
408
+                    "Symfony\\Component\\Yaml\\": ""
409
+                },
410
+                "exclude-from-classmap": [
411
+                    "/Tests/"
412
+                ]
413
+            },
414
+            "notification-url": "https://packagist.org/downloads/",
415
+            "license": [
416
+                "MIT"
417
+            ],
418
+            "authors": [
419
+                {
420
+                    "name": "Fabien Potencier",
421
+                    "email": "fabien@symfony.com"
422
+                },
423
+                {
424
+                    "name": "Symfony Community",
425
+                    "homepage": "https://symfony.com/contributors"
426
+                }
427
+            ],
428
+            "description": "Symfony Yaml Component",
429
+            "homepage": "https://symfony.com",
430
+            "time": "2018-07-26T09:03:18+00:00"
431
+        },
432
+        {
433
+            "name": "twig/twig",
434
+            "version": "v1.35.4",
435
+            "source": {
436
+                "type": "git",
437
+                "url": "https://github.com/twigphp/Twig.git",
438
+                "reference": "7e081e98378a1e78c29cc9eba4aefa5d78a05d2a"
439
+            },
440
+            "dist": {
441
+                "type": "zip",
442
+                "url": "https://api.github.com/repos/twigphp/Twig/zipball/7e081e98378a1e78c29cc9eba4aefa5d78a05d2a",
443
+                "reference": "7e081e98378a1e78c29cc9eba4aefa5d78a05d2a",
444
+                "shasum": ""
445
+            },
446
+            "require": {
447
+                "php": ">=5.3.3",
448
+                "symfony/polyfill-ctype": "^1.8"
449
+            },
450
+            "require-dev": {
451
+                "psr/container": "^1.0",
452
+                "symfony/debug": "^2.7",
453
+                "symfony/phpunit-bridge": "^3.3"
454
+            },
455
+            "type": "library",
456
+            "extra": {
457
+                "branch-alias": {
458
+                    "dev-master": "1.35-dev"
459
+                }
460
+            },
461
+            "autoload": {
462
+                "psr-0": {
463
+                    "Twig_": "lib/"
464
+                },
465
+                "psr-4": {
466
+                    "Twig\\": "src/"
467
+                }
468
+            },
469
+            "notification-url": "https://packagist.org/downloads/",
470
+            "license": [
471
+                "BSD-3-Clause"
472
+            ],
473
+            "authors": [
474
+                {
475
+                    "name": "Fabien Potencier",
476
+                    "email": "fabien@symfony.com",
477
+                    "homepage": "http://fabien.potencier.org",
478
+                    "role": "Lead Developer"
479
+                },
480
+                {
481
+                    "name": "Armin Ronacher",
482
+                    "email": "armin.ronacher@active-4.com",
483
+                    "role": "Project Founder"
484
+                },
485
+                {
486
+                    "name": "Twig Team",
487
+                    "homepage": "https://twig.symfony.com/contributors",
488
+                    "role": "Contributors"
489
+                }
490
+            ],
491
+            "description": "Twig, the flexible, fast, and secure template language for PHP",
492
+            "homepage": "https://twig.symfony.com",
493
+            "keywords": [
494
+                "templating"
495
+            ],
496
+            "time": "2018-07-13T07:12:17+00:00"
497
+        }
498
+    ],
499
+    "packages-dev": [],
500
+    "aliases": [],
501
+    "minimum-stability": "stable",
502
+    "stability-flags": {
503
+        "picocms/pico": 0,
504
+        "picocms/pico-theme": 0,
505
+        "picocms/pico-deprecated": 0
506
+    },
507
+    "prefer-stable": false,
508
+    "prefer-lowest": false,
509
+    "platform": [],
510
+    "platform-dev": []
511
+}

+ 1
- 0
config/.gitignore View File

@@ -0,0 +1 @@
1
+# This file is meant to be empty

+ 50
- 0
config/config.yml.template View File

@@ -0,0 +1,50 @@
1
+##
2
+# Basic
3
+#
4
+site_title: Pico                    # The title of your website
5
+base_url: ~                         # Pico will try to guess its base URL, if this fails, override it here
6
+                                    #     Example: http://example.com/pico/
7
+rewrite_url: ~                      # A boolean (true or false) indicating whether URL rewriting is forced
8
+timezone: UTC                       # Your PHP installation might require you to manually specify a timezone
9
+
10
+##
11
+# Theme
12
+#
13
+theme: default                      # The name of your custom theme
14
+theme_url: ~                        # Pico will try to guess the URL to the themes dir of your installation
15
+                                    #     If this fails, override it here. Example: http://example.com/pico/themes/
16
+theme_config:
17
+    widescreen: false               # Default theme: Use more horicontal space (i.e. make the site container wider)
18
+twig_config:
19
+    cache: false                    # Enable Twig template caching by specifying a path to a writable directory
20
+    autoescape: false               # Let Twig escape variables by default
21
+    debug: false                    # Enable Twig's debugging mode
22
+
23
+##
24
+# Content
25
+#
26
+date_format: %D %T                  # Pico's default date format
27
+                                    #     See http://php.net/manual/en/function.strftime.php for more info
28
+pages_order_by_meta: author         # Sort pages by meta value "author" (set "pages_order_by" to "meta")
29
+pages_order_by: alpha               # Change how Pico sorts pages ("alpha" for alphabetical order, "date", or "meta")
30
+pages_order: asc                    # Sort pages in ascending ("asc") or descending ("desc") order
31
+content_dir: content/               # The path to Pico's content directory
32
+content_ext: .md                    # The file extension of your Markdown files
33
+content_config:
34
+    extra: true                     # Use the Parsedown Extra parser to support extended markup
35
+                                    #     See https://michelf.ca/projects/php-markdown/extra/ for more info
36
+    breaks: false                   # A boolean indicating whether breaks in the markup should be reflected in the
37
+                                    #     parsed contents of the page
38
+    escape: false                   # Escape HTML markup in your content files; don't confuse this with some sort of
39
+                                    #     safe mode, enabling this doesn't allow you to process untrusted user input!
40
+    auto_urls: true                 # Automatically link URLs found in your markup
41
+
42
+##
43
+# Plugins
44
+#
45
+DummyPlugin.enabled: false          # Force the plugin "DummyPlugin" to be disabled
46
+
47
+##
48
+# Custom
49
+#
50
+my_custom_setting: Hello World!     # You can access custom settings in themes using {{ config.my_custom_setting }}

+ 1
- 0
content/.gitignore View File

@@ -0,0 +1 @@
1
+# This file is meant to be empty

+ 39
- 0
index.php View File

@@ -0,0 +1,39 @@
1
+<?php // @codingStandardsIgnoreFile
2
+/**
3
+ * This file is part of Pico. It's copyrighted by the contributors recorded
4
+ * in the version control history of the file, available from the following
5
+ * original location:
6
+ *
7
+ * <https://github.com/picocms/Pico/blob/master/index.php.dist>
8
+ *
9
+ * SPDX-License-Identifier: MIT
10
+ * License-Filename: LICENSE
11
+ */
12
+
13
+// check PHP platform requirements
14
+if (PHP_VERSION_ID < 50306) {
15
+    die('Pico requires PHP 5.3.6 or above to run');
16
+}
17
+if (!extension_loaded('dom')) {
18
+    die("Pico requires the PHP extension 'dom' to run");
19
+}
20
+if (!extension_loaded('mbstring')) {
21
+    die("Pico requires the PHP extension 'mbstring' to run");
22
+}
23
+
24
+// load dependencies
25
+require_once(__DIR__ . '/vendor/autoload.php');
26
+
27
+// instance Pico
28
+$pico = new Pico(
29
+    __DIR__,    // root dir
30
+    'config/',  // config dir
31
+    'plugins/', // plugins dir
32
+    'themes/'   // themes dir
33
+);
34
+
35
+// override configuration?
36
+//$pico->setConfig(array());
37
+
38
+// run application
39
+echo $pico->run();

+ 2
- 0
plugins/.gitignore View File

@@ -0,0 +1,2 @@
1
+# You should add plugins installed by Composer here
2
+/PicoDeprecated

+ 2
- 0
themes/.gitignore View File

@@ -0,0 +1,2 @@
1
+# You should add themes installed by Composer here
2
+/default

+ 46
- 0
themes/stellar/LICENSE View File

@@ -0,0 +1,46 @@
1
+Creative Commons Attribution 3.0 Unported CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
2
+License
3
+THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
4
+BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
5
+   1. Definitions
6
+      a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
7
+      b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
8
+      c. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
9
+      d. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
10
+      e. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
11
+      f. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
12
+      g. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
13
+      h. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
14
+      i. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
15
+   2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
16
+   3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
17
+      a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
18
+      b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
19
+      c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
20
+      d. to Distribute and Publicly Perform Adaptations.
21
+      e. For the avoidance of doubt:
22
+         i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
23
+         ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
24
+         iii. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
25
+   The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
26
+   4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
27
+      a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
28
+      b. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv), consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
29
+      c. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
30
+   5. Representations, Warranties and Disclaimer
31
+   UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
32
+   6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
33
+   7. Termination
34
+      a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
35
+      b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
36
+   8. Miscellaneous
37
+      a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
38
+      b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
39
+      c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
40
+      d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You.
41
+      e. This License may not be modified without the mutual written agreement of the Licensor and You.
42
+      f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
43
+Creative Commons Notice
44
+Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
45
+Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of this License.
46
+Creative Commons may be contacted at http://creativecommons.org/.