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
445aa4b848
commit
f1f9c24d52
@ -37,14 +37,14 @@ if (defined('S9Y_DATA_PATH')) {
|
|||||||
function serendipity_installerResultDiagnose($result, $s) {
|
function serendipity_installerResultDiagnose($result, $s) {
|
||||||
global $errorCount;
|
global $errorCount;
|
||||||
if ( $result === S9Y_I_SUCCESS ) {
|
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 ) {
|
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 ) {
|
if ( $result === S9Y_I_ERROR ) {
|
||||||
$errorCount++;
|
$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;
|
global $errorCount;
|
||||||
|
|
||||||
if ( $result === S9Y_U_SUCCESS ) {
|
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 ) {
|
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 ) {
|
if ( $result === S9Y_U_ERROR ) {
|
||||||
$errorCount++;
|
$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%;
|
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 */
|
/* Pending comments in the admins comment list */
|
||||||
.serendipity_admin_comment_pending {
|
.serendipity_admin_comment_pending {
|
||||||
border: 2px solid #FF0000;
|
border: 2px solid #FF0000;
|
||||||
|
@ -388,6 +388,24 @@ ul.serendipitySideBarMenuMain .serendipitySideBarMenuFoot {
|
|||||||
font-size: 100%;
|
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 */
|
/* Pending comments in the admins comment list */
|
||||||
.serendipity_admin_comment_pending {
|
.serendipity_admin_comment_pending {
|
||||||
border: 2px solid #FF0000;
|
border: 2px solid #FF0000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user