YaWK
24.1
Yet another WebKit
|
Embed any Twitch channel. More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings from database and fill object. More... | |
init () | |
Init twitch widget. More... | |
![]() | |
getHeading ($heading, $subtext) | |
Get widget heading and subtext, return headline. More... | |
getWidgetSettingsArray ($db) | |
Get widget settings and return it as array. More... | |
printObject () | |
Print all object data. More... | |
Public Attributes | |
$twitchChannel = "yourChannel" | |
$twitchChannelFullscreen = true | |
$twitchChannelHeight = "720" | |
$twitchChannelWidth = "100%" | |
$twitchChat = "1" | |
$twitchChatHeight = "250" | |
$twitchChatWidth = "100%" | |
$twitchHeading = '' | |
$twitchSubtext = '' | |
$widget = '' | |
![]() | |
$data | |
$date_publish | |
$date_unpublish | |
$folder | |
$id | |
$marginBottom | |
$marginTop | |
$name | |
$pageID | |
$position | |
$published | |
$sort | |
$widgetTitle | |
$widgetType | |
Additional Inherited Members | |
![]() | |
static | getAllSettingsIntoArray ($db, $widgetID) |
Returns an array with all widget settings data. More... | |
static | getAllWidgetTypes ($db) |
Return all widget types as associative array. More... | |
static | getCurrentWidgetPath ($db) |
return current widget path More... | |
static | getFacebookLikeBox () |
return the facebook likebox widget More... | |
static | getLoginBox () |
return the user login box widget More... | |
static | loadWidgetsOfPage ($db, $page) |
Returns an array of all widgets that are linked with given page->id. More... | |
Embed any Twitch channel.
Twitch Widget - embed any twitch channel
Twitch is a gaming streaming platform. Use this widget to embed any twitch channel. You can set your channel, width, height, either if the chat should be displayed or not, allow fullscreen and more.
Definition at line 16 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::__construct | ( | $db | ) |
Load all widget settings from database and fill object.
object | $db | Database Object |
Load all widget settings on object init.
Definition at line 44 of file twitch.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\WIDGETS\TWITCH\EMBED\twitch::init | ( | ) |
Init twitch widget.
Twitch Widget Init
Definition at line 58 of file twitch.php.
References YAWK\widget\getHeading().
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchChannel = "yourChannel" |
string | Channel that will be included |
Definition at line 25 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchChannelFullscreen = true |
bool | Allow fullscreen? |
Definition at line 31 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchChannelHeight = "720" |
string | Height of your channel |
Definition at line 27 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchChannelWidth = "100%" |
string | Width of your channel |
Definition at line 29 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchChat = "1" |
int | Show chat window? |
Definition at line 33 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchChatHeight = "250" |
int | Chat window height |
Definition at line 35 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchChatWidth = "100%" |
int | Chat window width |
Definition at line 37 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchHeading = '' |
string | Title that will be shown above widget |
Definition at line 21 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$twitchSubtext = '' |
string | Subtext will be displayed beside title |
Definition at line 23 of file twitch.php.
YAWK\WIDGETS\TWITCH\EMBED\twitch::$widget = '' |
object | global widget object data |
Definition at line 19 of file twitch.php.