added show/hide capabilitie to form menu

This commit is contained in:
jorge 2023-01-31 12:20:11 +01:00
parent 1adc034dca
commit 747a7534f4
6 changed files with 32 additions and 5 deletions

View File

@ -1547,6 +1547,11 @@ Add your custom styles in this file so it is easier to update the theme.
display: grid; display: grid;
grid: 1fr; grid: 1fr;
} }
.edit-post-visual-editor__content-area .ofisuport-filtered-funds .os_fund_target .filter,
.edit-post-visual-editor__content-area .ofisuport-filtered-funds .os_fund_source .filter,
.edit-post-visual-editor__content-area .ofisuport-filtered-funds .os_fund_field .filter {
display: none;
}
.edit-post-visual-editor__content-area .ofisuport-filters section { .edit-post-visual-editor__content-area .ofisuport-filters section {
margin: 1em 0; margin: 1em 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -20,10 +20,20 @@ get_header();
?> ?>
<section id="filteredfunds" class="ofisuport-filtered-funds ofisuport-ajuts-filtrats"> <section id="filteredfunds" class="ofisuport-filtered-funds ofisuport-ajuts-filtrats">
<aside id="fundsfilter" class="ofisuport-filter-funds ofisuport-filtre-ajuts">
<aside id="fundsfilter" class="ofisuport-filter-funds ofisuport-fitre-ajuts"> <script type="text/javascript">
<!-- https://stackoverflow.com/a/48314274 -->
(function($) {
$('.fund-filter').ready(function() {
$('.oficinasuport-titol-opcions').click(function() {
$(this).siblings(".filter").toggle();
});
});
})(jQuery);
</script>
<?php ofisuport_ajuts_filters_form(); // function defined in the plugin ?> <?php ofisuport_ajuts_filters_form(); // function defined in the plugin ?>
</aside> </aside>

View File

@ -93,6 +93,13 @@
.ofisuport-filtered-funds { .ofisuport-filtered-funds {
display:grid; display:grid;
grid: 1fr; grid: 1fr;
.os_fund_target,
.os_fund_source,
.os_fund_field {
.filter {
display: none;
}
}
} }
.ofisuport-filters{ .ofisuport-filters{
section { section {

View File

@ -1482,6 +1482,11 @@ textarea {
display: grid; display: grid;
grid: 1fr; grid: 1fr;
} }
.ofisuport-filtered-funds .os_fund_target .filter,
.ofisuport-filtered-funds .os_fund_source .filter,
.ofisuport-filtered-funds .os_fund_field .filter {
display: none;
}
.ofisuport-filters section { .ofisuport-filters section {
margin: 1em 0; margin: 1em 0;
} }

File diff suppressed because one or more lines are too long