芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/itrema/wp-content/plugins/advanced-custom-fields/core/fields/email.php
name = 'email'; $this->label = __("Email",'acf'); $this->defaults = array( 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '' ); // do not delete! parent::__construct(); } /* * create_field() * * Create the HTML interface for your field * * @param $field - an array holding all the field's data * * @type action * @since 3.6 * @date 23/01/13 */ function create_field( $field ) { // vars $o = array( 'id', 'class', 'name', 'value', 'placeholder' ); $e = ''; // prepend if( $field['prepend'] !== "" ) { $field['class'] .= ' acf-is-prepended'; $e .= '
' . $field['prepend'] . '
'; } // append if( $field['append'] !== "" ) { $field['class'] .= ' acf-is-appended'; $e .= '
' . $field['append'] . '
'; } $e .= '
'; $e .= '
'text', 'name' => 'fields['.$key.'][default_value]', 'value' => $field['default_value'], )); ?>
'text', 'name' => 'fields[' .$key.'][placeholder]', 'value' => $field['placeholder'], )); ?>
'text', 'name' => 'fields[' .$key.'][prepend]', 'value' => $field['prepend'], )); ?>
'text', 'name' => 'fields[' .$key.'][append]', 'value' => $field['append'], )); ?>