_e("Number of project can post", ET_DOMAIN);
?>
</div>
				<input class="bg-grey-input width50p not-empty is-number required number" type="text" name="et_number_posts" /> 
				<?php 
_e("posts", ET_DOMAIN);
?>
			</div>
		</div>
		<div class="form-item">
			<div class="label"><?php 
_e("Project type", ET_DOMAIN);
?>
</div>
			<?php 
ae_tax_dropdown('project_type', array('class' => 'chosen-single tax-item', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'project_type', 'show_option_all' => __("Select project type", ET_DOMAIN), 'value' => 'id', 'name' => 'project_type'));
?>
 
		</div>
		<div class="form-item">
			<div class="label"><?php 
_e("Short description about this package", ET_DOMAIN);
?>
</div>
			<input class="bg-grey-input not-empty" name="post_content" type="text" />
		</div>
		<div class="form-item">
			<div class="label"><?php 
_e("Featured Project", ET_DOMAIN);
?>
</div>
            <!-- project category -->
            <div class="form-group">
            	<div class="row">
                	<div class="col-md-4">
                    	<label for="project_category" class="control-label title-plan"><?php 
_e("Category", ET_DOMAIN);
?>
<br/><span><?php 
_e(" Select the best one(s) ", ET_DOMAIN);
?>
</span></label>
                    </div>

                    <div class="col-md-8 col-sm-12">
                       <?php 
ae_tax_dropdown('project_category', array('attr' => 'data-chosen-width="100%" data-chosen-disable-search="" multiple data-placeholder="' . __("Choose categories", ET_DOMAIN) . '"', 'class' => 'chosen multi-tax-item tax-item required', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'project_category', 'show_option_all' => false));
?>
                    </div>
                </div>
            </div>
            <!--// project category -->

            <!-- file attachment -->
            <div class="form-group">
                <div class="row" id="gallery_place">
                    <div class="col-md-4">
                        <label for="carousel_browse_button" class="control-label title-plan">
                            <?php 
_e("Attachment", ET_DOMAIN);
?>
<br/>
    if (!empty($current_skills)) {
        foreach ($current_skills as $key => $value) {
            $c_skills[] = $value->term_id;
        }
    }
    ae_tax_dropdown('skill', array('attr' => 'data-chosen-width="95%" data-chosen-disable-search="" multiple data-placeholder="' . __(" Skills (max is 5)", 'page-profile-mobile') . '"', 'class' => 'form-control required', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'skill', 'show_option_all' => false, 'selected' => $c_skills));
}
?>
            </div>
            <div class="form-group-mobile">
                <label><?php 
_e("Category", 'page-profile-mobile');
?>
</label>
                <?php 
ae_tax_dropdown('project_category', array('attr' => 'data-chosen-width="95%" data-chosen-disable-search="" data-placeholder="' . __("Choose categories", 'page-profile-mobile') . '"', 'class' => 'experience-form chosen multi-tax-item tax-item required', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'project_category', 'selected' => $category, 'show_option_all' => false));
?>
            </div>
            <div class="form-group-mobile">
                <label><?php 
_e("Country", 'page-profile-mobile');
?>
</label>
                <!-- <a href="#" class="icon-edit-profile-user edit-info-user"><i class="fa fa-pencil"></i></a> -->
                <input class="form-control" type="text" id="country" placeholder="<?php 
_e("Country", 'page-profile-mobile');
?>
" name="country" value="<?php 
if ($country) {
    echo $country;
}
                    <div class="form-group">
                        <label><?php 
_e("Category", 'taxonomy-project_type-mobile');
?>
</label>
                        <?php 
ae_tax_dropdown('project_category', array('attr' => 'data-chosen-width="90%" data-chosen-disable-search="" data-placeholder="' . __("Choose categories", 'taxonomy-project_type-mobile') . '"', 'class' => 'cat-filter', 'hide_empty' => true, 'hierarchical' => true, 'id' => 'project_category', 'show_option_all' => __("All categories", 'taxonomy-project_type-mobile'), 'value' => 'slug'));
?>
                    </div>
                    <div class="form-group">
                        <label><?php 
_e("Project Type", 'taxonomy-project_type-mobile');
?>
</label>
                        <?php 
ae_tax_dropdown('project_type', array('attr' => 'data-chosen-width="90%" data-chosen-disable-search="1"  data-placeholder="' . __("All types", 'taxonomy-project_type-mobile') . '"', 'class' => 'type-filter', 'hide_empty' => true, 'hierarchical' => true, 'id' => 'project_type', 'show_option_all' => __("All types", 'taxonomy-project_type-mobile'), 'value' => 'slug'));
?>
 
                    </div>
                    <?php 
$max_slider = ae_get_option('fre_slide_max_budget', 2000);
?>
                    <div class="form-group">
                        <label><?php 
_e("Budget", 'taxonomy-project_type-mobile');
?>
</label>
                        <input id="et_budget" type="text" name="et_budget" class="slider-ranger" value="" data-slider-min="0" 
                            data-slider-max="<?php 
echo $max_slider;
?>
								   placeholder="<?php 
    _e("Skills (max is 10)", 'modal-add-portfolio-mobile');
    ?>
"
								   name=""
								   autocomplete="off" class="skill" spellcheck="false">
							<ul class="skills-list" id="skills_list"></ul>
							<?php 
} else {
    $c_skills = array();
    if (!empty($current_skills)) {
        foreach ($current_skills as $key => $value) {
            $c_skills[] = $value->term_id;
        }
    }
    ae_tax_dropdown('skill', array('attr' => 'data-chosen-width="95%" multiple data-chosen-disable-search="" data-placeholder="' . __(" Skills (max is 10)", 'modal-add-portfolio-mobile') . '"', 'class' => 'sw_skill modal-skills required', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'skill', 'show_option_all' => false, 'selected' => $c_skills));
}
?>

					</div>
					<div class="clearfix"></div>
					<button type="submit" class="btn-submit btn-sumary btn-sub-create">
						<?php 
