VaultPress::ui_message PHP Method

ui_message() public method

public ui_message ( $message, $type = 'notice', $heading = '' )
    function ui_message($message, $type = 'notice', $heading = '')
    {
        if (empty($heading)) {
            switch ($type) {
                case 'error':
                    $heading = __('Oops... there seems to be a problem.', 'vaultpress');
                    break;
                case 'success':
                    $heading = __('Yay! Things look good.', 'vaultpress');
                    break;
                default:
                    $heading = __('VaultPress needs your attention!', 'vaultpress');
                    break;
            }
        }
        ?>
		<div id="vp-notice" class="vp-notice vp-<?php 
        echo $type;
        ?>
 wrap clearfix">
			<div class="vp-message">
				<h3><?php 
        echo $heading;
        ?>
</h3>
				<p><?php 
        echo $message;
        ?>
</p>
			</div>
		</div>
<?php 
    }
VaultPress