Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/5678
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Sep 14, 2021
1 parent 6bb4812 commit d1fd401
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions plugin/Gallery/view/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,21 @@
if ((empty($parentCat)) && (($currentCat['parentId'] == "0") || ($currentCat['parentId'] == "-1"))) {
if (!empty($_GET['catName'])) {
?>
<div>
<a class="btn btn-default btn-sm pull-right" href="<?php echo $global['webSiteRootURL']; ?>">
<div class="clearfix" style="margin: 10px 0;">
<a class="btn btn-default btn-sm pull-left" href="<?php echo $global['webSiteRootURL']; ?>">
<i class="fa fa-backward"></i>
<?php echo __("Back to startpage"); ?>
<?php echo __("Back"); ?>
</a>
<hr>
</div>
<?php
}
} else if (!empty($parentCat)) {
?>
<div>
<a class="btn btn-default btn-sm pull-right" href="<?php echo $global['webSiteRootURL']; ?>cat/<?php echo $parentCat['clean_name']; ?>">
<div class="clearfix" style="margin: 10px 0;">
<a class="btn btn-default btn-sm pull-left" href="<?php echo $global['webSiteRootURL']; ?>cat/<?php echo $parentCat['clean_name']; ?>">
<i class="fa fa-backward"></i>
<?php echo __("Back to") . " " . $parentCat['name']; ?>
</a>
<hr>
</div>
<?php
}
Expand Down Expand Up @@ -65,9 +63,9 @@

// make a row each 6 cols
if ($countCols % 6 === 0) {
echo '</div><div class="row aligned-row ">';
echo '</div><div class="clearfix">';
}
$countCols ++;
$countCols++;
unset($_GET['catName']);
?>
<div class="col-lg-2 col-md-4 col-sm-4 col-xs-6 galleryVideo thumbsImage fixPadding">
Expand All @@ -86,7 +84,7 @@
<?php
}
$sql = "SELECT COUNT(title) FROM videos WHERE categories_id = ?;";
$res = sqlDAL::readSql($sql,"i",array($value['categories_id']));
$res = sqlDAL::readSql($sql, "i", array($value['categories_id']));
$videoCount = sqlDAL::fetchArray($res);
sqlDAL::close($res);
break;
Expand All @@ -97,7 +95,7 @@
<img src="<?php echo $poster; ?>" alt="" data-toggle="tooltip" title="<?php echo $description; ?>" class="thumbsJPG img img-responsive" id="thumbsJPG<?php echo $cat['id']; ?>" />
<?php
$sql = "SELECT COUNT(title) FROM videos WHERE categories_id = ?;";
$res = sqlDAL::readSql($sql,"i",array($cat['id']));
$res = sqlDAL::readSql($sql, "i", array($cat['id']));
$videoCount = sqlDAL::fetchArray($res);
sqlDAL::close($res);
}
Expand Down

0 comments on commit d1fd401

Please sign in to comment.