Astra_Theme_Extension::astra_addon_svg_icons( Array $svg_arr = array() )
Load SVG Icon array from the JSON file.
Description
Parameters
- $svg_arr
-
(Array) (Optional) Array of svg icons.
Default value: array()
Return
(Array) addon svg icons.
Source
File: classes/class-astra-theme-extension.php
public function astra_addon_svg_icons( $svg_arr = array() ) { ob_start(); // Include SVGs Json file. include_once ASTRA_EXT_DIR . 'assets/svg/svgs.json'; $svg_icon_arr = json_decode( ob_get_clean(), true ); $ast_svg_icons = array_merge( $svg_arr, $svg_icon_arr ); return $ast_svg_icons; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |