diff options
| -rw-r--r-- | admin_site_config.php | 3 | ||||
| -rw-r--r-- | library/WT/Theme/BaseTheme.php | 8 |
2 files changed, 2 insertions, 9 deletions
diff --git a/admin_site_config.php b/admin_site_config.php index 1aa27e08d6..a28f3242be 100644 --- a/admin_site_config.php +++ b/admin_site_config.php @@ -382,8 +382,7 @@ $controller->pageHeader(); <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> - <p class="alert alert-info"> - <?php echo WT_I18N::translate('To use a Google mail account, use the following settings: server=smtp.gmail.com, port=587, security=tls, username=xxxxx@gmail.com, password=[your gmail password]'); ?> + <?php echo Theme::theme()->htmlAlert(WT_I18N::translate('To use a Google mail account, use the following settings: server=smtp.gmail.com, port=587, security=tls, username=xxxxx@gmail.com, password=[your gmail password]'), 'info', false); ?> </p> </div> </div> diff --git a/library/WT/Theme/BaseTheme.php b/library/WT/Theme/BaseTheme.php index 3621b7a78b..4e37c85ef8 100644 --- a/library/WT/Theme/BaseTheme.php +++ b/library/WT/Theme/BaseTheme.php @@ -217,13 +217,7 @@ abstract class BaseTheme { * @return string */ protected function flashMessageContainer(\stdClass $message) { - return - '<div class="alert alert-' . $message->status . ' alert-dismissible" role="alert">' . - '<button type="button" class="close" data-dismiss="alert" aria-label="' . WT_I18N::translate('close') .'">' . - '<span aria-hidden="true">×</span>' . - '</button>' . - $message->text . - '</div>'; + return $this->htmlAlert($message->text, $message->status, true); } /** |
