Admin Page Spider Plugin

', $arguments['uid'], $arguments['type'], $arguments['placeholder'], $value ); break; case 'textarea': printf( '', $arguments['uid'], $arguments['placeholder'], $value ); break; case 'select': case 'multiselect': if( ! empty ( $arguments['options'] ) && is_array( $arguments['options'] ) ){ $attributes = ''; $options_markup = ''; foreach( $arguments['options'] as $key => $label ){ $options_markup .= sprintf( '', $key, selected( $value[ array_search( $key, $value, true ) ], $key, false ), $label ); } if( $arguments['type'] === 'multiselect' ){ $attributes = ' multiple="multiple" '; } printf( '', $arguments['uid'], $attributes, $options_markup ); } break; case 'radio': case 'checkbox': if( ! empty ( $arguments['options'] ) && is_array( $arguments['options'] ) ){ $options_markup = ''; $iterator = 0; foreach( $arguments['options'] as $key => $label ){ $iterator++; $options_markup .= sprintf( '
', $arguments['uid'], $arguments['type'], $key, checked( $value[ array_search( $key, $value, true ) ], $key, false ), $label, $iterator ); } printf( '
%s
', $options_markup ); } break; } if( ! empty ( $arguments['helper'] )) { printf( ' %s', $arguments['helper'] ); } /* Add a supplemental text field if you ever want to display an additional field if( $supplemental = $arguments['supplemental'] ){ printf( '

%s

', $supplemental ); } */ } //End of public function apspider_field_callback() } new Admin_Page_Spider();