2022-12-29 16:58:39 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Template part for displaying posts
|
|
|
|
*
|
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
|
|
*
|
|
|
|
* @package Oficina_de_Suport_theme
|
|
|
|
*/
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
2023-01-02 17:00:21 +01:00
|
|
|
|
2022-12-29 16:58:39 +01:00
|
|
|
<header class="entry-header">
|
2022-12-30 22:50:04 +01:00
|
|
|
<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
|
2022-12-29 16:58:39 +01:00
|
|
|
</header><!-- .entry-header -->
|
2023-01-02 17:00:21 +01:00
|
|
|
|
2023-01-02 17:25:30 +01:00
|
|
|
<section class="ofisuport-fund-info-contact-fields">
|
|
|
|
|
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if( get_field('os_funder_name') ): ?>
|
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<p class="ofisuport-funder-name"><?php the_field('os_funder_name'); ?></p>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if( get_field('os_fund_contact_name') ): ?>
|
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<p class="ofisuport-fund-contact-name"><?php the_field('os_fund_contact_name'); ?></p>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if( get_field('os_fund_web') ): ?>
|
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<p class="ofisuport-fund-web"><a href="<?php the_field('os_fund_web'); ?>"><?php the_field('os_fund_web'); ?></a></p>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2023-01-02 17:00:21 +01:00
|
|
|
|
|
|
|
</section>
|
2022-12-29 16:58:39 +01:00
|
|
|
|
|
|
|
<div class="entry-content">
|
2022-12-30 22:50:04 +01:00
|
|
|
|
2022-12-29 16:58:39 +01:00
|
|
|
<?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>', 'ofisuport' ),
|
|
|
|
array(
|
|
|
|
'span' => array(
|
|
|
|
'class' => array(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
wp_kses_post( get_the_title() )
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
wp_link_pages(
|
|
|
|
array(
|
|
|
|
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ),
|
|
|
|
'after' => '</div>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
</div><!-- .entry-content -->
|
2023-01-02 17:00:21 +01:00
|
|
|
|
2023-01-02 16:48:32 +01:00
|
|
|
<section class="ofisuport-fund-info-fields">
|
2023-01-02 17:00:21 +01:00
|
|
|
|
2023-01-02 16:48:32 +01:00
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<h6>Dirigit a</h6>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_target') ); ?>
|
2023-01-02 17:00:21 +01:00
|
|
|
</div>
|
|
|
|
|
2023-01-02 16:48:32 +01:00
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<h6>Tipus d'ajuda</h6>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_source') ); ?>
|
2023-01-02 17:00:21 +01:00
|
|
|
</div>
|
|
|
|
|
2023-01-02 16:48:32 +01:00
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<h6>Sectors</h6>
|
|
|
|
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?>
|
2023-01-02 17:00:21 +01:00
|
|
|
</div>
|
|
|
|
|
2023-01-02 16:48:32 +01:00
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<h6>Termini</h6>
|
|
|
|
<?php if( get_field('os_fund_apply_begin') || get_field('os_fund_apply_end') ): ?>
|
2023-01-15 20:11:06 +01:00
|
|
|
<ul class="ofisuport-label item-os_fund_dates">
|
2023-01-02 16:48:32 +01:00
|
|
|
<li> <?php the_field('os_fund_apply_begin'); ?> </li>
|
|
|
|
<li> <?php the_field('os_fund_apply_end'); ?> </li>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2023-01-02 17:00:21 +01:00
|
|
|
|
2023-01-02 17:02:03 +01:00
|
|
|
<?php if( get_field('os_fund_web') ): ?>
|
2023-01-02 16:48:32 +01:00
|
|
|
<div class="ofisuport-fund-info-field">
|
|
|
|
<h6>+ Informació</h6>
|
|
|
|
<p><a href="<?php the_field('os_fund_web'); ?>" class="button button-more button-letsgo">ves-hi</a></p>
|
2023-01-02 17:00:21 +01:00
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2023-01-02 16:48:32 +01:00
|
|
|
<div class="ofisuport-fund-info-field">
|
2023-01-02 17:00:21 +01:00
|
|
|
<h6>Necessites assesorament?</h6>
|
2023-01-02 16:48:32 +01:00
|
|
|
<p><a href="<?php echo esc_url( home_url( '/consultoria/' ) ); ?>" class="button button-more button-ourservices">Oferim serveis de consultoria</a></p>
|
|
|
|
</div>
|
|
|
|
|
2022-12-30 22:50:04 +01:00
|
|
|
</section>
|
2022-12-29 16:58:39 +01:00
|
|
|
<footer class="entry-footer">
|
|
|
|
<?php ofisuport_entry_footer(); ?>
|
|
|
|
</footer><!-- .entry-footer -->
|
|
|
|
</article><!-- #post-<?php the_ID(); ?> -->
|