Changeset 646388
- Timestamp:
- 12/31/2012 01:49:31 PM (12 years ago)
- Location:
- custom-field-suite/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
custom-field-suite/trunk/cfs.php
r641429 r646388 4 4 Plugin URI: http://uproot.us/ 5 5 Description: Visually add custom fields to your WordPress edit pages. 6 Version: 1.8. 06 Version: 1.8. 7 7 Author: Matt Gibbs 8 8 Author URI: http://uproot.us/ … … 33 33 function __construct() 34 34 { 35 $this->version = '1.8. 0';35 $this->version = '1.8.'; 36 36 $this->dir = (string) dirname(__FILE__); 37 37 $this->url = plugins_url('custom-field-suite'); … … 223 223 $field_info = $this->api->get_field_info($field_name, $post_id); 224 224 225 if ( false !== $field_name)226 { 227 return $field_info[ $field_name]['label'];225 if () 226 { 227 return $field_info['label']; 228 228 } 229 229 else -
custom-field-suite/trunk/core/classes/api.php
r641429 r646388 296 296 $result->options = unserialize($result->options); 297 297 298 if (empty($field_name) || $result->name == $field_name) 298 if ($result->name == $field_name) 299 { 300 $output = (array) $result; 301 } 302 elseif (empty($field_name)) 299 303 { 300 304 $output[$result->name] = (array) $result; -
custom-field-suite/trunk/core/classes/third_party.php
r636566 r646388 9 9 $this->parent = $parent; 10 10 11 // add actions 11 // Post Type Switcher - http://wordpress.org/extend/plugins/post-type-switcher/ 12 add_filter('pts_post_type_filter', array($this, 'pts_post_type_filter')); 13 14 // Gravity Forms - http://www.gravityforms.com/ 12 15 add_action('gform_post_submission', array($this, 'gform_handler'), 10, 2); 16 17 13 18 add_action('icl_make_duplicate', array($this, 'wpml_handler'), 10, 4); 14 19 } … … 36 41 { 37 42 $meta_value = unserialize($result->meta_value); 38 $meta_value = $meta_value['gforms'];39 43 40 if ( $form_id == $meta_value['form_id'])44 if () 41 45 { 42 $fields = array(); 43 $all_fields = $wpdb->get_results("SELECT name, label FROM {$wpdb->prefix}cfs_fields WHERE post_id = '{$result->post_id}'"); 44 foreach ($all_fields as $field) 46 if ($form_id == $meta_value['gforms']['form_id']) 45 47 { 46 $fields[$field->label] = $field->name; 48 $fields = array(); 49 $all_fields = $wpdb->get_results("SELECT name, label FROM {$wpdb->prefix}cfs_fields WHERE post_id = '{$result->post_id}'"); 50 foreach ($all_fields as $field) 51 { 52 $fields[$field->label] = $field->name; 53 } 54 55 $field_groups[$result->post_id] = array( 56 'post_type' => $meta_value['gforms']['post_type'], 57 'fields' => $fields, 58 ); 47 59 } 48 49 $field_groups[$result->post_id] = array(50 'post_type' => $meta_value['post_type'],51 'fields' => $fields,52 );53 60 } 54 61 } … … 138 145 } 139 146 } 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 140 169 } -
custom-field-suite/trunk/readme.txt
r641431 r646388 2 2 Contributors: logikal16, mgibbs189 3 3 Donate link: http://uproot.us/donate/ 4 Tags: custom fields, fields, postmeta, cck, wysiwyg, relationship, upload4 Tags: custom fields, fields, postmeta, cck, wysiwyg, relationship, upload 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5 7 7 Stable tag: trunk 8 License: GPL v28 License: GPL2 9 9 10 Visually add custom fields to your WordPress edit pages.10 . 11 11 12 12 == Description == 13 13 14 Custom Field Suite (CFS) lets you visually create and manage custom fields.14 Custom Field Suite (CFS) lets you 15 15 16 16 = Features = 17 * Many field types: [text](http://uproot.us/docs/text/), [textarea](http://uproot.us/docs/textarea/), [wysiwyg](http://uproot.us/docs/wysiwyg/), [date](http://uproot.us/docs/date/), [color](http://uproot.us/docs/color/), [select](http://uproot.us/docs/select/), [file upload](http://uproot.us/docs/file-upload/), [user](http://uproot.us/docs/user/), [relationship](http://uproot.us/docs/relationship/), and [loop](http://uproot.us/docs/loop/) 17 * Many field types: [Text](http://uproot.us/docs/text/), [Textarea](http://uproot.us/docs/textarea/), [WYSIWYG](http://uproot.us/docs/wysiwyg/), [Date](http://uproot.us/docs/date/), [Color](http://uproot.us/docs/color/), [Select](http://uproot.us/docs/select/), [File Upload](http://uproot.us/docs/file-upload/), [User](http://uproot.us/docs/user/), [Relationship](http://uproot.us/docs/relationship/), [Loop](http://uproot.us/docs/loop/) and more! 18 * The "Placement Rules" area lets you control where each field group appears 18 19 * Field validation 19 20 * Drag-and-drop field management … … 21 22 * Easily customize where each field group appears 22 23 23 **CFS is a fork of Advanced Custom Fields .** The main goals of this plugin are stability, performance, and avoiding feature bloat.24 **CFS is a fork of Advanced Custom Fields.** The main goals of this plugin are stability, performance, and avoiding feature bloat. 24 25 25 26 = Why use Custom Field Suite? = 26 27 * CFS is super easy to use. 27 28 * CFS is stable. We test all changes before releasing a new version. 28 * CFS is fast and uses minimalserver resources.29 * CFS is fast and uses server resources. 29 30 * CFS works well with [Gravity Forms](http://uproot.us/how-to-save-gravity-forms-data-into-custom-field-suite/) by saving Gravity Forms entries as post items. 30 31 * CFS supports [adding your own field types](http://uproot.us/docs/creating-custom-field-types/). 31 * [CFS is on GitHub!](https://github.com/mgibbs189/custom-field-suite/)32 32 33 33 = Documentation and Support = … … 48 48 49 49 == Changelog == 50 51 52 53 54 50 55 51 56 = 1.8.0 =
Note: See TracChangeset
for help on using the changeset viewer.