2017-03-16 03:56:12 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Zotlabs\Widget;
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class Eventstools
|
|
|
|
{
|
2017-03-16 03:56:12 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function widget($arr)
|
|
|
|
{
|
2017-03-16 03:56:12 +00:00
|
|
|
|
2021-12-03 03:01:39 +00:00
|
|
|
if (!local_channel()) {
|
2021-12-02 23:02:31 +00:00
|
|
|
return;
|
2021-12-03 03:01:39 +00:00
|
|
|
}
|
2017-03-16 03:56:12 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
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')
|
|
|
|
));
|
|
|
|
}
|
2017-03-16 03:56:12 +00:00
|
|
|
}
|