Ejemplo n.º 1
0
    _e('Taxonomies & Postmetas', 'sf');
    ?>
</h3>
		<p><?php 
    _e('Please drag the Taxonomies and Postmetas, which you want to use in your search form from the left field to the right one.', 'sf');
    ?>
</p>
		<?php 
    $metas = get_all_postmetas_from_post_type($sf['posttype']);
    ?>
		<ul class="sf-group1">
			<li><?php 
    _e('Taxonomies', 'sf');
    ?>
				<?php 
    $tax = get_all_post_taxonomies($sf['posttype']);
    ?>
				<ul class="sf-tax-ul">
				<?php 
    foreach ($tax as $key => $t) {
        ?>
				<li class="sf-drag"><input name="sf[tax][]" value="<?php 
        echo $key;
        ?>
" type="hidden" /><?php 
        echo $t->labels->name;
        ?>
 (<?php 
        echo $key;
        ?>
)</li>
Ejemplo n.º 2
0
_e('Taxonomies & Postmetas', 'sf');
?>
</h3>
			<p><?php 
_e('Please drag the Taxonomies and Postmetas, which you want to use in your search form from the left field to the right one.', 'sf');
?>
</p>
			<?php 
$metas = get_all_postmetas_from_post_type($field['posttype']);
?>
			<ul class="sf-group1">
				<li><?php 
_e('Taxonomies', 'sf');
?>
					<?php 
$tax = get_all_post_taxonomies($field['posttype']);
?>
					<ul class="sf-tax-ul">
						<?php 
foreach ($tax as $key => $t) {
    if (!isset($field['tax']) || is_array($field['tax']) && !in_array($key, $field['tax'])) {
        ?>
						<li class="sf-drag"><input name="sf[tax][]" value="<?php 
        echo $key;
        ?>
" type="hidden" /><?php 
        echo $t->labels->name;
        ?>
 (<?php 
        echo $key;
        ?>