<?php
$fields = json_decode(json_encode(get_fields($module->ID)));

$classes = '';
if (isset($fields->mod_table_classes) && is_array($fields->mod_table_classes)) {
    $classes = implode(' ', $fields->mod_table_classes);
}
?>
<div class="box box-panel">
    <h4 class="box-title"><?php echo $module->post_title; ?></h4>
    <?php
    echo str_replace(
        '<table class="',
        sprintf(
            '<table data-paging="%2$s" data-page-length="%3$s" data-searching="%4$s" class="datatable %1$s ',
            $classes,
            $fields->mod_table_pagination,
            $fields->mod_table_pagination_count,
            $fields->mod_table_search
        ),
        $fields->mod_table
    );
?>
</div>

<?php
$fields = json_decode(json_encode(get_fields($module->ID)));

$classes = '';
if (isset($fields->mod_table_classes) && is_array($fields->mod_table_classes)) {
    $classes = implode(' ', $fields->mod_table_classes);
}
?>
<div class="box box-panel">
    <h4 class="box-title"><?php echo $module->post_title; ?></h4>
    <?php
    echo str_replace(
        '<table class="',
        sprintf(
            '<table data-paging="%2$s" data-page-length="%3$s" data-searching="%4$s" data-info="%5$s" class="datatable %1$s ',
            $classes,
            $fields->mod_table_pagination,
            $fields->mod_table_pagination_count,
            $fields->mod_table_search,
            $fields->mod_table_pagination || $fields->mod_table_search
        ),
        $fields->mod_table
    );
?>
</div>

Disable info if both pagination and filter is disabled
Disable info if both pagination and filter is disabled
