Really hate the way Moodle is written, was wondering if there was a quick way around this.

$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));

                <?php if ($hascustommenu) { ?>
                <div id="custommenu"><?php echo $custommenu; ?></div>
                <?php } ?>

How can I add a seperator into the navigation e.g | Home | Link1 | Link2 |

If this can be done with a PHP wrap or snippet i'd appreciate it. If not I could edit the Database