2017 © Pedro Peláez
 

yii2-extension yii2-ionicon

Asset Bundle for Yii2 with Ionicon

image

rmrevin/yii2-ionicon

Asset Bundle for Yii2 with Ionicon

  • Sunday, May 22, 2016
  • by rmrevin
  • Repository
  • 1 Watchers
  • 6 Stars
  • 11,422 Installations
  • CSS
  • 3 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 18 % Grown

The README.md

Yii 2 Ionicon Asset Bundle

License Latest Stable Version Latest Unstable Version Total Downloads, (*1)

Code Status

Scrutinizer Code Quality Code Coverage Travis CI Build Status Dependency Status, (*2)

Installation

Either run, (*3)

composer require "rmrevin/yii2-ionicon:~1.2"

or add in composer.json:, (*4)

{
    "require": {
        "rmrevin/yii2-ionicon": "~1.2"
    }
}

Usage

In view, (*5)

<?
// ...

rmrevin\yii\ionicon\AssetBundle::register($this);

or as dependency in your asset bundle, (*6)

<?
// ...

class AppAsset extends AssetBundle
{
    // ...

    public $depends = [
        // ...
        '\rmrevin\yii\ionicon\AssetBundle'
    ];
}

Helper


use rmrevin\yii\ionicon\Ion; echo Ion::icon('social-twitter'); // <i class="ion-social-twitter"></i> echo Ion::icon('social-twitter', ['class' => 'big', 'data-role' => 'social-button']); // <i class="big ion-social-twitter" data-role="social-button"></i> echo Html::submitButton(Yii::t('app', '{check} Tweet', ['check' => Ion::icon('social-twitter')])); // <button type="submit"><i class="ion-social-twitter"></i> Tweet</button> // autocomplete in IDE echo Ion::icon(Ion::_SOCIAL_TWITTER); echo Ion::icon(Ion::_ANDROID_BULB);

Another prefix

Ion::$cssPrefix = 'ionicon';

echo Ion::icon('social-twitter');
// <i class="ionicon-social-twitter"></i>

The Versions

22/05 2016

dev-master

9999999-dev

Asset Bundle for Yii2 with Ionicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons ionicon

22/05 2016

1.2.0

1.2.0.0

Asset Bundle for Yii2 with Ionicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons ionicon

19/01 2016

1.1.1

1.1.1.0

Asset Bundle for Yii2 with Ionicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons ionicon

16/09 2015

1.1.0

1.1.0.0

Asset Bundle for Yii2 with Ionicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons ionicon

08/09 2015

1.0.0

1.0.0.0

Asset Bundle for Yii2 with Ionicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons ionicon