- Botones: borde que se dibuja al pasar el ratón o con el teclado (color según variante) y sombra. - Campos: subrayados con etiqueta flotante y degradado principal → acento al enfocar; flecha propia en los desplegables. Formularios de contacto, cuestionario y finales felices adaptados. - Casillas: marca «a mano» que se dibuja al marcarlas (ga_checkmark()), accesibles con teclado. - Tarjetas de animales y finales felices: marco de 2 px con resplandor de acento en la esquina. - Selector segmentado (.ga-segmented) con píldora deslizante; se usa en las pestañas Perros / Gatos y sirve también para grupos de radios. - Interruptor (.ga-toggle, ga_toggle_ui()) listo para usar. - Cabecera translúcida con borde al hacer scroll, enlaces en píldora, desplegable animado con descripción de cada elemento y fondo oscurecido mientras está abierto. - Pie: nombre gigante en bajorrelieve que se descubre al final de la página (opción en el personalizador, «Bilagun» por defecto). - Versión del tema 2.3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
96 lines
3.6 KiB
PHP
96 lines
3.6 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>
|
|
|
|
<?php $wordmark = trim( (string) ga_opt( 'footer', 'wordmark' ) ); ?>
|
|
<?php if ( $wordmark ) : ?>
|
|
<div class="ga-footer__reveal" aria-hidden="true" style="--ga-chars: <?php echo (int) max( 4, mb_strlen( $wordmark ) ); ?>">
|
|
<div class="ga-footer__band"><span class="ga-footer__wordmark"><?php echo esc_html( $wordmark ); ?></span></div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</footer>
|
|
|
|
<?php wp_footer(); ?>
|
|
</body>
|
|
</html>
|