-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.php
More file actions
189 lines (182 loc) · 6.29 KB
/
Copy pathconf.php
File metadata and controls
189 lines (182 loc) · 6.29 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// File:
// conf.php
// Description:
// This file configures the Wordpress Plugin - Event Page
// Actions:
// 1) initialize pertinent variables
// 2) load classes and functions
// Date:
// Added on February 14th 2011
// Copyright:
// Copyright (c) 2011 Matthew Praetzel.
// License:
// This software is licensed under the terms of the GNU Lesser General Public License v3
// as published by the Free Software Foundation. You should have received a copy of of
// the GNU Lesser General Public License along with this software. In the event that you
// have not, please visit: http://www.gnu.org/licenses/gpl-3.0.txt
//
////////////////////////////////////////////////////////////////////////////////////////////////////
/****************************************Commence Script*******************************************/
// ******************************* //
//________________________________** INITIALIZE VARIABLES **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
$WP_event_page_defaults = array(
'show_time' => 1,
'end_time' => 0,
'format' => 'l F j, Y',
'time' => 'g:ia',
'date_markup' => '<small>%l% %F% <span>%j%</span>, %Y%</small>',
'time_markup' => '<span>%g%:%i%%a%</span>',
'timezone' => '',
'd_2_t_sep' => ' ',
'time_sep' => ' - ',
'date_sep' => ' -- ',
'url' => get_bloginfo('home').'/events',
'category' => 1,
'limit' => 5,
'order' => 'desc',
'pages' => 0,
'fields' => array(
'Post Title' => array(
'field' => 'post_title',
'markup' => '<div class="tern_wp_event_post_title"><h3><a href="%post_url%">%value%</a></h3></div>'
),
'Event Date' => array(
'field' => 'event_date',
'markup' => '<div class="tern_wp_event_date">%value%</div>'
),
'Post Excerpt' => array(
'field' => 'post_excerpt',
'markup' => '<div class="tern_wp_event_post_excerpt">%value%</div>'
)
)
);
$WP_event_page_fields = array(
'Start Date' => array(
'name' => '_tern_wp_event_start_date',
'meta' => false
),
'End Date' => array(
'name' => '_tern_wp_event_end_date',
'meta' => false
),
'Event type' => array(
'name' => '_tern_wp_event_type',
'meta' => true
),
'Hosted By' => array(
'name' => '_tern_wp_event_host',
'meta' => true
),
'Location' => array(
'name' => '_tern_wp_event_location',
'meta' => true
)
,
'Event URL' => array(
'name' => '_tern_wp_event_url',
'meta' => true
)
);
$WP_event_page_markup_fields = array(
'Post Title' => array(
'field' => 'post_title',
'func' => 'the_title',
'args' => false
),
'Event Date' => array(
'field' => 'event_date',
'func' => 'WP_event_page_date',
'args' => 'id'
),
'Post Content' => array(
'field' => 'post_content',
'func' => 'the_content',
'args' => array( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) )
),
'Post Excerpt' => array(
'field' => 'post_excerpt',
'func' => 'the_excerpt',
'args' => array( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) )
),
'Post Author' => array(
'field' => 'post_author',
'func' => 'the_author',
'args' => false
),
'Post Status' => array(
'field' => 'post_status',
'func' => false
),
'Comment Count' => array(
'field' => 'comment_count',
'func' => 'comments_number',
'args' => false
)
);
$WP_event_page_date_formats = array(
'Thu January 31st, 1970 12:00pm - Thu January 31st, 1970 4:00pm' => array(
'format' => 'D F jS, Y gi:a',
'sep' => ' - '
),
'January 31st, 1970 12:00pm - January 31st, 1970 4:00pm' => array(
'format' => 'F jS, Y gi:a',
'sep' => ' - '
),
'Thu Jan 31st, 1970 12:00pm - Thu January 31st, 1970 4:00pm' => array(
'format' => 'M j, Y ga',
'sep' => ' - '
),
'Jan 31, 1970 12pm - Jan 31, 1970 4pm' => array(
'format' => 'M j, Y ga',
'sep' => ' - '
)
);
$WP_event_page_is_list = false;
$tern_wp_event_post = NULL;
// ******************************* //
//________________________________** FILE CLASS **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
require_once(dirname(__FILE__).'/class/file.php');
$getFILE = new fileClass;
// ******************************* //
//________________________________** LOAD CLASSES **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
$l = $getFILE->directoryList(array(
'dir' => dirname(__FILE__).'/class/',
'rec' => true,
'flat' => true,
'depth' => 1
));
if(is_array($l)) {
foreach($l as $k => $v) {
require_once($v);
}
}
// ******************************* //
//________________________________** INITIALIZE INCLUDES **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
$l = $getFILE->directoryList(array(
'dir' => dirname(__FILE__).'/core/',
'rec' => true,
'flat' => true,
'depth' => 1
));
if(is_array($l)) {
foreach($l as $k => $v) {
require_once($v);
}
}
/****************************************Terminate Script******************************************/
?>