$xw->text($txt);
}
+function common_raw($xml) {
+ global $xw;
+ $xw->writeRaw($xml);
+}
+
function common_license_block() {
global $config, $xw;
- common_element_start('div', 'license');
+ common_element_start('p', 'license greenBg');
+ common_element_start('span', 'floatLeft width25');
common_element_start('a', array('class' => 'license',
'rel' => 'license',
href => $config['license']['url']));
'src' => $config['license']['image'],
'alt' => $config['license']['title']));
common_element_end('a');
+ common_element_end('span');
+ common_element_start('span', 'floatRight width75');
common_text(_t('Unless otherwise specified, contents of this site are copyright by the contributors and available under the '));
common_element('a', array('class' => 'license',
'rel' => 'license',
href => $config['license']['url']),
$config['license']['title']);
common_text(_t('. Contributors should be attributed by full name or nickname.'));
- common_element_end('div');
+ common_element_end('span');
+ common_element_end('p');
}
function common_head_menu() {
common_menu_item(common_local_url('doc', array('title' => 'privacy')),
_t('Privacy'));
common_menu_item(common_local_url('doc', array('title' => 'source')),
- _t('Privacy'));
+ _t('Source'));
common_element_end('ul');
}
global $config;
if ($size) {
- return $user->id . '-' . $size . (($extra) ? $extra : '') . $extension;
+ return $user->id . '-' . $size . (($extra) ? ('-' . $extra) : '') . $extension;
} else {
- return $user->id . '-original' . (($extra) ? $extra : '') . $extension;
+ return $user->id . '-original' . (($extra) ? ('-' . $extra) : '') . $extension;
}
}
}
function common_timestamp() {
- return date('YmdHisu');
+ return date('YmdHis');
}
// XXX: set up gettext