';print_r( $field );echo ''; $fields[ $field['name'] ] = $field; update_option( 'sf-fields', $fields ); endif; foreach( $fields as $field ) if( $field['name'] == $_GET["ID"] ) break; if( isset( $_POST['sf'] ) ): if( ! wp_verify_nonce( $_POST['sf-wpnonce'], 'update-sf' ) ) wp_die( 'Wrong parameter.' ); $sf = $_POST['sf']; if( isset( $_POST['sf_step'] ) && $_POST['sf_step'] == 1 ): foreach( $sf as $key => $val ): $field[ $key ] = $val; endforeach; endif; if( isset( $_POST['sf_step'] ) && $_POST['sf_step'] == 2 ): $field['tax'] = $sf['tax']; $field['meta'] = $sf['meta']; endif; if( isset( $_POST['sf_step'] ) && $_POST['sf_step'] == 3 ): foreach( $sf as $key => $val ): $field[ $key ] = $val; endforeach; if( !function_exists('is_multisite') || !is_multisite() ) $file = SF_DIR . 'templates/template-' . $field['name'] . '.php'; else $file = SF_DIR . 'templates/template-' . $wpdb->blogid . '-' . $field['name'] . '.php'; $fp = fopen( $file, 'w' ); fwrite( $fp, stripslashes( $_POST['template']['result'] ) ); fclose( $fp ); if( !function_exists('is_multisite') || !is_multisite() ) $file = SF_DIR . 'templates/template-' . $field['name'] . '-noresult.php'; else $file = SF_DIR . 'templates/template-' . $wpdb->blogid . '-' . $field['name'] . '-noresult.php'; $fp = fopen( $file, 'w' ); fwrite( $fp, stripslashes( $_POST['template']['noresult'] ) ); fclose( $fp ); endif; if( isset( $_POST['sf_step'] ) && $_POST['sf_step'] == 4 ): foreach( $sf as $key => $val ): $field[ $key ] = $val; endforeach; endif; $fields[ $field['name'] ] = $field; update_option( 'sf-fields', $fields ); $update = true; endif; ?>

»


    • $t ): if( !isset( $field['tax'] ) || ( is_array( $field['tax'] ) && !in_array( $key, $field['tax'] ) ) ): ?>
    • labels->name; ?> ()
    • $val ): if( !isset( $field['meta'] ) || ( is_array( $field['meta'] ) && !in_array( $key, $field['meta'] ) ) ): ?>
    $t ): if( isset( $field['tax'] ) && is_array( $field['tax'] ) && in_array( $key, $field['tax'] ) ): ?>
  • labels->name; ?>
  • $val ): if( isset( $field['meta'] ) && is_array( $field['meta'] ) && in_array( $key, $field['meta'] ) ): ?>


blogid . '-' . $field['name']; if( !is_file( SF_DIR . 'templates/template-' . $template_name . '.php' ) ) $file = SF_DIR . 'templates/res/template-standard.php'; else $file = SF_DIR . 'templates/template-' . $template_name . '.php'; if( !is_file( SF_DIR . 'templates/template-' . $template_name . '-noresult.php' ) ) $file_no_result = SF_DIR . 'templates/res/template-standard-noresult.php'; else $file_no_result = SF_DIR . 'templates/template-' . $template_name . '-noresult.php'; ?>

#the_title#
#the_content#
#the_excerpt#
#the_author#
#count_comments#
#the_permalink#
#thumbnail#
#tax_#
#meta_#


:

:


:

:

'input-fulltext.png', 'select' => 'select.png', 'input' => 'input.png', 'checkbox' => 'checkbox.png', 'radiobox' => 'radiobox.png', 'range' => 'range.png', 'map' => 'maps.png', 'orderby' => 'order-by.png', 'hidden' => 'hidden.png', 'btnsearch' => 'btn-search.png', 'btnreset' => 'btn-reset.png', 'date' => 'date.png' ); $i = 0; foreach( $field['fields'] as $key => $f ): $i++; ?>
$v ): ?>

<?php __( 'Fulltext Search', 'sf' ); ?>
<?php __( 'Selectbox', 'sf' ); ?>
<?php __( 'Checkbox', 'sf' ); ?>
<?php __( 'Radiobox', 'sf' ); ?>