Changeset 1329519
- Timestamp:
- 01/16/2016 12:00:09 PM (10 years ago)
- Location:
- acf-fold-flexible-content
- Files:
-
- 4 edited
- 10 copied
-
tags/1.3.0 (copied) (copied from acf-fold-flexible-content/trunk)
-
tags/1.3.0/acf-fold-flexible.php (copied) (copied from acf-fold-flexible-content/trunk/acf-fold-flexible.php) (1 diff)
-
tags/1.3.0/css (copied) (copied from acf-fold-flexible-content/trunk/css)
-
tags/1.3.0/css/acf-fold-flexible.admin.css (copied) (copied from acf-fold-flexible-content/trunk/css/acf-fold-flexible.admin.css)
-
tags/1.3.0/js (copied) (copied from acf-fold-flexible-content/trunk/js)
-
tags/1.3.0/js/acf-fold-flexible.admin.js (copied) (copied from acf-fold-flexible-content/trunk/js/acf-fold-flexible.admin.js) (2 diffs)
-
tags/1.3.0/js/acf-fold-flexible.tooltip.js (copied) (copied from acf-fold-flexible-content/trunk/js/acf-fold-flexible.tooltip.js)
-
tags/1.3.0/readme.md (copied) (copied from acf-fold-flexible-content/trunk/readme.md) (2 diffs)
-
tags/1.3.0/readme.txt (copied) (copied from acf-fold-flexible-content/trunk/readme.txt) (2 diffs)
-
tags/1.3.0/screenshot-1.png (copied) (copied from acf-fold-flexible-content/trunk/screenshot-1.png)
-
trunk/acf-fold-flexible.php (modified) (1 diff)
-
trunk/js/acf-fold-flexible.admin.js (modified) (2 diffs)
-
trunk/readme.md (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-fold-flexible-content/tags/1.3.0/acf-fold-flexible.php
r1301329 r1329519 4 4 Plugin URI: https://github.com/urre/acf-fold-flexible 5 5 Description: A simple plugin for enhancing the Advanced Custom Fields Flexible Content Field. Shows collapsed panels initially, and representing icons for each field type. 6 Version: 1. 2.06 Version: 1.3.0 7 7 Author: Urban Sanden 8 8 Author URI: http://urre.me 9 9 Author Email: hej@urre.me 10 Donate link: https://www.paypal.me/urbansanden 11 Tags: acf, folding, flexible, content, fields, field 10 12 License: GPL2 11 13 */ 12 14 13 /* Copyright 201 5Urban Sanden (email: hej@urre.me)15 /* Copyright 2016 Urban Sanden (email: hej@urre.me) 14 16 15 17 This program is free software; you can redistribute it and/or modify -
acf-fold-flexible-content/tags/1.3.0/js/acf-fold-flexible.admin.js
r1301329 r1329519 33 33 // This very field type group 34 34 var group = $(this); 35 36 // Check which field types that exists 37 var fieldtypes = { 38 text: $(this).next().find('*[data-field_type="text"]').length, 39 text_acfpro: $(this).next().next().find('*[data-type="text"]').length, 40 textarea: $(this).next().find('*[data-field_type="textarea"]').length, 41 textarea_acfpro: $(this).next().next().find('*[data-type="textarea"]').length, 42 number: $(this).next().find('*[data-field_type="number"]').length, 43 number_acfpro: $(this).next().next().find('*[data-type="number"]').length, 44 wysiwyg: $(this).next().find('*[data-field_type="wysiwyg"]').length, 45 wysiwyg_acfpro: $(this).next().next().find('*[data-type="wysiwyg"]').length, 46 image: $(this).next().find('*[data-field_type="image"]').length, 47 image_acfpro: $(this).next().next().find('*[data-type="image"]').length, 48 file: $(this).next().find('*[data-field_type="file"]').length, 49 file_acfpro: $(this).next().next().find('*[data-type="file"]').length, 50 password: $(this).next().find('*[data-field_type="password"]').length, 51 password_acfpro: $(this).next().next().find('*[data-type="password"]').length, 52 select: $(this).next().find('*[data-field_type="select"]').length, 53 select_acfpro: $(this).next().next().find('*[data-type="select"]').length, 54 checkbox: $(this).next().find('*[data-field_type="checkbox"]').length, 55 checkbox_acfpro: $(this).next().next().find('*[data-type="checkbox"]').length, 56 radio: $(this).next().find('*[data-field_type="radio"]').length, 57 radio_acfpro: $(this).next().next().find('*[data-type="radio"]').length, 58 true_false: $(this).next().find('*[data-field_type="true_false"]').length, 59 true_false_acfpro: $(this).next().next().find('*[data-type="true_false"]').length, 60 page_link: $(this).next().find('*[data-field_type="page_link"]').length, 61 page_link_acfpro: $(this).next().next().find('*[data-type="page_link"]').length, 62 post_object: $(this).next().find('*[data-field_type="post_object"]').length, 63 post_object_acfpro: $(this).next().next().find('*[data-type="post_object"]').length, 64 relationship: $(this).next().find('*[data-field_type="relationship"]').length, 65 relationship_acfpro: $(this).next().next().find('*[data-type="relationship"]').length, 66 taxonomy: $(this).next().find('*[data-field_type="taxonomy"]').length, 67 taxonomy_acfpro: $(this).next().next().find('*[data-type="taxonomy"]').length, 68 user: $(this).next().find('*[data-field_type="user"]').length, 69 user_acfpro: $(this).next().next().find('*[data-type="user"]').length, 70 google_map: $(this).next().find('*[data-field_type="google_map"]').length, 71 google_map_acfpro: $(this).next().next().find('*[data-type="google_map"]').length, 72 calendar: $(this).next().find('*[data-field_type="date_picker"]').length, 73 calendar_acfpro: $(this).next().next().find('*[data-type="date_picker"]').length, 74 color_picker: $(this).next().find('*[data-field_type="color_picker"]').length, 75 color_picker_acfpro: $(this).next().next().find('*[data-type="color_picker"]').length, 76 message: $(this).next().find('*[data-field_type="message"]').length, 77 message_acfpro: $(this).next().next().find('*[data-type="message"]').length, 78 email: $(this).next().find('*[data-field_type="email"]').length, 79 email_acfpro: $(this).next().next().find('*[data-type="email"]').length, 80 url: $(this).next().find('*[data-field_type="url"]').length, 81 url_acfpro: $(this).next().next().find('*[data-type="url"]').length, 82 gallery: $(this).next().find('*[data-field_type="gallery"]').length, 83 gallery_acfpro: $(this).next().next().find('*[data-type="gallery"]').length 84 }; 35 var fields = []; 85 36 86 37 // Add corresponding icons 87 $.each(fieldtypes, function(fieldname, existance) { 88 if (existance > 0) { 89 var fieldname_clean = fieldname.replace(/_/g, " ").replace(/acfpro/g, " "); 90 group.append('<i rel="tooltip" title="' + fieldname_clean + '" class="foldicon foldicon--' + fieldname_clean + '"></i>'); 38 $.each( $("table.widefat.acf_input tr"), function() { 39 40 var fieldtype = $.grep(this.className.split(" "), function(v, i){ 41 return v.indexOf('field_type-') === 0; 42 }).join().replace('field_type-',''); 43 44 if($.inArray(fieldtype, fields) === -1) { 45 fields.push(fieldtype); 46 if(acfpro) { 47 group.append('<i rel="tooltip" title="' + fieldtype + '_acfpro" class="foldicon foldicon--' + fieldtype + '_acfpro"></i>'); 48 } else { 49 group.append('<i rel="tooltip" title="' + fieldtype + '" class="foldicon foldicon--' + fieldtype + '"></i>'); 50 } 91 51 } 52 92 53 }); 93 54 … … 119 80 if(!$(this).parent().hasClass('-collapsed') ) { 120 81 toggle_list.addClass('open'); 121 // $(this).next().next('.acf-fields').show();122 82 } else { 123 83 toggle_list.removeClass('open'); 124 // $(this).next().next('.acf-fields').hide();125 84 } 126 85 } else { -
acf-fold-flexible-content/tags/1.3.0/readme.md
r1301329 r1329519 25 25 26 26 ## Changelog 27 + 1.3.0: Icons now line up in the same order that the is placed in the Flexible Field group. 27 28 + 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1. 28 29 + 1.1.7: Support for ACF PRO 5.3.2.2 … … 40 41 + 0.15: Field type tooltips: replace underscores with spaces 41 42 + 0.1: First version released 42 43 ## Todo44 - [x] Support for Advanced Custom Fields PRO45 - [x] Change tooltip when fieldgroup is expanded46 - [ ] Fix so icons line up in the same order as the fields inside47 - [ ] Support new ACF fields -
acf-fold-flexible-content/tags/1.3.0/readme.txt
r1301329 r1329519 1 1 === ACF Fold Flexible Content === 2 2 Contributors: urre 3 Donate link: http ://urre.me/3 Donate link: https://www.paypal.me/urbansanden 4 4 Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO 5 5 Requires at least: 3.0 6 Tested up to: 4. 3.17 Stable tag: 1. 2.06 Tested up to: 4.4.1 7 Stable tag: 1.3.0 8 8 9 9 A simple plugin for enhancing the ACF Flexible Content Field. Collapsed flexible content panels with helping icons representing each field types inside. … … 33 33 34 34 == Changelog == 35 36 = 1.3.0 = 37 Icons now line up in the same order that the is placed in the Flexible Field group. 35 38 36 39 = 1.2.0 = -
acf-fold-flexible-content/trunk/acf-fold-flexible.php
r1301329 r1329519 4 4 Plugin URI: https://github.com/urre/acf-fold-flexible 5 5 Description: A simple plugin for enhancing the Advanced Custom Fields Flexible Content Field. Shows collapsed panels initially, and representing icons for each field type. 6 Version: 1. 2.06 Version: 1.3.0 7 7 Author: Urban Sanden 8 8 Author URI: http://urre.me 9 9 Author Email: hej@urre.me 10 Donate link: https://www.paypal.me/urbansanden 11 Tags: acf, folding, flexible, content, fields, field 10 12 License: GPL2 11 13 */ 12 14 13 /* Copyright 201 5Urban Sanden (email: hej@urre.me)15 /* Copyright 2016 Urban Sanden (email: hej@urre.me) 14 16 15 17 This program is free software; you can redistribute it and/or modify -
acf-fold-flexible-content/trunk/js/acf-fold-flexible.admin.js
r1301329 r1329519 33 33 // This very field type group 34 34 var group = $(this); 35 36 // Check which field types that exists 37 var fieldtypes = { 38 text: $(this).next().find('*[data-field_type="text"]').length, 39 text_acfpro: $(this).next().next().find('*[data-type="text"]').length, 40 textarea: $(this).next().find('*[data-field_type="textarea"]').length, 41 textarea_acfpro: $(this).next().next().find('*[data-type="textarea"]').length, 42 number: $(this).next().find('*[data-field_type="number"]').length, 43 number_acfpro: $(this).next().next().find('*[data-type="number"]').length, 44 wysiwyg: $(this).next().find('*[data-field_type="wysiwyg"]').length, 45 wysiwyg_acfpro: $(this).next().next().find('*[data-type="wysiwyg"]').length, 46 image: $(this).next().find('*[data-field_type="image"]').length, 47 image_acfpro: $(this).next().next().find('*[data-type="image"]').length, 48 file: $(this).next().find('*[data-field_type="file"]').length, 49 file_acfpro: $(this).next().next().find('*[data-type="file"]').length, 50 password: $(this).next().find('*[data-field_type="password"]').length, 51 password_acfpro: $(this).next().next().find('*[data-type="password"]').length, 52 select: $(this).next().find('*[data-field_type="select"]').length, 53 select_acfpro: $(this).next().next().find('*[data-type="select"]').length, 54 checkbox: $(this).next().find('*[data-field_type="checkbox"]').length, 55 checkbox_acfpro: $(this).next().next().find('*[data-type="checkbox"]').length, 56 radio: $(this).next().find('*[data-field_type="radio"]').length, 57 radio_acfpro: $(this).next().next().find('*[data-type="radio"]').length, 58 true_false: $(this).next().find('*[data-field_type="true_false"]').length, 59 true_false_acfpro: $(this).next().next().find('*[data-type="true_false"]').length, 60 page_link: $(this).next().find('*[data-field_type="page_link"]').length, 61 page_link_acfpro: $(this).next().next().find('*[data-type="page_link"]').length, 62 post_object: $(this).next().find('*[data-field_type="post_object"]').length, 63 post_object_acfpro: $(this).next().next().find('*[data-type="post_object"]').length, 64 relationship: $(this).next().find('*[data-field_type="relationship"]').length, 65 relationship_acfpro: $(this).next().next().find('*[data-type="relationship"]').length, 66 taxonomy: $(this).next().find('*[data-field_type="taxonomy"]').length, 67 taxonomy_acfpro: $(this).next().next().find('*[data-type="taxonomy"]').length, 68 user: $(this).next().find('*[data-field_type="user"]').length, 69 user_acfpro: $(this).next().next().find('*[data-type="user"]').length, 70 google_map: $(this).next().find('*[data-field_type="google_map"]').length, 71 google_map_acfpro: $(this).next().next().find('*[data-type="google_map"]').length, 72 calendar: $(this).next().find('*[data-field_type="date_picker"]').length, 73 calendar_acfpro: $(this).next().next().find('*[data-type="date_picker"]').length, 74 color_picker: $(this).next().find('*[data-field_type="color_picker"]').length, 75 color_picker_acfpro: $(this).next().next().find('*[data-type="color_picker"]').length, 76 message: $(this).next().find('*[data-field_type="message"]').length, 77 message_acfpro: $(this).next().next().find('*[data-type="message"]').length, 78 email: $(this).next().find('*[data-field_type="email"]').length, 79 email_acfpro: $(this).next().next().find('*[data-type="email"]').length, 80 url: $(this).next().find('*[data-field_type="url"]').length, 81 url_acfpro: $(this).next().next().find('*[data-type="url"]').length, 82 gallery: $(this).next().find('*[data-field_type="gallery"]').length, 83 gallery_acfpro: $(this).next().next().find('*[data-type="gallery"]').length 84 }; 35 var fields = []; 85 36 86 37 // Add corresponding icons 87 $.each(fieldtypes, function(fieldname, existance) { 88 if (existance > 0) { 89 var fieldname_clean = fieldname.replace(/_/g, " ").replace(/acfpro/g, " "); 90 group.append('<i rel="tooltip" title="' + fieldname_clean + '" class="foldicon foldicon--' + fieldname_clean + '"></i>'); 38 $.each( $("table.widefat.acf_input tr"), function() { 39 40 var fieldtype = $.grep(this.className.split(" "), function(v, i){ 41 return v.indexOf('field_type-') === 0; 42 }).join().replace('field_type-',''); 43 44 if($.inArray(fieldtype, fields) === -1) { 45 fields.push(fieldtype); 46 if(acfpro) { 47 group.append('<i rel="tooltip" title="' + fieldtype + '_acfpro" class="foldicon foldicon--' + fieldtype + '_acfpro"></i>'); 48 } else { 49 group.append('<i rel="tooltip" title="' + fieldtype + '" class="foldicon foldicon--' + fieldtype + '"></i>'); 50 } 91 51 } 52 92 53 }); 93 54 … … 119 80 if(!$(this).parent().hasClass('-collapsed') ) { 120 81 toggle_list.addClass('open'); 121 // $(this).next().next('.acf-fields').show();122 82 } else { 123 83 toggle_list.removeClass('open'); 124 // $(this).next().next('.acf-fields').hide();125 84 } 126 85 } else { -
acf-fold-flexible-content/trunk/readme.md
r1301329 r1329519 25 25 26 26 ## Changelog 27 + 1.3.0: Icons now line up in the same order that the is placed in the Flexible Field group. 27 28 + 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1. 28 29 + 1.1.7: Support for ACF PRO 5.3.2.2 … … 40 41 + 0.15: Field type tooltips: replace underscores with spaces 41 42 + 0.1: First version released 42 43 ## Todo44 - [x] Support for Advanced Custom Fields PRO45 - [x] Change tooltip when fieldgroup is expanded46 - [ ] Fix so icons line up in the same order as the fields inside47 - [ ] Support new ACF fields -
acf-fold-flexible-content/trunk/readme.txt
r1301329 r1329519 1 1 === ACF Fold Flexible Content === 2 2 Contributors: urre 3 Donate link: http ://urre.me/3 Donate link: https://www.paypal.me/urbansanden 4 4 Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO 5 5 Requires at least: 3.0 6 Tested up to: 4. 3.17 Stable tag: 1. 2.06 Tested up to: 4.4.1 7 Stable tag: 1.3.0 8 8 9 9 A simple plugin for enhancing the ACF Flexible Content Field. Collapsed flexible content panels with helping icons representing each field types inside. … … 33 33 34 34 == Changelog == 35 36 = 1.3.0 = 37 Icons now line up in the same order that the is placed in the Flexible Field group. 35 38 36 39 = 1.2.0 =
Note: See TracChangeset
for help on using the changeset viewer.