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('timeoffset', 'timeoffset', 'isNumber', false, false, 'trim'),
|
||||||
array('timeformat', 'timeformat', 'notEmpty', false, false, 'trim'),
|
array('timeformat', 'timeformat', 'notEmpty', false, false, 'trim'),
|
||||||
array('dateformat', 'dateformat', '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('lang', 'lang', 'notEmpty', false, false, 'trim'),
|
||||||
array('charset', 'charset', 'notEmpty', false, false, 'trim'),
|
array('charset', 'charset', 'notEmpty', false, false, 'trim'),
|
||||||
@ -73,6 +74,7 @@
|
|||||||
'timeoffset' => $_POST['timeoffset'],
|
'timeoffset' => $_POST['timeoffset'],
|
||||||
'timeformat' => $_POST['timeformat'],
|
'timeformat' => $_POST['timeformat'],
|
||||||
'dateformat' => $_POST['dateformat'],
|
'dateformat' => $_POST['dateformat'],
|
||||||
|
'dateformatshort' => $_POST['dateformatshort'],
|
||||||
'charset' => $_POST['charset'],
|
'charset' => $_POST['charset'],
|
||||||
'lang' => $_POST['lang']
|
'lang' => $_POST['lang']
|
||||||
);
|
);
|
||||||
|
@ -103,6 +103,13 @@
|
|||||||
<p> {$panelstrings.output}: {$smarty.now|date_format:$fp_config.locale.dateformat} </p>
|
<p> {$panelstrings.output}: {$smarty.now|date_format:$fp_config.locale.dateformat} </p>
|
||||||
</dd>
|
</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>
|
<dt><label for="timeformat"> {$panelstrings.timeformat} </label></dt>
|
||||||
<dd> <p> <input type="text" name="timeformat" id="timeformat"
|
<dd> <p> <input type="text" name="timeformat" id="timeformat"
|
||||||
class="textinput{$error.timeformat|notempty:" field-error"}"
|
class="textinput{$error.timeformat|notempty:" field-error"}"
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{entry}
|
{entry}
|
||||||
<tr>
|
<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">
|
<td class="main-cell">
|
||||||
{if in_array('draft',$categories)}
|
{if in_array('draft',$categories)}
|
||||||
(<em class="entry-flag">{$lang.entry.flags.short.draft}</em>)
|
(<em class="entry-flag">{$lang.entry.flags.short.draft}</em>)
|
||||||
|
@ -22,6 +22,7 @@ $fp_config = array (
|
|||||||
'timeoffset' => '2',
|
'timeoffset' => '2',
|
||||||
'timeformat' => '%H:%M:%S',
|
'timeformat' => '%H:%M:%S',
|
||||||
'dateformat' => '%A, %B %e, %Y',
|
'dateformat' => '%A, %B %e, %Y',
|
||||||
|
'dateformatshort' => '%Y-%m-%d',
|
||||||
'charset' => 'utf-8',
|
'charset' => 'utf-8',
|
||||||
'lang' => 'en-us',
|
'lang' => 'en-us',
|
||||||
),
|
),
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
'hours' => 'hours',
|
'hours' => 'hours',
|
||||||
'timeformat' => 'Default format for time',
|
'timeformat' => 'Default format for time',
|
||||||
'dateformat' => 'Default format for date',
|
'dateformat' => 'Default format for date',
|
||||||
|
'dateformatshort' => 'Default format for date (short)',
|
||||||
'output' => 'Output',
|
'output' => 'Output',
|
||||||
'charset' => 'Character set',
|
'charset' => 'Character set',
|
||||||
'charsettip' => 'The character set you write your blog in (UTF-8 is '.
|
'charsettip' => 'The character set you write your blog in (UTF-8 is '.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{entry content=$entry}
|
{entry content=$entry}
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<h3>{$subject|tag:the_title}</h3>
|
<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}
|
{$content|tag:the_content}
|
||||||
</div>
|
</div>
|
||||||
{/entry}
|
{/entry}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{static content=$entry}
|
{static content=$entry}
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<h3>{$subject}</h3>
|
<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}
|
{$content}
|
||||||
</div>
|
</div>
|
||||||
{/static}
|
{/static}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user