Hide DIV if empty – Plugin Gallery

This is just a matter of reorganising your PHP:

$gallery = do_shortcode('[aigpl-gallery-slider id="1080" dots="false" arrows="false"]');

if ( ! empty( $gallery ) ) {
    echo '<div id="photos" class="block" style="margin-top: 50% !important;">'
    ...
    echo $gallery;
    echo '</div>';
}

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedusedusedueduseduseduedusedusedus