add info() function. Works like notice() but show messages in a div with class info-message.

update code to use info() instead of notice() when appropriate (non-error message)
add info-message class style in themes
This commit is contained in:
Fabio Comuni 2011-05-23 11:39:57 +02:00
parent 3ea145fae7
commit e1107b55c6
33 changed files with 123 additions and 75 deletions

View file

@ -165,7 +165,7 @@ function dfrn_request_post(&$a) {
}
if($r) {
notice( t("Introduction complete.") . EOL);
info( t("Introduction complete.") . EOL);
}
/**
@ -424,7 +424,7 @@ function dfrn_request_post(&$a) {
// This notice will only be seen by the requestor if the requestor and requestee are on the same server.
if(! $failed)
notice( t('Your introduction has been sent.') . EOL );
info( t('Your introduction has been sent.') . EOL );
// "Homecoming" - send the requestor back to their site to record the introduction.
@ -478,7 +478,7 @@ function dfrn_request_content(&$a) {
if(x($_GET,'dfrn_url')) {
if(! local_user()) {
notice( t("Please login to confirm introduction.") . EOL );
info( t("Please login to confirm introduction.") . EOL );
/* setup the return URL to come back to this page if they use openid */
@ -650,4 +650,4 @@ function dfrn_request_content(&$a) {
}
return; // Somebody is fishing.
}}
}}