diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-22 20:16:54 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-22 20:16:54 -0700 |
commit | 02b7bc08033b21ea5438aa667e8dbb1fd72022bb (patch) | |
tree | 739cc3310448c1becfd66d15e8159ee3c47584c7 /Zotlabs/Module/Cdav.php | |
parent | 681d6ca1dd1e5c16dfb73ada131f2d6b7a24f942 (diff) | |
download | volse-hubzilla-02b7bc08033b21ea5438aa667e8dbb1fd72022bb.tar.gz volse-hubzilla-02b7bc08033b21ea5438aa667e8dbb1fd72022bb.tar.bz2 volse-hubzilla-02b7bc08033b21ea5438aa667e8dbb1fd72022bb.zip |
cdav migration to core
Diffstat (limited to 'Zotlabs/Module/Cdav.php')
-rw-r--r-- | Zotlabs/Module/Cdav.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Zotlabs/Module/Cdav.php b/Zotlabs/Module/Cdav.php index 856956b5b..f91dead04 100644 --- a/Zotlabs/Module/Cdav.php +++ b/Zotlabs/Module/Cdav.php @@ -1,7 +1,8 @@ <?php - namespace Zotlabs\Module; +require_once('include/event.php'); + class Cdav extends \Zotlabs\Web\Controller { function init() { @@ -762,7 +763,7 @@ class Cdav extends \Zotlabs\Web\Controller { require_once 'vendor/autoload.php'; - head_add_css('/addon/cdav/view/css/cdav.css'); + head_add_css('cdav.css'); if(argv(1) === 'calendar') { $caldavBackend = new \Sabre\CalDAV\Backend\PDO($pdo); @@ -773,7 +774,7 @@ class Cdav extends \Zotlabs\Web\Controller { if(argc() == 2 && argv(1) === 'calendar') { head_add_css('/library/fullcalendar/fullcalendar.css'); - head_add_css('/addon/cdav/view/css/cdav_calendar.css'); + head_add_css('cdav_calendar.css'); head_add_js('/library/moment/moment.min.js', 1); head_add_js('/library/fullcalendar/fullcalendar.min.js', 1); @@ -811,7 +812,7 @@ class Cdav extends \Zotlabs\Web\Controller { $description = ['description', t('Description')]; $location = ['location', t('Location')]; - $o .= replace_macros(get_markup_template('cdav_calendar.tpl', 'addon/cdav'), [ + $o .= replace_macros(get_markup_template('cdav_calendar.tpl'), [ '$sources' => $sources, '$color' => $color, '$lang' => \App::$language, @@ -979,7 +980,7 @@ class Cdav extends \Zotlabs\Web\Controller { if(!$displayname) return; - head_add_css('/addon/cdav/view/css/cdav_addressbook.css'); + head_add_css('cdav_addressbook.css'); $o = ''; @@ -1102,7 +1103,7 @@ class Cdav extends \Zotlabs\Web\Controller { usort($cards, function($a, $b) { return strcasecmp($a['fn'], $b['fn']); }); } - $o .= replace_macros(get_markup_template('cdav_addressbook.tpl', 'addon/cdav'), [ + $o .= replace_macros(get_markup_template('cdav_addressbook.tpl'), [ '$id' => $id, '$cards' => $cards, '$displayname' => $displayname, |