oficinasuport-wp-theme/template-parts/content-ofisuport-ajut.php

76 lines
2.6 KiB
PHP
Raw Normal View History

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(); ?>>
<header class="entry-header">
<?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
<?php if ( 'ofisuport-ajut' === get_post_type() ) : ?>
<div class="entry-meta">
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<section class="ofisuport-fund-info-fields">
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?>
<?php if( get_field('os_funder_name') ): ?>
<h6 class="ofisuport-funder-name"><?php the_field('os_funder_name'); ?></h6>
<?php endif; ?>
<?php if( get_field('os_fund_contact_name') ): ?>
<h6 class="ofisuport-fund-contact-name"><?php the_field('os_fund_contact_name'); ?></h6>
<?php endif; ?>
<?php if( get_field('os_fund_web') ): ?>
<h6 class="ofisuport-fund-web"><a href="<?php the_field('os_fund_web'); ?>"><?php the_field('os_fund_web'); ?></a></h6>
<?php endif; ?>
</section>
2022-12-29 16:58:39 +01:00
<div class="entry-content">
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 -->
<section class="ofisuport-fund-info-fields">
<?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') ); ?>
<?php if( get_field('os_fund_apply_begin') || get_field('os_fund_apply_end') ): ?>
<ul class="oficina-suport-label item-os_fund_dates">
<li> <?php the_field('os_fund_apply_begin'); ?> </li>
<li> <?php the_field('os_fund_apply_end'); ?> </li>
</ul>
<?php endif; ?>
</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(); ?> -->