diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-27 20:05:47 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-27 20:05:47 -0800 |
commit | 4bfd34b479e5e04ee332d5aec88752d317f88b54 (patch) | |
tree | 5176dd79b43cba09cf4ac12cbb68b077c434dd79 /include/widgets.php | |
parent | 962d9f36d05a1f9e94e0a74b17b2f1fff8ff7220 (diff) | |
parent | 216d41cd642890cbfdadc092e5f944d788d91843 (diff) | |
download | volse-hubzilla-4bfd34b479e5e04ee332d5aec88752d317f88b54.tar.gz volse-hubzilla-4bfd34b479e5e04ee332d5aec88752d317f88b54.tar.bz2 volse-hubzilla-4bfd34b479e5e04ee332d5aec88752d317f88b54.zip |
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 16 |
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>'; |