added show/hide capabilitie to menu search fund
This commit is contained in:
parent
747a7534f4
commit
c8f082f964
|
@ -39,7 +39,18 @@ get_header();
|
||||||
|
|
||||||
<aside id="fundsfilter" class="ofisuport-filter-funds ofisuport-fitre-ajuts">
|
<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?>
|
<?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 ofisuport_ajuts_filters_form(); // function defined in the plugin ?>
|
||||||
|
|
||||||
<?php } //end if is_plugin_active ?>
|
<?php } //end if is_plugin_active ?>
|
||||||
|
|
Loading…
Reference in New Issue