coded each member and styled
This commit is contained in:
parent
b8d13620ff
commit
91ba0e1791
|
@ -9,37 +9,62 @@
|
|||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
|
||||
|
||||
<h3 class="entry-title">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<?php if( get_field('xxp_funder_name') ): //case of ajuts fund ?>
|
||||
<h6 class="xarxaprod-funder-name"><?php the_field('xxp_funder_name'); ?></h6>
|
||||
<?php endif; ?>
|
||||
<section class="excerpt post-excerpt">
|
||||
<?php the_excerpt() ?>
|
||||
</section>
|
||||
<aside>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_target') ); ?>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_source') ); ?>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_field') ); ?>
|
||||
<?php if( get_field('xxp_fund_apply_begin') || get_field('xxp_fund_apply_end') ): ?>
|
||||
<ul class="xarxaprod-label item-xxp_fund_dates">
|
||||
<li>del <?php the_field('xxp_fund_apply_begin'); ?></li>
|
||||
<li>al <?php the_field('xxp_fund_apply_end'); ?></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_fund_apply_text') ): ?>
|
||||
<ul class="xarxaprod-label item-xxp_fund_dates">
|
||||
<li class=""><?php the_field('xxp_fund_apply_text'); ?></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( get_field('xxp_fund_call') ): ?>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_call') ); ?>
|
||||
<?php endif; ?>
|
||||
<section class="excerpt post-excerpt">
|
||||
<?php //the_excerpt() ?>
|
||||
<?php echo wp_trim_words(get_the_excerpt(), 22); // https://developer.wordpress.org/reference/functions/wp_trim_words/?>
|
||||
</section>
|
||||
|
||||
<aside class="xarxaprod-associat-info">
|
||||
|
||||
<section class="xarxaprod-associat-contact">
|
||||
<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>
|
||||
|
||||
</aside>
|
||||
<nav class="more-link">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">
|
||||
|
|
Loading…
Reference in New Issue