jpkcom-fa-svg-plugin.php
Table of Contents
Constants
- JPKCOM_FASVG_PLUGIN_PATH : mixed = \plugin_dir_path(__FILE__)
- Plugin path, URL and Font Awesome upload directory constants.
- JPKCOM_FASVG_PLUGIN_URL : mixed = \plugin_dir_url(__FILE__)
- JPKCOM_FASVG_VERSION : mixed = '2.0.10'
Functions
- jpkcom_fasvg_enqueue_files() : void
- jpkcom_fasvg_enqueue_gutenberg_files() : void
- jpkcom_fasvg_navigation_fa() : array<string|int, mixed>
- jsvg_code() : string
- Render the [jsvg] shortcode as an inline Font Awesome SVG.
Constants
JPKCOM_FASVG_PLUGIN_PATH
Plugin path, URL and Font Awesome upload directory constants.
public
mixed
JPKCOM_FASVG_PLUGIN_PATH
= \plugin_dir_path(__FILE__)
Tags
JPKCOM_FASVG_PLUGIN_URL
public
mixed
JPKCOM_FASVG_PLUGIN_URL
= \plugin_dir_url(__FILE__)
JPKCOM_FASVG_VERSION
public
mixed
JPKCOM_FASVG_VERSION
= '2.0.10'
Functions
jpkcom_fasvg_enqueue_files()
jpkcom_fasvg_enqueue_files() : void
jpkcom_fasvg_enqueue_gutenberg_files()
jpkcom_fasvg_enqueue_gutenberg_files() : void
jpkcom_fasvg_navigation_fa()
jpkcom_fasvg_navigation_fa(array<string|int, mixed> $menu_items) : array<string|int, mixed>
Parameters
- $menu_items : array<string|int, mixed>
Return values
array<string|int, mixed>jsvg_code()
Render the [jsvg] shortcode as an inline Font Awesome SVG.
jsvg_code(array<string, string>|string $atts) : string
Supported attributes:
- type: Font Awesome style folder (fas, fal, far, fad, fab). Default 'fas'.
- name: Icon file name without extension. Default 'square-full'.
- class: Additional CSS classes for the
- style: Inline CSS for the
- title: Accessible title; sets aria-labelledby and a <title> element.
Parameters
- $atts : array<string, string>|string
-
Shortcode attributes ( empty string when none are supplied ).
Tags
Return values
string —The inline SVG markup.