. */ function ap_date($today=true, $capitalize=false) { if (get_the_time('m')=='01') : $apmonth = 'Jan. '; elseif (get_the_time('m')=='02') : $apmonth = 'Feb. '; elseif (get_the_time('m')=='08') : $apmonth = 'Aug. '; elseif (get_the_time('m')=='09') : $apmonth = 'Sept. '; elseif (get_the_time('m')=='10') : $apmonth = 'Oct. '; elseif (get_the_time('m')=='11') : $apmonth = 'Nov. '; elseif (get_the_time('m')=='12') : $apmonth = 'Dec. '; else : $apmonth = (get_the_time('F')); endif; if (get_the_time('Y')!=date('Y')) : $apyear = ", ".get_the_time('Y'); else : $apyear = ""; endif; if (get_the_time('F j Y')==date('F j Y')) : if ($today) : if ($capitalize) : $apdate = "Today"; else : $apdate = "today"; endif; else : $apdate = $apmonth." ".get_the_time('j'); endif; else : $apdate = $apmonth." ".get_the_time('j')."".$apyear; endif; echo $apdate; } function ap_time($capitalize=false) { if (get_the_time('a')=='am') : $meridian = 'a.m.'; elseif (get_the_time('a')=='pm') : $meridian = 'p.m.'; endif; if (get_the_time('H:i')=='00:00') : if ($capitalize) : $aptime = "Midnight"; else : $aptime = "midnight"; endif; elseif (get_the_time('H:i')=='12:00') : if ($capitalize) : $aptime = "noon"; else : $aptime = "Noon"; endif; elseif (get_the_time('i')=='00') : $aptime = get_the_time('g')." ".$meridian; else : $aptime = get_the_time('g:i')." ".$meridian; endif; echo ($aptime); } function ap_comment_date($today=true, $capitalize=false) { if (get_comment_time('m')=='01') : $apcmonth = 'Jan. '; elseif (get_comment_time('m')=='02') : $apcmonth = 'Feb. '; elseif (get_comment_time('m')=='08') : $apcmonth = 'Aug. '; elseif (get_comment_time('m')=='09') : $apcmonth = 'Sept. '; elseif (get_comment_time('m')=='10') : $apcmonth = 'Oct. '; elseif (get_comment_time('m')=='11') : $apcmonth = 'Nov. '; elseif (get_comment_time('m')=='12') : $apcmonth = 'Dec. '; else : $apcmonth = (get_comment_time('F')); endif; if (get_comment_time('Y')!=date('Y')) : $apcyear = ", ".get_comment_time('Y'); else : $apcyear = ""; endif; if (get_comment_time('F j Y')==date('F j Y')) : if ($today) : if ($capitalize) : $apcdate = "Today"; else : $apcdate = "today"; endif; else : $apcdate = $apcmonth." ".get_comment_time('j'); endif; else : $apcdate = $apcmonth." ".get_comment_time('j')."".$apcyear; endif; echo $apcdate; } function ap_comment_time($capitalize=false) { if (get_comment_time('a')=='am') : $cmeridian = 'a.m.'; elseif (get_comment_time('a')=='pm') : $cmeridian = 'p.m.'; endif; if (get_comment_time('H:i')=='00:00') : if ($capitalize) : $apctime = "Midnight"; else : $apctime = "midnight"; endif; elseif (get_comment_time('H:i')=='12:00') : if ($capitalize) : $apctime = "Noon"; else : $apctime = "noon"; endif; elseif (get_comment_time('i')=='00') : $apctime = get_comment_time('g')." ".$cmeridian; else : $apctime = get_comment_time('g:i')." ".$cmeridian; endif; echo ($apctime); } ?>