Disabling auto output

The $dsg_auto_output option allows you to disable automatic print of the HTML output. It stores that output in a $dsg_outputvariable instead and allows you to customize place where you want to show gallery.

<?php
// disable automatic print of the output HTML code
$dsg_auto_output = FALSE;
?>
<?php include 'dsg.php'; ?>
...
<?php echo $dsg_output; // print HTML output where you want to ?>