Úprava kódu php
Tohle je už poslední dotaz ohledně php, slibuji. Potřeboval bych jen upravit tento kód (php), aby výsledný formát textu na webu byl "PŘED XX DNY". Teď se mi to zobrazuje jako "XX DNY PŘED"
/** TIME AGO FUNCTION FOR POST DATE *******************************************/
function time_ago( $type = 'post' ) {
$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
return human_time_diff($d('U'), current_time('timestamp')) . " " . __('před', 'gxg_textdomain');
}
function time_ago_comment( $type = 'comment' ) {
$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
return human_time_diff($d('U'), current_time('timestamp')) . " " . __('před', 'gxg_textdomain');
}
Děkuji
Nikdo s tím nemá zkušenost?