Rename Pico 1.1 to Pico 2.0
This commit is contained in:
parent
2e880d6c7f
commit
8f7e4da53d
@ -12,7 +12,7 @@
|
|||||||
*
|
*
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.1
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.0
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
abstract class AbstractPicoPlugin implements PicoPluginInterface
|
abstract class AbstractPicoPlugin implements PicoPluginInterface
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.1
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
class Pico
|
class Pico
|
||||||
{
|
{
|
||||||
@ -33,7 +33,7 @@ class Pico
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '1.1.0-dev';
|
const VERSION = '2.0.0-dev';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pico version ID
|
* Pico version ID
|
||||||
@ -773,7 +773,7 @@ class Pico
|
|||||||
*
|
*
|
||||||
* With Pico 1.0 you had to setup URL rewriting (e.g. using `mod_rewrite`
|
* With Pico 1.0 you had to setup URL rewriting (e.g. using `mod_rewrite`
|
||||||
* on Apache) in a way that rewritten URLs follow the `QUERY_STRING`
|
* on Apache) in a way that rewritten URLs follow the `QUERY_STRING`
|
||||||
* principles. Starting with version 1.1, Pico additionally supports the
|
* principles. Starting with version 2.0, Pico additionally supports the
|
||||||
* `REQUEST_URI` routing method, what allows you to simply rewrite all
|
* `REQUEST_URI` routing method, what allows you to simply rewrite all
|
||||||
* requests to just `index.php`. Pico then reads the requested page from
|
* requests to just `index.php`. Pico then reads the requested page from
|
||||||
* the `REQUEST_URI` environment variable provided by the webserver.
|
* the `REQUEST_URI` environment variable provided by the webserver.
|
||||||
@ -1672,7 +1672,7 @@ class Pico
|
|||||||
* {@link Pico::getBaseUrl()} as origin of the theme URL. Otherwise Pico
|
* {@link Pico::getBaseUrl()} as origin of the theme URL. Otherwise Pico
|
||||||
* falls back to the basename of {@link Pico::$themesDir} (i.e. assuming
|
* falls back to the basename of {@link Pico::$themesDir} (i.e. assuming
|
||||||
* that `Pico::$themesDir` is `foo/bar/baz`, the base URL of the themes
|
* that `Pico::$themesDir` is `foo/bar/baz`, the base URL of the themes
|
||||||
* folder will be `baz/`; this ensures BC to Pico < 1.1). Pico's base URL
|
* folder will be `baz/`; this ensures BC to Pico < 2.0). Pico's base URL
|
||||||
* always gets prepended appropriately.
|
* always gets prepended appropriately.
|
||||||
*
|
*
|
||||||
* @return string the URL of the themes folder
|
* @return string the URL of the themes folder
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.0
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
interface PicoPluginInterface
|
interface PicoPluginInterface
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.0
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
class PicoTwigExtension extends Twig_Extension
|
class PicoTwigExtension extends Twig_Extension
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serve features of Pico deprecated since v1.0
|
* Maintain backward compatibility to older Pico releases
|
||||||
*
|
*
|
||||||
* This plugin exists for backward compatibility and is disabled by default.
|
* This plugin exists for backward compatibility and is disabled by default.
|
||||||
* It gets automatically enabled when a plugin which doesn't implement
|
* It gets automatically enabled when a plugin which doesn't implement
|
||||||
@ -39,7 +39,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.0
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
class PicoDeprecated extends AbstractPicoPlugin
|
class PicoDeprecated extends AbstractPicoPlugin
|
||||||
{
|
{
|
||||||
@ -402,7 +402,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|||||||
*/
|
*/
|
||||||
public function onPageRendering(Twig_Environment &$twig, array &$twigVariables, &$templateName)
|
public function onPageRendering(Twig_Environment &$twig, array &$twigVariables, &$templateName)
|
||||||
{
|
{
|
||||||
// rewrite_url and is_front_page are deprecated since Pico 1.1
|
// rewrite_url and is_front_page are deprecated since Pico 2.0
|
||||||
if (!isset($twigVariables['rewrite_url'])) {
|
if (!isset($twigVariables['rewrite_url'])) {
|
||||||
$twigVariables['rewrite_url'] = $this->isUrlRewritingEnabled();
|
$twigVariables['rewrite_url'] = $this->isUrlRewritingEnabled();
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.0
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
final class DummyPlugin extends AbstractPicoPlugin
|
final class DummyPlugin extends AbstractPicoPlugin
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.1
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function main()
|
function main()
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.1
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
utils = {};
|
utils = {};
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 1.1
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user