JPKCom FA inline SVG shortcode

Documentation

Table of Contents

Packages

JPKComFaSvgPlugin
JPKComFaSvgPluginGitUpdate

Namespaces

JPKComFaSvgPluginGitUpdate

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
since
1.0.0

JPKCOM_FASVG_PLUGIN_URL

public mixed JPKCOM_FASVG_PLUGIN_URL = \plugin_dir_url(__FILE__)

Functions

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 element.
  • style: Inline CSS for the element.
  • 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
since
1.0.0
Return values
string

The inline SVG markup.

Search results