Untitled

mail@pastecode.io avatar
unknown
php
a month ago
807 B
50
Indexable
Never
/* Tabella dati escrusione interno scheda */
function tabella_acf_informazioni() { ?>
    <div class="container">
  <div class="row">
	  <?php if( have_rows('scheda_escursione') ) :
     while( have_rows('scheda_escursione') ) : the_row(); ?>
    <div class="col">
    <?php the_sub_field('durata');?> <strong><?php the_sub_field('valore'); ?></strong> 
    </div>
    <?php endwhile;?> 
	  <?php else: ?>
    <div class="col">
	<?php  $image = get_sub_field('icona');
if( !empty( $image ) ): ?>
    <?php the_sub_field('durata');?> <img src="<?php echo esc_url($image['url']); ?>" class="img-livello" alt="<?php echo esc_attr($image['alt']); ?>" />
    </div>
    <?php endif; ?>
  </div> </div>
    <?php }; ?>
    add_action( 'woocommerce_before_single_product_summary', 'tabella_acf_informazioni', 10 );
Leave a Comment