Skip to content

Commit

Permalink
Icon 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Aug 19, 2020
1 parent 5a25529 commit 859c333
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.2.0"></a>
# [1.2.0](https://github.com/flextype-plugins/form-admin/compare/v1.1.2...v1.2.0) (2020-08-19)

### Features

* **core** update code base for new Flextype 0.9.10

<a name="1.1.2"></a>
# [1.1.2](https://github.com/flextype-plugins/icon/compare/v1.1.1...v1.1.2) (2020-08-07)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">Icon Plugin for <a href="http://flextype.org/">Flextype</a></h1>

<p align="center">
<a href="https://github.com/flextype-plugins/icon/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/icon/icon.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/github/downloads/flextype-plugins/icon/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.9-green.svg?color=black" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
<a href="https://github.com/flextype-plugins/icon/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/icon/icon.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/github/downloads/flextype-plugins/icon/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.10-green.svg?color=black" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
</p>

Icon plugin to present [Font Awesome](https://fontawesome.com/) icons set for Flextype.
Expand All @@ -14,7 +14,7 @@ The following dependencies need to be installed for Icon Plugin.

| Item | Version | Download |
|---|---|---|
| [flextype](https://github.com/flextype/flextype) | 0.9.9 | [download](https://github.com/flextype/flextype/releases) |
| [flextype](https://github.com/flextype/flextype) | 0.9.10 | [download](https://github.com/flextype/flextype/releases) |
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |

## Installation
Expand Down
16 changes: 14 additions & 2 deletions app/Models/Icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,22 @@
namespace Flextype\Plugin\Icon\Models;

use Flextype\Component\Filesystem\Filesystem;
use Flextype\App\Foundation\Container;

class Icon extends Container
class Icon
{
/**
* Flextype Application
*/
protected $flextype;

/**
* __construct
*/
public function __construct($flextype)
{
$this->flextype = $flextype;
}

public static function icon($value = null) : string
{
$icon_fallback_file_path = PATH['project'] . '/plugins/icon/assets/dist/fontawesome/svgs/regular/file-alt.svg';
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"issues": "https://github.com/flextype-plugins/icon/issues"
},
"require": {
"php": ">=7.2.5"
"php": ">=7.3.0"
},
"config": {
"apcu-autoloader": true,
"optimize-autoloader": true,
"platform": {
"php": "7.2.5"
"php": "7.3.0"
}
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
use Flextype\Plugin\Icon\Twig\IconTwigExtension;

// Add Icon Twig Extension
$flextype->twig->addExtension(new IconTwigExtension($flextype));
$flextype->container('twig')->addExtension(new IconTwigExtension($flextype));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Icon",
"version": "1.1.2",
"version": "1.2.0",
"description": "Icon plugin to present Font Awesome icons set for Flextype.",
"homepage": "https://flextype.org",
"author": "Sergey Romanenko",
Expand Down
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Icon
version: 1.1.2
version: 1.2.0
description: Icon plugin to present Font Awesome icons set for Flextype.
icon: fab fa-font-awesome-flag
author:
Expand All @@ -11,5 +11,5 @@ bugs: https://github.com/flextype-plugins/icon/issues
license: MIT

dependencies:
flextype: 0.9.9
flextype: 0.9.10
twig: '>=1.0.0'

0 comments on commit 859c333

Please sign in to comment.