<?php if ($tipo_profilo == 'azienda') { ?> <div class="widget widget_categories filtri_profili"> <h2>Settore</h2> <span class="arrow"></span> <ul style="padding-left:0px;"> <li class="cat-child" id="cat-child-<?php echo $term->term_id; ?> "><?php stampa_checkbox_specializzazioni(null, ''); ?> </li> </ul> </div><!-- /filtri_profili --> <?php } //azienda ?> <div class="widget widget_categories filtri_profili"> <h2>Provincia</h2> <span class="arrow"></span>
} //azienda ?> <!-- ______________________ Settore ______________________ --> <?php if ($current_user->tipo_profilo == 'azienda') { ?> <fieldset><legend><?php echo __("Settore"); ?> :</legend> <div class='col-sm-offset-3 col-sm-9'> <?php stampa_checkbox_specializzazioni($term, $current_user->specializzazioni); ?> </div><!-- /col-sm-9 --> <input type='hidden' class="ignore" name="specializzazioni" id="specializzazioni" value="<?php echo $current_user->specializzazioni; ?> " > </fieldset> <?php } //azienda ?>
<li class="cat-parent" id="cat-parent-<?php echo $term->term_id; ?> " data-term_id="<?php echo $term->term_id; ?> "><?php echo __($term->name); ?> <span class="floatright glyphicon glyphicon-chevron-up"></span></li> <li class="cat-child" id="cat-child-<?php echo $term->term_id; ?> "><?php stampa_checkbox_specializzazioni($term, ''); ?> </li> </ul> </div><!-- /filtri_profili --> <script type='text/javascript'> jQuery(function(){ jQuery('.filtri_profili .col-sm-4').removeClass('col-sm-4'); jQuery('.checkbox-specializzazione').change(function(){ imposta_chiamata_ajax() });//change jQuery('.cat-parent').click(function(){ apri_chiudi_cat(jQuery(this).data('term_id')); });//click jQuery('.cat-parent').each(function(){ jQuery(this).trigger('click'); });//click });//ready