_e('Add item', 'modal-add-portfolio-mobile');
?>
					</button>
				</form>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<?php

$country_list = ae_country_list();
?>
<form class="form-search-wrapper">
    <div class="form-group">
        <label><?php 
_e("Category", 'search-profiles-form-mobile');
?>
</label>
        <?php 
ae_tax_dropdown('project_category', array('attr' => 'data-chosen-width="100%" data-chosen-disable-search="" data-placeholder="' . __("Choose categories", 'search-profiles-form-mobile') . '"', 'class' => 'cat-filter chosen-select', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'project_category', 'show_option_all' => __("All categories", 'search-profiles-form-mobile'), 'value' => 'slug'));
?>
    </div>
    <div class="form-group">
        <label><?php 
_e('Location', 'search-profiles-form-mobile');
?>
</label>
        <select data-chosen-width="100%" data-chosen-disable-search=""
                data-placeholder="Choose categories" name="country" id="country"
                class="location-filter chosen-select" style="display: none;">
            <option value="" class="level-0" selected><?php 
_e('Choose country', 'search-profiles-form-mobile');
?>
</option>
            <?php 
if (!empty($country_list)) {
    foreach ($country_list as $key => $value) {
        echo '<option value="' . $value->country_name . '" class=" ' . $value->country_name . '  level-0">' . $value->country_name . '</option>';
    }
Exemple #7
0
 public static function ae_tax_multi($name, $selected = '', $attr = array())
 {
     $attr['multiple'] = true;
     ae_tax_dropdown($name, array('attr' => self::attributes($attr), 'class' => 'chosen chosen-select multi-tax-item tax-item', 'hide_empty' => false, 'hierarchical' => true, 'id' => $name, 'show_option_all' => false, 'selected' => $selected));
 }
</div>
<div class="modal fade bs-example-modal-lg" id="category-modal" tabindex="-1" role="dialog"
     aria-labelledby="category-modal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel"><?php 
_e('Select the category', 'filter-projects');
?>
</h4>
            </div>
            <div class="modal-body">
                <?php 
ae_tax_dropdown('project_category', array('attr' => 'data-chosen-width="70%" data-chosen-disable-search="" multiple data-placeholder="' . __("Choose categories", 'filter-projects') . '"', 'class' => 'cat-filter hidden', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'project_category', 'show_option_all' => __("All categories", 'filter-projects'), 'value' => 'slug'));
?>
                <div class="row">
                    <div id="category-all" class="col-xs-12 col-md-12 text-left"></div>
                </div>
                <div id="category-parent-checkbox" class="row">
                    <div id="column-1" class="col-xs-12 col-md-6"></div>
                    <div id="column-2" class="col-xs-12 col-md-6"></div>
                </div>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal"><?php 
_e('Ok', 'filter-projects');
?>
</button>
                        </label>
                	</div>
                    <div class="col-sm-8">
                        
                        <?php 
$switch_skill = ae_get_option('switch_skill');
if (!$switch_skill) {
    ?>
                            <input type="text" class="form-control text-field skill" id="skill" placeholder="<?php 
    _e("Skills", 'post-project-step3');
    ?>
" name=""  autocomplete="off" spellcheck="false" >
                            <ul class="skills-list" id="skills_list"></ul>
                            <?php 
} else {
    ae_tax_dropdown('skill', array('attr' => 'data-chosen-width="95%" data-chosen-disable-search="" multiple data-placeholder="' . __(" Skills (max is 10)", 'post-project-step3') . '"', 'class' => 'sw_skill chosen multi-tax-item tax-item required', 'hide_empty' => false, 'hierarchical' => true, 'id' => 'skill', 'show_option_all' => false));
    ?>

                        <?php 
}
?>
                    </div>
                    <div class="row">
                        <div class="col-sm-offset-4 col-sm-8 skill-error error">
                        </div>
                    </div>
                </div>
            </div>
            <!--// project skills -->

ae_tax_dropdown('project_category', array('attr' => 'data-chosen-width="100%" data-chosen-disable-search="" data-placeholder="' . __("Choose categories", ET_DOMAIN) . '"', 'class' => 'cat-filter chosen-select', 'hide_empty' => true, 'hierarchical' => true, 'id' => 'project_category', 'show_option_all' => __("All categories", ET_DOMAIN), 'value' => 'slug'));
?>
                    </p>
                </div>
            </div>
            <div class="col-md-15 col-sm-6">
                <div class="content-search-form-top-wrapper">
                    <div class="search-control">
                        <h2 class="title-search-form-top">
                            <?php 
_e('Location', ET_DOMAIN);
?>
                        </h2>
                        <p>
                            <?php 
ae_tax_dropdown('country', array('attr' => 'data-chosen-width="100%" data-chosen-disable-search="" data-placeholder="' . __("Choose categories", ET_DOMAIN) . '"', 'class' => 'cat-filter chosen-select', 'hide_empty' => true, 'hierarchical' => true, 'id' => 'country', 'show_option_all' => __("All locations", ET_DOMAIN), 'value' => 'slug'));
?>
                        </p>
                    </div>
                </div>
            </div>

            <div class="col-md-15 col-sm-6">
                <div class="content-search-form-top-wrapper">
                    <div class="search-control">
                        <h2 class="title-search-form-top">
                            <?php 
_e('Keyword', ET_DOMAIN);
?>
                        </h2>
                        <div class="skills-wrap">