YaWK
24.1
Yet another WebKit
|
Embed any YouTube Video on your pages. More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings on object init. More... | |
embedVideo () | |
Check settings and embed the YouTube Video. More... | |
printObject () | |
Print all object data. More... | |
Public Attributes | |
$cssMarkup = '' | |
$descriptionMarkup = '' | |
$headlineMarkup = '' | |
$widget = '' | |
$youtubeAutoplay = true | |
$youtubeAutoplayMarkup = '' | |
$youtubeCssClass = '' | |
$youtubeDescription = '' | |
$youtubeFullscreen = true | |
$youtubeFullscreenMarkup = '' | |
$youtubeHeading = '' | |
$youtubeHeight = '720' | |
$youtubeSubtext = '' | |
$youtubeVideoUrl = '' | |
$youtubeWidth = '100%' | |
Embed any YouTube Video on your pages.
Embed any Facebook Video on your page.
With this widget, you are able to embed any public YouTube Video that you like. Simply enter the Video URL, set a few settings and you're good to go. You do not need to play around with html or any YouTube embed code. This widget does all the work for you!
Definition at line 16 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::__construct | ( | $db | ) |
Load all widget settings on object init.
Load all widget settings from database and fill object params
object | $db | Database Object |
Definition at line 54 of file youtube.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::embedVideo | ( | ) |
Check settings and embed the YouTube Video.
This method does the setup and embed job
Definition at line 79 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::printObject | ( | ) |
Print all object data.
(for development and testing purpose)
Definition at line 68 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$cssMarkup = '' |
string | css markup |
Definition at line 47 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$descriptionMarkup = '' |
string | description markup below video |
Definition at line 45 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$headlineMarkup = '' |
string | heading markup above video |
Definition at line 43 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$widget = '' |
object | global widget object data |
Definition at line 19 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeAutoplay = true |
bool | true|false Should the video automatically start on page load? |
Definition at line 27 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeAutoplayMarkup = '' |
bool | string autoplay html markup |
Definition at line 29 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeCssClass = '' |
string | CSS Class |
Definition at line 41 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeDescription = '' |
string | Description below heading |
Definition at line 39 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeFullscreen = true |
bool | true|false Allow embeded full screen mode? |
Definition at line 23 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeFullscreenMarkup = '' |
bool | string html markup for fullscreen mode |
Definition at line 25 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeHeading = '' |
string | Heading above video |
Definition at line 35 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeHeight = '720' |
string | Video Height |
Definition at line 31 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeSubtext = '' |
string | Subtext beside heading |
Definition at line 37 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeVideoUrl = '' |
string | YouTube Video URL |
Definition at line 21 of file youtube.php.
YAWK\WIDGETS\YOUTUBE\VIDEO\youtube::$youtubeWidth = '100%' |
string | Video Width |
Definition at line 33 of file youtube.php.