From: donchambers Date: Sun, 27 Apr 2008 22:19:05 +0000 (+0000) Subject: Added classes for install/upgrade warning messages. Modified BP admin stylesheet... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3ac778a36ccfc161916ec24387144a9c615dfdae;p=s9y.git Added classes for install/upgrade warning messages. Modified BP admin stylesheet to use these new classes to correct error of overriding green, yellow & red warning text. --- diff --git a/include/admin/installer.inc.php b/include/admin/installer.inc.php index 32671be..c401010 100644 --- a/include/admin/installer.inc.php +++ b/include/admin/installer.inc.php @@ -37,14 +37,14 @@ if (defined('S9Y_DATA_PATH')) { function serendipity_installerResultDiagnose($result, $s) { global $errorCount; if ( $result === S9Y_I_SUCCESS ) { - return ''. $s .''; + return ''. $s .''; } if ( $result === S9Y_I_WARNING ) { - return ''. $s .' [?]'; + return ''. $s .' [?]'; } if ( $result === S9Y_I_ERROR ) { $errorCount++; - return ''. $s .' [!]'; + return ''. $s .' [!]'; } } diff --git a/include/admin/upgrader.inc.php b/include/admin/upgrader.inc.php index fec7b05..8ecf8ff 100644 --- a/include/admin/upgrader.inc.php +++ b/include/admin/upgrader.inc.php @@ -28,16 +28,16 @@ function serendipity_upgraderResultDiagnose($result, $s) { global $errorCount; if ( $result === S9Y_U_SUCCESS ) { - return ''. $s .''; + return ''. $s .''; } if ( $result === S9Y_U_WARNING ) { - return ''. $s .''; + return ''. $s .''; } if ( $result === S9Y_U_ERROR ) { $errorCount++; - return ''. $s .''; + return ''. $s .''; } } diff --git a/templates/bulletproof/admin/style.css b/templates/bulletproof/admin/style.css index 65e194d..e886a42 100644 --- a/templates/bulletproof/admin/style.css +++ b/templates/bulletproof/admin/style.css @@ -385,6 +385,24 @@ ul.serendipitySideBarMenuMain .serendipitySideBarMenuFoot { font-size: 100%; } +/* installation and upgrade admin messages */ +/* defined here due to this template's styling of all other spans */ +/* these classes are available in s9y v1.3.2 and above */ +.serendipityAdminContent span.serendipityAdminMsgSuccessInstall { + color: green !important; + font-weight: bold !important; +} + +.serendipityAdminContent span.serendipityAdminMsgWarningInstall { + color: orange !important; + font-weight: bold !important; +} + +.serendipityAdminContent span.serendipityAdminMsgErrorInstall{ + color: red !important; + font-weight: bold !important; +} + /* Pending comments in the admins comment list */ .serendipity_admin_comment_pending { border: 2px solid #FF0000; diff --git a/templates/bulletproof/admin/style_fluid.css b/templates/bulletproof/admin/style_fluid.css index 9808696..7239cc8 100644 --- a/templates/bulletproof/admin/style_fluid.css +++ b/templates/bulletproof/admin/style_fluid.css @@ -388,6 +388,24 @@ ul.serendipitySideBarMenuMain .serendipitySideBarMenuFoot { font-size: 100%; } +/* installation and upgrade admin messages */ +/* defined here due to this template's styling of all other spans */ +/* these classes are available in s9y v1.3.2 and above */ +.serendipityAdminContent span.serendipityAdminMsgSuccessInstall { + color: green !important; + font-weight: bold !important; +} + +.serendipityAdminContent span.serendipityAdminMsgWarningInstall { + color: orange !important; + font-weight: bold !important; +} + +.serendipityAdminContent span.serendipityAdminMsgErrorInstall{ + color: red !important; + font-weight: bold !important; +} + /* Pending comments in the admins comment list */ .serendipity_admin_comment_pending { border: 2px solid #FF0000;