YoutubeLinks
in package
Shortocdes for youtube links
This plugin is used to create youtube links from shortcodes.
Link format:
-
[[
-
youtube:
- youtube id
- Optionally append
^
to open in a new window - Optionally append
|
and text to show text when hovering -
]]
Tags
Table of Contents
Constants
- VERSION = '1.0'
- var string
Methods
- load() : void
- Loading entry point for this class
- makeLinks() : string
- Youtube Links implementation
Constants
VERSION
var string
public
mixed
VERSION
= '1.0'
Methods
load()
Loading entry point for this class
public
static load(array<string|int, mixed> $cfg) : void
Hooks post-render event implemented by this class
Parameters
- $cfg : array<string|int, mixed>
makeLinks()
Youtube Links implementation
public
static makeLinks(NanoWikiApp $wiki, string $html) : string
Parameters
- $wiki : NanoWikiApp
-
running wiki instance
- $html : string
-
Input text
Return values
string —text with expanded links