| 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 |
} |