WordPress.org

Ready to get started?Download WordPress

Forums

Document Gallery
[resolved] Document Gallery - Extra Div Rendered When Gallery Items are Divisible by 4 (4 posts)

  1. joero4ri
    Member
    Posted 1 year ago #

    There seems to be an extra </div> tag being rendered when the number of document gallery items is divisible by 4 evenly. I modified the close lie so...

    // close #document-icon-wrapper
    if($descriptions) {
    $attachment_str[] = '</table>';
    } else if ($count % 4 != 0) {
    $attachment_str[] = '</div>';
    }

    That way it will only add the extra end </div> tag when the number of items is not divisble by 4 evenly.

    That fixed my problem.

    Thanks,
    Joe

    http://wordpress.org/extend/plugins/document-gallery/

  2. Dan Rossiter
    Member
    Plugin Author

    Posted 1 year ago #

    Yikes! You're right. I clearly need a refresher in modular math. I'll push a fix for that some time today.

  3. joero4ri
    Member
    Posted 1 year ago #

    Thanks for the quick response.

    Joe

  4. joero4ri
    Member
    Posted 1 year ago #

    Thanks for the quick fix.
    Joe

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.