Skip to content

Commit

Permalink
Icons and releases JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Prein committed Apr 18, 2016
1 parent ef18968 commit 47d567b
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AmFormsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,17 @@ public function getName()
return Craft::t('a&m forms');
}

public function getReleaseFeedUrl()
{
return 'https://raw.githubusercontent.com/am-impact/amforms/master/releases.json';
}

/**
* @return string
*/
public function getVersion()
{
return '1.3.6';
return '1.3.7';
}

/**
Expand Down
11 changes: 11 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"version": "1.3.7",
"downloadUrl": "https://github.com/am-impact/amforms/archive/master.zip",
"date": "2016-04-18T10:00:00+01:00",
"notes": [
"[Added] Added releases JSON.",
"[Added] Added plugin icons."
]
}
]
29 changes: 29 additions & 0 deletions resources/icon-mask.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions resources/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions widgets/AmForms_RecentSubmissionsWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public function getName()
return $name;
}

public function getIconPath()
{
return craft()->path->getPluginsPath() . 'amforms/resources/icon.svg';
}

public function getBodyHtml()
{
// Widget settings
Expand Down

0 comments on commit 47d567b

Please sign in to comment.