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>
This commit is contained in:
21
wp-content/themes/gure-ametsa/template-parts/home/stats.php
Normal file
21
wp-content/themes/gure-ametsa/template-parts/home/stats.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
$items = array();
|
||||
for ( $i = 1; $i <= 4; $i++ ) {
|
||||
if ( '' !== trim( (string) ga_opt( 'stats', "num$i" ) ) ) {
|
||||
$items[] = array( ga_opt( 'stats', "num$i" ), ga_opt( 'stats', "label$i" ) );
|
||||
}
|
||||
}
|
||||
if ( ! $items ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<section class="ga-section ga-section--dark">
|
||||
<div class="ga-wrap">
|
||||
<?php ga_section_head( 'stats' ); ?>
|
||||
<ul class="ga-stats">
|
||||
<?php foreach ( $items as [ $num, $label ] ) : ?>
|
||||
<li><strong><?php echo esc_html( $num ); ?></strong><span><?php echo esc_html( $label ); ?></span></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user