Files
gureametsabilagun/wp-content/themes/gure-ametsa/template-parts/home/foster.php
Josep Piguillem 0b2c9f271f Web de Gure Ametsa Bi Lagun en WordPress para Dokploy
- Docker Compose (WordPress + MariaDB) listo para Dokploy, con instalación
  automática por etapas: idiomas, páginas, menús y plugins recomendados.
- Web bilingüe castellano / euskera con Polylang.
- Tema propio «gure-ametsa»: diseño inspirado en Beargrass Animal Rescue,
  personalizable desde Apariencia → Personalizar (paletas, tipografías,
  secciones de portada ordenables) y patrones de bloques propios.
- Plugin mu «gure-ametsa-core»: animales en adopción con ficha y filtros,
  carrusel y formulario de contacto/adopción.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 16:21:26 +02:00

36 lines
1.4 KiB
PHP

<?php
$image = (int) ga_opt( 'foster', 'image' );
$items = ga_lines( ga_opt( 'foster', 'list' ) );
$url = add_query_arg( 'motivo', 'acogida', ga_page_url( 'contacto' ) ) . '#formulario';
?>
<section class="ga-section" 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_icon( 'paw' ); ?></div>
<?php endif; ?>
<?php if ( ga_opt( 'foster', 'caption' ) ) : ?>
<figcaption><?php ga_opt_e( 'foster', 'caption' ); ?></figcaption>
<?php endif; ?>
</figure>
</div>
</section>