- Adopción sin filtros ni etiquetas: acceso a Perros y Gatos, tarjetas de foto y nombre. - Ficha nueva: galería, vídeo, fecha de nacimiento o edad aproximada, carácter, necesidades, convivencia y hogar que buscamos (textos por idioma, datos compartidos). - Estados disponible / en proceso / adoptado y animales destacados. - Botón «Quiero conocerlo/la» con formulario breve (animal incluido) y confirmación. - Botones para compartir cada ficha (WhatsApp, Facebook, copiar enlace). - Portada corta según la propuesta del cliente; donaciones, cifras, etc. ocultas. - Páginas Acoge y Preguntas frecuentes, menú con submenús, sin hotel. - Aviso de cita previa y lista de ayuda material editables desde el panel. - Plugin núcleo dividido en módulos (i18n, animales, formularios, APIs). - Migración 5 idempotente: respeta las páginas editadas por el cliente. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
82 lines
2.8 KiB
PHP
82 lines
2.8 KiB
PHP
<?php
|
|
$colabora = ga_page_url( 'colabora' );
|
|
$columns = array(
|
|
ga__( 'Adopta', 'Adoptatu' ) => array(
|
|
ga__( 'Perros', 'Txakurrak' ) => ga_species_url( 'perro' ),
|
|
ga__( 'Gatos', 'Katuak' ) => ga_species_url( 'gato' ),
|
|
ga__( 'Acoge', 'Harrera' ) => ga_page_url( 'acoge' ),
|
|
),
|
|
ga__( 'Colabora', 'Lagundu' ) => array(
|
|
ga__( 'Voluntariado', 'Boluntariotza' ) => $colabora . '#voluntariado',
|
|
ga__( 'Ayuda material', 'Laguntza materiala' ) => $colabora . '#material',
|
|
),
|
|
'Bilagun' => array(
|
|
ga__( 'Quiénes somos', 'Nor gara' ) => ga_page_url( 'quienes-somos' ),
|
|
ga__( 'Preguntas frecuentes', 'Ohiko galderak' ) => ga_page_url( 'preguntas-frecuentes' ),
|
|
ga__( 'Contacto', 'Harremanetarako' ) => ga_page_url( 'contacto' ),
|
|
),
|
|
);
|
|
?>
|
|
</main>
|
|
|
|
<footer class="ga-footer">
|
|
<div class="ga-wrap">
|
|
<div class="ga-footer__grid">
|
|
<div class="ga-footer__about">
|
|
<?php ga_brand( 'footer' ); ?>
|
|
<p><?php ga_opt_e( 'footer', 'about' ); ?></p>
|
|
<div class="ga-footer__social"><?php echo ga_social_links(); // Escapado en la función. ?></div>
|
|
</div>
|
|
|
|
<?php foreach ( $columns as $title => $links ) : ?>
|
|
<div>
|
|
<h2><?php echo esc_html( $title ); ?></h2>
|
|
<ul>
|
|
<?php foreach ( $links as $label => $href ) : ?>
|
|
<li><a href="<?php echo esc_url( $href ); ?>"><?php echo esc_html( $label ); ?></a></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
|
|
<div>
|
|
<h2><?php ga_e( 'Visítanos', 'Etorri gu ikustera' ); ?></h2>
|
|
<ul>
|
|
<?php if ( ga_info( 'cita' ) ) : ?>
|
|
<li class="ga-footer__cita"><?php echo esc_html( ga_info( 'cita' ) ); ?></li>
|
|
<?php endif; ?>
|
|
<?php if ( ga_info( 'direccion' ) ) : ?>
|
|
<li><a href="<?php echo esc_url( ga_info( 'maps' ) ); ?>" target="_blank" rel="noopener"><?php echo esc_html( ga_info( 'direccion' ) ); ?></a></li>
|
|
<?php endif; ?>
|
|
<?php if ( ga_info( 'horario' ) ) : ?>
|
|
<li><?php echo esc_html( ga_info( 'horario' ) ); ?></li>
|
|
<?php endif; ?>
|
|
<?php if ( ga_info( 'telefono' ) ) : ?>
|
|
<li class="ga-footer__phone"><a href="<?php echo esc_attr( ga_tel_link() ); ?>"><?php echo esc_html( ga_info( 'telefono' ) ); ?></a></li>
|
|
<?php endif; ?>
|
|
<?php if ( ga_info( 'email' ) ) : ?>
|
|
<li><a href="mailto:<?php echo esc_attr( ga_info( 'email' ) ); ?>"><?php echo esc_html( ga_info( 'email' ) ); ?></a></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="ga-footer__bottom">
|
|
<span>© <?php echo esc_html( wp_date( 'Y' ) ); ?> <?php ga_opt_e( 'footer', 'copyright' ); ?></span>
|
|
<?php
|
|
ga_language_switcher( 'ga-lang ga-lang--footer' );
|
|
wp_nav_menu( array(
|
|
'theme_location' => 'footer',
|
|
'container' => false,
|
|
'fallback_cb' => false,
|
|
'depth' => 1,
|
|
) );
|
|
?>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<?php wp_footer(); ?>
|
|
</body>
|
|
</html>
|