various changes in how dates are handled in config panels. added a new lang string. added a new fp_config field, new blogs will need a reinstall or customizing by hand the option panel
This commit is contained in:
parent
9693e53d22
commit
754d2899b3
@ -20,6 +20,7 @@
|
||||
array('timeoffset', 'timeoffset', 'isNumber', false, false, 'trim'),
|
||||
array('timeformat', 'timeformat', 'notEmpty', false, false, 'trim'),
|
||||
array('dateformat', 'dateformat', 'notEmpty', false, false, 'trim'),
|
||||
array('dateformatshort', 'dateformatshort', 'notEmpty', false, false, 'trim'),
|
||||
|
||||
array('lang', 'lang', 'notEmpty', false, false, 'trim'),
|
||||
array('charset', 'charset', 'notEmpty', false, false, 'trim'),
|
||||
@ -73,6 +74,7 @@
|
||||
'timeoffset' => $_POST['timeoffset'],
|
||||
'timeformat' => $_POST['timeformat'],
|
||||
'dateformat' => $_POST['dateformat'],
|
||||
'dateformatshort' => $_POST['dateformatshort'],
|
||||
'charset' => $_POST['charset'],
|
||||
'lang' => $_POST['lang']
|
||||
);
|
||||
|
@ -103,6 +103,13 @@
|
||||
<p> {$panelstrings.output}: {$smarty.now|date_format:$fp_config.locale.dateformat} </p>
|
||||
</dd>
|
||||
|
||||
<dt><label for="dateformatshort"> {$panelstrings.dateformatshort} </label></dt>
|
||||
<dd> <p> <input type="text" name="dateformatshort" id="dateformatshort"
|
||||
class="textinput{$error.dateformatshort|notempty:" field-error"}"
|
||||
value="{$fp_config.locale.dateformatshort}" /> </p>
|
||||
<p> {$panelstrings.output}: {$smarty.now|date_format:$fp_config.locale.dateformatshort} </p>
|
||||
</dd>
|
||||
|
||||
<dt><label for="timeformat"> {$panelstrings.timeformat} </label></dt>
|
||||
<dd> <p> <input type="text" name="timeformat" id="timeformat"
|
||||
class="textinput{$error.timeformat|notempty:" field-error"}"
|
||||
|
@ -51,7 +51,7 @@
|
||||
<tbody>
|
||||
{entry}
|
||||
<tr>
|
||||
<td>{$id|entry_idtotime|date_format:"%D, %T"}</td>
|
||||
<td>{$id|entry_idtotime|date_format:"`$fp_config.locale.dateformatshort`, `$fp_config.locale.timeformat`"}</td>
|
||||
<td class="main-cell">
|
||||
{if in_array('draft',$categories)}
|
||||
(<em class="entry-flag">{$lang.entry.flags.short.draft}</em>)
|
||||
|
@ -22,6 +22,7 @@ $fp_config = array (
|
||||
'timeoffset' => '2',
|
||||
'timeformat' => '%H:%M:%S',
|
||||
'dateformat' => '%A, %B %e, %Y',
|
||||
'dateformatshort' => '%Y-%m-%d',
|
||||
'charset' => 'utf-8',
|
||||
'lang' => 'en-us',
|
||||
),
|
||||
|
@ -39,6 +39,7 @@
|
||||
'hours' => 'hours',
|
||||
'timeformat' => 'Default format for time',
|
||||
'dateformat' => 'Default format for date',
|
||||
'dateformatshort' => 'Default format for date (short)',
|
||||
'output' => 'Output',
|
||||
'charset' => 'Character set',
|
||||
'charsettip' => 'The character set you write your blog in (UTF-8 is '.
|
||||
|
@ -1,7 +1,7 @@
|
||||
{entry content=$entry}
|
||||
<div class="entry">
|
||||
<h3>{$subject|tag:the_title}</h3>
|
||||
<p class="date">Published by {$author} on {$date|date_format:"%A, %B %e, %Y - %H:%M:%S"} </p>
|
||||
<p class="date">Published by {$author} on {$date|date_format:$fp_config.locale.dateformat} </p>
|
||||
{$content|tag:the_content}
|
||||
</div>
|
||||
{/entry}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{static content=$entry}
|
||||
<div class="entry">
|
||||
<h3>{$subject}</h3>
|
||||
<p class="date">Published by {$author} on {$date|date_format:"%A, %B %e, %Y - %H:%M:%S"} </p>
|
||||
<p class="date">Published by {$author} on {$date|date_format:$fp_config.locale.dateformat} </p>
|
||||
{$content}
|
||||
</div>
|
||||
{/static}
|
||||
|
Loading…
x
Reference in New Issue
Block a user