- 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>
36 lines
1.4 KiB
PHP
36 lines
1.4 KiB
PHP
<?php
|
|
$image = (int) ga_opt( 'foster', 'image' );
|
|
$items = ga_lines( ga_opt( 'foster', 'list' ) );
|
|
$url = ga_page_url( 'acoge' );
|
|
?>
|
|
<section class="ga-section ga-section--sand" id="acogida">
|
|
<div class="ga-wrap ga-split">
|
|
<div>
|
|
<?php ga_section_head( 'foster' ); ?>
|
|
<?php if ( $items ) : ?>
|
|
<?php if ( ga_opt( 'foster', 'list_title' ) ) : ?>
|
|
<h3 class="ga-list-title"><?php ga_opt_e( 'foster', 'list_title' ); ?></h3>
|
|
<?php endif; ?>
|
|
<ul class="ga-checklist">
|
|
<?php foreach ( $items as $item ) : ?>
|
|
<li><?php echo ga_icon( 'check' ); ?><span><?php echo esc_html( $item ); ?></span></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<?php endif; ?>
|
|
<?php if ( ga_opt( 'foster', 'button' ) ) : ?>
|
|
<p class="ga-section__cta"><a class="ga-btn ga-btn--primary" href="<?php echo esc_url( $url ); ?>"><?php ga_opt_e( 'foster', 'button' ); ?> <?php echo ga_icon( 'arrow' ); ?></a></p>
|
|
<?php endif; ?>
|
|
</div>
|
|
<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; ?>
|
|
<?php if ( ga_opt( 'foster', 'caption' ) ) : ?>
|
|
<figcaption><?php ga_opt_e( 'foster', 'caption' ); ?></figcaption>
|
|
<?php endif; ?>
|
|
</figure>
|
|
</div>
|
|
</section>
|