aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-11-28 16:26:24 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-11-28 16:26:24 +0100
commit17907f11a350536bbcac248e6b81b63eecee964d (patch)
tree93f8413b78c6fb12fde059ecc8f8831e9996731a /include/widgets.php
parentcb7df797e1d5a87ff8b6dbb6c07faf68e3e725f7 (diff)
parent122d7281f7d4b55ef8adf8791bdab51b4b797ba8 (diff)
downloadvolse-hubzilla-17907f11a350536bbcac248e6b81b63eecee964d.tar.gz
volse-hubzilla-17907f11a350536bbcac248e6b81b63eecee964d.tar.bz2
volse-hubzilla-17907f11a350536bbcac248e6b81b63eecee964d.zip
Merge remote-tracking branch 'upstream/master'
Conflicts: include/datetime.php include/text.php mod/events.php version.inc view/css/mod_events.css view/theme/redbasic/css/style.css view/tpl/event_head.tpl view/tpl/events-js.tpl view/tpl/jot.tpl
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index a3f7444ec..d4f3d32e1 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -666,7 +666,7 @@ function widget_eventsmenu($arr) {
if (! local_channel())
return;
- return replace_macros(get_markup_template('events_side.tpl'), array(
+ return replace_macros(get_markup_template('events_menu_side.tpl'), array(
'$title' => t('Events Menu'),
'$day' => t('Day View'),
'$week' => t('Week View'),
@@ -677,6 +677,18 @@ function widget_eventsmenu($arr) {
));
}
+function widget_eventstools($arr) {
+ if (! local_channel())
+ return;
+
+ return replace_macros(get_markup_template('events_tools_side.tpl'), array(
+ '$title' => t('Events Tools'),
+ '$export' => t('Export Calendar'),
+ '$import' => t('Import Calendar'),
+ '$submit' => t('Submit')
+ ));
+}
+
function widget_design_tools($arr) {
$a = get_app();
@@ -1147,6 +1159,8 @@ function widget_forums($arr) {
function widget_tasklist($arr) {
+ if (! local_channel())
+ return;
require_once('include/event.php');
$o .= '<script>var tasksShowAll = 0; $(document).ready(function() { tasksFetch(); $("#tasklist-new-form").submit(function(event) { event.preventDefault(); $.post( "tasks/new", $("#tasklist-new-form").serialize(), function(data) { tasksFetch(); $("#tasklist-new-summary").val(""); } ); return false; } )});</script>';