mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:35:12 +00:00
Don't display date format, it's already in the placeholder text
This commit is contained in:
parent
519ef48500
commit
a6c4ae186e
3 changed files with 1 additions and 37 deletions
|
@ -140,36 +140,6 @@ function dob($dob) {
|
|||
}
|
||||
|
||||
|
||||
function datesel_format($f) {
|
||||
|
||||
$o = '';
|
||||
|
||||
if(strlen($f)) {
|
||||
for($x = 0; $x < strlen($f); $x ++) {
|
||||
switch($f[$x]) {
|
||||
case 'y':
|
||||
if(strlen($o))
|
||||
$o .= '-';
|
||||
$o .= t('year');
|
||||
break;
|
||||
case 'm':
|
||||
if(strlen($o))
|
||||
$o .= '-';
|
||||
$o .= t('month');
|
||||
break;
|
||||
case 'd':
|
||||
if(strlen($o))
|
||||
$o .= '-';
|
||||
$o .= t('day');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $o;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a date selector
|
||||
* @param $format
|
||||
|
|
|
@ -520,11 +520,6 @@ function events_content(&$a) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$dateformat = datesel_format($f);
|
||||
$timeformat = t('hour:minute');
|
||||
|
||||
require_once('include/acl_selectors.php');
|
||||
|
||||
$perm_defaults = array(
|
||||
|
@ -544,7 +539,6 @@ function events_content(&$a) {
|
|||
'$mid' => $mid,
|
||||
|
||||
'$title' => t('Event details'),
|
||||
'$format_desc' => sprintf( t('Format is %s %s.'),$dateformat,$timeformat),
|
||||
'$desc' => t('Starting date and Title are required.'),
|
||||
'$catsenabled' => $catsenabled,
|
||||
'$placeholdercategory' => t('Categories (comma-separated list)'),
|
||||
|
|
|
@ -626,7 +626,7 @@ logger('extra_fields: ' . print_r($extra_fields,true));
|
|||
'$lbl_fullname' => t('Your Full Name:'),
|
||||
'$lbl_title' => t('Title/Description:'),
|
||||
'$lbl_gender' => t('Your Gender:'),
|
||||
'$lbl_bd' => sprintf( t("Birthday \x28%s\x29:"),datesel_format($f)),
|
||||
'$lbl_bd' => t("Birthday :"),
|
||||
'$lbl_address' => t('Street Address:'),
|
||||
'$lbl_city' => t('Locality/City:'),
|
||||
'$lbl_zip' => t('Postal/Zip Code:'),
|
||||
|
|
Loading…
Reference in a new issue