- [ga_cuestionario]: preguntas editables en ES/EU (Personalizar), borrador guardado en el navegador, envío a Mensajes y por correo. Páginas «Cuestionario de adopción / Adopzio-galdetegia» fuera del menú y con noindex; admite ?adoptar=ID. - Pie: formulario de suscripción de MailPoet cuando se configure su shortcode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
89 lines
3.2 KiB
PHP
89 lines
3.2 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>
|
|
|
|
<?php $newsletter = trim( (string) ga_opt( 'footer', 'newsletter' ) ); ?>
|
|
<?php if ( $newsletter && preg_match( '/^\[mailpoet_form[^\]]*\]$/', $newsletter ) && shortcode_exists( 'mailpoet_form' ) ) : ?>
|
|
<div class="ga-footer__newsletter">
|
|
<h2><?php ga_opt_e( 'footer', 'newsletter_title' ); ?></h2>
|
|
<?php echo do_shortcode( $newsletter ); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<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>
|