mirror of
https://github.com/friendica/friendica
synced 2025-04-26 04:30:11 +00:00
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:
parent
3ea145fae7
commit
e1107b55c6
33 changed files with 123 additions and 75 deletions
9
boot.php
9
boot.php
|
@ -1007,6 +1007,13 @@ function notice($s) {
|
|||
if($a->interactive)
|
||||
$_SESSION['sysmsg'] .= $s;
|
||||
}}
|
||||
if(! function_exists('info')) {
|
||||
function info($s) {
|
||||
$a = get_app();
|
||||
if($a->interactive)
|
||||
$_SESSION['sysmsg_info'] .= $s;
|
||||
}}
|
||||
|
||||
|
||||
// wrapper around config to limit the text length of an incoming message
|
||||
|
||||
|
@ -2748,4 +2755,4 @@ function is_site_admin() {
|
|||
if(local_user() && x($a->user,'email') && x($a->config,'admin_email') && ($a->user['email'] === $a->config['admin_email']))
|
||||
return true;
|
||||
return false;
|
||||
}}
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue