Compare commits
No commits in common. "9d2f99448e40778eb17f48b1da5c93cf70cf77f1" and "59dd7801df2f46273a54883033cbe060771ee7d6" have entirely different histories.
9d2f99448e
...
59dd7801df
|
@ -17,7 +17,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.6.5
|
||||
Version: 1.6.1
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
@ -1742,7 +1742,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
min-height: 40vh;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts.archive-posts {
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .post-type-archive-xarxaprod-associat .archive-posts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
@ -2715,11 +2715,6 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters a.button-more {
|
||||
display: inline-block;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-convo-info-fields li,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-agenda-info li {
|
||||
font-size: 1.5rem;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -32,61 +32,32 @@ get_header();
|
|||
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
|
||||
</figure>
|
||||
|
||||
<?php
|
||||
//if ( have_posts() ) :
|
||||
// while ( have_posts() ) : the_post();
|
||||
// xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin
|
||||
// endwhile;
|
||||
//else :
|
||||
// get_template_part( 'template-parts/content', 'none' );
|
||||
//endif;
|
||||
?>
|
||||
|
||||
<content class="archive-posts archive-posts-map archive-xarxaprod-members archive-xarxaprod-associats <?php xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
// https://support.advancedcustomfields.com/forums/topic/wp_query-using-meta_query-for-an-acf-checkbox-field/#post-145830
|
||||
// https://www.advancedcustomfields.com/resources/checkbox/#query-posts
|
||||
// https://barn2.com/blog/querying-posts-by-custom-field-acfi/
|
||||
|
||||
$the_query_associat = new WP_Query(
|
||||
array(
|
||||
'post_type' => 'xarxaprod-associat',
|
||||
'order' => 'ASC', //order a b c d ...
|
||||
'order_by' => 'name', // by name slug
|
||||
'posts_per_page' => '-1' //all of them
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
<?php if ( $the_query_associat->have_posts() ) : ?>
|
||||
<?php while ( $the_query_associat->have_posts() ) : $the_query_associat->the_post(); ?>
|
||||
|
||||
<?php xarxaprod_show_leaflet_associat_blob(); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php endif; //end query associat ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php while ( have_posts() ) : the_post();
|
||||
xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin
|
||||
//get_template_part( 'template-parts/section', 'eachmember' );
|
||||
endwhile; ?>
|
||||
|
||||
|
||||
<ul class="xarxaprod-label">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<li>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
// nuvol de nomb sde fabriques
|
||||
echo '<ul class="xarxaprod-label">';
|
||||
while ( have_posts() ) : the_post();
|
||||
echo '<li>';
|
||||
echo '<a href="';
|
||||
the_permalink();
|
||||
echo '" title="';
|
||||
the_title();
|
||||
echo '" rel="bookmark">';
|
||||
the_title();
|
||||
echo '</a>';
|
||||
echo '</li>';
|
||||
endwhile;
|
||||
echo '</ul>';
|
||||
?>
|
||||
|
||||
//the_posts_navigation();
|
||||
|
||||
else :
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif;
|
||||
?>
|
||||
</content>
|
||||
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats">
|
||||
</section>
|
||||
|
|
|
@ -31,48 +31,21 @@ get_header();
|
|||
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
|
||||
<?php
|
||||
// loop by default in archive.php
|
||||
//if ( have_posts() ) :
|
||||
// while ( have_posts() ) : the_post();
|
||||
// get_template_part( 'template-parts/section', 'eachconvo' );
|
||||
// endwhile;
|
||||
// the_posts_navigation();
|
||||
//else :
|
||||
// get_template_part( 'template-parts/content', 'none' );
|
||||
//endif;
|
||||
?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php while ( have_posts() ) : the_post();
|
||||
|
||||
get_template_part( 'template-parts/section', 'eachconvo' );
|
||||
|
||||
endwhile;
|
||||
|
||||
<?php
|
||||
// https://support.advancedcustomfields.com/forums/topic/wp_query-using-meta_query-for-an-acf-checkbox-field/#post-145830
|
||||
// https://www.advancedcustomfields.com/resources/checkbox/#query-posts
|
||||
// https://barn2.com/blog/querying-posts-by-custom-field-acfi/
|
||||
$the_query_convo = new WP_Query(
|
||||
array(
|
||||
'post_type' => 'xarxaprod-convo',
|
||||
'order_by' => 'meta_value', //order by meta value
|
||||
'meta_key' => 'xxp_convo_apply_end', // order by meta key convo apply end
|
||||
'order' => 'ASC', //order ascendent
|
||||
'posts_per_page' => '-1', //show all
|
||||
'meta_query' => array(
|
||||
array( //filter results show only older than today
|
||||
'key' => 'xxp_convo_apply_end',
|
||||
'value' => date("Y-m-d"), // consider using date_i18n() https://developer.wordpress.org/reference/functions/date_i18n/
|
||||
'compare' => '>=', //show events from today and later
|
||||
'type' => 'DATE',
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php if ( $the_query_convo->have_posts() ) : ?>
|
||||
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?>
|
||||
the_posts_navigation();
|
||||
|
||||
<?php get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
|
||||
else :
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php endif; ?>
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif;
|
||||
?>
|
||||
|
||||
</content>
|
||||
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats">
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -46,7 +46,6 @@ get_header();
|
|||
); ?>
|
||||
</aside>
|
||||
|
||||
<content class="archive-posts <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
$the_query_archive_agenda = new WP_Query(
|
||||
array(
|
||||
|
@ -74,6 +73,7 @@ get_header();
|
|||
);
|
||||
?>
|
||||
<?php if ( $the_query_archive_agenda->have_posts() ) : ?>
|
||||
<content class="archive-posts <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php while ( $the_query_archive_agenda->have_posts() ) : $the_query_archive_agenda->the_post(); ?>
|
||||
|
||||
<?php get_template_part( 'template-parts/section', 'each-agenda-entry' ); ?>
|
||||
|
@ -86,8 +86,8 @@ get_header();
|
|||
the_posts_navigation();
|
||||
?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php endif; //end query convo ?>
|
||||
</content>
|
||||
<?php endif; //end query convo ?>
|
||||
|
||||
</section>
|
||||
</main><!-- #main -->
|
||||
|
|
|
@ -45,7 +45,6 @@ get_header();
|
|||
</aside>
|
||||
|
||||
|
||||
<content class="archive-posts archive-xarxaprod-fund archive-xarxapdor-ajut <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
// https://support.advancedcustomfields.com/forums/topic/wp_query-using-meta_query-for-an-acf-checkbox-field/#post-145830
|
||||
// https://www.advancedcustomfields.com/resources/checkbox/#query-posts
|
||||
|
@ -59,14 +58,15 @@ get_header();
|
|||
);
|
||||
?>
|
||||
<?php if ( $the_query_ajut->have_posts() ) : ?>
|
||||
<content class="archive-posts archive-xarxaprod-fund archive-xarxapdor-ajut <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php while ( $the_query_ajut->have_posts() ) : $the_query_ajut->the_post(); ?>
|
||||
|
||||
<?php get_template_part( 'template-parts/section', 'eachfund' ); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php endif; //end query ajut ?>
|
||||
</content>
|
||||
<?php endif; //end query ajut ?>
|
||||
|
||||
</section>
|
||||
|
||||
|
|
|
@ -72,12 +72,6 @@ get_header();
|
|||
<?php get_template_part( 'template-parts/section', 'eachconvo' ); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php
|
||||
// pagination will not work for custom_query
|
||||
// https://wordpress.stackexchange.com/a/120408
|
||||
// how to fix it
|
||||
the_posts_navigation();
|
||||
?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
</content>
|
||||
<?php endif; //end query convo ?>
|
||||
|
|
|
@ -45,7 +45,6 @@ get_header();
|
|||
</aside>
|
||||
|
||||
|
||||
<content class="archive-posts archive-posts-map archive-xarxaprod-members archive-xarxaprod-associats <?php xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
// https://support.advancedcustomfields.com/forums/topic/wp_query-using-meta_query-for-an-acf-checkbox-field/#post-145830
|
||||
// https://www.advancedcustomfields.com/resources/checkbox/#query-posts
|
||||
|
@ -62,38 +61,30 @@ get_header();
|
|||
?>
|
||||
|
||||
<?php if ( $the_query_associat->have_posts() ) : ?>
|
||||
<figure id="espais-associats-map" class="xarxaprod-associats-map xarxaprod-espais-map">
|
||||
<content class="archive-posts archive-posts-map archive-xarxaprod-members archive-xarxaprod-associats <?php xarxaprod_class_posttype(); ?>">
|
||||
<figure id="espais-associats-map" class="xarxaprod-associats-map xarxaprod-espais-map">
|
||||
|
||||
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
|
||||
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
|
||||
|
||||
<?php while ( $the_query_associat->have_posts() ) : $the_query_associat->the_post(); ?>
|
||||
<?php while ( $the_query_associat->have_posts() ) : $the_query_associat->the_post(); ?>
|
||||
|
||||
<?php xarxaprod_show_leaflet_associat_blob(); ?>
|
||||
<?php xarxaprod_show_leaflet_associat_blob(); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php endwhile;//end of the loop ?>
|
||||
|
||||
</figure>
|
||||
|
||||
<?php
|
||||
// nuvol de nomb sde fabriques
|
||||
echo '<ul class="xarxaprod-label">';
|
||||
while ( $the_query_associat->have_posts() ) : $the_query_associat->the_post();
|
||||
echo '<li>';
|
||||
echo '<a href="';
|
||||
the_permalink();
|
||||
echo '" title="';
|
||||
the_title();
|
||||
echo '" rel="bookmark">';
|
||||
the_title();
|
||||
echo '</a>';
|
||||
echo '</li>';
|
||||
endwhile;
|
||||
echo '</ul>';
|
||||
?>
|
||||
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php endif; //end query associat ?>
|
||||
</content>
|
||||
</figure>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
</content>
|
||||
<?php
|
||||
//the loop for text output
|
||||
//echo '<content class="archive-posts archive-xarxaprod-members archive-xarxaprod-associats' . xarxaprod_class_posttype() . '">';
|
||||
//while ( $the_query_associat->have_posts() ) : $the_query_associat->the_post();
|
||||
//get_template_part( 'template-parts/section', 'eachmember' );
|
||||
//endwhile;//end of the loop
|
||||
//echo '</content>';
|
||||
?>
|
||||
<?php endif; //end query associat ?>
|
||||
|
||||
</section>
|
||||
|
||||
</main><!-- #main -->
|
||||
|
|
|
@ -43,7 +43,6 @@ get_header();
|
|||
<?php } //end if is_plugin_active ?>
|
||||
</aside>
|
||||
|
||||
<content class="archive-posts archive-xarxaprod-convo <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
// https://support.advancedcustomfields.com/forums/topic/wp_query-using-meta_query-for-an-acf-checkbox-field/#post-145830
|
||||
// https://www.advancedcustomfields.com/resources/checkbox/#query-posts
|
||||
|
@ -67,14 +66,15 @@ get_header();
|
|||
);
|
||||
?>
|
||||
<?php if ( $the_query_convo->have_posts() ) : ?>
|
||||
<content class="archive-posts archive-xarxaprod-convo <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?>
|
||||
|
||||
<?php get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php endif; //end query convo ?>
|
||||
</content>
|
||||
<?php endif; //end query convo ?>
|
||||
|
||||
</section>
|
||||
</main><!-- #main -->
|
||||
|
|
|
@ -589,9 +589,8 @@
|
|||
@media screen and (min-width: 48em) {
|
||||
//only bigger than 48em
|
||||
.xarxaprod-filters {
|
||||
a.button-more {
|
||||
display:inline-block;
|
||||
margin-top: 1rem;
|
||||
//padding-right: 2em;
|
||||
section {
|
||||
}
|
||||
}
|
||||
.archive-posts {
|
||||
|
|
|
@ -265,7 +265,9 @@
|
|||
.archive-posts {
|
||||
grid-template-columns: repeat(2 , 1fr);
|
||||
min-height: 40vh;
|
||||
&.archive-posts {
|
||||
}
|
||||
.post-type-archive-xarxaprod-associat {
|
||||
.archive-posts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.6.5
|
||||
Version: 1.6.1
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
|
|
@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.6.5
|
||||
Version: 1.6.1
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
@ -1606,7 +1606,7 @@ textarea {
|
|||
min-height: 40vh;
|
||||
}
|
||||
|
||||
.archive-posts.archive-posts {
|
||||
.post-type-archive-xarxaprod-associat .archive-posts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
@ -2565,11 +2565,6 @@ textarea {
|
|||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
.xarxaprod-filters a.button-more {
|
||||
display: inline-block;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo .xarxaprod-convo-info-fields li,
|
||||
.single-xarxaprod-convo .xarxaprod-agenda-info li {
|
||||
font-size: 1.5rem;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue