Compare commits
No commits in common. "main" and "js-03_fix01" have entirely different histories.
main
...
js-03_fix0
|
@ -56,8 +56,8 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form') ) {
|
||||||
if( $fieldname == $fields['name']) {
|
if( $fieldname == $fields['name']) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section id="fund-filter fund-filter-<?php echo $fields['name']; ?>" class="<?php echo $fields['name']; ?>">
|
<section id="fund-filter-<?php echo $fields['name']; ?>" class="<?php echo $fields['name']; ?>">
|
||||||
<h5 class="oficinasuport-titol-opcions"><?php echo $fields['label'];?></h5>
|
<h5><span class="oficinasuport-titol-opcions"><?php echo $fields['label'];?></span></h5>
|
||||||
<?php foreach( $fields['choices'] as $choicevalue => $choicelabel ) { ?>
|
<?php foreach( $fields['choices'] as $choicevalue => $choicelabel ) { ?>
|
||||||
|
|
||||||
<div class="filter" data-filter="<?php echo $fields['name'];?>">
|
<div class="filter" data-filter="<?php echo $fields['name'];?>">
|
||||||
|
@ -85,21 +85,7 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form') ) {
|
||||||
<?php //close the form and subit ?>
|
<?php //close the form and subit ?>
|
||||||
|
|
||||||
<?php }; //end if groupkey ?>
|
<?php }; //end if groupkey ?>
|
||||||
<aside id="search-form-ajuts" class="ofisuport-search-ajuts">
|
|
||||||
<?php
|
|
||||||
// search form for custom post type 'oficinasuport-ajut'
|
|
||||||
// <input type="hidden" value="ofisuport-ajut" name="post_type" id="post_type" />
|
|
||||||
// https://developer.wordpress.org/reference/functions/get_search_form/#comment-369
|
|
||||||
// https://wordpress.stackexchange.com/questions/313037/restrict-a-sear ch-to-a-custom-post-type
|
|
||||||
?>
|
|
||||||
<form class="ofisuport-search-form" role="search" method="get" action="/">
|
|
||||||
<label class="screen-reader-text" for="search">Search in ajuts</label>
|
|
||||||
<input type="search" id="search" class="search-field" placeholder="cerca amb paraula clau..." value="<?php the_search_query(); ?>" name="s" />
|
|
||||||
<input type="submit" id="searchsubmit" class="search-submit" value="cerca">
|
|
||||||
<span class="ofisuport-search-submit ofisuport-icon-search"></span>
|
|
||||||
<input type="hidden" value="ofisuport-ajut" name="post_type" id="post_type" />
|
|
||||||
</form>
|
|
||||||
</aside>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in New Issue