Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 13, 2025
1 parent c2d3390 commit 5aa205b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions view/channelBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function getChannelTabClass($isTabButton, $isVideoTab = false)
?>
<div class="row">
<div class="col-sm-12" style="display: flex;
align-items: center;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;">
<h2 class="pull-left" style="font-size: 2em;">
Expand Down Expand Up @@ -318,13 +318,16 @@ function getChannelTabClass($isTabButton, $isVideoTab = false)
<?php
}
if ($showChannelVideosTab) {
echo PHP_EOL.'<!-- showChannelVideosTab -->'.PHP_EOL;
?>
<li class="nav-item <?php echo getChannelTabClass(true, true); ?>">
<a class="nav-link " href="#channelVideos" data-toggle="tab" aria-expanded="false">
<i class="fas fa-file-video"></i> <span class="labelUpperCase"><?php echo __('Videos'); ?></span> <span class="badge"><?php echo $uploadedTotalVideos; ?></span>
</a>
</li>
<?php
}else{
echo PHP_EOL.'<!-- NOT showChannelVideosTab -->'.PHP_EOL;
}
if (!empty($uploadedTotalArticles)) {
?>
Expand All @@ -349,7 +352,7 @@ function getChannelTabClass($isTabButton, $isVideoTab = false)
<li class="nav-item <?php echo getChannelTabClass(true, false); ?>">
<a class="nav-link " href="#channelImages" data-toggle="tab" aria-expanded="false">
<i class="fa-solid fa-images"></i>
<span class="labelUpperCase"><?php echo __("Images"); ?></span>
<span class="labelUpperCase"><?php echo __("Images"); ?></span>
<span class="badge"><?php echo $uploadedTotalImages; ?></span>
</a>
</li>
Expand Down Expand Up @@ -463,9 +466,9 @@ function getChannelTabClass($isTabButton, $isVideoTab = false)
</div>

<div class="panel-footer">
<?php
<?php
//var_dump($totalPages);
echo getPagination($totalPages, "{$global['webSiteRootURL']}channel/{$_GET['channelName']}?current=_pageNum_");
echo getPagination($totalPages, "{$global['webSiteRootURL']}channel/{$_GET['channelName']}?current=_pageNum_");
?>
</div>
</div>
Expand Down Expand Up @@ -651,4 +654,4 @@ function getChannelTabClass($isTabButton, $isVideoTab = false)
</div>
</div>
<script src="<?php echo getURL('plugin/Gallery/script.js'); ?>" type="text/javascript"></script>
<script src="<?php echo getURL('node_modules/infinite-scroll/dist/infinite-scroll.pkgd.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo getURL('node_modules/infinite-scroll/dist/infinite-scroll.pkgd.min.js'); ?>" type="text/javascript"></script>

0 comments on commit 5aa205b

Please sign in to comment.