Plugin Directory

Changeset 1329519


Ignore:
Timestamp:
01/16/2016 12:00:09 PM (10 years ago)
Author:
urre
Message:

tagging version 1.3.0

Location:
acf-fold-flexible-content
Files:
4 edited
10 copied

Legend:

Unmodified
Added
Removed
  • acf-fold-flexible-content/tags/1.3.0/acf-fold-flexible.php

    r1301329 r1329519  
    44Plugin URI: https://github.com/urre/acf-fold-flexible
    55Description: 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.0
     6Version: 1.3.0
    77Author: Urban Sanden
    88Author URI: http://urre.me
    99Author Email: hej@urre.me
     10Donate link: https://www.paypal.me/urbansanden
     11Tags: acf, folding, flexible, content, fields, field
    1012License: GPL2
    1113*/
    1214
    13 /*  Copyright 2015 Urban Sanden (email: hej@urre.me)
     15/*  Copyright 2016 Urban Sanden (email: hej@urre.me)
    1416
    1517    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  
    3333                // This very field type group
    3434                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 = [];
    8536
    8637                // 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                        }
    9151                    }
     52                     
    9253                });
    9354
     
    11980                    if(!$(this).parent().hasClass('-collapsed') ) {
    12081                        toggle_list.addClass('open');
    121                         // $(this).next().next('.acf-fields').show();
    12282                    } else {
    12383                        toggle_list.removeClass('open');
    124                         // $(this).next().next('.acf-fields').hide();
    12584                    }
    12685                } else {
  • acf-fold-flexible-content/tags/1.3.0/readme.md

    r1301329 r1329519  
    2525
    2626## Changelog
     27+ 1.3.0: Icons now line up in the same order that the is placed in the Flexible Field group.
    2728+ 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1.
    2829+ 1.1.7: Support for ACF PRO 5.3.2.2
     
    4041+ 0.15: Field type tooltips: replace underscores with spaces
    4142+ 0.1: First version released
    42 
    43 ## Todo
    44 - [x] Support for Advanced Custom Fields PRO
    45 - [x] Change tooltip when fieldgroup is expanded
    46 - [ ] Fix so icons line up in the same order as the fields inside
    47 - [ ] Support new ACF fields
  • acf-fold-flexible-content/tags/1.3.0/readme.txt

    r1301329 r1329519  
    11=== ACF Fold Flexible Content ===
    22Contributors: urre
    3 Donate link: http://urre.me/
     3Donate link: https://www.paypal.me/urbansanden
    44Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO
    55Requires at least: 3.0
    6 Tested up to: 4.3.1
    7 Stable tag: 1.2.0
     6Tested up to: 4.4.1
     7Stable tag: 1.3.0
    88
    99A simple plugin for enhancing the ACF Flexible Content Field. Collapsed flexible content panels with helping icons representing each field types inside.
     
    3333
    3434== Changelog ==
     35
     36= 1.3.0 =
     37Icons now line up in the same order that the is placed in the Flexible Field group.
    3538
    3639= 1.2.0 =
  • acf-fold-flexible-content/trunk/acf-fold-flexible.php

    r1301329 r1329519  
    44Plugin URI: https://github.com/urre/acf-fold-flexible
    55Description: 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.0
     6Version: 1.3.0
    77Author: Urban Sanden
    88Author URI: http://urre.me
    99Author Email: hej@urre.me
     10Donate link: https://www.paypal.me/urbansanden
     11Tags: acf, folding, flexible, content, fields, field
    1012License: GPL2
    1113*/
    1214
    13 /*  Copyright 2015 Urban Sanden (email: hej@urre.me)
     15/*  Copyright 2016 Urban Sanden (email: hej@urre.me)
    1416
    1517    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  
    3333                // This very field type group
    3434                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 = [];
    8536
    8637                // 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                        }
    9151                    }
     52                     
    9253                });
    9354
     
    11980                    if(!$(this).parent().hasClass('-collapsed') ) {
    12081                        toggle_list.addClass('open');
    121                         // $(this).next().next('.acf-fields').show();
    12282                    } else {
    12383                        toggle_list.removeClass('open');
    124                         // $(this).next().next('.acf-fields').hide();
    12584                    }
    12685                } else {
  • acf-fold-flexible-content/trunk/readme.md

    r1301329 r1329519  
    2525
    2626## Changelog
     27+ 1.3.0: Icons now line up in the same order that the is placed in the Flexible Field group.
    2728+ 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1.
    2829+ 1.1.7: Support for ACF PRO 5.3.2.2
     
    4041+ 0.15: Field type tooltips: replace underscores with spaces
    4142+ 0.1: First version released
    42 
    43 ## Todo
    44 - [x] Support for Advanced Custom Fields PRO
    45 - [x] Change tooltip when fieldgroup is expanded
    46 - [ ] Fix so icons line up in the same order as the fields inside
    47 - [ ] Support new ACF fields
  • acf-fold-flexible-content/trunk/readme.txt

    r1301329 r1329519  
    11=== ACF Fold Flexible Content ===
    22Contributors: urre
    3 Donate link: http://urre.me/
     3Donate link: https://www.paypal.me/urbansanden
    44Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO
    55Requires at least: 3.0
    6 Tested up to: 4.3.1
    7 Stable tag: 1.2.0
     6Tested up to: 4.4.1
     7Stable tag: 1.3.0
    88
    99A simple plugin for enhancing the ACF Flexible Content Field. Collapsed flexible content panels with helping icons representing each field types inside.
     
    3333
    3434== Changelog ==
     35
     36= 1.3.0 =
     37Icons now line up in the same order that the is placed in the Flexible Field group.
    3538
    3639= 1.2.0 =
Note: See TracChangeset for help on using the changeset viewer.