forked from friendica/friendica-addons
Switch from HTML to BBCode for 'Basic Settings' notice.
This commit is contained in:
parent
e6f480dd75
commit
58ec90b915
|
@ -5,6 +5,7 @@
|
||||||
* Version: 0.0
|
* Version: 0.0
|
||||||
* Author: Ryan <https://friendica.verya.pe/profile/ryan>
|
* Author: Ryan <https://friendica.verya.pe/profile/ryan>
|
||||||
*/
|
*/
|
||||||
|
use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
|
@ -74,11 +75,11 @@ function saml_head(&$a, &$b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saml_footer(&$a, &$b) {
|
function saml_footer(&$a, &$b) {
|
||||||
$fragment = addslashes(DI::config()->get('saml', 'settings_statement'));
|
$fragment = addslashes(BBCode::convert(DI::config()->get('saml', 'settings_statement')));
|
||||||
$b .= <<<EOL
|
$b .= <<<EOL
|
||||||
<script>
|
<script>
|
||||||
var target=$("#settings-nickname-desc");
|
var target=$("#settings-nickname-desc");
|
||||||
if (target.length) { target.append("$fragment"); }
|
if (target.length) { target.append("<p>$fragment</p>"); }
|
||||||
</script>
|
</script>
|
||||||
EOL;
|
EOL;
|
||||||
}
|
}
|
||||||
|
@ -206,7 +207,7 @@ function saml_addon_admin (&$a, &$o) {
|
||||||
saml_input(
|
saml_input(
|
||||||
'settings_statement',
|
'settings_statement',
|
||||||
'Settings statement',
|
'Settings statement',
|
||||||
'A statement on the settings page explaining where the user should go to change their e-mail and password. HTML allowed.'
|
'A statement on the settings page explaining where the user should go to change their e-mail and password. BBCode allowed.'
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'idp_id',
|
'idp_id',
|
||||||
|
|
Loading…
Reference in a new issue