xarxaprod-wp-theme/template-parts/content-xarxaprod-ajut.php

132 lines
4.1 KiB
PHP
Raw Permalink Normal View History

2024-01-10 12:06:20 +01:00
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Xarxaprod_theme
2024-01-10 12:06:20 +01:00
*/
?>
<!-- template-parts content-xarxaprod-ajut-php -->
2024-01-10 12:06:20 +01:00
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
2024-01-10 12:06:20 +01:00
</header><!-- .entry-header -->
<section class="xarxaprod-fund-info-contact-fields">
2024-01-10 12:06:20 +01:00
<div class="xarxaprod-fund-info-field">
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_call') ); ?>
2024-01-10 12:06:20 +01:00
</div>
<?php if( get_field('xxp_fund_original_title') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-fund-original-title"><?php the_field('xxp_fund_original_title'); ?></p>
</div>
<?php endif; ?>
<?php if( get_field('xxp_funder_name') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-funder-name"><?php the_field('xxp_funder_name'); ?></p>
2024-01-10 12:06:20 +01:00
</div>
<?php endif; ?>
<?php if( get_field('xxp_fund_contact_name') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-fund-contact-name"><?php the_field('xxp_fund_contact_name'); ?></p>
2024-01-10 12:06:20 +01:00
</div>
<?php endif; ?>
<?php if( get_field('xxp_fund_contact_mail') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-fund-contact-mail"><?php the_field('xxp_fund_contact_mail'); ?></p>
</div>
<?php endif; ?>
<?php if( get_field('xxp_fund_contact_tel') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-fund-contact-tel"><?php the_field('xxp_fund_contact_tel'); ?></p>
</div>
2024-01-10 12:06:20 +01:00
<?php endif; ?>
2024-01-10 12:06:20 +01:00
</section>
<div 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' ),
2024-01-10 12:06:20 +01:00
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
2024-01-10 12:06:20 +01:00
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<section class="xarxaprod-fund-info-fields">
2024-01-10 12:06:20 +01:00
<div class="xarxaprod-fund-info-field">
2024-01-10 12:06:20 +01:00
<h6>Termini</h6>
<?php if( get_field('xxp_fund_apply_begin') || get_field('xxp_fund_apply_end') ): ?>
<ul class="xarxaprod-label item-xxp_fund_dates">
<li class="item-xxp_fund_apply_begin">del <?php the_field('xxp_fund_apply_begin'); ?> </li>
<li class="item-xxp_fund_apply_end">al <?php the_field('xxp_fund_apply_end'); ?> </li>
2024-01-10 12:06:20 +01:00
</ul>
<?php endif; ?>
<?php if( get_field('xxp_fund_apply_text') ): ?>
<p class="item-xxp_fund_apply_text"><?php the_field('xxp_fund_apply_text'); ?></p>
<?php endif; ?>
2024-01-10 12:06:20 +01:00
</div>
<?php if( get_field('xxp_fund_web') ): ?>
<div class="xarxaprod-fund-info-field">
2024-01-10 12:06:20 +01:00
<h6>+ Informació</h6>
<p><a href="<?php echo get_field('xxp_fund_web'); ?>" class="button button-more button-letsgo">convocatória</a></p>
2024-01-10 12:06:20 +01:00
</div>
<?php endif; ?>
<div class="xarxaprod-fund-info-field">
<h6>Dirigit a</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_target') ); ?>
</div>
<div class="xarxaprod-fund-info-field">
<h6>Tipus d'ajuda</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_source') ); ?>
</div>
<div class="xarxaprod-fund-info-field">
<h6>Sectors</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_field') ); ?>
</div>
<div class="xarxaprod-fund-info-field">
2024-01-10 12:06:20 +01:00
<h6>Necessites assesorament?</h6>
<p><a href="<?php echo esc_url( home_url( '/consultoria/' ) ); ?>" class="button button-more button-ourservices">Oferim serveis de consultoria</a></p>
</div>
</section>
<footer class="entry-footer">
<?php xarxaprod_entry_footer(); ?>
2024-01-10 12:06:20 +01:00
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->