forked from nikrou/eventHandler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_public.php
More file actions
94 lines (85 loc) · 5.53 KB
/
Copy path_public.php
File metadata and controls
94 lines (85 loc) · 5.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of eventHandler, a plugin for Dotclear 2.
#
# Copyright(c) 2014-2015 Nicolas Roudaire <nikrou77@gmail.com> http://www.nikrou.net
#
# Copyright (c) 2009-2013 Jean-Christian Denis and contributors
# contact@jcdenis.fr http://jcd.lv
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')){return;}
# set ns
$core->blog->settings->addNamespace('eventHandler');
# Localisation
__('scheduled');
__('ongoing');
__('finished');
# Load _wigdets.php
if ($core->blog->settings->eventHandler->active) {
include_once(__DIR__.'/_widgets.php');
}
# Public behaviors
$core->addBehavior('publicHeadContent',array('publicEventHandler','publicHeadContent'));
$core->addBehavior('publicBeforeDocument',array('publicEventHandler','publicBeforeDocument'));
$core->addBehavior('publicEntryBeforeContent',array('publicEventHandler','publicEntryBeforeContent'));
$core->addBehavior('publicEntryAfterContent',array('publicEventHandler','publicEntryAfterContent'));
# Missing values
$core->tpl->addValue('BlogTimezone',array('tplEventHandler','BlogTimezone'));
# Page of events
$core->tpl->addBlock('EventsIf',array('tplEventHandler','EventsIf'));
$core->tpl->addValue('EventsMenuPeriod',array('tplEventHandler','EventsMenuPeriod'));
$core->tpl->addValue('EventsMenuSortOrder',array('tplEventHandler','EventsMenuSortOrder'));
$core->tpl->addValue('EventsFeedURL',array('tplEventHandler','EventsFeedURL'));
$core->tpl->addValue('EventsURL',array('tplEventHandler','EventsURL'));
$core->tpl->addValue('EventsPeriod',array('tplEventHandler','EventsPeriod'));
$core->tpl->addValue('EventsInterval',array('tplEventHandler','EventsInterval'));
$core->tpl->addBlock('EventsEntries',array('tplEventHandler','EventsEntries'));
$core->tpl->addBlock('EventsPagination',array('tplEventHandler','EventsPagination'));
$core->tpl->addBlock('EventsEntryIf',array('tplEventHandler','EventsEntryIf'));
$core->tpl->addBlock('EventsDateHeader',array('tplEventHandler','EventsDateHeader'));
$core->tpl->addBlock('EventsDateFooter',array('tplEventHandler','EventsDateFooter'));
$core->tpl->addValue('EventsEntryDate',array('tplEventHandler','EventsEntryDate'));
$core->tpl->addValue('EventsEntryTime',array('tplEventHandler','EventsEntryTime'));
$core->tpl->addValue('EventsEntryCategoryURL',array('tplEventHandler','EventsEntryCategoryURL'));
$core->tpl->addValue('EventsEntryAddress',array('tplEventHandler','EventsEntryAddress'));
$core->tpl->addValue('EventsEntryLatitude',array('tplEventHandler','EventsEntryLatitude'));
$core->tpl->addValue('EventsEntryLongitude',array('tplEventHandler','EventsEntryLongitude'));
$core->tpl->addValue('EventsEntryZoom',array('tplEventHandler','EventsEntryZoom'));
$core->tpl->addValue('EventsEntryDuration',array('tplEventHandler','EventsEntryDuration'));
$core->tpl->addValue('EventsEntryPeriod',array('tplEventHandler','EventsEntryPeriod'));
$core->tpl->addValue('EventsEntryMap',array('tplEventHandler','EventsEntryMap'));
# Events of a post
$core->tpl->addBlock('EventsOfPost',array('tplEventHandler','EventsOfPost'));
$core->tpl->addBlock('EventsOfPostHeader',array('tplEventHandler','EventsOfPostHeader'));
$core->tpl->addBlock('EventsOfPostFooter',array('tplEventHandler','EventsOfPostFooter'));
$core->tpl->addBlock('EventOfPostIf',array('tplEventHandler','EventOfPostIf'));
$core->tpl->addValue('EventOfPostURL',array('tplEventHandler','EventOfPostURL'));
$core->tpl->addValue('EventOfPostTitle',array('tplEventHandler','EventOfPostTitle'));
$core->tpl->addValue('EventOfPostDate',array('tplEventHandler','EventOfPostDate'));
$core->tpl->addValue('EventOfPostTime',array('tplEventHandler','EventOfPostTime'));
$core->tpl->addValue('EventOfPostAuthorCommonName',array('tplEventHandler','EventOfPostAuthorCommonName'));
$core->tpl->addValue('EventOfPostAuthorLink',array('tplEventHandler','EventOfPostAuthorLink'));
$core->tpl->addValue('EventOfPostCategory',array('tplEventHandler','EventOfPostCategory'));
$core->tpl->addValue('EventOfPostCategoryURL',array('tplEventHandler','EventOfPostCategoryURL'));
$core->tpl->addValue('EventOfPostAddress',array('tplEventHandler','EventOfPostAddress'));
$core->tpl->addValue('EventOfPostDuration',array('tplEventHandler','EventOfPostDuration'));
$core->tpl->addValue('EventOfPostPeriod',array('tplEventHandler','EventOfPostPeriod'));
# Posts of an event
$core->tpl->addBlock('PostsOfEvent',array('tplEventHandler','PostsOfEvent'));
$core->tpl->addBlock('PostsOfEventHeader',array('tplEventHandler','PostsOfEventHeader'));
$core->tpl->addBlock('PostsOfEventFooter',array('tplEventHandler','PostsOfEventFooter'));
$core->tpl->addBlock('PostOfEventIf',array('tplEventHandler','PostOfEventIf'));
$core->tpl->addValue('PostOfEventURL',array('tplEventHandler','PostOfEventURL'));
$core->tpl->addValue('PostOfEventTitle',array('tplEventHandler','PostOfEventTitle'));
$core->tpl->addValue('PostOfEventDate',array('tplEventHandler','PostOfEventDate'));
$core->tpl->addValue('PostOfEventTime',array('tplEventHandler','PostOfEventTime'));
$core->tpl->addValue('PostOfEventAuthorCommonName',array('tplEventHandler','PostOfEventAuthorCommonName'));
$core->tpl->addValue('PostOfEventAuthorLink',array('tplEventHandler','PostOfEventAuthorLink'));
$core->tpl->addValue('PostOfEventCategory',array('tplEventHandler','PostOfEventCategory'));
$core->tpl->addValue('PostOfEventCategoryURL',array('tplEventHandler','PostOfEventCategoryURL'));