mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
3047154d6c
commit
32dab59efe
4 changed files with 24 additions and 9 deletions
|
@ -48,7 +48,10 @@ $controls = Live::getAllControlls($streamName);
|
||||||
<link href="<?php echo getURL('node_modules/fontawesome-free/css/all.min.css'); ?>" rel="stylesheet" type="text/css"/>
|
<link href="<?php echo getURL('node_modules/fontawesome-free/css/all.min.css'); ?>" rel="stylesheet" type="text/css"/>
|
||||||
<link href="<?php echo getURL('plugin/Live/webRTC.css'); ?>" rel="stylesheet" type="text/css"/>
|
<link href="<?php echo getURL('plugin/Live/webRTC.css'); ?>" rel="stylesheet" type="text/css"/>
|
||||||
<script src="<?php echo getURL('node_modules/jquery/dist/jquery.min.js'); ?>" type="text/javascript"></script>
|
<script src="<?php echo getURL('node_modules/jquery/dist/jquery.min.js'); ?>" type="text/javascript"></script>
|
||||||
|
<link href="<?php echo getURL('node_modules/jquery-ui-dist/jquery-ui.min.css'); ?>" rel="stylesheet" type="text/css"/>
|
||||||
|
<link href="<?php echo getURL('view/css/main.css'); ?>" rel="stylesheet" type="text/css"/>
|
||||||
<?php
|
<?php
|
||||||
|
include $global['systemRootPath'] . 'view/include/moment.js.php';
|
||||||
include $global['systemRootPath'] . 'view/include/bootstrap.js.php';
|
include $global['systemRootPath'] . 'view/include/bootstrap.js.php';
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
|
@ -123,9 +126,10 @@ $controls = Live::getAllControlls($streamName);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<script src="<?php echo getURL('view/js/script.js'); ?>" type="text/javascript"></script>
|
<script src="<?php echo getURL('view/js/script.js'); ?>" type="text/javascript"></script>
|
||||||
<script src="<?php echo getCDN(); ?>node_modules/js-cookie/dist/js.cookie.js" type="text/javascript"></script>
|
<script src="<?php echo getURL('node_modules/js-cookie/dist/js.cookie.js'); ?>" type="text/javascript"></script>
|
||||||
<script src="<?php echo getCDN(); ?>node_modules/jquery-toast-plugin/dist/jquery.toast.min.js" type="text/javascript"></script>
|
<script src="<?php echo getURL('node_modules/jquery-toast-plugin/dist/jquery.toast.min.js'); ?>" type="text/javascript"></script>
|
||||||
<script src="<?php echo getCDN(); ?>node_modules/sweetalert/dist/sweetalert.min.js" type="text/javascript"></script>
|
<script src="<?php echo getURL('node_modules/sweetalert/dist/sweetalert.min.js'); ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo getURL('node_modules/jquery-ui-dist/jquery-ui.min.js'); ?>" type="text/javascript"></script>
|
||||||
<!-- getFooterCode start -->
|
<!-- getFooterCode start -->
|
||||||
<?php
|
<?php
|
||||||
echo AVideoPlugin::getFooterCode();
|
echo AVideoPlugin::getFooterCode();
|
||||||
|
|
|
@ -11,7 +11,7 @@ function getTemplateFromArray(itemsArray) {
|
||||||
replace = webSiteRootURL + replace;
|
replace = webSiteRootURL + replace;
|
||||||
} else if (search == 'element_class' && !empty(itemsArray.id)) {
|
} else if (search == 'element_class' && !empty(itemsArray.id)) {
|
||||||
replace += " UserNotificationsJS_" + itemsArray.id;
|
replace += " UserNotificationsJS_" + itemsArray.id;
|
||||||
} else if (search == 'created') {
|
} else if (search == 'created' && typeof _serverSystemTimezone !== 'undefined') {
|
||||||
m = moment.tz(itemsArray.created, _serverSystemTimezone).local();
|
m = moment.tz(itemsArray.created, _serverSystemTimezone).local();
|
||||||
replace = m.fromNow();
|
replace = m.fromNow();
|
||||||
} else if (search == 'href' && !empty(replace) && !isValidURL(replace)) {
|
} else if (search == 'href' && !empty(replace) && !isValidURL(replace)) {
|
||||||
|
|
11
view/include/moment.js.php
Normal file
11
view/include/moment.js.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<script src="<?php echo getURL('node_modules/moment/min/moment.min.js'); ?>"></script>
|
||||||
|
<?php
|
||||||
|
$lang = getLanguage();
|
||||||
|
$momentFile = 'node_modules/moment/locale/' . $lang . '.js';
|
||||||
|
if (file_exists($global['systemRootPath'] . $momentFile)) {
|
||||||
|
?>
|
||||||
|
<script src="<?php echo getURL($momentFile); ?>"></script>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<script src="<?php echo getURL('node_modules/moment-timezone/builds/moment-timezone-with-data.min.js'); ?>"></script>
|
Loading…
Add table
Add a link
Reference in a new issue