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.
This commit is contained in:
parent
ac8b20e8c6
commit
b092304c48
@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user