Changeset 614053
- Timestamp:
- 10/18/2012 12:56:55 PM (12 years ago)
- Location:
- custom-field-suite/trunk
- Files:
-
- 7 added
- 3 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
custom-field-suite/trunk/cfs.php
r609362 r614053 4 4 Plugin URI: https://uproot.us/ 5 5 Description: Dead simple custom field management. 6 Version: 1.7. 36 Version: 1.7. 7 7 Author: Matt Gibbs 8 8 Author URI: https://uproot.us/ … … 11 11 12 12 $cfs = new Cfs(); 13 $cfs->version = '1.7. 3';13 $cfs->version = '1.7.'; 14 14 15 15 class Cfs … … 38 38 39 39 // load the api 40 include($this->dir . '/core/ api.php');40 include($this->dir . '/core/api.php'); 41 41 $this->api = new cfs_Api($this); 42 42 … … 74 74 { 75 75 // perform upgrades 76 include($this->dir . '/core/upgrade.php'); 76 include($this->dir . '/core/classes/upgrade.php'); 77 $upgrade = new cfs_Upgrade($this->version); 77 78 78 79 // get all available field types … … 137 138 { 138 139 // include the parent field type 139 include($this->dir . '/core/ fields/field.php');140 include($this->dir . '/core/s/field.php'); 140 141 141 142 $field_types = array( -
custom-field-suite/trunk/core/actions/admin_head.php
r609362 r614053 41 41 CFS.options_html = <?php echo json_encode($options_html); ?>; 42 42 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 53 43 </script> 54 44 55 45 <script src="<?php echo $this->url; ?>/js/fields.js"></script> 56 46 <script src="<?php echo $this->url; ?>/js/select2/select2.min.js"></script> 47 57 48 <link rel="stylesheet" type="text/css" href="<?php echo $this->url; ?>/css/fields.css" /> 58 49 <link rel="stylesheet" type="text/css" href="<?php echo $this->url; ?>/js/select2/select2.css" /> 50 59 51 60 52 <?php -
custom-field-suite/trunk/core/admin/field_html.php
r604423 r614053 29 29 <label> 30 30 <?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> 32 34 </label> 33 35 <input type="text" name="cfs[fields][<?php echo $field->weight; ?>][label]" value="<?php echo empty($field->id) ? '' : esc_attr($field->label); ?>" /> … … 36 38 <label> 37 39 <?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> 39 45 </label> 40 46 <input type="text" name="cfs[fields][<?php echo $field->weight; ?>][name]" value="<?php echo empty($field->id) ? '' : esc_attr($field->name); ?>" /> … … 60 66 <label> 61 67 <?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> 63 71 </label> 64 72 </td> -
custom-field-suite/trunk/core/fields/relationship.php
r609362 r614053 137 137 138 138 $(function() { 139 $('.cfs_add_field'). bind('go', function() {139 $('.cfs_add_field').('go', function() { 140 140 $('.cfs_relationship:not(.ready)').init_relationship(); 141 141 }); -
custom-field-suite/trunk/core/fields/select.php
r609362 r614053 56 56 (function($) { 57 57 $(function() { 58 $('.cfs_add_field'). click(function() {58 $('.cfs_add_field').function() { 59 59 $('.cfs_select:not(.ready)').init_select(); 60 60 }); -
custom-field-suite/trunk/core/fields/true_false.php
r609362 r614053 65 65 (function($) { 66 66 $(function() { 67 $('.cfs_add_field'). click(function() {67 $('.cfs_add_field').function() { 68 68 $('.cfs_true_false:not(.ready)').init_true_false(); 69 69 }); -
custom-field-suite/trunk/core/fields/user.php
r599843 r614053 79 79 80 80 $(function() { 81 $('.cfs_add_field'). bind('go', function() {81 $('.cfs_add_field').('go', function() { 82 82 $('.cfs_user:not(.ready)').init_user(); 83 83 }); -
custom-field-suite/trunk/core/fields/wysiwyg.php
r606792 r614053 65 65 66 66 $(function() { 67 $('.cfs_add_field'). bind('go', function() {67 $('.cfs_add_field').('go', function() { 68 68 $('.cfs_wysiwyg:not(.ready)').init_wysiwyg(); 69 69 }); -
custom-field-suite/trunk/css/fields.css
r604423 r614053 119 119 } 120 120 121 .field_form span.cfs_tooltip {121 .field_form .cfs_tooltip { 122 122 display: inline-block; 123 123 width: 16px; … … 126 126 margin-left: 4px; 127 127 vertical-align: top; 128 129 130 131 128 132 } 129 133 -
custom-field-suite/trunk/js/fields.js
r601824 r614053 6 6 } 7 7 8 9 10 11 12 13 14 15 16 8 17 update_order(); 18 9 19 20 21 22 23 24 25 26 27 10 28 $('ul.fields').sortable({ 11 29 items: 'ul, li', … … 33 51 $('.fields li:last .field_type select').change(); 34 52 CFS.field_index = CFS.field_index + 1; 53 35 54 }); 36 55 … … 55 74 $(this).closest('.field').find('.field_option').remove(); 56 75 $(this).closest('.field_basics').after(html); 76 57 77 }); 58 78 -
custom-field-suite/trunk/lang/cfs.pot
r594470 r614053 5 5 "Project-Id-Version: \n" 6 6 "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" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 14 15 #: cfs.php:336 15 #: cfs.php:85 cfs.php:402 16 msgid "Field Groups" 17 msgstr "" 18 19 #: cfs.php:86 20 msgid "Field Group" 21 msgstr "" 22 23 #: cfs.php:87 24 msgid "Add New" 25 msgstr "" 26 27 #: cfs.php:88 28 msgid "Add New Field Group" 29 msgstr "" 30 31 #: cfs.php:89 32 msgid "Edit Field Group" 33 msgstr "" 34 35 #: cfs.php:90 36 msgid "New Field Group" 37 msgstr "" 38 39 #: cfs.php:91 40 msgid "View Field Group" 41 msgstr "" 42 43 #: cfs.php:92 44 msgid "Search Field Groups" 45 msgstr "" 46 47 #: cfs.php:93 48 msgid "No Field Groups found" 49 msgstr "" 50 51 #: cfs.php:94 52 msgid "No Field Groups found in Trash" 53 msgstr "" 54 55 #: cfs.php:122 56 msgid "Title" 57 msgstr "" 58 59 #: cfs.php:385 16 60 msgid "Fields" 17 61 msgstr "" 18 62 19 #: cfs.php:3 3763 #: cfs.php:3 20 64 msgid "Placement Rules" 21 65 msgstr "" 22 66 23 #: cfs.php:3 3867 #: cfs.php:3 24 68 msgid "Extras" 25 69 msgstr "" 26 70 27 #: cfs.php:353 core/actions/init.php:13 28 msgid "Field Groups" 29 msgstr "" 30 31 #: cfs.php:354 71 #: cfs.php:403 32 72 msgid "Tools" 33 73 msgstr "" 34 74 35 #: cfs.php: 59275 #: cfs.php:2 36 76 msgid "Imported" 37 77 msgstr "" 38 78 39 #: cfs.php: 59679 #: cfs.php:6 40 80 msgid "Skipped" 41 81 msgstr "" 42 82 43 #: cfs.php:6 0183 #: cfs.php:61 44 84 msgid "Nothing to import" 45 85 msgstr "" 46 86 47 #: cfs.php: 67687 #: cfs.php:6 48 88 msgid "No field groups selected" 49 89 msgstr "" 50 90 51 #: core/actions/admin_footer.php:6 391 #: core/actions/admin_footer.php:6 52 92 msgid "Custom Field Suite" 53 93 msgstr "" 54 94 55 #: core/actions/admin_footer.php:67 95 #: core/actions/admin_footer.php:71 96 msgid "Homepage" 97 msgstr "" 98 99 #: core/actions/admin_footer.php:72 100 msgid "User Guide" 101 msgstr "" 102 103 #: core/actions/admin_footer.php:73 56 104 msgid "Changelog" 57 105 msgstr "" 58 106 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 108 msgid "Donate" 109 msgstr "" 110 111 #: core/actions/admin_footer.php:79 112 msgid "Rate the plugin" 105 113 msgstr "" 106 114 … … 157 165 msgstr "" 158 166 159 #: core/admin/meta_box_fields.php: 59167 #: core/admin/meta_box_fields.php: 160 168 msgid "Add New Field" 161 169 msgstr "" … … 169 177 msgstr "" 170 178 171 #: core/admin/meta_box_rules.php:7 0172 msgid " Select some options"173 msgstr "" 174 175 #: core/admin/meta_box_rules.php: 79 core/fields/relationship.php:90179 #: core/admin/meta_box_rules.php:7 180 msgid "" 181 msgstr "" 182 183 #: core/admin/meta_box_rules.php: 176 184 msgid "Post Types" 177 185 msgstr "" 178 186 179 #: core/admin/meta_box_rules.php:1 05187 #: core/admin/meta_box_rules.php:1 180 188 msgid "User Roles" 181 189 msgstr "" 182 190 183 #: core/admin/meta_box_rules.php:1 31191 #: core/admin/meta_box_rules.php:1 184 192 msgid "Posts" 185 193 msgstr "" 186 194 187 #: core/admin/meta_box_rules.php:1 57195 #: core/admin/meta_box_rules.php:1 188 196 msgid "Taxonomy Terms" 197 198 199 200 201 202 203 204 189 205 msgstr "" 190 206 … … 197 213 msgstr "" 198 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 199 229 #: core/fields/file.php:9 200 230 msgid "File Upload" 201 231 msgstr "" 202 232 203 #: core/fields/file.php:4 4233 #: core/fields/file.php:4 204 234 msgid "Add File" 205 235 msgstr "" 206 236 207 #: core/fields/file.php:4 5237 #: core/fields/file.php:4 208 238 msgid "Remove" 209 239 msgstr "" 210 240 211 #: core/fields/file.php:52 241 #: core/fields/file.php:56 242 msgid "Return Value" 243 msgstr "" 244 245 #: core/fields/file.php:65 212 246 msgid "File URL" 213 247 msgstr "" 214 248 215 #: core/fields/file.php: 53249 #: core/fields/file.php: 216 250 msgid "Attachment ID" 217 251 msgstr "" 218 252 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 224 254 msgid "Use This File" 255 256 257 258 225 259 msgstr "" 226 260 … … 229 263 msgstr "" 230 264 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 240 266 msgid "Row Display" 241 267 msgstr "" 242 268 243 #: core/fields/loop.php:4 7269 #: core/fields/loop.php:4 244 270 msgid "Show the values by default" 245 271 msgstr "" 246 272 247 #: core/fields/loop.php:55 273 #: core/fields/loop.php:52 274 msgid "Row Label" 275 msgstr "" 276 277 #: core/fields/loop.php:60 core/fields/loop.php:91 core/fields/loop.php:162 278 msgid "Loop Row" 279 msgstr "" 280 281 #: core/fields/loop.php:67 248 282 msgid "Button Label" 249 283 msgstr "" 250 284 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 256 286 msgid "Add Row" 257 msgstr ""258 259 #: core/fields/loop.php:86 core/fields/loop.php:158260 msgid "Loop Row"261 msgstr ""262 263 #: core/fields/loop.php:87 core/fields/loop.php:159264 msgid "click to toggle, drag to re-order"265 287 msgstr "" 266 288 … … 269 291 msgstr "" 270 292 271 #: core/fields/relationship.php:9 1293 #: core/fields/relationship.php:9 272 294 msgid "Limit posts to the following types" 273 295 msgstr "" … … 277 299 msgstr "" 278 300 279 #: core/fields/select.php: 100301 #: core/fields/select.php: 280 302 msgid "Choices" 281 303 msgstr "" 282 304 283 #: core/fields/select.php: 101305 #: core/fields/select.php: 284 306 msgid "Enter one choice per line" 285 307 msgstr "" 286 308 287 #: core/fields/select.php:1 16288 msgid " Select multiple values?"289 msgstr "" 290 291 #: core/fields/select.php:1 25292 msgid "This a multi-select field"293 msgstr "" 294 295 #: core/fields/text.php:18 core/fields/textarea.php:2 7309 #: core/fields/select.php:1 310 msgid "?" 311 msgstr "" 312 313 #: core/fields/select.php:1 314 msgid "This a multi-select field" 315 msgstr "" 316 317 #: core/fields/text.php:18 core/fields/textarea.php:2 296 318 msgid "Default Value" 297 319 msgstr "" … … 301 323 msgstr "" 302 324 303 #: core/fields/textarea.php:22 325 #: core/fields/textarea.php:40 core/fields/wysiwyg.php:34 326 msgid "Formatting" 327 msgstr "" 328 329 #: core/fields/textarea.php:49 304 330 msgid "None" 305 331 msgstr "" 306 332 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 334 msgid "Convert newlines to <br />" 313 335 msgstr "" 314 336 … … 333 355 msgstr "" 334 356 335 #: core/fields/wysiwyg.php: 24357 #: core/fields/wysiwyg.php: 336 358 msgid "Default" 337 359 msgstr "" 338 360 339 #: core/fields/wysiwyg.php: 25361 #: core/fields/wysiwyg.php: 340 362 msgid "None (bypass filters)" 341 363 msgstr "" -
custom-field-suite/trunk/readme.txt
r611657 r614053 62 62 == Changelog == 63 63 64 65 66 67 68 69 64 70 = 1.7.3 = 65 71 * Added field validation
Note: See TracChangeset
for help on using the changeset viewer.