Exemplo n.º 1
0
 public static function get_event_date($timestamp)
 {
     $date = '';
     $month = ucfirst(TMM_Helper::get_short_monts_names(date('n', $timestamp) - 1));
     $day = date('d', (int) $timestamp);
     $year = date('Y', (int) $timestamp);
     if (TMM::get_option('events_date_format') === '1') {
         $date = $day . ' ' . $month . ', ' . $year;
     } else {
         $date = $month . ' ' . $day . ', ' . $year;
     }
     return $date;
 }