styled map ordered location, clean up files

This commit is contained in:
jorge 2024-03-13 00:23:21 +01:00
parent 4886490ef9
commit 5ab5baa8f5
9 changed files with 73 additions and 37 deletions

View File

@ -332,6 +332,9 @@ Add your custom styles in this file so it is easier to update the theme.
/* Gutten slider styles for xarxaprod */
/* Leaflet
--------------------------------------------- */
/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
@ -2660,6 +2663,16 @@ Add your custom styles in this file so it is easier to update the theme.
margin-right: -50vw;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .leaflet-container a {
color: #000 !important;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .leaflet-attribution-flag {
height: 0 !important;
width: 0 !important;
display: none !important;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@
get_header();
?>
<!-- page-templates convos-search-php -->
<main id="primary" class="site-main">
<main id="primary" class="site-main">
<?php if ( have_posts() ) : ?>
@ -42,34 +42,31 @@ get_header();
<?php xarxaprod_convos_filters_form(); // function defined in the plugin ?>
<?php } //end if is_plugin_active ?>
</aside>
<?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',
'posts_per_page' => '-1'
)
);
?>
<?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' ); ?>
<?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?>
</content>
<?php endif; //end query convo ?>
<?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',
'posts_per_page' => '-1'
)
);
?>
<?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' ); ?>
<?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?>
</content>
<?php endif; //end query convo ?>
</section>
</main><!-- #main -->
</section>
</main><!-- #main -->
<?php
get_footer();

View File

@ -0,0 +1,9 @@
.leaflet-container a {
color: $color__link !important;
}
.leaflet-attribution-flag {
height: 0px !important;
width: 0px !important;
display: none !important;
}

View File

@ -103,6 +103,10 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
--------------------------------------------- */
@import "plugins/guttenslider/guttenslider";
/* Leaflet
--------------------------------------------- */
@import "plugins/leaflet/leaflet";
/*--------------------------------------------------------------
# Utilities

View File

@ -2544,6 +2544,18 @@ textarea {
margin-right: -50vw;
}
/* Leaflet
--------------------------------------------- */
.leaflet-container a {
color: #000 !important;
}
.leaflet-attribution-flag {
height: 0 !important;
width: 0 !important;
display: none !important;
}
/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

File diff suppressed because one or more lines are too long

View File

@ -94,17 +94,16 @@
</section>
<section class="xarxaprod-associat-location">
<?php if( get_field('xxp_associat_osm_link') ): ?>
<div class="xarxaprod-associat-osm-link">
<h6 class="">Localizatcio:</h6><p> <a href="<?php the_field('xxp_associat_osm_link'); ?>"><?php the_field('xxp_associat_osm_link'); ?></a></p>
</div>
<?php endif; ?>
<?php if( get_field('xxp_associat_osm_map') ): ?>
<div class="xarxaprod-associat-osm-map">
<h6 class="">Mapa:</h6>
<figure><?php the_field('xxp_associat_osm_map'); ?></figure>
</div>
<?php endif; ?>
<?php if( get_field('xxp_associat_osm_link') ): ?>
<div class="xarxaprod-associat-osm-link">
<h6 class="">Localizatcio:</h6><p> <a href="<?php the_field('xxp_associat_osm_link'); ?>"><?php the_field('xxp_associat_osm_link'); ?></a></p>
</div>
<?php endif; ?>
</section>