Plugin Directory

Changeset 614053

Timestamp:
10/18/2012 12:56:55 PM (12 years ago)
Author:
logikal16
Message:

CFS 1.7.4

Location:
custom-field-suite/trunk
Files:
7 added
3 deleted
12 edited

Legend:

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

    r609362 r614053  
    44Plugin URI: https://uproot.us/
    55Description: Dead simple custom field management.
    6 Version: 1.7.3
     6Version: 1.7.
    77Author: Matt Gibbs
    88Author URI: https://uproot.us/
     
    1111
    1212$cfs = new Cfs();
    13 $cfs->version = '1.7.3';
     13$cfs->version = '1.7.';
    1414
    1515class Cfs
     
    3838
    3939        // load the api
    40         include($this->dir . '/core/api.php');
     40        include($this->dir . '/core/api.php');
    4141        $this->api = new cfs_Api($this);
    4242
     
    7474    {
    7575        // perform upgrades
    76         include($this->dir . '/core/upgrade.php');
     76        include($this->dir . '/core/classes/upgrade.php');
     77        $upgrade = new cfs_Upgrade($this->version);
    7778
    7879        // get all available field types
     
    137138    {
    138139        // include the parent field type
    139         include($this->dir . '/core/fields/field.php');
     140        include($this->dir . '/core/s/field.php');
    140141
    141142        $field_types = array(
  • custom-field-suite/trunk/core/actions/admin_head.php

    r609362 r614053  
    4141CFS.options_html = <?php echo json_encode($options_html); ?>;
    4242
    43 (function($) {
    44     $(function() {
    45         $('span.checkbox').live('click', function() {
    46             var val = $(this).hasClass('active') ? 0 : 1;
    47             $(this).siblings('input').val(val);
    48             $(this).toggleClass('active');
    49         });
    50     });
    51 })(jQuery);
    52 
    5343</script>
    5444
    5545<script src="<?php echo $this->url; ?>/js/fields.js"></script>
    5646<script src="<?php echo $this->url; ?>/js/select2/select2.min.js"></script>
     47
    5748<link rel="stylesheet" type="text/css" href="<?php echo $this->url; ?>/css/fields.css" />
    5849<link rel="stylesheet" type="text/css" href="<?php echo $this->url; ?>/js/select2/select2.css" />
     50
    5951
    6052<?php
  • custom-field-suite/trunk/core/admin/field_html.php

    r604423 r614053  
    2929                                    <label>
    3030                                        <?php _e('Label', 'cfs'); ?>
    31                                         <span class="cfs_tooltip" title="<?php _e('The field name that editors will see', 'cfs'); ?>"></span>
     31                                        <div class="cfs_tooltip">
     32                                            <div class="tooltip_inner"><?php _e('The field label that editors will see.', 'cfs'); ?></div>
     33                                        </div>
    3234                                    </label>
    3335                                    <input type="text" name="cfs[fields][<?php echo $field->weight; ?>][label]" value="<?php echo empty($field->id) ? '' : esc_attr($field->label); ?>" />
     
    3638                                    <label>
    3739                                        <?php _e('Name', 'cfs'); ?>
    38                                         <span class="cfs_tooltip" title="<?php _e('Only lowercase letters and underscores', 'cfs'); ?>"></span>
     40                                        <div class="cfs_tooltip">
     41                                            <div class="tooltip_inner">
     42                                                <?php _e('The field name is passed into get() to retrieve values. Use only lowercase letters, numbers, and underscores.', 'cfs'); ?>
     43                                            </div>
     44                                        </div>
    3945                                    </label>
    4046                                    <input type="text" name="cfs[fields][<?php echo $field->weight; ?>][name]" value="<?php echo empty($field->id) ? '' : esc_attr($field->name); ?>" />
     
    6066                        <label>
    6167                            <?php _e('Instructions', 'cfs'); ?>
    62                             <span class="cfs_tooltip" title="<?php _e('Tips for editors when entering field data', 'cfs'); ?>"></span>
     68                            <div class="cfs_tooltip">
     69                                <div class="tooltip_inner"><?php _e('Notes for editors during data entry', 'cfs'); ?></div>
     70                            </div>
    6371                        </label>
    6472                    </td>
  • custom-field-suite/trunk/core/fields/relationship.php

    r609362 r614053  
    137137
    138138            $(function() {
    139                 $('.cfs_add_field').bind('go', function() {
     139                $('.cfs_add_field').('go', function() {
    140140                    $('.cfs_relationship:not(.ready)').init_relationship();
    141141                });
  • custom-field-suite/trunk/core/fields/select.php

    r609362 r614053  
    5656        (function($) {
    5757            $(function() {
    58                 $('.cfs_add_field').click(function() {
     58                $('.cfs_add_field').function() {
    5959                    $('.cfs_select:not(.ready)').init_select();
    6060                });
  • custom-field-suite/trunk/core/fields/true_false.php

    r609362 r614053  
    6565        (function($) {
    6666            $(function() {
    67                 $('.cfs_add_field').click(function() {
     67                $('.cfs_add_field').function() {
    6868                    $('.cfs_true_false:not(.ready)').init_true_false();
    6969                });
  • custom-field-suite/trunk/core/fields/user.php

    r599843 r614053  
    7979
    8080            $(function() {
    81                 $('.cfs_add_field').bind('go', function() {
     81                $('.cfs_add_field').('go', function() {
    8282                    $('.cfs_user:not(.ready)').init_user();
    8383                });
  • custom-field-suite/trunk/core/fields/wysiwyg.php

    r606792 r614053  
    6565
    6666            $(function() {
    67                 $('.cfs_add_field').bind('go', function() {
     67                $('.cfs_add_field').('go', function() {
    6868                    $('.cfs_wysiwyg:not(.ready)').init_wysiwyg();
    6969                });
  • custom-field-suite/trunk/css/fields.css

    r604423 r614053  
    119119}
    120120
    121 .field_form span.cfs_tooltip {
     121.field_form .cfs_tooltip {
    122122    display: inline-block;
    123123    width: 16px;
     
    126126    margin-left: 4px;
    127127    vertical-align: top;
     128
     129
     130
     131
    128132}
    129133
  • custom-field-suite/trunk/js/fields.js

    r601824 r614053  
    66        }
    77
     8
     9
     10
     11
     12
     13
     14
     15
     16
    817        update_order();
     18
    919
     20
     21
     22
     23
     24
     25
     26
     27
    1028        $('ul.fields').sortable({
    1129            items: 'ul, li',
     
    3351            $('.fields li:last .field_type select').change();
    3452            CFS.field_index = CFS.field_index + 1;
     53
    3554        });
    3655
     
    5574            $(this).closest('.field').find('.field_option').remove();
    5675            $(this).closest('.field_basics').after(html);
     76
    5777        });
    5878
  • custom-field-suite/trunk/lang/cfs.pot

    r594470 r614053  
    55"Project-Id-Version:  \n"
    66"Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-field-suite\n"
    7 "POT-Creation-Date: 2012-09-04 14:47:02+00:00\n"
     7"POT-Creation-Date: 2012-+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    1313"Language-Team: LANGUAGE <LL@li.org>\n"
    1414
    15 #: cfs.php:336
     15#: cfs.php:85 cfs.php:402
     16msgid "Field Groups"
     17msgstr ""
     18
     19#: cfs.php:86
     20msgid "Field Group"
     21msgstr ""
     22
     23#: cfs.php:87
     24msgid "Add New"
     25msgstr ""
     26
     27#: cfs.php:88
     28msgid "Add New Field Group"
     29msgstr ""
     30
     31#: cfs.php:89
     32msgid "Edit Field Group"
     33msgstr ""
     34
     35#: cfs.php:90
     36msgid "New Field Group"
     37msgstr ""
     38
     39#: cfs.php:91
     40msgid "View Field Group"
     41msgstr ""
     42
     43#: cfs.php:92
     44msgid "Search Field Groups"
     45msgstr ""
     46
     47#: cfs.php:93
     48msgid "No Field Groups found"
     49msgstr ""
     50
     51#: cfs.php:94
     52msgid "No Field Groups found in Trash"
     53msgstr ""
     54
     55#: cfs.php:122
     56msgid "Title"
     57msgstr ""
     58
     59#: cfs.php:385
    1660msgid "Fields"
    1761msgstr ""
    1862
    19 #: cfs.php:337
     63#: cfs.php:3
    2064msgid "Placement Rules"
    2165msgstr ""
    2266
    23 #: cfs.php:338
     67#: cfs.php:3
    2468msgid "Extras"
    2569msgstr ""
    2670
    27 #: cfs.php:353 core/actions/init.php:13
    28 msgid "Field Groups"
    29 msgstr ""
    30 
    31 #: cfs.php:354
     71#: cfs.php:403
    3272msgid "Tools"
    3373msgstr ""
    3474
    35 #: cfs.php:592
     75#: cfs.php:2
    3676msgid "Imported"
    3777msgstr ""
    3878
    39 #: cfs.php:596
     79#: cfs.php:6
    4080msgid "Skipped"
    4181msgstr ""
    4282
    43 #: cfs.php:601
     83#: cfs.php:61
    4484msgid "Nothing to import"
    4585msgstr ""
    4686
    47 #: cfs.php:676
     87#: cfs.php:6
    4888msgid "No field groups selected"
    4989msgstr ""
    5090
    51 #: core/actions/admin_footer.php:63
     91#: core/actions/admin_footer.php:6
    5292msgid "Custom Field Suite"
    5393msgstr ""
    5494
    55 #: core/actions/admin_footer.php:67
     95#: core/actions/admin_footer.php:71
     96msgid "Homepage"
     97msgstr ""
     98
     99#: core/actions/admin_footer.php:72
     100msgid "User Guide"
     101msgstr ""
     102
     103#: core/actions/admin_footer.php:73
    56104msgid "Changelog"
    57105msgstr ""
    58106
    59 #: core/actions/admin_footer.php:68
    60 msgid "User Guide"
    61 msgstr ""
    62 
    63 #: core/actions/admin_footer.php:69
    64 msgid "Website"
    65 msgstr ""
    66 
    67 #: core/actions/init.php:14
    68 msgid "Field Group"
    69 msgstr ""
    70 
    71 #: core/actions/init.php:15
    72 msgid "Add New"
    73 msgstr ""
    74 
    75 #: core/actions/init.php:16
    76 msgid "Add New Field Group"
    77 msgstr ""
    78 
    79 #: core/actions/init.php:17
    80 msgid "Edit Field Group"
    81 msgstr ""
    82 
    83 #: core/actions/init.php:18
    84 msgid "New Field Group"
    85 msgstr ""
    86 
    87 #: core/actions/init.php:19
    88 msgid "View Field Group"
    89 msgstr ""
    90 
    91 #: core/actions/init.php:20
    92 msgid "Search Field Groups"
    93 msgstr ""
    94 
    95 #: core/actions/init.php:21
    96 msgid "No Field Groups found"
    97 msgstr ""
    98 
    99 #: core/actions/init.php:22
    100 msgid "No Field Groups found in Trash"
    101 msgstr ""
    102 
    103 #: core/actions/init.php:49
    104 msgid "Title"
     107#: core/actions/admin_footer.php:78
     108msgid "Donate"
     109msgstr ""
     110
     111#: core/actions/admin_footer.php:79
     112msgid "Rate the plugin"
    105113msgstr ""
    106114
     
    157165msgstr ""
    158166
    159 #: core/admin/meta_box_fields.php:59
     167#: core/admin/meta_box_fields.php:
    160168msgid "Add New Field"
    161169msgstr ""
     
    169177msgstr ""
    170178
    171 #: core/admin/meta_box_rules.php:70
    172 msgid "Select some options"
    173 msgstr ""
    174 
    175 #: core/admin/meta_box_rules.php:79 core/fields/relationship.php:90
     179#: core/admin/meta_box_rules.php:7
     180msgid ""
     181msgstr ""
     182
     183#: core/admin/meta_box_rules.php:
    176184msgid "Post Types"
    177185msgstr ""
    178186
    179 #: core/admin/meta_box_rules.php:105
     187#: core/admin/meta_box_rules.php:1
    180188msgid "User Roles"
    181189msgstr ""
    182190
    183 #: core/admin/meta_box_rules.php:131
     191#: core/admin/meta_box_rules.php:1
    184192msgid "Posts"
    185193msgstr ""
    186194
    187 #: core/admin/meta_box_rules.php:157
     195#: core/admin/meta_box_rules.php:1
    188196msgid "Taxonomy Terms"
     197
     198
     199
     200
     201
     202
     203
     204
    189205msgstr ""
    190206
     
    197213msgstr ""
    198214
     215
     216
     217
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
    199229#: core/fields/file.php:9
    200230msgid "File Upload"
    201231msgstr ""
    202232
    203 #: core/fields/file.php:44
     233#: core/fields/file.php:4
    204234msgid "Add File"
    205235msgstr ""
    206236
    207 #: core/fields/file.php:45
     237#: core/fields/file.php:4
    208238msgid "Remove"
    209239msgstr ""
    210240
    211 #: core/fields/file.php:52
     241#: core/fields/file.php:56
     242msgid "Return Value"
     243msgstr ""
     244
     245#: core/fields/file.php:65
    212246msgid "File URL"
    213247msgstr ""
    214248
    215 #: core/fields/file.php:53
     249#: core/fields/file.php:
    216250msgid "Attachment ID"
    217251msgstr ""
    218252
    219 #: core/fields/file.php:57
    220 msgid "Return Value"
    221 msgstr ""
    222 
    223 #: core/fields/file.php:97
     253#: core/fields/file.php:117
    224254msgid "Use This File"
     255
     256
     257
     258
    225259msgstr ""
    226260
     
    229263msgstr ""
    230264
    231 #: core/fields/loop.php:33
    232 msgid "Closed"
    233 msgstr ""
    234 
    235 #: core/fields/loop.php:34
    236 msgid "Open"
    237 msgstr ""
    238 
    239 #: core/fields/loop.php:38
     265#: core/fields/loop.php:36
    240266msgid "Row Display"
    241267msgstr ""
    242268
    243 #: core/fields/loop.php:47
     269#: core/fields/loop.php:4
    244270msgid "Show the values by default"
    245271msgstr ""
    246272
    247 #: core/fields/loop.php:55
     273#: core/fields/loop.php:52
     274msgid "Row Label"
     275msgstr ""
     276
     277#: core/fields/loop.php:60 core/fields/loop.php:91 core/fields/loop.php:162
     278msgid "Loop Row"
     279msgstr ""
     280
     281#: core/fields/loop.php:67
    248282msgid "Button Label"
    249283msgstr ""
    250284
    251 #: core/fields/loop.php:56
    252 msgid "Default: Add Row"
    253 msgstr ""
    254 
    255 #: core/fields/loop.php:65 core/fields/loop.php:100 core/fields/loop.php:144
     285#: core/fields/loop.php:75 core/fields/loop.php:117 core/fields/loop.php:163
    256286msgid "Add Row"
    257 msgstr ""
    258 
    259 #: core/fields/loop.php:86 core/fields/loop.php:158
    260 msgid "Loop Row"
    261 msgstr ""
    262 
    263 #: core/fields/loop.php:87 core/fields/loop.php:159
    264 msgid "click to toggle, drag to re-order"
    265287msgstr ""
    266288
     
    269291msgstr ""
    270292
    271 #: core/fields/relationship.php:91
     293#: core/fields/relationship.php:9
    272294msgid "Limit posts to the following types"
    273295msgstr ""
     
    277299msgstr ""
    278300
    279 #: core/fields/select.php:100
     301#: core/fields/select.php:
    280302msgid "Choices"
    281303msgstr ""
    282304
    283 #: core/fields/select.php:101
     305#: core/fields/select.php:
    284306msgid "Enter one choice per line"
    285307msgstr ""
    286308
    287 #: core/fields/select.php:116
    288 msgid "Select multiple values?"
    289 msgstr ""
    290 
    291 #: core/fields/select.php:125
    292 msgid "This a multi-select field"
    293 msgstr ""
    294 
    295 #: core/fields/text.php:18 core/fields/textarea.php:27
     309#: core/fields/select.php:1
     310msgid "?"
     311msgstr ""
     312
     313#: core/fields/select.php:1
     314msgid "This a multi-select field"
     315msgstr ""
     316
     317#: core/fields/text.php:18 core/fields/textarea.php:2
    296318msgid "Default Value"
    297319msgstr ""
     
    301323msgstr ""
    302324
    303 #: core/fields/textarea.php:22
     325#: core/fields/textarea.php:40 core/fields/wysiwyg.php:34
     326msgid "Formatting"
     327msgstr ""
     328
     329#: core/fields/textarea.php:49
    304330msgid "None"
    305331msgstr ""
    306332
    307 #: core/fields/textarea.php:23
    308 msgid "Convert newlines to"
    309 msgstr ""
    310 
    311 #: core/fields/textarea.php:42 core/fields/wysiwyg.php:29
    312 msgid "Formatting"
     333#: core/fields/textarea.php:50
     334msgid "Convert newlines to <br />"
    313335msgstr ""
    314336
     
    333355msgstr ""
    334356
    335 #: core/fields/wysiwyg.php:24
     357#: core/fields/wysiwyg.php:
    336358msgid "Default"
    337359msgstr ""
    338360
    339 #: core/fields/wysiwyg.php:25
     361#: core/fields/wysiwyg.php:
    340362msgid "None (bypass filters)"
    341363msgstr ""
  • custom-field-suite/trunk/readme.txt

    r611657 r614053  
    6262== Changelog ==
    6363
     64
     65
     66
     67
     68
     69
    6470= 1.7.3 =
    6571* Added field validation
Note: See TracChangeset for help on using the changeset viewer.