Astra_Addon_Builder_Customizer::astra_addon_flag_svgs( Array $svg_arr = array() )
Load Flags 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/builder/class-astra-addon-builder-customizer.php
public function astra_addon_flag_svgs( $svg_arr = array() ) { ob_start(); // Include SVGs Json file. include_once ASTRA_EXT_DIR . 'assets/flags/svgs.json'; $svg_icon_arr = json_decode( ob_get_clean(), true ); $ast_flag_svgs = array_merge( $svg_arr, $svg_icon_arr ); return $ast_flag_svgs; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |