Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9533
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Oct 22, 2024
1 parent d35f619 commit 8ec3b55
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion objects/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -3548,6 +3548,7 @@ public static function setRedirectCustomUrl($users_id, $value)

static function getChannelPanel($users_id)
{
global $advancedCustom;
$u = new User($users_id);
$objGallery = AVideoPlugin::getObjectData("Gallery");
$get = ['channelName' => $u->getChannelName()];
Expand All @@ -3564,7 +3565,10 @@ static function getChannelPanel($users_id)
if (empty($uploadedVideos)) {
return '';
}
?>
if(empty($advancedCustom)){
$advancedCustom = AVideoPlugin::getDataObject('CustomizeAdvanced');
}
?>
<div class="panel panel-default">
<div class="panel-heading" style="position: relative;">
<img src="<?php echo User::getPhoto($users_id); ?>" class="img img-thumbnail img-responsive pull-left" style="max-height: 100px; margin: 0 10px;" alt="User Photo" />
Expand All @@ -3588,9 +3592,15 @@ static function getChannelPanel($users_id)
</div>
</div>
<div class="panel-footer channelsFooter clearfix" style="font-size: 0.8em">
<?php
if (empty($advancedCustom->doNotDisplayViews)) {
?>
<div class=" text-muted pull-left">
<?php echo number_format_short(VideoStatistic::getChannelsTotalViews($users_id)), " ", __("Views in the last 30 days"); ?>
</div>
<?php
}
?>
<div class="pull-right">
<?php
if(class_exists('UserConnections')){
Expand Down

0 comments on commit 8ec3b55

Please sign in to comment.