From bf5a6d2092ce7afbb7bfcc9ca1d9b16304d73c6c Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 8 Dec 2015 20:34:32 +0000 Subject: [PATCH 1/3] Added Notes widet --- html/includes/common/notes.inc.php | 22 ++++++++++++++++++++++ sql-schema/080.sql | 1 + 2 files changed, 23 insertions(+) create mode 100644 html/includes/common/notes.inc.php create mode 100644 sql-schema/080.sql diff --git a/html/includes/common/notes.inc.php b/html/includes/common/notes.inc.php new file mode 100644 index 000000000..65f768b8d --- /dev/null +++ b/html/includes/common/notes.inc.php @@ -0,0 +1,22 @@ + +
+ +
+ +
+
+
+
+ +
+
+ '; +} +else { + $common_output[] = stripslashes(nl2br($widget_settings['notes'])); +} diff --git a/sql-schema/080.sql b/sql-schema/080.sql new file mode 100644 index 000000000..b48736782 --- /dev/null +++ b/sql-schema/080.sql @@ -0,0 +1 @@ +INSERT INTO widgets VALUES (NULL, 'Notes', 'notes', '5,4'); From a757e04806454372cd60a72686af905291e7107f Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 8 Dec 2015 20:44:24 +0000 Subject: [PATCH 2/3] Added copyright notice --- html/includes/common/notes.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/html/includes/common/notes.inc.php b/html/includes/common/notes.inc.php index 65f768b8d..d43f61138 100644 --- a/html/includes/common/notes.inc.php +++ b/html/includes/common/notes.inc.php @@ -1,5 +1,17 @@ + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + if( defined('show_settings') || empty($widget_settings) ) { $common_output[] = ' From 74ff5b0c3431be03b43e3b13a6c7eee05378e880 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 8 Dec 2015 20:47:50 +0000 Subject: [PATCH 3/3] Added message abiout html being supported --- html/includes/common/notes.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/html/includes/common/notes.inc.php b/html/includes/common/notes.inc.php index d43f61138..9d2d17018 100644 --- a/html/includes/common/notes.inc.php +++ b/html/includes/common/notes.inc.php @@ -16,6 +16,11 @@ if( defined('show_settings') || empty($widget_settings) ) { $common_output[] = '
+
+
+ html is supported here. If you want just text then wrap in <pre></pre> +
+