Compare commits
2 Commits
de60c363e3
...
1695c53837
Author | SHA1 | Date |
---|---|---|
jorge | 1695c53837 | |
jorge | 92ad836a75 |
|
@ -18,9 +18,8 @@
|
||||||
* @package Oficina_de_Suport_theme
|
* @package Oficina_de_Suport_theme
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if( ! function_exists( 'ofisuport_ajuts_filters_form' ) ):
|
if( ! function_exists( 'ofisuport_ajuts_filters_form') ) {
|
||||||
function ofisuport_ajuts_filters_form() {
|
function ofisuport_ajuts_filters_form() {
|
||||||
?>
|
?>
|
||||||
<div id="archive-filters" class="ofisuport-filters">
|
<div id="archive-filters" class="ofisuport-filters">
|
||||||
|
@ -49,8 +48,8 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form' ) ):
|
||||||
if( isset($_GET[ $fieldname ]) ) {
|
if( isset($_GET[ $fieldname ]) ) {
|
||||||
|
|
||||||
$filteredvalues['value'] = explode(',', $_GET[ $fieldname ]);
|
$filteredvalues['value'] = explode(',', $_GET[ $fieldname ]);
|
||||||
};
|
};
|
||||||
//end check for values in url
|
//end check for values in url
|
||||||
|
|
||||||
// construct the checkboxes
|
// construct the checkboxes
|
||||||
if( $fieldname == $fields['name']) {
|
if( $fieldname == $fields['name']) {
|
||||||
|
@ -82,7 +81,7 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form' ) ):
|
||||||
<?php //echo '<p><span id="filterlink"></span></p>';?>
|
<?php //echo '<p><span id="filterlink"></span></p>';?>
|
||||||
<p><a id="submitfilteredlink" name="submit-ajut" class="button button-more" href="">enviar</a> </p>
|
<p><a id="submitfilteredlink" name="submit-ajut" class="button button-more" href="">enviar</a> </p>
|
||||||
</form>
|
</form>
|
||||||
<?php //close the form and subit ?>
|
<?php //close the form and subit ?>
|
||||||
|
|
||||||
<?php }; //end if groupkey ?>
|
<?php }; //end if groupkey ?>
|
||||||
|
|
||||||
|
@ -90,12 +89,8 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form' ) ):
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(function($) {
|
(function($) {
|
||||||
// change
|
// change
|
||||||
//$('#archive-filters').on('click', 'button', function(){
|
|
||||||
$('#archive-filters').on('click', 'input', function(){
|
$('#archive-filters').on('click', 'input', function(){
|
||||||
|
|
||||||
// vars
|
// vars
|
||||||
|
@ -164,6 +159,6 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form' ) ):
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}; //end ofisuport_display_filters()
|
}; //end ofisuport_ajuts_filters_form
|
||||||
endif; // end if ! functionexists
|
}; // end if ! functions_exists
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue