NacoWiki PHP API

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
phpcod

YoutubeLinks

link
https://stackoverflow.com/questions/11804820/how-can-i-embed-a-youtube-video-on-github-wiki-pages

Table of Contents

Constants

VERSION  = '1.0'
var string

Methods

load()  : void
Loading entry point for this class
makeLinks()  : string
Youtube Links implementation

Constants

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>

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


        
On this page

Search results