• Resolved joero4ri

    (@joero4ri)


    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

    https://www.ads-software.com/extend/plugins/document-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Document Gallery – Extra Div Rendered When Gallery Items are Divisible by 4’ is closed to new replies.