function mdrop_get_query_message($limit = -1)
{
    $pagenum = mdrop_pagenum();
    $offset = ($pagenum - 1) * $limit;
    $arg = array('post_type' => 'mdrop_file', 'post_status' => 'publish', 'posts_per_page' => $limit, 'meta_query' => array(array('key' => '_attachment_exist', 'value' => '1', 'compare' => '=')));
    if ($limit != '-1') {
        $arg['offset'] = $offset;
    }
    return new WP_Query($arg);
}
        ?>

							<a href="<?php 
        echo $thumbs['url'];
        ?>
" title="<?php 
        echo $thumbs['name'];
        ?>
">
								<img src="<?php 
        echo $thumbs['thumb'];
        ?>
" class="mdrop-file">
							</a>
						<?php 
    }
    ?>
</td>
			</tr>
			<?php 
}
?>
	</tbody>
</table>
</form>
<?php 
echo mdrop_pagination($total_msg, 10, mdrop_pagenum());
?>

</div>