2024-02-23 17:15:07 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2024-03-12 20:23:55 +01:00
|
|
|
* Template part for displaying associat post type
|
2024-02-23 17:15:07 +01:00
|
|
|
*
|
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
|
|
*
|
|
|
|
* @package Xarxaprod_theme
|
|
|
|
*/
|
|
|
|
|
|
|
|
?>
|
2024-02-25 14:32:02 +01:00
|
|
|
<!-- template-parts content-xarxaprod-associat-php -->
|
2024-02-23 17:15:07 +01:00
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
|
|
|
|
<header class="entry-header">
|
|
|
|
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
|
|
|
</header><!-- .entry-header -->
|
|
|
|
|
|
|
|
<main class="entry-content">
|
|
|
|
|
|
|
|
<?php
|
|
|
|
the_content(
|
|
|
|
sprintf(
|
|
|
|
wp_kses(
|
|
|
|
/* translators: %s: Name of current post. Only visible to screen readers */
|
|
|
|
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'xarxaprod' ),
|
|
|
|
array(
|
|
|
|
'span' => array(
|
|
|
|
'class' => array(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
wp_kses_post( get_the_title() )
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
wp_link_pages(
|
|
|
|
array(
|
|
|
|
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
|
|
|
|
'after' => '</div>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
</main><!-- .entry-content -->
|
2024-03-12 20:23:55 +01:00
|
|
|
<section class="xarxaprod-associat-info">
|
|
|
|
<section class="xarxaprod-associat-contact">
|
|
|
|
<dt> </dt>
|
|
|
|
<ul class="xarxaprod-associat-contact-fields">
|
|
|
|
<?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>
|
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if( get_field('xxp_associat_mail') ): ?>
|
|
|
|
<li class="xarxaprod-associat-mail">
|
|
|
|
<h6>mail:</h6>
|
|
|
|
<p><a href="mailto:<?php the_field('xxp_associat_mail'); ?>"><?php the_field('xxp_associat_mail'); ?></a></p>
|
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if( get_field('xxp_associat_web') ): ?>
|
|
|
|
<li class="xarxaprod-associat-web">
|
|
|
|
<h6>web:</h6>
|
|
|
|
<p><a href="<?php the_field('xxp_associat_web'); ?>" class=""><?php the_field('xxp_associat_web') ;?></a></p>
|
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if( get_field('xxp_associat_tel') ): ?>
|
|
|
|
<li class="xarxaprod-associat-tel">
|
|
|
|
<h6>tel:</h6>
|
|
|
|
<p><?php the_field('xxp_associat_tel'); ?></p>
|
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="xarxaprod-associat-services">
|
|
|
|
<dt>Serveis</dt>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_associat_service') ); ?>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="xarxaprod-associat-logo">
|
|
|
|
<?php if( get_field('xxp_associat_logo') ): ?>
|
|
|
|
<figure class="xarxaprod-associat-logo">
|
|
|
|
<img class="" src="<?php the_field('xxp_associat_logo'); ?>" />
|
|
|
|
</figure>
|
|
|
|
<?php endif; ?>
|
|
|
|
</section>
|
|
|
|
</section>
|
2024-02-23 17:15:07 +01:00
|
|
|
|
2024-03-12 20:23:55 +01:00
|
|
|
<section class="xarxaprod-associat-convos">
|
2024-02-23 17:15:07 +01:00
|
|
|
|
2024-03-12 20:23:55 +01:00
|
|
|
<?php
|
|
|
|
// https://www.advancedcustomfields.com/resources/bidirectional-relationships/
|
|
|
|
// https://www.advancedcustomfields.com/resources/relationship/
|
|
|
|
;?>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'last-convos' ); ?>
|
2024-02-23 17:15:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-12 20:23:55 +01:00
|
|
|
</section>
|
2024-02-23 17:15:07 +01:00
|
|
|
|
2024-03-11 08:48:54 +01:00
|
|
|
<section class="xarxaprod-associat-location">
|
2024-02-23 17:15:07 +01:00
|
|
|
<?php if( get_field('xxp_associat_osm_link') ): ?>
|
|
|
|
<div class="xarxaprod-associat-osm-link">
|
|
|
|
<h6 class="">Localizatcio:</h6><p> <a href="<?php the_field('xxp_associat_osm_link'); ?>"><?php the_field('xxp_associat_osm_link'); ?></a></p>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2024-03-10 19:11:20 +01:00
|
|
|
<?php if( get_field('xxp_associat_osm_map') ): ?>
|
2024-03-12 20:23:55 +01:00
|
|
|
<div class="xarxaprod-associat-osm-map">
|
2024-02-24 09:50:04 +01:00
|
|
|
<h6 class="">Mapa:</h6>
|
|
|
|
<figure><?php the_field('xxp_associat_osm_map'); ?></figure>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2024-02-23 17:15:07 +01:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<footer class="entry-footer">
|
|
|
|
<?php xarxaprod_entry_footer(); ?>
|
|
|
|
</footer><!-- .entry-footer -->
|
|
|
|
</article><!-- #post-<?php the_ID(); ?> -->
|