Feature: Agregar soporte i18n a todas las páginas restantes
- recurrentes.php, sent_messages.php, gallery.php - admin/users.php, recipients.php, languages.php, comandos.php - admin/test_discord_connection.php, ia_agent.php - profile.php, set_webhook.php, chat_telegram.php - translate_message.php, admin_send_message.php - telegram/admin/telegram_bot_interactions.php - telegram/admin/telegram_welcome.php
This commit is contained in:
17
gallery.php
17
gallery.php
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/includes/db.php';
|
||||
require_once __DIR__ . '/includes/session_check.php';
|
||||
require_once __DIR__ . '/includes/i18n.php';
|
||||
checkSession();
|
||||
|
||||
$pageTitle = 'Galería de Imágenes';
|
||||
$pageTitle = t('Galería de Imágenes');
|
||||
|
||||
$galleryPath = __DIR__ . '/galeria';
|
||||
$images = [];
|
||||
@@ -58,14 +59,14 @@ require_once __DIR__ . '/templates/header.php';
|
||||
?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2><i class="bi bi-images"></i> Galería de Imágenes</h2>
|
||||
<h2><i class="bi bi-images"></i> <?= t('Galería de Imágenes') ?></h2>
|
||||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#uploadModal">
|
||||
<i class="bi bi-upload"></i> Subir Imagen
|
||||
<i class="bi bi-upload"></i> <?= t('Subir Imagen') ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php if (empty($images)): ?>
|
||||
<div class="alert alert-info">No hay imágenes en la galería</div>
|
||||
<div class="alert alert-info"><?= t('No hay imágenes en la galería') ?></div>
|
||||
<?php else: ?>
|
||||
<div class="row">
|
||||
<?php foreach ($images as $image): ?>
|
||||
@@ -75,16 +76,16 @@ require_once __DIR__ . '/templates/header.php';
|
||||
<div class="card-body py-2">
|
||||
<small class="d-block text-truncate"><?= htmlspecialchars($image) ?></small>
|
||||
<div class="btn-group btn-group-sm mt-2">
|
||||
<button class="btn btn-outline-primary" onclick="copyUrl('<?= urlencode($image) ?>')" title="Copiar URL">
|
||||
<button class="btn btn-outline-primary" onclick="copyUrl('<?= urlencode($image) ?>')" title="<?= t('Copiar URL') ?>">
|
||||
<i class="bi bi-clipboard"></i>
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary" onclick="renameImage('<?= htmlspecialchars($image) ?>')" title="Renombrar">
|
||||
<button class="btn btn-outline-secondary" onclick="renameImage('<?= htmlspecialchars($image) ?>')" title="<?= t('Renombrar') ?>">
|
||||
<i class="bi bi-pencil"></i>
|
||||
</button>
|
||||
<form method="POST" onsubmit="return confirm('¿Eliminar esta imagen?');" class="d-inline">
|
||||
<form method="POST" onsubmit="return confirm('<?= t('¿Eliminar esta imagen?') ?>');" class="d-inline">
|
||||
<input type="hidden" name="action" value="delete">
|
||||
<input type="hidden" name="filename" value="<?= htmlspecialchars($image) ?>">
|
||||
<button type="submit" class="btn btn-outline-danger" title="Eliminar">
|
||||
<button type="submit" class="btn btn-outline-danger" title="<?= t('Eliminar') ?>">
|
||||
<i class="bi bi-trash"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user