2022-12-29 23:27:17 +01:00
|
|
|
<?php /**
|
|
|
|
* Template part for displaying each ajut with each field.
|
|
|
|
* to be used inside the loop.
|
|
|
|
*
|
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
|
|
*
|
|
|
|
* @package Oficina_de_Suport_theme
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2022-12-30 22:50:04 +01:00
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class('ofisuport-card-each'); ?>>
|
2022-12-29 23:27:17 +01:00
|
|
|
<h3 class="entry-title">
|
|
|
|
<a href="<?php the_permalink(); ?>" rel="bookmark">
|
|
|
|
<?php the_title(); ?>
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
<?php if( get_field('os_funder_name') ): ?>
|
2022-12-30 21:35:32 +01:00
|
|
|
<h6 class="ofisuport-funder-name"><?php the_field('os_funder_name'); ?></h6>
|
2022-12-29 23:27:17 +01:00
|
|
|
<?php endif; ?>
|
|
|
|
<section class="excerpt post-excerpt">
|
|
|
|
<?php the_excerpt() ?>
|
|
|
|
</section>
|
|
|
|
<aside>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_target') ); ?>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_source') ); ?>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?>
|
2023-01-15 20:11:06 +01:00
|
|
|
<ul class="ofisuport-label item-os_fund_dates">
|
2023-01-18 15:57:32 +01:00
|
|
|
<li><?php the_field('os_fund_apply_begin'); ?></li>
|
|
|
|
<li><?php the_field('os_fund_apply_end'); ?></li>
|
2022-12-30 21:35:32 +01:00
|
|
|
</ul>
|
|
|
|
<?php //get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_apply_begin') ); ?>
|
|
|
|
<?php //get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_apply_end') ); ?>
|
2022-12-29 23:27:17 +01:00
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?>
|
|
|
|
</aside>
|
|
|
|
</article><!-- #post-<?php the_ID(); ?> -->
|