<?php if ($has_to_display_flash_messages): ?>
	<?php use_stylesheet('/wpFlashMessagesPlugin/css/flash-messages') ?>
	<?php use_javascript('/wpFlashMessagesPlugin/js/flash-messages') ?>
	<?php use_helper('Javascript') ?>
	<div id="wp-flash-messages" style="clear: both">
	<?php foreach($flash_messages as $name => $messages): ?>
		<div class="wp-flash-messages-<?php echo $name ?>">
			<?php echo implode('<br />', $messages) . PHP_EOL ?>
		</div>
	<?php endforeach ?>
	</div>
<?php endif ?>