Skip to content

Commit

Permalink
Improve not video found response
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 5, 2025
1 parent 2dcb285 commit be0541f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions locale/pt_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
$t['No videos in this playlist yet'] = 'Não há vídeos nesta playlist ainda';
$t['No write Access on folder'] = 'Sem acesso de gravação na pasta';
$t['No'] = 'Não';
$t['No results found for (%s)'] = 'Nenhum resultado encontrado para (%s)';
$t['Try refining your search or explore our latest content'] = 'Tente refinar sua busca ou explore nosso conteúdo mais recente';
$t['Go to Homepage'] = 'Ir para a página inicial';
$t['Non admin users can NOT download videos'] = 'Usuários não administradores NÃO podem baixar vídeos';
$t['Non admin users can download videos'] = 'Usuários não administradores podem baixar vídeos';
$t['None (Parent'] = 'Nenhum (pai';
Expand Down
14 changes: 12 additions & 2 deletions plugin/YouPHPFlix2/view/BigVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
if (empty($video)) {
?>
<div class="text-center">
<img src="<?php echo ImagesPlaceHolders::getVideoNotFoundPoster(ImagesPlaceHolders::$RETURN_URL); ?>" class="img img-responsive ImagesPlaceHoldersDefaultImage">
<img src="<?php echo ImagesPlaceHolders::getVideoNotFoundPoster(ImagesPlaceHolders::$RETURN_URL); ?>" class="img img-responsive center-block ImagesPlaceHoldersDefaultImage" style="max-height: 50vh;">
</div>
<div class="alert alert-warning text-center">
<i class="fas fa-exclamation-circle"></i>
<?php echo sprintf(__('No results found for (%s)'), htmlentities($_REQUEST['search'], ENT_QUOTES, 'UTF-8')); ?>
</div>
<div class="text-center">
<p><?php echo __('Try refining your search or explore our latest content'); ?></p>
<a href="<?php echo $global['webSiteRootURL']; ?>" class="btn btn-primary">
<i class="fas fa-home"></i> <?php echo __('Go to Homepage'); ?>
</a>
</div>
<?php
} else {
Expand Down Expand Up @@ -89,4 +99,4 @@
<?php
}
}
?>
?>

0 comments on commit be0541f

Please sign in to comment.