updated code to safe html and social links open in new window
This commit is contained in:
parent
bf101f4cb1
commit
7c88cab713
|
@ -48,7 +48,7 @@
|
||||||
<?php if( get_field('xxp_associat_address') ): ?>
|
<?php if( get_field('xxp_associat_address') ): ?>
|
||||||
<li class="xarxaprod-associat-address">
|
<li class="xarxaprod-associat-address">
|
||||||
<h6>Adreça:</h6>
|
<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>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
<?php while( have_rows('xxp_asocciat_social_networks') ): the_row(); ?>
|
<?php while( have_rows('xxp_asocciat_social_networks') ): the_row(); ?>
|
||||||
<li>
|
<li>
|
||||||
<?php $eachlink=get_sub_field('xxp_associat_link_social'); ?>
|
<?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>
|
</li>
|
||||||
<?php endwhile; //end while has rows associat social networks ?>
|
<?php endwhile; //end while has rows associat social networks ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="xarxaprod-convo-associat-address">
|
<li class="xarxaprod-convo-associat-address">
|
||||||
<dt>Lloc</dt>
|
<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>
|
</li>
|
||||||
<?php endforeach;
|
<?php endforeach;
|
||||||
// Reset the global post object so that the rest of the page works correctly.
|
// Reset the global post object so that the rest of the page works correctly.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<?php if( get_field('xxp_associat_address') ): ?>
|
<?php if( get_field('xxp_associat_address') ): ?>
|
||||||
<li class="xarxaprod-associat-address">
|
<li class="xarxaprod-associat-address">
|
||||||
<h6>adreça / direccion:</h6>
|
<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>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue