streams/Zotlabs/Widget/Notes.php
2019-06-24 17:35:12 -07:00

27 lines
437 B
PHP

<?php
namespace Zotlabs\Widget;
use Zotlabs\Lib\Apps;
class Notes {
function widget($arr) {
if (! local_channel()) {
return '';
}
if (! Apps::system_app_installed(local_channel(),'Notes')) {
return '';
}
$text = get_pconfig(local_channel(),'notes','text');
$o = replace_macros(get_markup_template('notes.tpl'), [
'$banner' => t('Notes'),
'$text' => $text,
'$save' => t('Save'),
]);
return $o;
}
}