YaWK
24.1
Yet another WebKit
responsiveVoiceJS.php
Go to the documentation of this file.
1
<?php
2
// set default values
3
$responsiveAudioJS
=
''
;
4
5
// $_GET['widgetID'] will be generated in \YAWK\widget\loadWidgets($db, $position)
6
if
(isset(
$_GET
[
'widgetID'
]))
7
{
8
// widget ID
9
$widgetID =
$_GET
[
'widgetID'
];
10
11
// make sure, the player got it's own instance ID
12
$jPlayerInstance
=
$_GET
[
'widgetID'
];
13
14
// get widget settings from db
15
$res
=
$db
->query(
"SELECT * FROM {widget_settings}
16
WHERE widgetID = '"
.$widgetID.
"'
17
AND activated = '1'"
);
18
while
($row = mysqli_fetch_assoc(
$res
))
19
{
// set widget properties and values into vars
20
$w_property = $row[
'property'
];
21
$w_value = $row[
'value'
];
22
$w_widgetType = $row[
'widgetType'
];
23
$w_activated = $row[
'activated'
];
24
/* end of get widget properties */
25
26
/* filter and load those widget properties */
27
if
(isset($w_property)){
28
switch
($w_property)
29
{
30
/* url of the video to stream */
31
case
'responsiveAudioJS'
;
32
$responsiveAudioJS
= $w_value;
33
break
;
34
}
35
}
/* END LOAD PROPERTIES */
36
}
// end while fetch row (fetch widget settings)
37
}
38
// output responsive JS code
39
echo
"<script src='$responsiveAudioJS'></script>"
;
$db
$db
Definition:
dismiss-notifications.php:4
$jPlayerInstance
$jPlayerInstance
Definition:
jplayer.php:13
$_GET
print $_GET['id']
Definition:
page-edit.php:357
$responsiveAudioJS
$responsiveAudioJS
Definition:
responsiveVoiceJS.php:3
$res
$res
Definition:
settings-assets.php:149
yawk.io
system
widgets
responsiveVoiceJS
responsiveVoiceJS.php
Generated on Tue Jan 16 2024 21:59:04 for YaWK by
doxygen 1.9.1