Astra_Icons::is_svg_icons()

Check if we need to load icons as SVG or fonts.


Description

Returns true if SVG false if font.


Return

(boolean) should be svg or font.


Source

File: classes/class-astra-icons.php

		public static function is_svg_icons() {
			$astra_settings                               = get_option( ASTRA_THEME_SETTINGS );
			$astra_settings['can-update-astra-icons-svg'] = ( isset( $astra_settings['can-update-astra-icons-svg'] ) && false === $astra_settings['can-update-astra-icons-svg'] ) ? false : true;
			if ( version_compare( ASTRA_THEME_VERSION, '3.3.0', '>=' ) ) {
				return apply_filters( 'astra_is_svg_icons', $astra_settings['can-update-astra-icons-svg'] );
			}
			return false;
		}

Changelog

Changelog
Version Description
3.3.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.