added show/hide capabilitie to menu search fund

This commit is contained in:
jorge-vitrubio 2023-01-31 12:22:19 +01:00
parent 747a7534f4
commit c8f082f964
1 changed files with 12 additions and 1 deletions

View File

@ -39,7 +39,18 @@ get_header();
<aside id="fundsfilter" class="ofisuport-filter-funds ofisuport-fitre-ajuts">
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'oficinasuport-wp-plugin/ofisuport-wp-plugin.php' ) ) { // if plugin active do?>
<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 } //end if is_plugin_active ?>