Skip to content

Commit 6ea3da9

Browse files
committed
Icon 1.0.0
1 parent f1affef commit 6ea3da9

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<a name="1.0.0"></a>
2+
# [1.0.0](https://github.com/flextype-plugins/icon) (2020-04-29)
3+
* Initial Release

app/Models/Icon.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* @link http://digital.flextype.org
6+
* @link https://flextype.org
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -17,7 +17,7 @@ class Icon extends Container
1717
{
1818
public static function icon($value = null) : string
1919
{
20-
$icon_fallback_file_path = PATH['site'] . '/plugins/' . '/icon/assets/dist/fontawesome/svgs/regular/file-alt.svg';
20+
$icon_fallback_file_path = PATH['project'] . '/plugins/icon/assets/dist/fontawesome/svgs/regular/file-alt.svg';
2121

2222
if ($value == null) {
2323
$icon = Filesystem::read($icon_fallback_file_path);
@@ -37,7 +37,7 @@ public static function icon($value = null) : string
3737

3838
$icon_name = str_replace("fa-", "", $icon_parts[1]);
3939

40-
$icon_file_path = PATH['site'] . '/plugins/' . '/icon/assets/dist/fontawesome/svgs/' . $icon_category . '/' . $icon_name . '.svg';
40+
$icon_file_path = PATH['project'] . '/plugins/icon/assets/dist/fontawesome/svgs/' . $icon_category . '/' . $icon_name . '.svg';
4141

4242
if (Filesystem::has($icon_file_path)) {
4343
$icon = Filesystem::read($icon_file_path);

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"type": "project",
44
"description": "Icon plugin to present Font Awesome icons set for Flextype.",
55
"keywords": ["icon", "plugin", "flextype", "php", "html"],
6-
"homepage": "https://github.com/flextype",
6+
"homepage": "https://github.com/flextype-plugins/icon",
77
"license": "MIT",
88
"authors": [
99
{
1010
"name": "Sergey Romanenko",
11-
"email": "hello@romanenko.digital",
12-
"homepage": "http://digital.flextype.org"
11+
"email": "support@flextype.org",
12+
"homepage": "https://flextype.org"
1313
}
1414
],
1515
"support": {
16-
"issues": "https://github.com/flextype/issues"
16+
"issues": "https://github.com/flextype-plugins/icon/issues"
1717
},
1818
"require": {
1919
"php": ">=7.2.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Icon",
33
"version": "1.0.0",
44
"description": "Icon plugin to present Font Awesome icons set for Flextype.",
5-
"homepage": "http://flextype.org",
5+
"homepage": "https://flextype.org",
66
"author": "Sergey Romanenko",
77
"license": "MIT",
88
"keywords": [

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ bugs: https://github.com/flextype-plugins/icon/issues
1111
license: MIT
1212

1313
dependencies:
14-
flextype: 0.9.7
14+
flextype: 0.9.8
1515
plugins:
1616
twig: 1.0.0

0 commit comments

Comments
 (0)