Plugin Directory

Changeset 1301329


Ignore:
Timestamp:
12/06/2015 12:05:45 PM (10 years ago)
Author:
urre
Message:

tagging version 1.2.0

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

Legend:

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

    r1295088 r1301329  
    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.1.7
     6Version: 1.2.0
    77Author: Urban Sanden
    88Author URI: http://urre.me
  • acf-fold-flexible-content/tags/1.2.0/js/acf-fold-flexible.admin.js

    r1295082 r1301329  
    2424            labels.each(function() {
    2525
    26                 // Fold everything
    27                 $(this).removeClass('open');
    28                 $(this).parent().attr('data-toggle', 'closed');
    29                
    30                 if(acfpro) {
    31                     $(this).nextAll('.acf-fields').first().hide();
    32                 } else {
     26                // Fold everything on non ACF Pro
     27                if(!acfpro) {
     28                    $(this).removeClass('open');
     29                    $(this).parent().attr('data-toggle', 'closed');
    3330                    $(this).nextAll('.row_layout').first().hide();
    3431                }
     
    9794            });
    9895
     96           
     97            // Toggle handle open/closed on the native collapser on ACF PRO (released in 5.3.1)
     98            $(document).on('click', '*[data-event="collapse-layout"]', function(e) {
     99
     100                var nativeCollapser = $(this);
     101
     102                if(!nativeCollapser.parent().parent().parent().hasClass('-collapsed') ) {
     103                    nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').addClass('open');
     104                } else {
     105                    nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').removeClass('open');
     106                }
     107
     108                e.preventDefault();
     109
     110            });
     111
    99112            // Open/Close panels
    100113            $(document).on('click', '.acf-fc-layout-handle', function() {
     
    104117                // Toggle open class
    105118                if(acfpro) {
    106                     if($(this).next().next('.acf-fields').css("display") == "none") {
    107                         console.log('has display none');
     119                    if(!$(this).parent().hasClass('-collapsed') ) {
    108120                        toggle_list.addClass('open');
    109                         $(this).next().next('.acf-fields').show();
     121                        // $(this).next().next('.acf-fields').show();
    110122                    } else {
    111                         console.log('has NOT display none');
    112123                        toggle_list.removeClass('open');
    113                         $(this).next().next('.acf-fields').hide();
     124                        // $(this).next().next('.acf-fields').hide();
    114125                    }
    115126                } else {
  • acf-fold-flexible-content/tags/1.2.0/readme.md

    r1187379 r1301329  
    2525
    2626## Changelog
     27+ 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1.
     28+ 1.1.7: Support for ACF PRO 5.3.2.2
    2729+ 1.1.6: Fold everything from start. No longer check open/closed state. Better support for ACF Pro.
    2830+ 1.1.5: No longer check open/closed state
  • acf-fold-flexible-content/tags/1.2.0/readme.txt

    r1295088 r1301329  
    11=== ACF Fold Flexible Content ===
    22Contributors: urre
    3 Donate link: http://urre.me/donate
     3Donate link: http://urre.me/
    44Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO
    55Requires at least: 3.0
    6 Tested up to: 4.2.2
    7 Stable tag: 1.1.7
     6Tested up to: 4.3.1
     7Stable tag: 1.2.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.2.0 =
     37Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1.
    3538
    3639= 1.1.7 =
  • acf-fold-flexible-content/trunk/acf-fold-flexible.php

    r1295088 r1301329  
    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.1.7
     6Version: 1.2.0
    77Author: Urban Sanden
    88Author URI: http://urre.me
  • acf-fold-flexible-content/trunk/js/acf-fold-flexible.admin.js

    r1295082 r1301329  
    2424            labels.each(function() {
    2525
    26                 // Fold everything
    27                 $(this).removeClass('open');
    28                 $(this).parent().attr('data-toggle', 'closed');
    29                
    30                 if(acfpro) {
    31                     $(this).nextAll('.acf-fields').first().hide();
    32                 } else {
     26                // Fold everything on non ACF Pro
     27                if(!acfpro) {
     28                    $(this).removeClass('open');
     29                    $(this).parent().attr('data-toggle', 'closed');
    3330                    $(this).nextAll('.row_layout').first().hide();
    3431                }
     
    9794            });
    9895
     96           
     97            // Toggle handle open/closed on the native collapser on ACF PRO (released in 5.3.1)
     98            $(document).on('click', '*[data-event="collapse-layout"]', function(e) {
     99
     100                var nativeCollapser = $(this);
     101
     102                if(!nativeCollapser.parent().parent().parent().hasClass('-collapsed') ) {
     103                    nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').addClass('open');
     104                } else {
     105                    nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').removeClass('open');
     106                }
     107
     108                e.preventDefault();
     109
     110            });
     111
    99112            // Open/Close panels
    100113            $(document).on('click', '.acf-fc-layout-handle', function() {
     
    104117                // Toggle open class
    105118                if(acfpro) {
    106                     if($(this).next().next('.acf-fields').css("display") == "none") {
    107                         console.log('has display none');
     119                    if(!$(this).parent().hasClass('-collapsed') ) {
    108120                        toggle_list.addClass('open');
    109                         $(this).next().next('.acf-fields').show();
     121                        // $(this).next().next('.acf-fields').show();
    110122                    } else {
    111                         console.log('has NOT display none');
    112123                        toggle_list.removeClass('open');
    113                         $(this).next().next('.acf-fields').hide();
     124                        // $(this).next().next('.acf-fields').hide();
    114125                    }
    115126                } else {
  • acf-fold-flexible-content/trunk/readme.md

    r1187379 r1301329  
    2525
    2626## Changelog
     27+ 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1.
     28+ 1.1.7: Support for ACF PRO 5.3.2.2
    2729+ 1.1.6: Fold everything from start. No longer check open/closed state. Better support for ACF Pro.
    2830+ 1.1.5: No longer check open/closed state
  • acf-fold-flexible-content/trunk/readme.txt

    r1295088 r1301329  
    11=== ACF Fold Flexible Content ===
    22Contributors: urre
    3 Donate link: http://urre.me/donate
     3Donate link: http://urre.me/
    44Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO
    55Requires at least: 3.0
    6 Tested up to: 4.2.2
    7 Stable tag: 1.1.7
     6Tested up to: 4.3.1
     7Stable tag: 1.2.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.2.0 =
     37Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1.
    3538
    3639= 1.1.7 =
Note: See TracChangeset for help on using the changeset viewer.