<?php
use Onvardgmbh\InlineSVG;
?>
<div>
<?= InlineSVG::file( __DIR__ .'/angle-right.svg')->get()?>
</div>
Icons: http://fontawesome.io/icons/
<?php
use Onvardgmbh\InlineSVG;
?>
<div>
<?= InlineSVG::fontAwesome('angle-right')->get()?>
</div>
Icons: http://ionicons.com/
<?php
use Onvardgmbh\InlineSVG;
?>
<div>
<?= InlineSVG::ionicons('ios-arrow-right')->get()?>
</div>
Icons: https://boxicons.com/
<?php
use Onvardgmbh\InlineSVG;
?>
<div>
<?= InlineSVG::boxicons('bxs-rocket')->get()?>
</div>
<?php
use Onvardgmbh\InlineSVG;
?>
<div>
<?= InlineSVG::ionicons('ios-search')->height('100')->width('100')->get()?>
</div>
<?php
use Onvardgmbh\InlineSVG;
?>
<div>
<?= InlineSVG::file( __DIR__ .'/angle-right.svg')->strokeColor('#545454')->get()?>
</div>
You can get a list of all available icons by calling one of the following methods:
InlineSVG::getOptionsFontAwesome();
InlineSVG::getOptionsIonicons();
InlineSVG::getOptionsBoxicons();
Example:
Container::make('nav_menu', 'Menu Settings')
->add_fields([
Field::make('select', 'crb_icon', __('Icon', 'wptheme'))
->add_options(InlineSVG::getOptionsFontAwesome()),
]);
This package is open-sourced software licensed under the MIT license.