Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 1190545

Browse files
committed
v0.3
1 parent 9c60bcf commit 1190545

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

changelog.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"version": "0.3",
4+
"downloadUrl": "https://github.com/victor-in/Craft-TwigPCRE/archive/master.zip",
5+
"date": "2015-12-16T12:00:00+0000",
6+
"notes": [
7+
"[Improved] Craft 2.5 compatibility, including plugin feed."
8+
]
9+
}
10+
]

twigpcre/TwigPcrePlugin.php

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,49 @@
22
/**
33
* @package Twig PCRE
44
* @author Victor In.
5-
* @copyright Copyright 2014
5+
* @copyright Copyright 2016
66
* @link https://github.com/victor-in/Craft-TwigPCRE
77
* @license MIT
88
*/
99
namespace Craft;
1010

1111
class TwigPcrePlugin extends BasePlugin
1212
{
13-
function getName()
13+
public function getName()
1414
{
1515
return Craft::t('Twig PCRE Filters');
1616
}
1717

18-
function getVersion()
18+
public function getVersion()
1919
{
20-
return '0.1';
20+
return '0.3';
2121
}
22+
23+
public function getSchemaVersion() {
24+
return '0.1';
25+
}
2226

23-
function getDeveloper()
27+
public function getDeveloper()
2428
{
2529
return 'Victor In.';
2630
}
2731

28-
function getDeveloperUrl()
32+
public function getDeveloperUrl()
2933
{
3034
return 'https://github.com/victor-in/';
3135
}
36+
37+
public function getDocumentationUrl()
38+
{
39+
return 'https://github.com/victor-in/Craft-TwigPCRE';
40+
}
41+
42+
public function getReleaseFeedUrl()
43+
{
44+
return 'https://github.com/victor-in/Craft-TwigPCRE/blob/master/changelog.json';
45+
}
3246

33-
function addTwigExtension()
47+
public function addTwigExtension()
3448
{
3549
Craft::import('plugins.twigpcre.twigextensions.TwigPcreTwigExtension');
3650
return new TwigPcreTwigExtension();

0 commit comments

Comments
 (0)