PluginProbe
Event Post / 4.4
Event Post v4.4
6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 5.6.1 All 46 releases
event-post / inc / wrappers.php

wrappers.php in Event Post 4.4, at inc/wrappers.php

91 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 if(!function_exists('get_the_dates')){
5 /**
6 *
7 * @global \EventPost $EventPost
8 * @param mixte $post
9 * @return string
10 */
11 function get_the_dates($post=null){
12 global $EventPost;
13 return $EventPost->print_date($post);
14 }
15 }
16 if(!function_exists('the_dates')){
17 /**
18 *
19 * @param mixte $post
20 */
21 function the_dates($post=null){
22 echo get_the_dates($post);
23 }
24 }
25
26 if(!function_exists('get_the_date_start')){
27 /**
28 *
29 * @global \EventPost $EventPost
30 * @param type $post
31 * @return string
32 */
33 function get_the_date_start($post=null){
34 global $EventPost;
35 $event = $EventPost->retreive($post);
36 return $EventPost->human_date($event->time_start, $EventPost->settings['dateformat']);
37 }
38 }
39 if(!function_exists('the_date_start')){
40 /**
41 *
42 * @param type $post
43 */
44 function the_date_start($post=null){
45 echo get_the_date_start($post);
46 }
47 }
48
49 if(!function_exists('get_the_date_end')){
50 /**
51 *
52 * @global \EventPost $EventPost
53 * @param type $post
54 * @return string
55 */
56 function get_the_date_end($post=null){
57 global $EventPost;
58 $event = $EventPost->retreive($post);
59 return $EventPost->human_date($event->time_end, $EventPost->settings['dateformat']);
60 }
61 }
62 if(!function_exists('the_date_end')){
63 /**
64 *
65 */
66 function the_date_end($post=null){
67 echo get_the_date_end($post);
68 }
69 }
70
71 if(!function_exists('get_the_location')){
72 /**
73 *
74 * @global \EventPost $EventPost
75 * @param type $post
76 * @return string
77 */
78 function get_the_location($post=null){
79 global $EventPost;
80 return $EventPost->print_location($post);
81 }
82 }
83 if(!function_exists('the_location')){
84 /**
85 *
86 * @param type $post
87 */
88 function the_location($post=null){
89 echo get_the_location($post);
90 }
91 }