added show/hide capabilitie to menu search fund
This commit is contained in:
parent
747a7534f4
commit
c8f082f964
|
@ -40,6 +40,17 @@ 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 ?>
|
||||
|
|
Loading…
Reference in New Issue