function je_job_cat_select($name, $label = 'Select Category', $args = array()) { $cats = et_get_job_categories_in_order(); $args = wp_parse_args($args, array('class' => '', 'id' => 'filter_cat')); ?> <select name="<?php echo $name; ?> " id="<?php echo $args['id']; ?> " class="<?php echo $args['class']; ?> "> <option value="0"><?php echo $label; ?> </option> <?php je_job_cat_children_options('job_category', $cats); ?> </select> <?php }
function je_job_cat_select_alert($name, $label = 'Select Category', $args = array()) { $cats = et_get_job_categories_in_order(); $args = wp_parse_args($args, array('class' => '', 'id' => 'filter_cat')); ?> <select data-placeholder="<?php echo $label; ?> " style="width:200px;margin-top:5px;" multiple name="<?php echo $name; ?> " id="<?php echo $args['id']; ?> " class="<?php //echo $args['class'] ?> chosen-select"> <?php je_job_cat_children_options('job_category', $cats); ?> </select> <?php }