Changeset 3639:fe9f4d94f86b
- Timestamp:
- 12/29/17 14:17:26 (6 years ago)
- Branch:
- default
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r3636 r3639 10 10 * Update CKEditor from 4.6.2 to 4.7.3 11 11 * Update CodeMirror from 5.25.1 to 5.32.1 12 * Add required attribute for mandatory fields 12 13 * Fix: Avoid horizontal scrolling table when longest comment's usernames in list of comments 13 14 * Fix: Cope with MySQLi connection via socket -
admin/_charte.php
r3499 r3639 244 244 <p class="form-note">p class="form-note".</p> 245 245 <p><label for="ex4" class="classic">Label class="classic" + input text :</label> <input id="ex4" type="text" /></p> 246 <p><label for="ex2" class="required"><abbr title=" '.__('Required field').'">*</abbr> Label class="required" :</label> <input id="ex2" type="text" /><span class="form-note">span class="form-note"</span></p>246 <p><label for="ex2" class="required"><abbr title="Champ obligatoire">*</abbr> Label class="required" :</label> <input id="ex2" type="text" required placeholder="exemple" /><span class="form-note">span class="form-note"</span></p> 247 247 <p><label for="ex11" class="bold">Label class="bold" :</label> <input id="ex11" type="text" /></p> 248 248 <p class="form-note">La class="bold" est bien sûr à écrire en minuscules.</p> -
admin/blog.php
r2852 r3639 81 81 '<div>'.$core->formNonce().'</div>'. 82 82 '<p><label class="required" for="blog_id"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label> '. 83 form::field('blog_id',30,32,html::escapeHTML($blog_id) ).'</p>'.83 form::field('blog_id',30,32,html::escapeHTML($blog_id),'','',false,'required placeholder="'.__('Blog ID').'"').'</p>'. 84 84 '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '; 85 85 86 86 echo 87 87 '<p><label class="required" for="blog_name"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label> '. 88 form::field('blog_name',30,255,html::escapeHTML($blog_name) ).'</p>'.88 form::field('blog_name',30,255,html::escapeHTML($blog_name),'','',false,'required placeholder="'.__('Blog name').'"').'</p>'. 89 89 90 90 '<p><label class="required" for="blog_url"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label> '. 91 form::field('blog_url',30,255,html::escapeHTML($blog_url) ).'</p>'.91 form::field('blog_url',30,255,html::escapeHTML($blog_url),'','',false,'required placeholder="'.__('Blog URL').'"').'</p>'. 92 92 93 93 '<p class="area"><label for="blog_desc">'.__('Blog description:').'</label> '. -
admin/blog_pref.php
r3560 r3639 368 368 echo 369 369 '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label>'. 370 form::field('blog_name',30,255,html::escapeHTML($blog_name) ).'</p>';370 form::field('blog_name',30,255,html::escapeHTML($blog_name),'','',false,'required placeholder="'.__('Blog name').'"').'</p>'; 371 371 372 372 echo … … 582 582 echo 583 583 '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label>'. 584 form::field('blog_id',30,32,html::escapeHTML($blog_id) ).'</p>'.584 form::field('blog_id',30,32,html::escapeHTML($blog_id),'','',false,'required placeholder="'.__('Blog ID').'"').'</p>'. 585 585 '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 586 586 '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; … … 588 588 echo 589 589 '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label>'. 590 form::field('blog_url',50,255,html::escapeHTML($blog_url) ).'</p>'.590 form::field('blog_url',50,255,html::escapeHTML($blog_url),'','',false,'required placeholder="'.__('Blog URL').'"').'</p>'. 591 591 592 592 '<p><label for="url_scan">'.__('URL scan method:').'</label>'. -
admin/category.php
r3606 r3639 196 196 '<h3>'.__('Category information').'</h3>'. 197 197 '<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label> '. 198 form::field('cat_title',40,255,html::escapeHTML($cat_title) ).198 form::field('cat_title',40,255,html::escapeHTML($cat_title),'','',false,'required placeholder="'.__('Name').'"'). 199 199 '</p>'; 200 200 if (!$cat_id) -
admin/comment.php
r3024 r3639 31 31 $status_combo = dcAdminCombos::getCommentStatusescombo(); 32 32 33 # Adding comment 33 # Adding comment (comming from post form, comments tab) 34 34 if (!empty($_POST['add']) && !empty($_POST['post_id'])) 35 35 { … … 59 59 60 60 dcPage::addSuccessNotice(__('Comment has been successfully created.')); 61 http::redirect($core->getPostAdminURL($rs->post_type,$rs->post_id,false).'&co=1');62 61 } catch (Exception $e) { 63 62 $core->error->add($e->getMessage()); 64 63 } 64 http::redirect($core->getPostAdminURL($rs->post_type,$rs->post_id,false).'&co=1'); 65 65 } 66 66 … … 218 218 '<h3>'.__('Comment submitted').'</h3>'. 219 219 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr>'.__('Author:').'</label>'. 220 form::field('comment_author',30,255,html::escapeHTML($comment_author) ).220 form::field('comment_author',30,255,html::escapeHTML($comment_author),'','',false,'required placeholder="'.__('Author').'"'). 221 221 '</p>'. 222 222 -
admin/index.php
r3614 r3639 299 299 '<h4>'.__('New entry').'</h4>'. 300 300 '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 301 form::field('post_title',20,255,'','maximal' ).301 form::field('post_title',20,255,'','maximal','',false,'required placeholder="'.__('Title').'"'). 302 302 '</p>'. 303 303 '<p class="area"><label class="required" '. 304 304 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 305 form::textarea('post_content',50,10 ).305 form::textarea('post_content',50,10,'','','',false,'required placeholder="'.__('Content').'"'). 306 306 '</p>'. 307 307 '<p><label for="cat_id" class="classic">'.__('Category:').'</label> '. -
admin/install/index.php
r3599 r3639 346 346 '<fieldset><legend>'.__('Username and password').'</legend>'. 347 347 '<p><label for="u_login" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 348 form::field('u_login',30,32,html::escapeHTML($u_login) ).'</label></p>'.348 form::field('u_login',30,32,html::escapeHTML($u_login),'','',false,'required placeholder="'.__('Username').'"').'</label></p>'. 349 349 '<div class="pw-table">'. 350 350 '<p class="pw-cell">'. 351 351 '<label for="u_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('New password:').'</label>'. 352 form::password('u_pwd',30,255,'','','',false,' data-indicator="pwindicator" ').352 form::password('u_pwd',30,255,'','','',false,' data-indicator="pwindicator" required placeholder="'.__('Password').'"'). 353 353 '</p>'. 354 354 '<div id="pwindicator">'. … … 358 358 '</div>'. 359 359 '<p><label for="u_pwd2" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Confirm password:').' '. 360 form::password('u_pwd2',30,255 ).'</label></p>'.360 form::password('u_pwd2',30,255,'','','',false,'required placeholder="'.__('Password').'"').'</label></p>'. 361 361 '</fieldset>'. 362 362 -
admin/install/wizard.php
r3565 r3639 201 201 '<form action="wizard.php" method="post">'. 202 202 '<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').'</label> '. 203 form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__('MySQLi (full UTF-8)')=>'mysqlimb4',__('PostgreSQL')=>'pgsql',__('SQLite')=>'sqlite'),$DBDRIVER).'</p>'. 203 form::combo('DBDRIVER',array( 204 __('MySQL (deprecated)') => 'mysql', 205 __('MySQLi') => 'mysqli', 206 __('MySQLi (full UTF-8)') => 'mysqlimb4', 207 __('PostgreSQL') => 'pgsql', 208 __('SQLite') => 'sqlite'), 209 $DBDRIVER,'','',false,'required placeholder="'.__('Driver').'"').'</p>'. 204 210 '<p><label for="DBHOST">'.__('Database Host Name:').'</label> '. 205 211 form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</p>'. … … 211 217 form::password('DBPASSWORD',30,255).'</p>'. 212 218 '<p><label for="DBPREFIX" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Database Tables Prefix:').'</label> '. 213 form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX) ).'</p>'.219 form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX),'','',false,'required placeholder="'.__('Prefix').'"').'</p>'. 214 220 '<p><label for="ADMINMAILFROM">'.__('Master Email: (used as sender for password recovery)').'</label> '. 215 221 form::field('ADMINMAILFROM',30,255,html::escapeHTML($ADMINMAILFROM)).'</p>'. -
admin/langs.php
r3627 r3639 271 271 form::combo(array('pkg_url'),$dc_langs_combo).'</p>'. 272 272 '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 273 form::password(array('your_pwd','your_pwd1'),20,255 ).'</p>'.273 form::password(array('your_pwd','your_pwd1'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 274 274 '<p><input type="submit" value="'.__('Install language').'" />'. 275 275 $core->formNonce(). … … 286 286 '<p>'.__('You can install languages by uploading zip files.').'</p>'. 287 287 '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Language zip file:').'</label> '. 288 '<input type="file" id="pkg_file" name="pkg_file" /></p>'.288 '<input type="file" id="pkg_file" name="pkg_file" required /></p>'. 289 289 '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 290 form::password(array('your_pwd','your_pwd2'),20,255 ).'</p>'.290 form::password(array('your_pwd','your_pwd2'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 291 291 '<p><input type="submit" name="upload_pkg" value="'.__('Upload language').'" />'. 292 292 $core->formNonce(). -
admin/popup_link.php
r3445 r3639 31 31 '<form id="link-insert-form" action="#" method="get">'. 32 32 '<p><label class="required" for="href"><abbr title="'.__('Required field').'">*</abbr> '.__('Link URL:').'</label> '. 33 form::field('href',35,512,html::escapeHTML($href) ).'</p>'.33 form::field('href',35,512,html::escapeHTML($href),'','',false,'required placeholder="'.__('URL').'"').'</p>'. 34 34 '<p><label for="title">'.__('Link title:').'</label> '. 35 35 form::field('title',35,512,html::escapeHTML($title)).'</p>'. -
admin/post.php
r3627 r3639 649 649 '<p class="col">'. 650 650 '<label class="required no-margin bold" for="post_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 651 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal' ).651 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal','',false,'required placeholder="'.__('Title').'"'). 652 652 '</p>', 653 653 … … 661 661 '<p class="area" id="content-area"><label class="required bold" '. 662 662 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 663 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 663 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content), 664 '','',false,'required placeholder="'.__('Content').'"'). 664 665 '</p>', 665 666 … … 789 790 '<div class="constrained">'. 790 791 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 791 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 792 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn')), 793 '','',false,'required placeholder="'.__('Author').'"'). 792 794 '</p>'. 793 795 … … 802 804 '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. 803 805 __('Comment:').'</label> '. 804 form::textarea('comment_content',50,8,html::escapeHTML('') ).806 form::textarea('comment_content',50,8,html::escapeHTML(''),'','',false,'required placeholder="'.__('Comment').'"'). 805 807 '</p>'. 806 808 -
admin/style/default.css
r3638 r3639 1042 1042 width: 99%; } 1043 1043 1044 input.invalid, 1045 textarea.invalid, 1046 select.invalid, 1047 input:not([type=file]):invalid:not(:focus) { 1048 color: #900; 1049 box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); } 1050 1051 input.invalid, 1052 textarea.invalid, 1053 input:not([type=file]):invalid:not(:focus) { 1054 border: 1px solid red; 1055 background: #FFBABA; } 1056 1044 1057 input[type=text], 1045 1058 input[type=password], 1046 1059 textarea, 1047 select { 1060 select, 1061 input:not([type=file]):invalid, 1062 input:not([type=file]):invalid:placeholder-shown { 1048 1063 color: #000; 1049 1064 box-shadow: 1px 1px 2px #f3f3f3 inset; … … 1053 1068 input[type=text], 1054 1069 input[type=password], 1055 textarea { 1070 textarea, 1071 input:not([type=file]):invalid, 1072 input:not([type=file]):invalid:placeholder-shown { 1056 1073 background: #fcfcfc; 1057 1074 border-width: 1px; … … 1086 1103 option.avail10n { 1087 1104 background: transparent url(../images/check-on.png) no-repeat 0 50%; } 1088 1089 input.invalid,1090 textarea.invalid,1091 select.invalid {1092 color: #900;1093 box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); }1094 1095 input.invalid,1096 textarea.invalid {1097 border: 1px solid red;1098 background: #FFBABA; }1099 1105 1100 1106 input[type=text], -
admin/style/scss/partials/_forms.scss
r3633 r3639 65 65 } 66 66 67 input[type=text], 68 input[type=password], 69 textarea, 70 select { 67 input.invalid, 68 textarea.invalid, 69 select.invalid, 70 input:not([type=file]):invalid:not(:focus) { 71 color: #900; 72 box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); 73 } 74 input.invalid, 75 textarea.invalid, 76 input:not([type=file]):invalid:not(:focus) { 77 border: 1px solid red; 78 background: #FFBABA; 79 } 80 81 input[type=text], 82 input[type=password], 83 textarea, 84 select, 85 input:not([type=file]):invalid, 86 input:not([type=file]):invalid:placeholder-shown { 71 87 color: #000; 72 88 box-shadow: 1px 1px 2px #f3f3f3 inset; … … 76 92 input[type=text], 77 93 input[type=password], 78 textarea { 94 textarea, 95 input:not([type=file]):invalid, 96 input:not([type=file]):invalid:placeholder-shown { 79 97 background: #fcfcfc; 80 98 border-width: 1px; … … 120 138 } 121 139 122 input.invalid,123 textarea.invalid,124 select.invalid {125 color: #900;126 box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3);127 }128 input.invalid,129 textarea.invalid {130 border: 1px solid red;131 background: #FFBABA;132 }133 134 140 input[type=text], 135 141 input[type=password], -
admin/user.php
r3627 r3639 206 206 207 207 '<p><label for="user_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('User ID:').'</label> '. 208 form::field('user_id',20,255,html::escapeHTML($user_id) ).208 form::field('user_id',20,255,html::escapeHTML($user_id),'','',false,'required placeholder="'.__('Login').'"'). 209 209 '</p>'. 210 210 '<p class="form-note info">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'; … … 222 222 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> '). 223 223 ($user_id != '' ? __('New password:') : __('Password:')).'</label>'. 224 form::password('new_pwd',20,255,'','','',false,' data-indicator="pwindicator" '). 224 form::password('new_pwd',20,255,'','','',false,' data-indicator="pwindicator" '. 225 ($user_id != '' ? '' : 'required placeholder="'.__('Password').'"')). 225 226 '</p>'. 226 227 '<div id="pwindicator">'. … … 233 234 '<p><label for="new_pwd_c" '.($user_id != '' ? '' : 'class="required"').'>'. 234 235 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Confirm password:').'</label> '. 235 form::password('new_pwd_c',20,255 ).236 form::password('new_pwd_c',20,255,'','','',false,($user_id != '' ? '' : 'required placeholder="'.__('Password').'"')). 236 237 '</p>'; 237 238 … … 308 309 '<p class="clear vertical-separator"><label for="your_pwd" class="required">'. 309 310 '<abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label>'. 310 form::password('your_pwd',20,255 ).'</p>'.311 form::password('your_pwd',20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 311 312 '<p class="clear"><input type="submit" name="save" accesskey="s" value="'.__('Save').'" />'. 312 313 ($user_id != '' ? '' : ' <input type="submit" name="saveplus" value="'.__('Save and create another').'" />'). -
admin/users_actions.php
r3627 r3639 312 312 '<h3>'.__('Validate permissions').'</h3>'. 313 313 '<p><label for="your_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label>'. 314 form::password('your_pwd',20,255 ).'</p>'.314 form::password('your_pwd',20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 315 315 '<p><input type="submit" accesskey="s" value="'.__('Save').'" />'. 316 316 $hidden_fields. -
inc/admin/lib.dc.page.php
r3637 r3639 180 180 181 181 $core->auth->user_prefs->addWorkspace('interface'); 182 $user_ui_hide_std_favicon = $core->auth->user_prefs->interface->hide_std_favicon; 183 if (!$user_ui_hide_std_favicon) { 182 if (!$core->auth->user_prefs->interface->hide_std_favicon) { 184 183 echo 185 184 '<link rel="icon" type="image/png" href="images/favicon96-login.png" />'."\n". -
inc/admin/lib.moduleslist.php
r3627 r3639 1312 1312 '<h4>'.__('Upload a zip file').'</h4>'. 1313 1313 '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Zip file path:').'</label> '. 1314 '<input type="file" name="pkg_file" id="pkg_file" /></p>'.1314 '<input type="file" name="pkg_file" id="pkg_file" required /></p>'. 1315 1315 '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 1316 form::password(array('your_pwd','your_pwd1'),20,255 ).'</p>'.1316 form::password(array('your_pwd','your_pwd1'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 1317 1317 '<p><input type="submit" name="upload_pkg" value="'.__('Upload').'" />'. 1318 1318 $this->core->formNonce().'</p>'. … … 1324 1324 '<h4>'.__('Download a zip file').'</h4>'. 1325 1325 '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Zip file URL:').'</label> '. 1326 form::field(array('pkg_url','pkg_url'),40,255 ).'</p>'.1326 form::field(array('pkg_url','pkg_url'),40,255,'','','',false,'required placeholder="'.__('URL').'"').'</p>'. 1327 1327 '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 1328 form::password(array('your_pwd','your_pwd2'),20,255 ).'</p>'.1328 form::password(array('your_pwd','your_pwd2'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 1329 1329 '<p><input type="submit" name="fetch_pkg" value="'.__('Download').'" />'. 1330 1330 $this->core->formNonce().'</p>'. -
plugins/blogroll/edit.php
r3297 r3639 116 116 117 117 '<p><label for="link_desc" class="required classic"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 118 form::field('link_desc',30,255,html::escapeHTML($link_desc) ).118 form::field('link_desc',30,255,html::escapeHTML($link_desc),'','',false,'required placeholder="'.__('Title').'"'). 119 119 120 120 form::hidden('edit',1). … … 134 134 135 135 '<p><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 136 form::field('link_title',30,255,html::escapeHTML($link_title) ).'</p>'.136 form::field('link_title',30,255,html::escapeHTML($link_title),'','',false,'required placeholder="'.__('Title').'"').'</p>'. 137 137 138 138 '<p><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '. 139 form::field('link_href',30,255,html::escapeHTML($link_href) ).'</p>'.139 form::field('link_href',30,255,html::escapeHTML($link_href),'','',false,'required placeholder="'.__('URL').'"').'</p>'. 140 140 141 141 '<p><label for="link_desc">'.__('Description:').'</label> '. -
plugins/blogroll/index.php
r3297 r3639 273 273 '<h3>'.__('Add a new link').'</h3>'. 274 274 '<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 275 form::field('link_title',30,255,$link_title ).275 form::field('link_title',30,255,$link_title,'','',false,'required placeholder="'.__('Title').'"'). 276 276 '</p>'. 277 277 278 278 '<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '. 279 form::field('link_href',30,255,$link_href ).279 form::field('link_href',30,255,$link_href,'','',false,'required placeholder="'.__('URL').'"'). 280 280 '</p>'. 281 281 … … 298 298 '<h3>'.__('Add a new category').'</h3>'. 299 299 '<p><label for="cat_title" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 300 form::field('cat_title',30,255,$cat_title ).' '.300 form::field('cat_title',30,255,$cat_title,'','',false,'required placeholder="'.__('Title').'"').' '. 301 301 form::hidden(array('p'),'blogroll'). 302 302 $core->formNonce(). … … 312 312 '<h3>'.__('Import links').'</h3>'. 313 313 '<p><label for="links_file" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('OPML or XBEL File:').'</label> '. 314 '<input type="file" id="links_file" name="links_file" /></p>'.314 '<input type="file" id="links_file" name="links_file" required /></p>'. 315 315 '<p>'.form::hidden(array('p'),'blogroll'). 316 316 $core->formNonce(). -
plugins/importExport/inc/class.dc.import.flat.php
r3627 r3639 224 224 echo 225 225 '<p><label for="your_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label>'. 226 form::password('your_pwd',20,255 ).'</p>'.226 form::password('your_pwd',20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 227 227 228 228 '<p>'. -
plugins/pages/page.php
r3627 r3639 487 487 '<p class="col">'. 488 488 '<label class="required no-margin bold" for="post_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 489 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal' ).489 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal','',false,'required placeholder="'.__('Title').'"'). 490 490 '</p>', 491 491 … … 499 499 '<p class="area" id="content-area"><label class="required bold" '. 500 500 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 501 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content) ).501 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content),'','',false,'required placeholder="'.__('Content').'"'). 502 502 '</p>', 503 503 … … 664 664 '<div class="constrained">'. 665 665 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 666 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn')) ).666 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn')),'','',false,'required placeholder="'.__('Author').'"'). 667 667 '</p>'. 668 668 … … 677 677 '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. 678 678 __('Comment:').'</label> '. 679 form::textarea('comment_content',50,8, html::escapeHTML('')).679 form::textarea('comment_content',50,8,'','','',false,'required placeholder="'.__('Comment').'"'). 680 680 '</p>'. 681 681 -
plugins/simpleMenu/index.php
r3582 r3639 230 230 'descr' => $item_descr, 231 231 'url' => $item_url, 232 'targetBlank' => $item_targetBlank 232 'targetBlank' => $item_targetBlank 233 233 ); 234 234 235 235 // Save menu in blog settings 236 236 $core->blog->settings->system->put('simpleMenu',$menu); … … 480 480 echo '<fieldset><legend>'.$item_type_label.($item_select_label != '' ? ' ('.$item_select_label.')' : '').'</legend>'; 481 481 echo '<p class="field"><label for="item_label" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '. 482 __('Label of item menu:').'</label>'.form::field('item_label',20,255,$item_label).'</p>'; 482 __('Label of item menu:').'</label>'. 483 form::field('item_label',20,255,$item_label,'','',false,'required placeholder="'.__('Label').'"'). 484 '</p>'; 483 485 echo '<p class="field"><label for="item_descr" class="classic">'. 484 486 __('Description of item menu:').'</label>'.form::field('item_descr',30,255,$item_descr).'</p>'; 485 487 echo '<p class="field"><label for="item_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '. 486 __('URL of item menu:').'</label>'.form::field('item_url',40,255,$item_url).'</p>'; 488 __('URL of item menu:').'</label>'. 489 form::field('item_url',40,255,$item_url,'','',false,'required placeholder="'.__('URL').'"'). 490 '</p>'; 487 491 echo form::hidden('item_type',$item_type).form::hidden('item_select',$item_select); 488 492 echo '<p class="field"><label for="item_descr" class="classic">'. … … 537 541 foreach ($menu as $i => $m) { 538 542 echo '<tr class="line" id="l_'.$i.'">'; 539 543 540 544 //because targetBlank can not exists. This value has been added after this plugin creation. 541 545 if((isset($m['targetBlank'])) && ($m['targetBlank'])) { … … 546 550 $targetBlankStr =''; 547 551 } 548 552 549 553 if (!$step) { 550 554 $count++; … … 562 566 echo '<td class="nowrap">'.html::escapeHTML($m['url']).'</td>'; 563 567 echo '<td class="nowrap">'.$targetBlankStr.'</td>'; 564 568 565 569 } 566 570 echo '</tr>';
Note: See TracChangeset
for help on using the changeset viewer.