Compare commits
2 Commits
10298cd016
...
151a243cdf
Author | SHA1 | Date |
---|---|---|
jorge | 151a243cdf | |
jorge | 4313f488c1 |
10
archive.php
10
archive.php
|
@ -13,9 +13,16 @@ get_header();
|
||||||
<main id="primary" class="site-main">
|
<main id="primary" class="site-main">
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1><?php single_term_title( ' ' ); ?></h1>
|
<h1><?php single_term_title( ' ' ); ?></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<aside>
|
||||||
|
<?php if( in_category('faq') ) : ?>
|
||||||
|
<?php xarxaprod_display_faqs_labels(); ?>
|
||||||
|
<?php xarxaprod_display_faqs_search(); ?>
|
||||||
|
<?php endif; //end if is_category faq ?>
|
||||||
|
</aside>
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||||
|
@ -33,7 +40,6 @@ get_header();
|
||||||
|
|
||||||
endwhile;
|
endwhile;
|
||||||
|
|
||||||
|
|
||||||
the_posts_navigation();
|
the_posts_navigation();
|
||||||
echo '</content>';
|
echo '</content>';
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ get_header();
|
||||||
<?php if ( $the_query_faq->have_posts() ) : ?>
|
<?php if ( $the_query_faq->have_posts() ) : ?>
|
||||||
<?php while ( $the_query_faq->have_posts() ) : $the_query_faq->the_post(); ?>
|
<?php while ( $the_query_faq->have_posts() ) : $the_query_faq->the_post(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'template-parts/section', 'eachpost' ); ?>
|
<?php get_template_part( 'template-parts/section', 'eachfund' ); ?>
|
||||||
|
|
||||||
<?php endwhile;//end of the loop ?>
|
<?php endwhile;//end of the loop ?>
|
||||||
<?php wp_reset_postdata(); ?>
|
<?php wp_reset_postdata(); ?>
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Template part for displaying each ajut with each field in category, archive, search
|
|
||||||
* to be used inside the loop.
|
|
||||||
*
|
|
||||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
||||||
*
|
|
||||||
* @package Xarxaprod_theme
|
|
||||||
*/
|
|
||||||
?>
|
|
||||||
|
|
||||||
<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; ?>
|
|
||||||
</aside>
|
|
||||||
<nav class="more-link">
|
|
||||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">
|
|
||||||
Més info
|
|
||||||
<span class="hide"><?php the_title(); ?></span>
|
|
||||||
</a>
|
|
||||||
</nav>
|
|
||||||
</article><!-- #post-<?php the_ID(); ?> -->
|
|
|
@ -40,7 +40,7 @@
|
||||||
<?php if ( $featured_query->have_posts() ) : ?>
|
<?php if ( $featured_query->have_posts() ) : ?>
|
||||||
<?php while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?>
|
<?php while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'template-parts/section', 'eachpost' ); ?>
|
<?php get_template_part( 'template-parts/section', 'eachfund' ); ?>
|
||||||
|
|
||||||
<?php endwhile;//end of the loop ?>
|
<?php endwhile;//end of the loop ?>
|
||||||
<?php wp_reset_postdata(); ?>
|
<?php wp_reset_postdata(); ?>
|
||||||
|
|
Loading…
Reference in New Issue