Plugin Directory

Changeset 646388

Timestamp:
12/31/2012 01:49:31 PM (12 years ago)
Author:
logikal16
Message:

CFS 1.8.1

Location:
custom-field-suite/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • custom-field-suite/trunk/cfs.php

    r641429 r646388  
    44Plugin URI: http://uproot.us/
    55Description: Visually add custom fields to your WordPress edit pages.
    6 Version: 1.8.0
     6Version: 1.8.
    77Author: Matt Gibbs
    88Author URI: http://uproot.us/
     
    3333    function __construct()
    3434    {
    35         $this->version = '1.8.0';
     35        $this->version = '1.8.';
    3636        $this->dir = (string) dirname(__FILE__);
    3737        $this->url = plugins_url('custom-field-suite');
     
    223223        $field_info = $this->api->get_field_info($field_name, $post_id);
    224224
    225         if (false !== $field_name)
    226         {
    227             return $field_info[$field_name]['label'];
     225        if ()
     226        {
     227            return $field_info['label'];
    228228        }
    229229        else
  • custom-field-suite/trunk/core/classes/api.php

    r641429 r646388  
    296296                $result->options = unserialize($result->options);
    297297
    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))
    299303                {
    300304                    $output[$result->name] = (array) $result;
  • custom-field-suite/trunk/core/classes/third_party.php

    r636566 r646388  
    99        $this->parent = $parent;
    1010
    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/
    1215        add_action('gform_post_submission', array($this, 'gform_handler'), 10, 2);
     16
     17
    1318        add_action('icl_make_duplicate', array($this, 'wpml_handler'), 10, 4);
    1419    }
     
    3641        {
    3742            $meta_value = unserialize($result->meta_value);
    38             $meta_value = $meta_value['gforms'];
    3943
    40             if ($form_id == $meta_value['form_id'])
     44            if ()
    4145            {
    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'])
    4547                {
    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                    );
    4759                }
    48 
    49                 $field_groups[$result->post_id] = array(
    50                     'post_type' => $meta_value['post_type'],
    51                     'fields' => $fields,
    52                 );
    5360            }
    5461        }
     
    138145        }
    139146    }
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
    140169}
  • custom-field-suite/trunk/readme.txt

    r641431 r646388  
    22Contributors: logikal16, mgibbs189
    33Donate link: http://uproot.us/donate/
    4 Tags: custom fields, fields, postmeta, cck, wysiwyg, relationship, upload
     4Tags: custom fields, fields, postmeta, cck, wysiwyg, relationship, upload
    55Requires at least: 3.3
    66Tested up to: 3.5
    77Stable tag: trunk
    8 License: GPLv2
     8License: GPL2
    99
    10 Visually add custom fields to your WordPress edit pages.
     10.
    1111
    1212== Description ==
    1313
    14 Custom Field Suite (CFS) lets you visually create and manage custom fields.
     14Custom Field Suite (CFS) lets you
    1515
    1616= 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
    1819* Field validation
    1920* Drag-and-drop field management
     
    2122* Easily customize where each field group appears
    2223
    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.
    2425
    2526= Why use Custom Field Suite? =
    2627* CFS is super easy to use.
    2728* CFS is stable. We test all changes before releasing a new version.
    28 * CFS is fast and uses minimal server resources.
     29* CFS is fast and uses server resources.
    2930* 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.
    3031* 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/)
    3232
    3333= Documentation and Support =
     
    4848
    4949== Changelog ==
     50
     51
     52
     53
     54
    5055
    5156= 1.8.0 =
Note: See TracChangeset for help on using the changeset viewer.