- Patch #25121 by Robrecht J.: changed itemized lists with hardcoded CSS to definition lists.

4.7.x
Dries Buytaert 2005-06-21 18:58:27 +00:00
parent 22ea50dfec
commit f3a9a99570
4 changed files with 8 additions and 12 deletions

View File

@ -1400,17 +1400,15 @@ function node_add($type) {
// If no (valid) node type has been provided, display a node type overview.
foreach (node_list() as $type) {
if (node_access('create', $type)) {
$out = '<li>';
$out .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name')))));
$out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>';
$out .= '</li>';
$out = '<dt>'. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))) .'</dt>';
$out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>';
$item[node_invoke($type, 'node_name')] = $out;
}
}
if (isset($item)) {
ksort($item);
$output = t('Choose the appropriate item from the list:') .'<ul>'. implode('', $item) .'</ul>';
$output = t('Choose the appropriate item from the list:') .'<dl>'. implode('', $item) .'</dl>';
}
else {
$output = message_access();

View File

@ -1400,17 +1400,15 @@ function node_add($type) {
// If no (valid) node type has been provided, display a node type overview.
foreach (node_list() as $type) {
if (node_access('create', $type)) {
$out = '<li>';
$out .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name')))));
$out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>';
$out .= '</li>';
$out = '<dt>'. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))) .'</dt>';
$out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>';
$item[node_invoke($type, 'node_name')] = $out;
}
}
if (isset($item)) {
ksort($item);
$output = t('Choose the appropriate item from the list:') .'<ul>'. implode('', $item) .'</ul>';
$output = t('Choose the appropriate item from the list:') .'<dl>'. implode('', $item) .'</dl>';
}
else {
$output = message_access();

View File

@ -319,7 +319,7 @@ function user_access($string, $account = NULL) {
}
// User #1 has all privileges:
if ($account->uid === 1) {
if ($account->uid == 1) {
return TRUE;
}

View File

@ -319,7 +319,7 @@ function user_access($string, $account = NULL) {
}
// User #1 has all privileges:
if ($account->uid === 1) {
if ($account->uid == 1) {
return TRUE;
}