Compare commits

..

2 Commits

Author SHA1 Message Date
jorge 72cea08e62 typo in title 2024-04-19 11:05:08 +02:00
jorge 7c88cab713 updated code to safe html and social links open in new window 2024-04-19 10:59:46 +02:00
3 changed files with 5 additions and 5 deletions

View File

@ -48,13 +48,13 @@
<?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address">
<h6>Adreça:</h6>
<p><?php the_field('xxp_associat_address'); ?></p>
<p><?php echo wp_kses_post( get_field('xxp_associat_address') ); ?></p>
</li>
<?php endif; ?>
<?php if( get_field('xxp_associat_mail') ): ?>
<li class="xarxaprod-associat-mail">
<h6>Eail:</h6>
<h6>Email:</h6>
<p><a href="mailto:<?php the_field('xxp_associat_mail'); ?>"><?php the_field('xxp_associat_mail'); ?></a></p>
</li>
<?php endif; ?>
@ -81,7 +81,7 @@
<?php while( have_rows('xxp_asocciat_social_networks') ): the_row(); ?>
<li>
<?php $eachlink=get_sub_field('xxp_associat_link_social'); ?>
<a href="<?php echo esc_attr($eachlink);?>" title="<?php echo esc_attr($eachlink);?>"><?php echo esc_attr($eachlink);?></a>
<a href="<?php echo esc_attr($eachlink);?>" title="<?php echo esc_attr($eachlink);?>" target="_blank"><?php echo esc_attr($eachlink);?></a>
</li>
<?php endwhile; //end while has rows associat social networks ?>
</ul>

View File

@ -74,7 +74,7 @@
</li>
<li class="xarxaprod-convo-associat-address">
<dt>Lloc</dt>
<dd><a href="<?php the_permalink(); ?>"><?php the_field('xxp_associat_address'); ?></a></dd>
<dd><a href="<?php the_permalink(); ?>"><?php echo wp_kses_post( get_field('xxp_associat_address') ); ?></a></dd>
</li>
<?php endforeach;
// Reset the global post object so that the rest of the page works correctly.

View File

@ -29,7 +29,7 @@
<?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address">
<h6>adreça / direccion:</h6>
<p><?php the_field('xxp_associat_address'); ?></p>
<p><?php echo wp_kses_post( get_field('xxp_associat_address') ); ?></p>
</li>
<?php endif; ?>