WebTolk Joomla Extensions
88 Extensions
11 Categories
384 Versions released
368521 Downloads
The plugin registers the Google Material icons icon font in Joomla Web Assets Manager. Then you can use it in your extensions.
This is a plugin for Joomla developers. It allows you to use Google Material icons: in modules, components, plugins.
To connect Google material icons in Joomla in your code, use:
<?php
use Joomla\CMS\Factory;
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$app = Factory::getApplication();
$wa = $app->getDocument()->getWebAssetManager();
$wa->useStyle('wtgooglematerialicons.local');
?>
If you want the font to connect from Google servers, then use the asset name wtgooglematerialicons.remote
.
<?php
use Joomla\CMS\Factory;
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$app = Factory::getApplication();
$wa = $app->getDocument()->getWebAssetManager();
$wa->useStyle('wtgooglematerialicons.remote');
?>