aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Notes.php
blob: 5c83a550f4ed7bde0f59730b014d5928fe2b2548 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Zotlabs\Widget;

class Notes {

	function widget($arr) {
		if(! local_channel())
			return '';
		if(! feature_enabled(local_channel(),'private_notes'))
			return '';

		$text = get_pconfig(local_channel(),'notes','text');

		$o = replace_macros(get_markup_template('notes.tpl'), array(
			'$banner' => t('Notes'),
			'$text' => $text,
			'$save' => t('Save'),
		));

		return $o;
	}
}