working on statutes
This commit is contained in:
parent
30d9074f14
commit
c788d119ba
|
|
@ -176,3 +176,26 @@ function getArtisanConseillerName($postID)
|
||||||
$conseiller_name = $conseiller['user_firstname'] . ' ' . $conseiller['user_lastname'];
|
$conseiller_name = $conseiller['user_firstname'] . ' ' . $conseiller['user_lastname'];
|
||||||
return $conseiller_name;
|
return $conseiller_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function translate_wordpress_online_statuses($post_status)
|
||||||
|
{
|
||||||
|
$status_object = get_post_status_object($post_status);
|
||||||
|
|
||||||
|
if ($post_status === 'publish') {
|
||||||
|
return 'En ligne';
|
||||||
|
}
|
||||||
|
if ($post_status === 'draft') {
|
||||||
|
return 'Brouillon';
|
||||||
|
}
|
||||||
|
if ($post_status === 'pending') {
|
||||||
|
return 'En attente';
|
||||||
|
}
|
||||||
|
if ($post_status === 'offline') {
|
||||||
|
return 'Hors ligne';
|
||||||
|
}
|
||||||
|
if ($post_status === 'trash') {
|
||||||
|
return 'Corbeille';
|
||||||
|
}
|
||||||
|
return $status_object->label;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user