<?php 
    }
    ?>

		<hr class="ngg-download-separator" />
		<input class="button ngg-download-selectall" type="button" style="display:none" value="<?php 
    _e('select all', 'nextgen-download-gallery');
    ?>
" />
		<input class="button ngg-download-download downloadButton" type="submit" value="<?php 
    _e('download selected images', 'nextgen-download-gallery');
    ?>
" />
		<?php 
    // get gallery ID for downloading all images, or false if not configured to do so
    $ngg_dlgallery_all_id = NextGENDownloadGallery::getDownloadAllId($gallery);
    if ($ngg_dlgallery_all_id) {
        ?>
		<input class="button ngg-download-everything" type="submit" name="download-all" style="display:none" value="<?php 
        _e('download all images', 'nextgen-download-gallery');
        ?>
" />
		<input type="hidden" name="all-id" value="<?php 
        echo esc_attr($ngg_dlgallery_all_id);
        ?>
" />
		<?php 
    }
    ?>
	</form>