WT Google material icons


WT Google material icons

WT Google material icons

The plugin registers the Google Material icons icon font in Joomla Web Assets Manager. Then you can use it in your extensions.

Description

This is a plugin for Joomla developers. It allows you to use Google Material icons: in modules, components, plugins.

How to use?

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');

?>

Joomla

Extension type:
Plugin
Folder:
System
Joomla version:
4.0.0

What's new

First extension version

Addition
Supports local connection of the icon font and from Google servers.

WebTolk Joomla Extensions

78 Extensions
11 Categories
329 Versions released
307852 Downloads
Cart
Cart is empty