- 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>
34 lines
1.3 KiB
PHP
34 lines
1.3 KiB
PHP
<?php
|
|
$needs = ga_lines( ga_opt( 'give', 'needs' ) );
|
|
$shortcode = trim( (string) ga_opt( 'give', 'shortcode' ) );
|
|
$url = add_query_arg( 'motivo', 'donaciones', ga_page_url( 'contacto' ) ) . '#formulario';
|
|
?>
|
|
<section class="ga-section ga-section--sand" id="dona">
|
|
<div class="ga-wrap">
|
|
<?php ga_section_head( 'give' ); ?>
|
|
<div class="ga-give">
|
|
<div class="ga-panel">
|
|
<?php if ( $shortcode && preg_match( '/^\[[a-z_]+[^\]]*\]$/i', $shortcode ) ) : ?>
|
|
<?php echo do_shortcode( $shortcode ); ?>
|
|
<?php else : ?>
|
|
<h3><?php ga_opt_e( 'give', 'card_title' ); ?></h3>
|
|
<p><?php ga_opt_e( 'give', 'card_text' ); ?></p>
|
|
<?php if ( ga_opt( 'give', 'button' ) ) : ?>
|
|
<a class="ga-btn ga-btn--accent ga-btn--block" href="<?php echo esc_url( $url ); ?>"><?php ga_opt_e( 'give', 'button' ); ?> <?php echo ga_icon( 'arrow' ); ?></a>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php if ( $needs ) : ?>
|
|
<div class="ga-panel ga-panel--dark">
|
|
<h3><?php ga_opt_e( 'give', 'needs_title' ); ?></h3>
|
|
<ul class="ga-needs">
|
|
<?php foreach ( $needs as $i => $need ) : ?>
|
|
<li><strong><?php echo (int) $i + 1; ?></strong><span><?php echo esc_html( $need ); ?></span></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|