Compare commits
3 Commits
59dd7801df
...
9d2f99448e
Author | SHA1 | Date |
---|---|---|
jorge | 9d2f99448e | |
jorge | d21f02c536 | |
jorge | d738a8b7b1 |
|
@ -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.1
|
||||
Version: 1.6.5
|
||||
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 .post-type-archive-xarxaprod-associat .archive-posts {
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts.archive-posts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
@ -2715,6 +2715,11 @@ 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,32 +32,61 @@ get_header();
|
|||
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
|
||||
</figure>
|
||||
|
||||
<?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; ?>
|
||||
<?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 ?>
|
||||
|
||||
|
||||
|
||||
<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
|
||||
//the_posts_navigation();
|
||||
// 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>';
|
||||
?>
|
||||
|
||||
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,22 +31,49 @@ get_header();
|
|||
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php 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
|
||||
// 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
|
||||
// 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(); ?>
|
||||
|
||||
<?php get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</content>
|
||||
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats">
|
||||
</section>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -46,6 +46,7 @@ get_header();
|
|||
); ?>
|
||||
</aside>
|
||||
|
||||
<content class="archive-posts <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
$the_query_archive_agenda = new WP_Query(
|
||||
array(
|
||||
|
@ -73,7 +74,6 @@ 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(); ?>
|
||||
</content>
|
||||
<?php endif; //end query convo ?>
|
||||
</content>
|
||||
|
||||
</section>
|
||||
</main><!-- #main -->
|
||||
|
|
|
@ -45,6 +45,7 @@ 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
|
||||
|
@ -58,15 +59,14 @@ 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(); ?>
|
||||
</content>
|
||||
<?php endif; //end query ajut ?>
|
||||
</content>
|
||||
|
||||
</section>
|
||||
|
||||
|
|
|
@ -72,6 +72,12 @@ 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,6 +45,7 @@ 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
|
||||
|
@ -61,30 +62,38 @@ get_header();
|
|||
?>
|
||||
|
||||
<?php if ( $the_query_associat->have_posts() ) : ?>
|
||||
<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">
|
||||
<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 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 ?>
|
||||
</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>
|
||||
</section>
|
||||
|
||||
</main><!-- #main -->
|
||||
|
|
|
@ -43,6 +43,7 @@ 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
|
||||
|
@ -66,15 +67,14 @@ 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(); ?>
|
||||
</content>
|
||||
<?php endif; //end query convo ?>
|
||||
</content>
|
||||
|
||||
</section>
|
||||
</main><!-- #main -->
|
||||
|
|
|
@ -589,8 +589,9 @@
|
|||
@media screen and (min-width: 48em) {
|
||||
//only bigger than 48em
|
||||
.xarxaprod-filters {
|
||||
//padding-right: 2em;
|
||||
section {
|
||||
a.button-more {
|
||||
display:inline-block;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
.archive-posts {
|
||||
|
|
|
@ -265,9 +265,7 @@
|
|||
.archive-posts {
|
||||
grid-template-columns: repeat(2 , 1fr);
|
||||
min-height: 40vh;
|
||||
}
|
||||
.post-type-archive-xarxaprod-associat {
|
||||
.archive-posts {
|
||||
&.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.1
|
||||
Version: 1.6.5
|
||||
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.1
|
||||
Version: 1.6.5
|
||||
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;
|
||||
}
|
||||
|
||||
.post-type-archive-xarxaprod-associat .archive-posts {
|
||||
.archive-posts.archive-posts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
@ -2565,6 +2565,11 @@ 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