WebTolk Joomla Extensions
113 Extensions
12 Categories
587 Versions released
927416 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');
?>