Files
Josep Piguillem 4acc8b62d1 Indicaciones del cliente: adopción solo Perros/Gatos, fichas nuevas y todo configurable
- 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>
2026-09-24 22:16:24 +02:00

35 lines
1.4 KiB
PHP

<?php
$image = (int) ga_opt( 'about', 'image' );
$colabora = ga_page_url( 'colabora' );
$helps = array_filter( array(
array( ga_opt( 'about', 'help1' ), $colabora . '#voluntariado' ),
array( ga_opt( 'about', 'help2' ), $colabora . '#material' ),
array( ga_opt( 'about', 'help3' ), get_post_type_archive_link( 'animal' ) ),
), fn( $h ) => '' !== trim( (string) $h[0] ) );
?>
<section class="ga-section" id="bilagun">
<div class="ga-wrap ga-split">
<figure class="ga-photo">
<?php if ( $image ) : ?>
<?php echo wp_get_attachment_image( $image, 'large', false, array( 'loading' => 'lazy' ) ); ?>
<?php else : ?>
<div class="ga-photo__placeholder"><?php echo ga_placeholder_svg(); ?></div>
<?php endif; ?>
</figure>
<div>
<?php ga_section_head( 'about' ); ?>
<?php if ( ga_opt( 'about', 'button' ) ) : ?>
<p><a class="ga-btn ga-btn--primary" href="<?php echo esc_url( ga_page_url( 'quienes-somos' ) ); ?>"><?php ga_opt_e( 'about', 'button' ); ?> <?php echo ga_icon( 'arrow' ); ?></a></p>
<?php endif; ?>
<?php if ( $helps ) : ?>
<h3 class="ga-list-title"><?php ga_opt_e( 'about', 'help_title' ); ?></h3>
<ul class="ga-linklist">
<?php foreach ( $helps as [ $label, $href ] ) : ?>
<li><a href="<?php echo esc_url( $href ); ?>"><?php echo esc_html( $label ); ?> <?php echo ga_icon( 'arrow' ); ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
</section>