1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | if(!function_exists('get_the_dates')){ |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | |
28: | |
29: | |
30: | |
31: | |
32: | |
33: | |
34: | function get_the_dates($_post=null){ |
35: | global $EventPost, $post; |
36: | if(!$_post){ |
37: | $_post = $post; |
38: | } |
39: | return $EventPost->print_date($_post); |
40: | } |
41: | } |
42: | if(!function_exists('the_dates')){ |
43: | |
44: | |
45: | |
46: | |
47: | |
48: | function the_dates($post=null){ |
49: | echo get_the_dates($post); |
50: | } |
51: | } |
52: | |
53: | if(!function_exists('get_the_date_start')){ |
54: | |
55: | |
56: | |
57: | |
58: | |
59: | |
60: | |
61: | |
62: | |
63: | function get_the_date_start($post=null){ |
64: | global $EventPost; |
65: | $event = $EventPost->retreive($post); |
66: | return $EventPost->human_date($event->time_start, $EventPost->settings['dateformat']); |
67: | } |
68: | } |
69: | if(!function_exists('the_date_start')){ |
70: | |
71: | |
72: | |
73: | |
74: | |
75: | function the_date_start($post=null){ |
76: | echo get_the_date_start($post); |
77: | } |
78: | } |
79: | |
80: | if(!function_exists('get_the_date_end')){ |
81: | |
82: | |
83: | |
84: | |
85: | |
86: | |
87: | |
88: | |
89: | |
90: | function get_the_date_end($post=null){ |
91: | global $EventPost; |
92: | $event = $EventPost->retreive($post); |
93: | return $EventPost->human_date($event->time_end, $EventPost->settings['dateformat']); |
94: | } |
95: | } |
96: | if(!function_exists('the_date_end')){ |
97: | |
98: | |
99: | |
100: | |
101: | |
102: | |
103: | |
104: | |
105: | |
106: | function the_date_end($post=null){ |
107: | echo get_the_date_end($post); |
108: | } |
109: | } |
110: | |
111: | if(!function_exists('get_the_location')){ |
112: | |
113: | |
114: | |
115: | |
116: | |
117: | |
118: | |
119: | |
120: | |
121: | function get_the_location($post=null){ |
122: | global $EventPost; |
123: | return $EventPost->print_location($post); |
124: | } |
125: | } |
126: | if(!function_exists('the_location')){ |
127: | |
128: | |
129: | |
130: | |
131: | |
132: | function the_location($post=null){ |
133: | echo get_the_location($post); |
134: | } |
135: | } |
136: | |