mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
76211c1d58
commit
bd6b3b0255
6 changed files with 38 additions and 6 deletions
|
@ -25,7 +25,9 @@ if (!is_numeric($toTime)) {
|
|||
.p-b-9 {padding-bottom: 9px;}
|
||||
.p-b-45 {padding-bottom: 45px;}
|
||||
.p-b-60 {padding-bottom: 60px;}
|
||||
.p-l-50 {padding-left: 50px;}
|
||||
.p-l-75 {padding-left: 75px;}
|
||||
.p-r-50 {padding-right: 50px;}
|
||||
.p-r-75 {padding-right: 75px;}
|
||||
|
||||
.m-t-15 {margin-top: 15px;}
|
||||
|
@ -595,7 +597,7 @@ if (!is_numeric($toTime)) {
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="size3 flex-col-sb flex-w p-l-75 p-r-75 p-t-20 p-b-45 respon1">
|
||||
<div class="size3 flex-col-sb flex-w p-l-50 p-r-50 p-t-20 p-b-45 respon1">
|
||||
|
||||
<div class="p-t-20 p-b-60">
|
||||
<div class="wrap-pic1">
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
global $global, $advancedCustom;
|
||||
$objSecure = AVideoPlugin::getObjectDataIfEnabled('SecureVideosDirectory');
|
||||
$search = ['{permaLink}', '{imgSRC}', '{title}', '{embedURL}', '{videoLengthInSeconds}'];
|
||||
$replace = [$permaLink, $img, $title, $embedURL, $videoLengthInSeconds];
|
||||
|
|
|
@ -4327,9 +4327,34 @@ function getSEOTitle($text, $maxChars = 120)
|
|||
function getShareMenu($title, $permaLink, $URLFriendly, $embedURL, $img, $class = "row bgWhite list-group-item menusDiv", $videoLengthInSeconds = 0, $bitLyLink = '')
|
||||
{
|
||||
global $global, $advancedCustom;
|
||||
include $global['systemRootPath'] . 'objects/functiongetShareMenu.php';
|
||||
|
||||
$varsArray = array(
|
||||
'title' => $title,
|
||||
'permaLink' => $permaLink,
|
||||
'URLFriendly' => $URLFriendly,
|
||||
'embedURL' => $embedURL,
|
||||
'img' => $img,
|
||||
'class' => $class,
|
||||
'videoLengthInSeconds' => $videoLengthInSeconds,
|
||||
'bitLyLink' => $bitLyLink,
|
||||
);
|
||||
return getIncludeFileContent($global['systemRootPath'] . 'objects/functiongetShareMenu.php', $varsArray);
|
||||
//include $global['systemRootPath'] . 'objects/functiongetShareMenu.php';
|
||||
}
|
||||
|
||||
function getShareSocialIcons($title, $url)
|
||||
{
|
||||
global $global;
|
||||
|
||||
$varsArray = array(
|
||||
'title' => $title,
|
||||
'url' => $url,
|
||||
);
|
||||
return getIncludeFileContent($global['systemRootPath'] . 'view/include/social.php', $varsArray);
|
||||
//include $global['systemRootPath'] . 'objects/functiongetShareMenu.php';
|
||||
}
|
||||
|
||||
|
||||
function getCaptcha($uid = "", $forceCaptcha = false)
|
||||
{
|
||||
global $global;
|
||||
|
|
|
@ -221,7 +221,7 @@ $_page->setExtraStyles(
|
|||
$link = addQueryStringParameter($link, 'live_schedule', intval($_REQUEST['live_schedule']));
|
||||
}
|
||||
if (isShareEnabled()) {
|
||||
getShareMenu($liveTitle, $link, $link, addQueryStringParameter($link, 'embed', 1), $img, "row bgWhite list-group-item menusDiv");
|
||||
echo getShareMenu($liveTitle, $link, $link, addQueryStringParameter($link, 'embed', 1), $img, "row bgWhite list-group-item menusDiv");
|
||||
}
|
||||
?>
|
||||
<div class="row">
|
||||
|
|
|
@ -44,7 +44,11 @@ if (empty($t['users_id'])) {
|
|||
}
|
||||
|
||||
if ($toTime > time()) {
|
||||
$message = "<strong>{$t['title']}</strong><br>{$t['description']}";
|
||||
$link = LiveLinks::getLinkToLiveFromId($_GET['link']);
|
||||
//$linkEmbed = LiveLinks::getLinkToLiveFromId($_GET['link'], true);
|
||||
//$share = getShareMenu($t['title'], $link, $link, $linkEmbed, $img, "row");
|
||||
$share = getShareSocialIcons($t['title'], $link);
|
||||
$message = "<strong>{$t['title']}</strong><div>{$share}</div>{$t['description']}";
|
||||
$image = User::getPhoto($t['users_id']);
|
||||
$bgImage = LiveLinks::getImage($t['id']);
|
||||
$title = $t['title'];
|
||||
|
@ -180,7 +184,7 @@ $_page->setExtraScripts(array('node_modules/videojs-contrib-ads/dist/videojs.ads
|
|||
*/
|
||||
$link = LiveLinks::getLinkToLiveFromId($_GET['link']);
|
||||
$linkEmbed = LiveLinks::getLinkToLiveFromId($_GET['link'], true);
|
||||
getShareMenu($t['title'], $link, $link, $linkEmbed, $img, "row");
|
||||
echo getShareMenu($t['title'], $link, $link, $linkEmbed, $img, "row");
|
||||
}
|
||||
?>
|
||||
<div class="row">
|
||||
|
|
|
@ -333,7 +333,7 @@ $description = getSEODescription(emptyHTML($video['description']) ? $video['titl
|
|||
$bitLyLink = BitLy::getLink($video['id']);
|
||||
}
|
||||
|
||||
getShareMenu($video['title'], Video::getPermaLink($video['id']), Video::getURLFriendly($video['id']), Video::getLink($video['id'], $video['clean_title'], true), $img, "row bgWhite list-group-item menusDiv", parseDurationToSeconds($video['duration']), $bitLyLink);
|
||||
echo getShareMenu($video['title'], Video::getPermaLink($video['id']), Video::getURLFriendly($video['id']), Video::getLink($video['id'], $video['clean_title'], true), $img, "row bgWhite list-group-item menusDiv", parseDurationToSeconds($video['duration']), $bitLyLink);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue