Skip to content

Commit

Permalink
Code cleanup and add support for new Craft 2.5 plugin features
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybrad committed Dec 21, 2015
1 parent 88a6c44 commit 65ec726
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 5 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,14 @@ $parsedText = craft()->parsedown->parseText($entry->myBodyField);

$parsedLine = craft()->parsedown->parseLine($entry->title);
```


## Changelog

### 1.1

* Updated to take advantage of new Craft 2.5 plugin features.

### 1.0

* Initial release.
57 changes: 52 additions & 5 deletions parsedown/ParsedownPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,73 @@
*/
class ParsedownPlugin extends BasePlugin
{
function getName()
/**
* @return string
*/
public function getName()
{
return 'Parsedown';
}

function getVersion()
/**
* @return string
*/
public function getVersion()
{
return '1.0';
return '1.1';
}

function getDeveloper()
/**
* @return string
*/
public function getSchemaVersion()
{
return '1.0.0';
}

/**
* @return string
*/
public function getDeveloper()
{
return 'Pixel & Tonic';
}

function getDeveloperUrl()
/**
* @return string
*/
public function getDeveloperUrl()
{
return 'http://pixelandtonic.com';
}

/**
* @return string
*/
public function getPluginUrl()
{
return 'https://github.com/pixelandtonic/Parsedown';
}

/**
* @return string
*/
public function getDocumentationUrl()
{
return $this->getPluginUrl().'/blob/master/README.md';
}

/**
* @return string
*/
public function getReleaseFeedUrl()
{
return 'https://raw.githubusercontent.com/pixelandtonic/Parsedown/master/releases.json';
}

/**
* @return ParsedownTwigExtension
*/
public function addTwigExtension()
{
Craft::import('plugins.parsedown.twigextensions.ParsedownTwigExtension');
Expand Down
10 changes: 10 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"version": "1.1",
"downloadUrl": "https://github.com/pixelandtonic/Parsedown/archive/1.1.zip",
"date": "2015-20-20T12:00:00-08:00",
"notes": [
"[Improved] Updated to take advantage of new Craft 2.5 plugin features."
]
}
]

0 comments on commit 65ec726

Please sign in to comment.