Skip to content

Commit be0541f

Browse files
author
Daniel Neto
committedFeb 5, 2025·
Improve not video found response
1 parent 2dcb285 commit be0541f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
 

‎locale/pt_BR.php

+3
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@
330330
$t['No videos in this playlist yet'] = 'Não há vídeos nesta playlist ainda';
331331
$t['No write Access on folder'] = 'Sem acesso de gravação na pasta';
332332
$t['No'] = 'Não';
333+
$t['No results found for (%s)'] = 'Nenhum resultado encontrado para (%s)';
334+
$t['Try refining your search or explore our latest content'] = 'Tente refinar sua busca ou explore nosso conteúdo mais recente';
335+
$t['Go to Homepage'] = 'Ir para a página inicial';
333336
$t['Non admin users can NOT download videos'] = 'Usuários não administradores NÃO podem baixar vídeos';
334337
$t['Non admin users can download videos'] = 'Usuários não administradores podem baixar vídeos';
335338
$t['None (Parent'] = 'Nenhum (pai';

‎plugin/YouPHPFlix2/view/BigVideo.php

+12-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@
1616
if (empty($video)) {
1717
?>
1818
<div class="text-center">
19-
<img src="<?php echo ImagesPlaceHolders::getVideoNotFoundPoster(ImagesPlaceHolders::$RETURN_URL); ?>" class="img img-responsive ImagesPlaceHoldersDefaultImage">
19+
<img src="<?php echo ImagesPlaceHolders::getVideoNotFoundPoster(ImagesPlaceHolders::$RETURN_URL); ?>" class="img img-responsive center-block ImagesPlaceHoldersDefaultImage" style="max-height: 50vh;">
20+
</div>
21+
<div class="alert alert-warning text-center">
22+
<i class="fas fa-exclamation-circle"></i>
23+
<?php echo sprintf(__('No results found for (%s)'), htmlentities($_REQUEST['search'], ENT_QUOTES, 'UTF-8')); ?>
24+
</div>
25+
<div class="text-center">
26+
<p><?php echo __('Try refining your search or explore our latest content'); ?></p>
27+
<a href="<?php echo $global['webSiteRootURL']; ?>" class="btn btn-primary">
28+
<i class="fas fa-home"></i> <?php echo __('Go to Homepage'); ?>
29+
</a>
2030
</div>
2131
<?php
2232
} else {
@@ -89,4 +99,4 @@
8999
<?php
90100
}
91101
}
92-
?>
102+
?>

0 commit comments

Comments
 (0)
Please sign in to comment.