mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
0bff30da44
commit
f41dc1bfad
2 changed files with 10 additions and 8 deletions
|
@ -6326,30 +6326,31 @@ if (!class_exists('Video')) {
|
||||||
|
|
||||||
require_once $global['systemRootPath'] . 'objects/subscribe.php';
|
require_once $global['systemRootPath'] . 'objects/subscribe.php';
|
||||||
$content = local_get_contents($template);
|
$content = local_get_contents($template);
|
||||||
|
$channelLinkImageClass = '';
|
||||||
|
$channelLinkNameClass = '';
|
||||||
if (!empty($advancedCustom->showChannelPhotoOnVideoItem)) {
|
if (!empty($advancedCustom->showChannelPhotoOnVideoItem)) {
|
||||||
$photo = User::getPhoto($users_id);
|
$photo = User::getPhoto($users_id);
|
||||||
}else{
|
}else{
|
||||||
$photo = '';
|
$photo = '';
|
||||||
|
$channelLinkImageClass = 'hidden';
|
||||||
}
|
}
|
||||||
if (!empty($advancedCustom->showChannelNameOnVideoItem)) {
|
if (!empty($advancedCustom->showChannelNameOnVideoItem)) {
|
||||||
$name = strip_tags(User::getNameIdentificationById($users_id));
|
$name = strip_tags(User::getNameIdentificationById($users_id));
|
||||||
}else{
|
}else{
|
||||||
$name = '';
|
$name = '';
|
||||||
|
$channelLinkNameClass = 'hidden';
|
||||||
}
|
}
|
||||||
if ($ignoreLinks) {
|
if ($ignoreLinks) {
|
||||||
$channelLink = '#';
|
$channelLink = '#';
|
||||||
} else {
|
} else {
|
||||||
$channelLink = User::getChannelLink($users_id);
|
$channelLink = User::getChannelLink($users_id);
|
||||||
}
|
}
|
||||||
$channelLinkClass = '';
|
|
||||||
if(empty($photo) && empty($name)){
|
|
||||||
$channelLinkClass = 'hidden';
|
|
||||||
}
|
|
||||||
$search = [
|
$search = [
|
||||||
'{photo}',
|
'{photo}',
|
||||||
'{channelLink}',
|
'{channelLink}',
|
||||||
'{name}',
|
'{name}',
|
||||||
'{channelLinkClass}',
|
'{channelLinkImageClass}',
|
||||||
|
'{channelLinkNameClass}',
|
||||||
'{icon}',
|
'{icon}',
|
||||||
'{subscriptionButton}',
|
'{subscriptionButton}',
|
||||||
'{html}'
|
'{html}'
|
||||||
|
@ -6359,7 +6360,8 @@ if (!class_exists('Video')) {
|
||||||
$photo,
|
$photo,
|
||||||
$channelLink,
|
$channelLink,
|
||||||
$name,
|
$name,
|
||||||
$channelLinkClass,
|
$channelLinkImageClass,
|
||||||
|
$channelLinkNameClass,
|
||||||
User::getEmailVerifiedIcon($users_id),
|
User::getEmailVerifiedIcon($users_id),
|
||||||
Subscribe::getButton($users_id),
|
Subscribe::getButton($users_id),
|
||||||
$html,
|
$html,
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<div class="videoCreator clearfix">
|
<div class="videoCreator clearfix">
|
||||||
<a href='{channelLink}' class="pull-left {channelLinkClass}">
|
<a href='{channelLink}' class="pull-left {channelLinkImageClass}">
|
||||||
<img src="{photo}" alt="{name} Photo"
|
<img src="{photo}" alt="{name} Photo"
|
||||||
class="img img-responsive img-rounded" style="width:80px;" />
|
class="img img-responsive img-rounded" style="width:80px;" />
|
||||||
</a>
|
</a>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
{subscriptionButton}<br>
|
{subscriptionButton}<br>
|
||||||
<a href='{channelLink}' class="btn btn-link {channelLinkClass}">
|
<a href='{channelLink}' class="btn btn-link {channelLinkNameClass}">
|
||||||
{name}
|
{name}
|
||||||
{icon}
|
{icon}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue