Let labels be labels, the end (I hope so).

2.6
Anne Kozlika 2013-08-18 16:27:51 +02:00
parent 13ef363b32
commit d622627741
20 changed files with 296 additions and 276 deletions

View File

@ -347,7 +347,8 @@ echo
'<p id="media-icon"><img src="'.$file->media_icon.'?'.time()*rand().'" alt="" /></p>';
echo
'<div id="media-details">';
'<div id="media-details">'.
'<div class="near-icon">';
if ($file->media_image)
{
@ -357,6 +358,15 @@ if ($file->media_image)
$thumb_size = 's';
}
if (isset($file->media_thumb[$thumb_size])) {
echo '<p><img src="'.$file->media_thumb[$thumb_size].'?'.time()*rand().'" alt="" /></p>';
} elseif ($thumb_size == 'o') {
$S = getimagesize($file->file);
$class = ($S[1] > 500) ? ' class="overheight"' : '';
unset($S);
echo '<p id="media-original-image"'.$class.'><img src="'.$file->file_url.'?'.time()*rand().'" alt="" /></p>';
}
echo '<p>'.__('Available sizes:').' ';
foreach (array_reverse($file->media_thumb) as $s => $v)
{
@ -366,15 +376,6 @@ if ($file->media_image)
}
echo '<a href="'.html::escapeURL($page_url).'&amp;id='.$id.'&amp;size=o&amp;tab=media-details-tab">'.__('original').'</a>';
echo '</p>';
if (isset($file->media_thumb[$thumb_size])) {
echo '<p><img src="'.$file->media_thumb[$thumb_size].'?'.time()*rand().'" alt="" /></p>';
} elseif ($thumb_size == 'o') {
$S = getimagesize($file->file);
$class = ($S[1] > 500) ? ' class="overheight"' : '';
unset($S);
echo '<p id="media-original-image"'.$class.'><img src="'.$file->file_url.'?'.time()*rand().'" alt="" /></p>';
}
}
if ($file->type == 'audio/mpeg3')
@ -399,7 +400,7 @@ echo
if (empty($_GET['find_posts']))
{
echo
'<p><strong><a href="'.html::escapeHTML($page_url).'&amp;id='.$id.'&amp;find_posts=1&amp;tab=media-details-tab">'.
'<p><strong><a class="button" href="'.html::escapeHTML($page_url).'&amp;id='.$id.'&amp;find_posts=1&amp;tab=media-details-tab">'.
__('Show entries containing this media').'</a></strong></p>';
}
else
@ -485,6 +486,8 @@ if ($file->type == 'image/jpeg')
}
}
echo '</div>';
if ($file->editable && $core_media_writable)
{
if ($file->media_type == 'image')

View File

@ -3046,4 +3046,16 @@ msgid "You can also install themes by uploading or downloading zip files."
msgstr "Vous pouvez aussi installer des thèmes en les déposant ou en téléchargeant des fichiers zip."
msgid "Add themes to your installation"
msgstr "Ajouter des thèmes sur votre installation"
msgstr "Ajouter des thèmes sur votre installation"
msgid "Select this comment"
msgstr "Sélectionner ce commentaire"
msgid "Next page"
msgstr "Page suivante"
msgid "Previous page"
msgstr "Page précédente"
msgid "Add an introduction to the page."
msgstr "Ajoute une introduction à la page."

View File

@ -136,8 +136,8 @@ class dcFilterAkismet extends dcSpamFilter
$res =
'<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'.
'<p><label for="ak_key" class="classic">'.__('Akismet API key:').' '.
form::field('ak_key',12,128,$ak_key).'</label>';
'<p><label for="ak_key" class="classic">'.__('Akismet API key:').'</label> '.
form::field('ak_key',12,128,$ak_key);
if ($ak_verified !== null) {
if ($ak_verified) {

View File

@ -123,14 +123,15 @@ class dcFilterIP extends dcSpamFilter
'<div class="multi-part" id="tab_'.$type.'" title="'.$title.'">'.
'<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'.
'<p>'.
form::hidden(array('ip_type'),$type).
'<label class="classic" for="addip_'.$type.'">'.__('Add an IP address: ').' '.
form::field(array('addip', 'addip_'.$type),18,255).
'</label>';
if ($core->auth->isSuperAdmin()) {
$res .= '<label class="classic" for="globalip_'.$type.'">'.form::checkbox(array('globalip', 'globalip_'.$type),1).' '.
__('Global IP (used for all blogs)').'</label> ';
}
'<label class="classic" for="addip_'.$type.'">'.__('Add an IP address: ').'</label> '.
form::field(array('addip', 'addip_'.$type),18,255);
if ($core->auth->isSuperAdmin()) {
$res .= '<label class="classic" for="globalip_'.$type.'">'.form::checkbox(array('globalip', 'globalip_'.$type),1).' '.
__('Global IP (used for all blogs)').'</label> ';
}
$res .=
$core->formNonce().

View File

@ -83,10 +83,10 @@ class dcFilterIpLookup extends dcSpamFilter
$res .=
'<form action="'.html::escapeURL($url).'" method="post">'.
'<fieldset><legend>' . __('IP Lookup servers') . '</legend>'.
'<p><label for="bls">'.__('Add here a coma separated list of servers.').
'<p><label for="bls">'.__('Add here a coma separated list of servers.').'</label>'.
form::textarea('bls',40,3,html::escapeHTML($bls),'maximal').
'</p>'.
'<p><input type="submit" value="'.__('Save').'" /></label></p>'.
'<p><input type="submit" value="'.__('Save').'" /></p>'.
$this->core->formNonce().'</p>'.
'</fieldset>'.
'</form>';

View File

@ -119,11 +119,11 @@ class dcFilterWords extends dcSpamFilter
$res .=
'<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'.
'<p><label class="classic" for="swa">'.__('Add a word ').' '.form::field('swa',20,128).'</label>';
'<p><label class="classic" for="swa">'.__('Add a word ').'</label> '.form::field('swa',20,128);
if ($core->auth->isSuperAdmin()) {
$res .= '<label class="classic" for="globalsw">'.form::checkbox('globalsw',1).' '.
__('Global word (used for all blogs)').'</label> ';
$res .= '<label class="classic" for="globalsw">'.form::checkbox('globalsw',1).'</label> '.
__('Global word (used for all blogs)');
}
$res .=

View File

@ -102,7 +102,7 @@ if (isset($rs) && $rs->is_cat && !empty($_POST['edit_cat']))
));
?>
<?php echo '<p><a href="'.$p_url.'">'.__('Return to blogroll').'</a></p>'; ?>
<?php echo '<p><a class="back" href="'.$p_url.'">'.__('Return to blogroll').'</a></p>'; ?>
<?php
if (isset($rs) && $rs->is_cat)
@ -113,16 +113,15 @@ if (isset($rs) && $rs->is_cat)
echo
'<form action="'.$p_url.'" method="post">'.
'<fieldset><legend>'.__('Edit category').'</legend>'.
'<h3>'.__('Edit category').'</h3>'.
'<p><label for="link_desc" class="required classic"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '.
form::field('link_desc',30,255,html::escapeHTML($link_desc)).'</label> '.
'<p><label for="link_desc" class="required classic"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '.
form::field('link_desc',30,255,html::escapeHTML($link_desc)).
form::hidden('edit',1).
form::hidden('id',$id).
$core->formNonce().
'<input type="submit" name="edit_cat" value="'.__('Save').'"/></p>'.
'</fieldset>'.
'</form>';
}
if (isset($rs) && !$rs->is_cat)
@ -132,41 +131,40 @@ if (isset($rs) && !$rs->is_cat)
}
echo
'<form action="plugin.php" method="post">'.
'<fieldset class="two-cols"><legend>'.__('Edit link').'</legend>'.
'<form action="plugin.php" method="post" class="two-cols">'.
'<div class="col30 first-col">'.
'<div class="fieldset">'.
'<h3>'.__('Edit link').'</h3>'.
'<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '.
form::field('link_title',30,255,html::escapeHTML($link_title)).'</label></p>'.
'<p><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '.
form::field('link_title',30,255,html::escapeHTML($link_title)).'</p>'.
'<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').' '.
form::field('link_href',30,255,html::escapeHTML($link_href)).'</label></p>'.
'<p><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '.
form::field('link_href',30,255,html::escapeHTML($link_href)).'</p>'.
'<p class="col"><label for="link_desc">'.__('Description:').' '.
form::field('link_desc',30,255,html::escapeHTML($link_desc)).'</label></p>'.
'<p><label for="link_desc">'.__('Description:').'</label> '.
form::field('link_desc',30,255,html::escapeHTML($link_desc)).'</p>'.
'<p class="col"><label for="link_lang">'.__('Language:').' '.
form::field('link_lang',5,5,html::escapeHTML($link_lang)).'</label></p>'.
'<p>'.form::hidden('p','blogroll').
form::hidden('edit',1).
form::hidden('id',$id).
$core->formNonce().
'<input type="submit" name="edit_link" value="'.__('Save').'"/></p>'.
'</fieldset>'.
'<p><label for="link_lang">'.__('Language:').'</label> '.
form::field('link_lang',5,5,html::escapeHTML($link_lang)).'</p>'.
'</div>'.
'</div>'.
# XFN nightmare
'<fieldset><legend>'.__('XFN').'</legend>'.
'<div class="col70 last-col">'.
'<h3>'.__('XFN informations').'</h3>'.
'<table class="noborder">'.
'<tr>'.
'<tr class="line">'.
'<th>'.__('_xfn_Me').'</th>'.
'<td><p>'.'<label class="classic">'.
form::checkbox(array('identity'), 'me', ($link_xfn == 'me')).' '.
__('_xfn_Another link for myself').'</label></p></td>'.
'</tr>'.
'<tr>'.
'<tr class="line">'.
'<th>'.__('_xfn_Friendship').'</th>'.
'<td><p>'.
'<label class="classic">'.form::radio(array('friendship'),'contact',
@ -179,7 +177,7 @@ if (isset($rs) && !$rs->is_cat)
'</p></td>'.
'</tr>'.
'<tr>'.
'<tr class="line">'.
'<th>'.__('_xfn_Physical').'</th>'.
'<td><p>'.
'<label class="classic">'.form::checkbox(array('physical'),'met',
@ -187,7 +185,7 @@ if (isset($rs) && !$rs->is_cat)
'</p></td>'.
'</tr>'.
'<tr>'.
'<tr class="line">'.
'<th>'.__('_xfn_Professional').'</th>'.
'<td><p>'.
'<label class="classic">'.form::checkbox(array('professional[]'),'co-worker',
@ -197,7 +195,7 @@ if (isset($rs) && !$rs->is_cat)
'</p></td>'.
'</tr>'.
'<tr>'.
'<tr class="line">'.
'<th>'.__('_xfn_Geographical').'</th>'.
'<td><p>'.
'<label class="classic">'.form::radio(array('geographical'),'co-resident',
@ -208,7 +206,7 @@ if (isset($rs) && !$rs->is_cat)
'</p></td>'.
'</tr>'.
'<tr>'.
'<tr class="line">'.
'<th>'.__('_xfn_Family').'</th>'.
'<td><p>'.
'<label class="classic">'.form::radio(array('family'),'child',
@ -225,7 +223,7 @@ if (isset($rs) && !$rs->is_cat)
'</p></td>'.
'</tr>'.
'<tr>'.
'<tr class="line">'.
'<th>'.__('_xfn_Romantic').'</th>'.
'<td><p>'.
'<label class="classic">'.form::checkbox(array('romantic[]'),'muse',
@ -240,7 +238,12 @@ if (isset($rs) && !$rs->is_cat)
'</tr>'.
'</table>'.
'</fieldset>'.
'</div>'.
'<p class="clear">'.form::hidden('p','blogroll').
form::hidden('edit',1).
form::hidden('id',$id).
$core->formNonce().
'<input type="submit" name="edit_link" value="'.__('Save').'"/></p>'.
'</form>';
}

View File

@ -276,39 +276,37 @@ while ($rs->fetch())
echo
'<div class="multi-part clear" id="add-link" title="'.__('Add a link').'">'.
'<form action="plugin.php" method="post" id="add-link-form">'.
'<fieldset><legend>'.__('Add a new link').'</legend>'.
'<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '.
'<h3>'.__('Add a new link').'</h3>'.
'<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '.
form::field('link_title',30,255,$link_title).
'</label></p>'.
'</p>'.
'<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').' '.
'<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '.
form::field('link_href',30,255,$link_href).
'</label></p>'.
'</p>'.
'<p class="col"><label for="link_desc">'.__('Description:').' '.
'<p class="col"><label for="link_desc">'.__('Description:').'</label> '.
form::field('link_desc',30,255,$link_desc).
'</label></p>'.
'</p>'.
'<p class="col"><label for="link_lang">'.__('Language:').' '.
'<p class="col"><label for="link_lang">'.__('Language:').'</label> '.
form::field('link_lang',5,5,$link_lang).
'</label></p>'.
'</p>'.
'<p>'.form::hidden(array('p'),'blogroll').
$core->formNonce().
'<input type="submit" name="add_link" value="'.__('Save').'" /></p>'.
'</fieldset>'.
'</form>'.
'</div>';
echo
'<div class="multi-part" id="add-cat" title="'.__('Add a category').'">'.
'<form action="plugin.php" method="post" id="add-category-form">'.
'<fieldset><legend>'.__('Add a new category').'</legend>'.
'<p><label for="cat_title" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '.
form::field('cat_title',30,255,$cat_title).'</label> '.
'<h3>'.__('Add a new category').'</h3>'.
'<p><label for="cat_title" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '.
form::field('cat_title',30,255,$cat_title).' '.
form::hidden(array('p'),'blogroll').
$core->formNonce().
'<input type="submit" name="add_cat" value="'.__('Save').'" /></p>'.
'</fieldset>'.
'</form>'.
'</div>';
@ -317,19 +315,18 @@ echo
if (!isset($imported)) {
echo
'<form action="plugin.php" method="post" id="import-links-form" enctype="multipart/form-data">'.
'<fieldset><legend>'.__('Import links').'</legend>'.
'<p><label for="links_file" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('OPML or XBEL File:').' '.
'<input type="file" id="links_file" name="links_file" /></label></p>'.
'<h3>'.__('Import links').'</h3>'.
'<p><label for="links_file" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('OPML or XBEL File:').'</label> '.
'<input type="file" id="links_file" name="links_file" /></p>'.
'<p>'.form::hidden(array('p'),'blogroll').
$core->formNonce().
'<input type="submit" name="import_links" value="'.__('Import').'" /></p>'.
'</fieldset>'.
'</form>';
}
else {
echo
'<form action="plugin.php" method="post" id="import-links-form">'.
'<fieldset><legend>'.__('Import links').'</legend>';
'<h3>'.__('Import links').'</h3>';
if (empty($imported)) {
echo '<p>'.__('Nothing to import').'</p>';
}
@ -370,7 +367,6 @@ else {
'</div>';
}
echo
'</fieldset>'.
'</form>';
}
echo '</div>';

View File

@ -252,64 +252,64 @@ echo '<fieldset><legend>'.__('General').'</legend>';
if ($can_write_images) {
echo
'<p class="field"><label for="body_bg_c">'.__('Background color:').' '.
form::field('body_bg_c',7,7,$blowup_user['body_bg_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="body_bg_c">'.__('Background color:').'</label> '.
form::field('body_bg_c',7,7,$blowup_user['body_bg_c'],'colorpicker').'</p>'.
'<p class="field"><label for="body_bg_g">'.__('Background color fill:').' '.
form::combo('body_bg_g',$gradient_types,$blowup_user['body_bg_g']).'</label></p>';
'<p class="field"><label for="body_bg_g">'.__('Background color fill:').'</label> '.
form::combo('body_bg_g',$gradient_types,$blowup_user['body_bg_g']).'</p>';
}
echo
'<p class="field"><label for="body_txt_f">'.__('Main text font:').' '.
form::combo('body_txt_f',blowupConfig::fontsList(),$blowup_user['body_txt_f']).'</label></p>'.
'<p class="field"><label for="body_txt_f">'.__('Main text font:').'</label> '.
form::combo('body_txt_f',blowupConfig::fontsList(),$blowup_user['body_txt_f']).'</p>'.
'<p class="field"><label for="body_txt_s">'.__('Main text font size:').' '.
form::field('body_txt_s',7,7,$blowup_user['body_txt_s']).'</label></p>'.
'<p class="field"><label for="body_txt_s">'.__('Main text font size:').'</label> '.
form::field('body_txt_s',7,7,$blowup_user['body_txt_s']).'</p>'.
'<p class="field"><label for="body_txt_c">'.__('Main text color:').' '.
form::field('body_txt_c',7,7,$blowup_user['body_txt_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="body_txt_c">'.__('Main text color:').'</label> '.
form::field('body_txt_c',7,7,$blowup_user['body_txt_c'],'colorpicker').'</p>'.
'<p class="field"><label for="body_line_height">'.__('Text line height:').' '.
form::field('body_line_height',7,7,$blowup_user['body_line_height']).'</label></p>'.
'<p class="field"><label for="body_line_height">'.__('Text line height:').'</label> '.
form::field('body_line_height',7,7,$blowup_user['body_line_height']).'</p>'.
'</fieldset>'.
'<fieldset><legend>'.__('Links').'</legend>'.
'<p class="field"><label for="body_link_c">'.__('Links color:').' '.
form::field('body_link_c',7,7,$blowup_user['body_link_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="body_link_c">'.__('Links color:').'</label> '.
form::field('body_link_c',7,7,$blowup_user['body_link_c'],'colorpicker').'</p>'.
'<p class="field"><label for="body_link_v_c">'.__('Visited links color:').' '.
form::field('body_link_v_c',7,7,$blowup_user['body_link_v_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="body_link_v_c">'.__('Visited links color:').'</label> '.
form::field('body_link_v_c',7,7,$blowup_user['body_link_v_c'],'colorpicker').'</p>'.
'<p class="field"><label for="body_link_f_c">'.__('Focus links color:').' '.
form::field('body_link_f_c',7,7,$blowup_user['body_link_f_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="body_link_f_c">'.__('Focus links color:').'</label> '.
form::field('body_link_f_c',7,7,$blowup_user['body_link_f_c'],'colorpicker').'</p>'.
'</fieldset>'.
'<fieldset><legend>'.__('Page top').'</legend>';
if ($can_write_images) {
echo
'<p class="field"><label for="prelude_c">'.__('Prelude color:').' '.
form::field('prelude_c',7,7,$blowup_user['prelude_c'],'colorpicker').'</label></p>';
'<p class="field"><label for="prelude_c">'.__('Prelude color:').'</label> '.
form::field('prelude_c',7,7,$blowup_user['prelude_c'],'colorpicker').'</p>';
}
echo
'<p class="field"><label for="blog_title_hide">'.__('Hide main title').' '.
form::checkbox('blog_title_hide',1,$blowup_user['blog_title_hide']).'</label></p>'.
'<p class="field"><label for="blog_title_f">'.__('Main title font:').' '.
form::combo('blog_title_f',blowupConfig::fontsList(),$blowup_user['blog_title_f']).'</label></p>'.
'<p class="field"><label for="blog_title_f">'.__('Main title font:').'</label> '.
form::combo('blog_title_f',blowupConfig::fontsList(),$blowup_user['blog_title_f']).'</p>'.
'<p class="field"><label for="blog_title_s">'.__('Main title font size:').' '.
form::field('blog_title_s',7,7,$blowup_user['blog_title_s']).'</label></p>'.
'<p class="field"><label for="blog_title_s">'.__('Main title font size:').'</label> '.
form::field('blog_title_s',7,7,$blowup_user['blog_title_s']).'</p>'.
'<p class="field"><label for="blog_title_c">'.__('Main title color:').' '.
form::field('blog_title_c',7,7,$blowup_user['blog_title_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="blog_title_c">'.__('Main title color:').'</label> '.
form::field('blog_title_c',7,7,$blowup_user['blog_title_c'],'colorpicker').'</p>'.
'<p class="field"><label for="blog_title_a">'.__('Main title alignment:').' '.
form::combo('blog_title_a',array(__('center')=>'center',__('left')=>'left',__('right')=>'right'),$blowup_user['blog_title_a']).'</label></p>'.
'<p class="field"><label for="blog_title_a">'.__('Main title alignment:').'</label> '.
form::combo('blog_title_a',array(__('center')=>'center',__('left')=>'left',__('right')=>'right'),$blowup_user['blog_title_a']).'</p>'.
'<p class="field"><label for="blog_title_p">'.__('Main title position (x:y)').' '.
form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</label></p>'.
'<p class="field"><label for="blog_title_p">'.__('Main title position (x:y)').'</label> '.
form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</p>'.
'</fieldset>';
if ($can_write_images) {
@ -321,14 +321,14 @@ if ($can_write_images) {
echo
'<fieldset><legend>'.__('Top image').'</legend>'.
'<p class="field"><label for="top_image">'.__('Top image').
form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</label></p>'.
'<p class="field"><label for="top_image">'.__('Top image').'</label> '.
form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</p>'.
'<p>'.__('Choose "Custom..." to upload your own image.').'</p>'.
'<p id="uploader"><label for="upfile">'.__('Add your image:').
'<p id="uploader"><label for="upfile">'.__('Add your image:').'</label> '.
' ('.sprintf(__('JPEG or PNG file, 800 pixels wide, maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'.
'<input type="file" name="upfile" id="upfile" size="35" />'.
'</label></p>'.
'</p>'.
'<h3>'.__('Preview').'</h3>'.
'<div class="grid" style="width:800px;border:1px solid #ccc;">'.
@ -339,111 +339,111 @@ if ($can_write_images) {
echo
'<fieldset><legend>'.__('Sidebar').'</legend>'.
'<p class="field"><label for="sidebar_position">'.__('Sidebar position:').' '.
form::combo('sidebar_position',array(__('right')=>'right',__('left')=>'left'),$blowup_user['sidebar_position']).'</label></p>'.
'<p class="field"><label for="sidebar_position">'.__('Sidebar position:').'</label> '.
form::combo('sidebar_position',array(__('right')=>'right',__('left')=>'left'),$blowup_user['sidebar_position']).'</p>'.
'<p class="field"><label for="sidebar_text_f">'.__('Sidebar text font:').' '.
form::combo('sidebar_text_f',blowupConfig::fontsList(),$blowup_user['sidebar_text_f']).'</label></p>'.
'<p class="field"><label for="sidebar_text_f">'.__('Sidebar text font:').'</label> '.
form::combo('sidebar_text_f',blowupConfig::fontsList(),$blowup_user['sidebar_text_f']).'</p>'.
'<p class="field"><label for="sidebar_text_s">'.__('Sidebar text font size:').' '.
form::field('sidebar_text_s',7,7,$blowup_user['sidebar_text_s']).'</label></p>'.
'<p class="field"><label for="sidebar_text_s">'.__('Sidebar text font size:').'</label> '.
form::field('sidebar_text_s',7,7,$blowup_user['sidebar_text_s']).'</p>'.
'<p class="field"><label for="sidebar_text_c">'.__('Sidebar text color:').' '.
form::field('sidebar_text_c',7,7,$blowup_user['sidebar_text_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="sidebar_text_c">'.__('Sidebar text color:').'</label> '.
form::field('sidebar_text_c',7,7,$blowup_user['sidebar_text_c'],'colorpicker').'</p>'.
'<p class="field"><label for="sidebar_title_f">'.__('Sidebar titles font:').' '.
form::combo('sidebar_title_f',blowupConfig::fontsList(),$blowup_user['sidebar_title_f']).'</label></p>'.
'<p class="field"><label for="sidebar_title_f">'.__('Sidebar titles font:').'</label> '.
form::combo('sidebar_title_f',blowupConfig::fontsList(),$blowup_user['sidebar_title_f']).'</p>'.
'<p class="field"><label for="sidebar_title_s">'.__('Sidebar titles font size:').' '.
form::field('sidebar_title_s',7,7,$blowup_user['sidebar_title_s']).'</label></p>'.
'<p class="field"><label for="sidebar_title_s">'.__('Sidebar titles font size:').'</label> '.
form::field('sidebar_title_s',7,7,$blowup_user['sidebar_title_s']).'</p>'.
'<p class="field"><label for="sidebar_title_c">'.__('Sidebar titles color:').' '.
form::field('sidebar_title_c',7,7,$blowup_user['sidebar_title_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="sidebar_title_c">'.__('Sidebar titles color:').'</label> '.
form::field('sidebar_title_c',7,7,$blowup_user['sidebar_title_c'],'colorpicker').'</p>'.
'<p class="field"><label for="sidebar_title2_f">'.__('Sidebar 2nd level titles font:').' '.
form::combo('sidebar_title2_f',blowupConfig::fontsList(),$blowup_user['sidebar_title2_f']).'</label></p>'.
'<p class="field"><label for="sidebar_title2_f">'.__('Sidebar 2nd level titles font:').'</label> '.
form::combo('sidebar_title2_f',blowupConfig::fontsList(),$blowup_user['sidebar_title2_f']).'</p>'.
'<p class="field"><label for="sidebar_title2_s">'.__('Sidebar 2nd level titles font size:').' '.
form::field('sidebar_title2_s',7,7,$blowup_user['sidebar_title2_s']).'</label></p>'.
'<p class="field"><label for="sidebar_title2_s">'.__('Sidebar 2nd level titles font size:').'</label> '.
form::field('sidebar_title2_s',7,7,$blowup_user['sidebar_title2_s']).'</p>'.
'<p class="field"><label for="sidebar_title2_c">'.__('Sidebar 2nd level titles color:').' '.
form::field('sidebar_title2_c',7,7,$blowup_user['sidebar_title2_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="sidebar_title2_c">'.__('Sidebar 2nd level titles color:').'</label> '.
form::field('sidebar_title2_c',7,7,$blowup_user['sidebar_title2_c'],'colorpicker').'</p>'.
'<p class="field"><label for="sidebar_line_c">'.__('Sidebar lines color:').' '.
form::field('sidebar_line_c',7,7,$blowup_user['sidebar_line_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="sidebar_line_c">'.__('Sidebar lines color:').'</label> '.
form::field('sidebar_line_c',7,7,$blowup_user['sidebar_line_c'],'colorpicker').'</p>'.
'<p class="field"><label for="sidebar_link_c">'.__('Sidebar links color:').' '.
form::field('sidebar_link_c',7,7,$blowup_user['sidebar_link_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="sidebar_link_c">'.__('Sidebar links color:').'</label> '.
form::field('sidebar_link_c',7,7,$blowup_user['sidebar_link_c'],'colorpicker').'</p>'.
'<p class="field"><label for="sidebar_link_v_c">'.__('Sidebar visited links color:').' '.
form::field('sidebar_link_v_c',7,7,$blowup_user['sidebar_link_v_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="sidebar_link_v_c">'.__('Sidebar visited links color:').'</label> '.
form::field('sidebar_link_v_c',7,7,$blowup_user['sidebar_link_v_c'],'colorpicker').'</p>'.
'<p class="field"><label for="sidebar_link_f_c">'.__('Sidebar focus links color:').' '.
form::field('sidebar_link_f_c',7,7,$blowup_user['sidebar_link_f_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="sidebar_link_f_c">'.__('Sidebar focus links color:').'</label> '.
form::field('sidebar_link_f_c',7,7,$blowup_user['sidebar_link_f_c'],'colorpicker').'</p>'.
'</fieldset>'.
'<fieldset><legend>'.__('Entries').'</legend>'.
'<p class="field"><label for="date_title_f">'.__('Date title font:').' '.
form::combo('date_title_f',blowupConfig::fontsList(),$blowup_user['date_title_f']).'</label></p>'.
'<p class="field"><label for="date_title_f">'.__('Date title font:').'</label> '.
form::combo('date_title_f',blowupConfig::fontsList(),$blowup_user['date_title_f']).'</p>'.
'<p class="field"><label for="date_title_s">'.__('Date title font size:').' '.
form::field('date_title_s',7,7,$blowup_user['date_title_s']).'</label></p>'.
'<p class="field"><label for="date_title_s">'.__('Date title font size:').'</label> '.
form::field('date_title_s',7,7,$blowup_user['date_title_s']).'</p>'.
'<p class="field"><label for="date_title_c">'.__('Date title color:').' '.
form::field('date_title_c',7,7,$blowup_user['date_title_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="date_title_c">'.__('Date title color:').'</label> '.
form::field('date_title_c',7,7,$blowup_user['date_title_c'],'colorpicker').'</p>'.
'<p class="field"><label for="post_title_f">'.__('Entry title font:').' '.
form::combo('post_title_f',blowupConfig::fontsList(),$blowup_user['post_title_f']).'</label></p>'.
'<p class="field"><label for="post_title_f">'.__('Entry title font:').'</label> '.
form::combo('post_title_f',blowupConfig::fontsList(),$blowup_user['post_title_f']).'</p>'.
'<p class="field"><label for="post_title_s">'.__('Entry title font size:').' '.
form::field('post_title_s',7,7,$blowup_user['post_title_s']).'</label></p>'.
'<p class="field"><label for="post_title_s">'.__('Entry title font size:').'</label> '.
form::field('post_title_s',7,7,$blowup_user['post_title_s']).'</p>'.
'<p class="field"><label for="post_title_c">'.__('Entry title color:').' '.
form::field('post_title_c',7,7,$blowup_user['post_title_c'],'colorpicker').'</label></p>';
'<p class="field"><label for="post_title_c">'.__('Entry title color:').'</label> '.
form::field('post_title_c',7,7,$blowup_user['post_title_c'],'colorpicker').'</p>';
if ($can_write_images) {
echo
'<p class="field"><label for="post_comment_bg_c">'.__('Comment background color:').' '.
form::field('post_comment_bg_c',7,7,$blowup_user['post_comment_bg_c'],'colorpicker').'</label></p>';
'<p class="field"><label for="post_comment_bg_c">'.__('Comment background color:').'</label> '.
form::field('post_comment_bg_c',7,7,$blowup_user['post_comment_bg_c'],'colorpicker').'</p>';
}
echo
'<p class="field"><label for="post_comment_c">'.__('Comment text color:').' '.
form::field('post_comment_c',7,7,$blowup_user['post_comment_c'],'colorpicker').'</label></p>';
'<p class="field"><label for="post_comment_c">'.__('Comment text color:').'</label> '.
form::field('post_comment_c',7,7,$blowup_user['post_comment_c'],'colorpicker').'</p>';
if ($can_write_images) {
echo
'<p class="field"><label for="post_commentmy_bg_c">'.__('My comment background color:').' '.
form::field('post_commentmy_bg_c',7,7,$blowup_user['post_commentmy_bg_c'],'colorpicker').'</label></p>';
'<p class="field"><label for="post_commentmy_bg_c">'.__('My comment background color:').'</label> '.
form::field('post_commentmy_bg_c',7,7,$blowup_user['post_commentmy_bg_c'],'colorpicker').'</p>';
}
echo
'<p class="field"><label for="post_commentmy_c">'.__('My comment text color:').' '.
form::field('post_commentmy_c',7,7,$blowup_user['post_commentmy_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="post_commentmy_c">'.__('My comment text color:').'</label> '.
form::field('post_commentmy_c',7,7,$blowup_user['post_commentmy_c'],'colorpicker').'</p>'.
'</fieldset>'.
'<fieldset><legend>'.__('Footer').'</legend>'.
'<p class="field"><label for="footer_f">'.__('Footer font:').' '.
form::combo('footer_f',blowupConfig::fontsList(),$blowup_user['footer_f']).'</label></p>'.
'<p class="field"><label for="footer_f">'.__('Footer font:').'</label> '.
form::combo('footer_f',blowupConfig::fontsList(),$blowup_user['footer_f']).'</p>'.
'<p class="field"><label for="footer_s">'.__('Footer font size:').' '.
form::field('footer_s',7,7,$blowup_user['footer_s']).'</label></p>'.
'<p class="field"><label for="footer_s">'.__('Footer font size:').'</label> '.
form::field('footer_s',7,7,$blowup_user['footer_s']).'</p>'.
'<p class="field"><label for="footer_c">'.__('Footer color:').' '.
form::field('footer_c',7,7,$blowup_user['footer_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="footer_c">'.__('Footer color:').'</label> '.
form::field('footer_c',7,7,$blowup_user['footer_c'],'colorpicker').'</p>'.
'<p class="field"><label for="footer_l_c">'.__('Footer links color:').' '.
form::field('footer_l_c',7,7,$blowup_user['footer_l_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="footer_l_c">'.__('Footer links color:').'</label> '.
form::field('footer_l_c',7,7,$blowup_user['footer_l_c'],'colorpicker').'</p>'.
'<p class="field"><label for="footer_bg_c">'.__('Footer background color:').' '.
form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</label></p>'.
'<p class="field"><label for="footer_bg_c">'.__('Footer background color:').'</label> '.
form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</p>'.
'</fieldset>';
echo
'<fieldset><legend>'.__('Additional CSS').'</legend>'.
'<p><label for="extra_css">'.__('Any additional CSS styles (must be written using the CSS syntax):').' '.
'<p><label for="extra_css">'.__('Any additional CSS styles (must be written using the CSS syntax):').'</label> '.
form::textarea('extra_css',72,5,html::escapeHTML($blowup_user['extra_css']),'maximal','',false,'title="'.__('Additional CSS').'"').
'</label></p>'.
'</p>'.
'</fieldset>';

View File

@ -301,9 +301,8 @@ echo
'</legend>'.
'<form method="get" action="'.$p_url.'">'.
'<p>'.form::hidden('p','daInstaller').
'<label for="q" class="classic">'.__('Query:').'&nbsp; '.
'<label for="q" class="classic">'.__('Query:').'&nbsp;</label> '.
form::field('q',30,255,html::escapeHTML($q)).
'</label> '.
'<label for="mode" class="classic">'.
form::radio(array('mode','mode'),'plugins',$mode == 'plugins').
' '.__('Plugins').'&nbsp;</label> '.

View File

@ -149,20 +149,20 @@ class dcImportDC1 extends dcIeModule
'<p>'.__('Depending on the size of your blog, it could take a few minutes.').'</p>';
printf($this->imForm(1,__('General information'),__('Import my blog now')),
'<h3>'.__('We first need some information about your old Dotclear 1.2 installation.').'</h3>'.
'<p><label for="db_host">'.__('Database Host Name:').' '.
form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</label></p>'.
'<p><label for="db_name">'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).' '.
form::field('db_name',30,255,html::escapeHTML($this->vars['db_name'])).'</label></p>'.
'<p><label for="db_user">'.__('Database User Name:').' '.
form::field('db_user',30,255,html::escapeHTML($this->vars['db_user'])).'</label></p>'.
'<p><label for="db_pwd">'.__('Database Password:').' '.
form::password('db_pwd',30,255).'</label></p>'.
'<p><label for="db_prefix">'.__('Database Tables Prefix:').' '.
form::field('db_prefix',30,255,html::escapeHTML($this->vars['db_prefix'])).'</label></p>'.
'<p class="form-note info">'.__('We first need some information about your old Dotclear 1.2 installation.').'</p>'.
'<p><label for="db_host">'.__('Database Host Name:').'</label> '.
form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</p>'.
'<p><label for="db_name">'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).'</label> '.
form::field('db_name',30,255,html::escapeHTML($this->vars['db_name'])).'</p>'.
'<p><label for="db_user">'.__('Database User Name:').'</label> '.
form::field('db_user',30,255,html::escapeHTML($this->vars['db_user'])).'</p>'.
'<p><label for="db_pwd">'.__('Database Password:').'</label> '.
form::password('db_pwd',30,255).'</p>'.
'<p><label for="db_prefix">'.__('Database Tables Prefix:').'</label> '.
form::field('db_prefix',30,255,html::escapeHTML($this->vars['db_prefix'])).'</p>'.
'<h3>'.__('Entries import options').'</h3>'.
'<p><label for="post_limit">'.__('Number of entries to import at once:').' '.
form::field('post_limit',3,3,html::escapeHTML($this->vars['post_limit'])).'</label></p>'
'<p><label for="post_limit">'.__('Number of entries to import at once:').'</label> '.
form::field('post_limit',3,3,html::escapeHTML($this->vars['post_limit'])).'</p>'
);
break;
case 2:

View File

@ -190,9 +190,9 @@ class dcImportFlat extends dcIeModule
if ($has_files) {
echo
'<p><label for="public_single_file" class="classic">'.__('or pick up a local file in your public directory').' '.
'<p><label for="public_single_file" class="classic">'.__('or pick up a local file in your public directory').'</label> '.
form::combo('public_single_file',$public_files).
'</label></p>';
'</p>';
}
echo

View File

@ -181,16 +181,17 @@ class dcImportWP extends dcIeModule
printf($this->imForm(1,__('General information'),__('Import my blog now')),
'<h3>'.__('We first need some information about your old WordPress installation.').'</h3>'.
'<p><label for="db_host">'.__('Database Host Name:').' '.
form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</label></p>'.
'<p><label for="db_name">'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).' '.
form::field('db_name',30,255,html::escapeHTML($this->vars['db_name'])).'</label></p>'.
'<p><label for="db_user">'.__('Database User Name:').' '.
form::field('db_user',30,255,html::escapeHTML($this->vars['db_user'])).'</label></p>'.
'<p><label for="db_pwd">'.__('Database Password:').' '.
form::password('db_pwd',30,255).'</label></p>'.
'<p><label for="db_prefix">'.__('Database Tables Prefix:').' '.
form::field('db_prefix',30,255,html::escapeHTML($this->vars['db_prefix'])).'</label></p>'.
'<p><label for="db_host">'.__('Database Host Name:').'</label> '.
form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</p>'.
'<p><label for="db_name">'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).'</label> '.
form::field('db_name',30,255,html::escapeHTML($this->vars['db_name'])).'</p>'.
'<p><label for="db_user">'.__('Database User Name:').'</label> '.
form::field('db_user',30,255,html::escapeHTML($this->vars['db_user'])).'</p>'.
'<p><label for="db_pwd">'.__('Database Password:').'</label> '.
form::password('db_pwd',30,255).'</p>'.
'<p><label for="db_prefix">'.__('Database Tables Prefix:').'</label> '.
form::field('db_prefix',30,255,html::escapeHTML($this->vars['db_prefix'])).'</p>'.
'<h3>'.__('Entries import options').'</h3>'.
'<p>'.__('WordPress and Dotclear\'s handling of categories are quite different. '.
'You can assign several categories to a single post in WordPress. In the Dotclear world, '.
@ -201,21 +202,24 @@ class dcImportWP extends dcIeModule
'installation has a first category labelised <i>"Uncategorized"</i>. If you did not change that '.
'category, you can just ignore it while importing your blog, as Dotclear allows you to '.
'actually keep your posts uncategorized.').'</p>'.
'<p><label for="ignore_first_cat" class="classic">'.form::checkbox('ignore_first_cat',1,$this->vars['ignore_first_cat']).' '.
__('Ignore the first category:').'</label></p>'.
'<p><label for="cat_import" class="classic">'.form::checkbox('cat_import',1,$this->vars['cat_import']).' '.
__('Import lowest numbered category on posts:').'</label></p>'.
'<p><label for="cat_as_tags" class="classic">'.form::checkbox('cat_as_tags',1,$this->vars['cat_as_tags']).' '.
__('Import all categories as tags:').'</label></p>'.
'<p><label for="cat_tags_prefix">'.__('Prefix such tags with:').' '.
form::field('cat_tags_prefix',10,20,html::escapeHTML($this->vars['cat_tags_prefix'])).'</label></p>'.
'<p><label for="post_limit">'.__('Number of entries to import at once:').' '.
form::field('post_limit',3,3,html::escapeHTML($this->vars['post_limit'])).'</label></p>'.
'<p><label for="cat_tags_prefix">'.__('Prefix such tags with:').'</label> '.
form::field('cat_tags_prefix',10,20,html::escapeHTML($this->vars['cat_tags_prefix'])).'</p>'.
'<p><label for="post_limit">'.__('Number of entries to import at once:').'</label> '.
form::field('post_limit',3,3,html::escapeHTML($this->vars['post_limit'])).'</p>'.
'<h3>'.__('Content filters').'</h3>'.
'<p>'.__('You may want to process your post and/or comment content with the following filters.').'</p>'.
'<p><label for="post_formater">'.__('Post content formatter:').' '.form::combo('post_formater',$this->formaters,$this->vars['post_formater']).'</label></p>'.
'<p><label for="comment_formater">'.__('Comment content formatter:').' '.form::combo('comment_formater',$this->formaters,$this->vars['comment_formater']).'</label></p>'
'<p><label for="post_formater">'.__('Post content formatter:').'</label> '.
form::combo('post_formater',$this->formaters,$this->vars['post_formater']).'</p>'.
'<p><label for="comment_formater">'.__('Comment content formatter:').'</label> '
.form::combo('comment_formater',$this->formaters,$this->vars['comment_formater']).'</label></p>'
);
break;
case 2:

View File

@ -123,14 +123,14 @@ if (!empty($_REQUEST['id']))
if ($next_rs !== null) {
$next_link = sprintf($post_link,$next_rs->post_id,
html::escapeHTML($next_rs->post_title),__('next page').'&nbsp;&#187;');
html::escapeHTML($next_rs->post_title),__('Next page').'&nbsp;&#187;');
$next_headlink = sprintf($post_headlink,'next',
html::escapeHTML($next_rs->post_title),$next_rs->post_id);
}
if ($prev_rs !== null) {
$prev_link = sprintf($post_link,$prev_rs->post_id,
html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('previous page'));
html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('Previous page'));
$prev_headlink = sprintf($post_headlink,'previous',
html::escapeHTML($prev_rs->post_title),$prev_rs->post_id);
}
@ -317,16 +317,16 @@ if (!empty($_GET['co'])) {
if ($post_id) {
switch ($post_status) {
case 1:
$img_status = sprintf($img_status_pattern,__('published'),'check-on.png');
$img_status = sprintf($img_status_pattern,__('Published'),'check-on.png');
break;
case 0:
$img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png');
$img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png');
break;
case -1:
$img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png');
$img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png');
break;
case -2:
$img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png');
$img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png');
break;
default:
$img_status = '';
@ -366,7 +366,7 @@ if (!empty($_GET['xconv']))
}
if ($post_id && $post->post_status == 1) {
echo '<p><a class="preview_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';
echo '<p><a class="onblog_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';
}
echo '';
@ -402,11 +402,12 @@ if ($can_edit_page)
echo '<div id="entry-content"><div class="constrained">';
echo
'<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').
'<p class="col"><label for="post_title" class="required no-margin"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'.
form::field('post_title',20,255,html::escapeHTML($post_title),'maximal').
'</label></p>'.
'</p>'.
'<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '.
'<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').
'<span class="form-note">'.__('Add an introduction to the page.').'</span></label> '.
form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)).
'</p>'.
@ -416,7 +417,8 @@ if ($can_edit_page)
'</p>';
echo
'<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'.
'<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').
'<span class="form-note">'.__('Add unpublished notes.').'</span></label>'.
form::textarea('post_notes',50,5,html::escapeHTML($post_notes)).
'</p>';
@ -424,7 +426,7 @@ if ($can_edit_page)
$core->callBehavior('adminPageForm',isset($post) ? $post : null);
echo
'<p>'.
'<p class="border-top">'.
($post_id ? form::hidden('id',$post_id) : '').
'<input type="submit" value="'.__('Save').' (s)" '.
'accesskey="s" name="save" /> ';
@ -452,17 +454,17 @@ if ($can_edit_page)
echo '<div id="entry-sidebar">';
echo
'<p><label for="post_status">'.__('Page status:').
'<p><label for="post_status">'.__('Page status:').'</label> '.
form::combo('post_status',$status_combo,$post_status,'','',!$can_publish).
'</label></p>'.
'</p>'.
'<p><label for="post_dt">'.__('Published on:').
form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')).'</label></p>'.
'<p><label for="post_dt">'.__('Published on:').'</label>'.
form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')).'</p>'.
'<p><label for="post_format">'.__('Text formating:').
'<p><label for="post_format">'.__('Text formating:').'</label>'.
form::combo('post_format',$formaters_combo,$post_format).
($post_id && $post_format != 'xhtml' ? '<a href="'.html::escapeURL($redir_url).'&amp;id='.$post_id.'&amp;xconv=1">'.__('Convert to XHTML').'</a>' : '').
'</label></p>'.
($post_id && $post_format != 'xhtml' ? '<a class="button" href="'.html::escapeURL($redir_url).'&amp;id='.$post_id.'&amp;xconv=1">'.__('Convert to XHTML').'</a>' : '').
'</p>'.
'<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '.
__('Accept comments').'</label></p>'.
@ -486,21 +488,21 @@ if ($can_edit_page)
__('If checked this page will be active but not listed in widget Pages.').
'</p>'.
'<p><label for="post_position" class="classic">'.__('Page position:').' '.
'<p><label for="post_position" class="classic">'.__('Page position:').'</label> '.
form::field('post_position',3,3,(string) $post_position).
'</label></p>'.
'</p>'.
'<p><label for="post_lang">'.__('Page lang:').
form::combo('post_lang',$lang_combo,$post_lang).'</label></p>'.
'<p><label for="post_lang">'.__('Page lang:').'</label>'.
form::combo('post_lang',$lang_combo,$post_lang).'</p>'.
'<p><label for="post_password">'.__('Page password:').
'<p><label for="post_password">'.__('Page password:').'</label>'.
form::field('post_password',10,32,html::escapeHTML($post_password),'maximal').
'</label></p>'.
'</p>'.
'<div class="lockable">'.
'<p><label for="post_url">'.__('Basename:').
'<p><label for="post_url">'.__('Basename:').'</label>'.
form::field('post_url',10,255,html::escapeHTML($post_url),'maximal').
'</label></p>'.
'</p>'.
'<p class="form-note warn">'.
__('Warning: If you set the URL manually, it may conflict with another page.').
'</p>'.
@ -529,7 +531,7 @@ if ($can_edit_page)
'<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '.
'href="post_media.php?post_id='.$post_id.'&amp;media_id='.$f->media_id.'&amp;remove=1">'.
'<img src="images/check-off.png" alt="'.__('remove').'" /></a>'.
'<img src="images/check-off.png" alt="'.__('Remove').'" /></a>'.
'</li>'.
'</ul>'.
@ -540,7 +542,7 @@ if ($can_edit_page)
if (empty($post_media)) {
echo '<p>'.__('No attachment.').'</p>';
}
echo '<p><a href="media.php?post_id='.$post_id.'">'.__('Add files to this page').'</a></p>';
echo '<p><a class="button" href="media.php?post_id='.$post_id.'">'.__('Add files to this page').'</a></p>';
}
# --BEHAVIOR-- adminPageFormSidebar
@ -576,10 +578,10 @@ if ($post_id)
$combo_action = array();
if ($can_edit_page && $core->auth->check('publish,contentadmin',$core->blog->id))
{
$combo_action[__('publish')] = 'publish';
$combo_action[__('unpublish')] = 'unpublish';
$combo_action[__('mark as pending')] = 'pending';
$combo_action[__('mark as junk')] = 'junk';
$combo_action[__('Publish')] = 'publish';
$combo_action[__('Unpublish')] = 'unpublish';
$combo_action[__('Mark as pending')] = 'pending';
$combo_action[__('Mark as junk')] = 'junk';
}
if ($can_edit_page && $core->auth->check('delete,contentadmin',$core->blog->id))
@ -638,17 +640,17 @@ if ($post_id)
'<form action="comment.php" method="post" id="comment-form">'.
'<div class="constrained">'.
'<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').
'<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'.
form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))).
'</label></p>'.
'</p>'.
'<p><label for="comment_email">'.__('Email:').
'<p><label for="comment_email">'.__('Email:').'</label>'.
form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))).
'</label></p>'.
'</p>'.
'<p><label for="comment_site">'.__('Web site:').
'<p><label for="comment_site">'.__('Web site:').'</label>'.
form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))).
'</label></p>'.
'</p>'.
'<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Comment:').'</label> '.
form::textarea('comment_content',50,8,html::escapeHTML('')).
@ -703,16 +705,16 @@ function showComments($rs,$has_action)
$img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />';
switch ($rs->comment_status) {
case 1:
$img_status = sprintf($img,__('published'),'check-on.png');
$img_status = sprintf($img,__('Published'),'check-on.png');
break;
case 0:
$img_status = sprintf($img,__('unpublished'),'check-off.png');
$img_status = sprintf($img,__('Unpublished'),'check-off.png');
break;
case -1:
$img_status = sprintf($img,__('pending'),'check-wrn.png');
$img_status = sprintf($img,__('Pending'),'check-wrn.png');
break;
case -2:
$img_status = sprintf($img,__('junk'),'junk.png');
$img_status = sprintf($img,__('Junk'),'junk.png');
break;
}
@ -721,7 +723,7 @@ function showComments($rs,$has_action)
' id="c'.$rs->comment_id.'">'.
'<td class="nowrap">'.
($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__('select this comment').'"') : '').'</td>'.
($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__('Select this comment').'"') : '').'</td>'.
'<td class="maximal">'.$rs->comment_author.'</td>'.
'<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'.
'<td class="nowrap"><a href="comments.php?ip='.$rs->comment_ip.'">'.$rs->comment_ip.'</a></td>'.
@ -737,4 +739,4 @@ function showComments($rs,$has_action)
dcPage::helpBlock('page');
?>
</body>
</html>
</html>

View File

@ -63,25 +63,25 @@ if (!empty($_GET['up'])) {
echo
'<form action="'.$p_url.'" method="post">'.
'<p><label for="pings_active" class="classic">'.form::checkbox('pings_active',1,$core->blog->settings->pings->pings_active).' '.
__('Activate pings extension').'</label></p>';
'<p><label for="pings_active" class="classic">'.form::checkbox('pings_active',1,$core->blog->settings->pings->pings_active).'</label> '.
__('Activate pings extension').'</p>';
$i = 0;
foreach ($pings_uris as $n => $u)
{
echo
'<p><label for="pings_srv_name-'.$i.'" class="classic">'.__('Service name:').' '.
form::field(array('pings_srv_name[]','pings_srv_name-'.$i),20,128,html::escapeHTML($n)).'</label> '.
'<label for="pings_srv_uri-'.$i.'" class="classic">'.__('Service URI:').' '.
form::field(array('pings_srv_uri[]','pings_srv_uri-'.$i),40,255,html::escapeHTML($u)).'</label>';
'<p><label for="pings_srv_name-'.$i.'" class="classic">'.__('Service name:').'</label> '.
form::field(array('pings_srv_name[]','pings_srv_name-'.$i),20,128,html::escapeHTML($n)).' '.
'<label for="pings_srv_uri-'.$i.'" class="classic">'.__('Service URI:').'</label> '.
form::field(array('pings_srv_uri[]','pings_srv_uri-'.$i),40,255,html::escapeHTML($u));
if (!empty($_GET['test']))
{
try {
pingsAPI::doPings($u,'Example site','http://example.com');
echo ' <img src="images/check-on.png" alt="ok" />';
echo ' <img src="images/check-on.png" alt="OK" />';
} catch (Exception $e) {
echo ' <img src="images/check-off.png" alt="'.__('error').'" /> '.$e->getMessage();
echo ' <img src="images/check-off.png" alt="'.__('Error').'" /> '.$e->getMessage();
}
}
@ -90,17 +90,17 @@ foreach ($pings_uris as $n => $u)
}
echo
'<p><label for="pings_srv_name2" class="classic">'.__('Service name:').' '.
form::field(array('pings_srv_name[]','pings_srv_name2'),20,128).'</label> '.
'<label for="pings_srv_uri2" class="classic">'.__('Service URI:').' '.
form::field(array('pings_srv_uri[]','pings_srv_uri2'),40,255).'</label>'.
'<p><label for="pings_srv_name2" class="classic">'.__('Service name:').'</label> '.
form::field(array('pings_srv_name[]','pings_srv_name2'),20,128).' '.
'<label for="pings_srv_uri2" class="classic">'.__('Service URI:').'</label> '.
form::field(array('pings_srv_uri[]','pings_srv_uri2'),40,255).
'</p>'.
'<p><input type="submit" value="'.__('Save').'" />'.
$core->formNonce().'</p>'.
'</form>';
echo '<p><a href="'.$p_url.'&amp;test=1">'.__('Test ping services').'</a></p>';
echo '<p><a class="button" href="'.$p_url.'&amp;test=1">'.__('Test ping services').'</a></p>';
?>
</body>
</html>

View File

@ -312,9 +312,9 @@ class tagsBehaviors
echo
'<fieldset><legend>'.__('Tags').'</legend>'.
'<p><label for="user_tag_list_format">'.__('Tags list format:').' '.
'<p><label for="user_tag_list_format">'.__('Tags list format:').'</label> '.
form::combo('user_tag_list_format',$combo,$value).
'</label></p></fieldset>';
'</p></fieldset>';
}
public static function setTagListFormat($cur,$user_id = null)

View File

@ -53,10 +53,10 @@ class themeEditorBehaviors
'<fieldset><legend>'.__('Theme Editor').'</legend>'.
'<p><label for="colorsyntax" class="classic">'.
form::checkbox('colorsyntax',1,$core->auth->user_prefs->interface->colorsyntax).' '.
__('Syntax color').'</label></p>'.
form::checkbox('colorsyntax',1,$core->auth->user_prefs->interface->colorsyntax).'</label>'.
__('Syntax color').
'<br class="clear" />'. //Opera sucks
'</p>'.
'</fieldset>';
}
}

View File

@ -237,13 +237,13 @@ class dcWidget
{
case 'text':
$res .=
'<p><label for="'.$wfid.'">'.$s['title'].' '.
'<p><label for="'.$wfid.'">'.$s['title'].'</label> '.
form::field(array($iname,$wfid),20,255,html::escapeHTML($s['value']),'maximal').
'</label></p>';
'</p>';
break;
case 'textarea':
$res .=
'<p><label for="'.$wfid.'">'.$s['title'].' '.
'<p><label for="'.$wfid.'">'.$s['title'].'</label> '.
form::textarea(array($iname,$wfid),30,5,html::escapeHTML($s['value']),'maximal').
'</label></p>';
break;
@ -256,9 +256,9 @@ class dcWidget
break;
case 'combo':
$res .=
'<p><label for="'.$wfid.'">'.$s['title'].' '.
'<p><label for="'.$wfid.'">'.$s['title'].'</label> '.
form::combo(array($iname,$wfid),$s['options'],$s['value']).
'</label></p>';
'</p>';
break;
}
$i++;

View File

@ -205,8 +205,8 @@ foreach ($__widgets->elements(true) as $w) {
'<div>'.form::hidden(array('w[void][0][id]'),html::escapeHTML($w->id())).
'<p class="widget-name">'.form::field(array('w[void][0][order]'),2,3,0,'hideControl').' '.
$w->name().($w->desc() != '' ? ' <span class="form-note">('.__($w->desc()).')</span>' : '').'</p>'.
'<p class="js-remove"><label class="classic">'.__('Append to:').' '.
form::combo(array('addw['.$w->id().']'),$append_combo).'</label></p>'.
'<p class="js-remove"><label class="classic">'.__('Append to:').'</label> '.
form::combo(array('addw['.$w->id().']'),$append_combo).'</p>'.
'<div class="widgetSettings">'.$w->formSettings('w[void][0]',$j).'</div>'.
'</div>';
$j++;

View File

@ -33,6 +33,6 @@ if (isset($_POST['css']))
$css_content = is_file($css_file) ? file_get_contents($css_file) : '';
echo
'<p class="area"><label>'.__('Style sheet:').' '.
form::textarea('css',60,20,html::escapeHTML($css_content)).'</label></p>';
'<p class="area"><label>'.__('Style sheet:').'</label> '.
form::textarea('css',60,20,html::escapeHTML($css_content)).'</p>';
?>