Display the comment timestamp
This commit is contained in:
parent
af95ceb06e
commit
6196a53a45
@ -37,6 +37,7 @@ $date_format['txt_short'] = __('Date', 'SHORT'); // radio title
|
||||
$date_format['txt_day'] = __('Date', 'DAY');
|
||||
$date_format['txt_date'] = __('Date', 'DATE');
|
||||
$date_format['txt_month_year'] = __('Date', 'MONTH_YEAR');
|
||||
$date_format['txt_datetime_short'] = __('Date', 'DATETIME');
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { //%e can't be used on Windows platform, use %#d instead
|
||||
foreach ($date_format as $k => $v) {
|
||||
$date_format[$k] = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $v); //replace %e by %#d for windows
|
||||
|
@ -47,6 +47,13 @@ div.comment{
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.comment_date {
|
||||
font-style: italic;
|
||||
font-size: 12px;
|
||||
letter-spacing: -0.7px;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
/* Règles générales */
|
||||
|
||||
a:focus { /* a11y */
|
||||
|
@ -45,7 +45,8 @@
|
||||
"SHORT": "%A %e %B %Y",
|
||||
"DAY": "%a %e",
|
||||
"DATE": "%Y-%m-%d",
|
||||
"MONTH_YEAR": "%B %Y"
|
||||
"MONTH_YEAR": "%B %Y",
|
||||
"DATETIME": "%Y-%m-%d %H:%M"
|
||||
},
|
||||
"Language selector": {
|
||||
"Select the language": "Sprache wählen",
|
||||
|
@ -45,7 +45,8 @@
|
||||
"SHORT": "%A %e %B %Y",
|
||||
"DAY": "%a %e",
|
||||
"DATE": "%Y-%m-%d",
|
||||
"MONTH_YEAR": "%B %Y"
|
||||
"MONTH_YEAR": "%B %Y",
|
||||
"DATETIME": "%m/%d/%Y %H:%M"
|
||||
},
|
||||
"Language selector": {
|
||||
"Select the language": "Select the language",
|
||||
|
@ -45,7 +45,8 @@
|
||||
"SHORT": "ES_%A %e %B %Y",
|
||||
"DAY": "ES_%a %e",
|
||||
"DATE": "ES_%Y-%m-%d",
|
||||
"MONTH_YEAR": "ES_%B %Y"
|
||||
"MONTH_YEAR": "ES_%B %Y",
|
||||
"DATETIME": "%d/%m/%Y %H:%M"
|
||||
},
|
||||
"Language selector": {
|
||||
"Select the language": "ES_Choisir la langue",
|
||||
|
@ -45,7 +45,8 @@
|
||||
"SHORT": "%A %e %B %Y",
|
||||
"DAY": "%a %e",
|
||||
"DATE": "%Y-%m-%d",
|
||||
"MONTH_YEAR": "%B %Y"
|
||||
"MONTH_YEAR": "%B %Y",
|
||||
"DATETIME": "%d-%m-%Y %H:%M"
|
||||
},
|
||||
"Language selector": {
|
||||
"Select the language": "Choisir la langue",
|
||||
|
@ -45,7 +45,8 @@
|
||||
"SHORT": "%A %e %B %Y",
|
||||
"DAY": "%a %e",
|
||||
"DATE": "%Y-%m-%d",
|
||||
"MONTH_YEAR": "%B %Y"
|
||||
"MONTH_YEAR": "%B %Y",
|
||||
"DATETIME": "%d/%m/%Y %H:%M"
|
||||
},
|
||||
"Language selector": {
|
||||
"Select the language": "Scegliere la lingua",
|
||||
|
@ -10,6 +10,7 @@
|
||||
{if $admin && !$expired}
|
||||
<button type="submit" name="delete_comment" value="{$comment->id|html}" class="btn btn-link" title="{__('Comments', 'Remove the comment')}"><span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{__('Generic', 'Remove')}</span></button>
|
||||
{/if}
|
||||
<span class="comment_date">{$comment->date|date_format:$date_format['txt_datetime_short']}</span>
|
||||
<b>{$comment->name|html}</b>
|
||||
<span class="comment">{$comment->comment|escape|nl2br}</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user