]> git.mjollnir.org Git - s9y.git/commitdiff
Added classes for install/upgrade warning messages. Modified BP admin stylesheet...
authordonchambers <donchambers>
Sun, 27 Apr 2008 22:19:05 +0000 (22:19 +0000)
committerdonchambers <donchambers>
Sun, 27 Apr 2008 22:19:05 +0000 (22:19 +0000)
include/admin/installer.inc.php
include/admin/upgrader.inc.php
templates/bulletproof/admin/style.css
templates/bulletproof/admin/style_fluid.css

index 32671beee97551c42dee72e49ac3368b521c8969..c401010aea54f11a3f2a071f52c3a4bf1348a13a 100644 (file)
@@ -37,14 +37,14 @@ if (defined('S9Y_DATA_PATH')) {
 function serendipity_installerResultDiagnose($result, $s) {
     global $errorCount;
     if ( $result === S9Y_I_SUCCESS ) {
-        return '<span style="color: green; font-weight: bold">'. $s .'</span>';
+        return '<span class="serendipityAdminMsgSuccessInstall" style="color: green; font-weight: bold">'. $s .'</span>';
     }
     if ( $result === S9Y_I_WARNING ) {
-        return '<span style="color: orange; font-weight: bold">'. $s .' [?]</span>';
+        return '<span class="serendipityAdminMsgWarningInstall" style="color: orange; font-weight: bold">'. $s .' [?]</span>';
     }
     if ( $result === S9Y_I_ERROR ) {
         $errorCount++;
-        return '<span style="color: red; font-weight: bold">'. $s .' [!]</span>';
+        return '<span class="serendipityAdminMsgErrorInstall" style="color: red; font-weight: bold">'. $s .' [!]</span>';
     }
 }
 
index fec7b055b622527d378a39967739d3b03c9e7ac6..8ecf8ff884a47275bdaa128ff887a896eace5ec1 100644 (file)
@@ -28,16 +28,16 @@ function serendipity_upgraderResultDiagnose($result, $s) {
     global $errorCount;
 
     if ( $result === S9Y_U_SUCCESS ) {
-        return '<span style="color: green; font-weight: bold">'. $s .'</span>';
+        return '<span class="serendipityAdminMsgSuccessInstall" style="color: green; font-weight: bold">'. $s .'</span>';
     }
 
     if ( $result === S9Y_U_WARNING ) {
-        return '<span style="color: orange; font-weight: bold">'. $s .'</span>';
+        return '<span class="serendipityAdminMsgWarningInstall" style="color: orange; font-weight: bold">'. $s .'</span>';
     }
 
     if ( $result === S9Y_U_ERROR ) {
         $errorCount++;
-        return '<span style="color: red; font-weight: bold">'. $s .'</span>';
+        return '<span class="serendipityAdminMsgErrorInstall" style="color: red; font-weight: bold">'. $s .'</span>';
     }
 }
 
index 65e194d72ba44f808873555e12985e261bc56a3a..e886a42788e214c2e4c8ffd3da980f666c0441a7 100644 (file)
@@ -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;
index 980869685b89631ae744b08305de53b16e7cb501..7239cc80a8cb7fb9ec33d83af878ad913d00d00f 100644 (file)
@@ -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;