Changeset 3725:b47f38c701ee for plugins/pages
- Timestamp:
- 03/02/18 15:55:06 (7 years ago)
- Branch:
- default
- Location:
- plugins/pages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/class.listpage.php
r3707 r3725 118 118 $cols = array( 119 119 'position' => '<td class="nowrap handle minimal">' . 120 form::field(array('order[' . $this->rs->post_id . ']'), 2, 3, $count + 1, 'position', '', false, 'title="' . sprintf(__('position of %s'), html::escapeHTML($this->rs->post_title)) . '"') . '</td>', 120 form::number(array('order[' . $this->rs->post_id . ']'), array( 121 'min' => 1, 122 'default' => $count + 1, 123 'class' => 'position', 124 'extra_html' => 'title="' . sprintf(__('position of %s'), html::escapeHTML($this->rs->post_title)) . '"' 125 )) . 126 '</td>', 121 127 'check' => '<td class="nowrap">' . 122 128 form::checkbox(array('entries[]'), $this->rs->post_id, -
plugins/pages/page.php
r3710 r3725 398 398 '<p><label for="post_dt">' . __('Publication date and hour') . '</label>' . 399 399 form::field('post_dt', 16, 16, $post_dt, ($bad_dt ? 'invalid' : '')) . 400 /* 401 Previous line will be replaced by this one as soon as every browser will support datetime-local input type 402 Dont forget to remove call to datepicker in post.js 403 404 form::datetime('post_dt', array( 405 'default' => html::escapeHTML(dt::str('%Y-%m-%dT%H:%M', strtotime($post_dt))), 406 'class' => ($bad_dt ? 'invalid' : '') 407 )) . 408 */ 400 409 '</p>', 401 410 'post_lang' => … … 416 425 'post_position' => 417 426 '<p><label for="post_position" class="classic">' . __('Page position') . '</label> ' . 418 form::field('post_position', 3, 3, (string) $post_position) . 427 form::number('post_position', array( 428 'default' => $post_position 429 )) . 419 430 '</p>')), 420 431 'options-box' => array( … … 465 476 '<p class="col">' . 466 477 '<label class="required no-margin bold" for="post_title"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Title:') . '</label>' . 467 form::field('post_title', 20, 255, html::escapeHTML($post_title), 'maximal', '', false, 'required placeholder="' . __('Title') . '"') . 478 form::field('post_title', 20, 255, array( 479 'default' => html::escapeHTML($post_title), 480 'class' => 'maximal', 481 'extra_html' => 'required placeholder="' . __('Title') . '"' 482 )) . 468 483 '</p>', 469 484 … … 640 655 '<div class="constrained">' . 641 656 '<p><label for="comment_author" class="required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Name:') . '</label>' . 642 form::field('comment_author', 30, 255, html::escapeHTML($core->auth->getInfo('user_cn')), '', '', false, 'required placeholder="' . __('Author') . '"') . 657 form::field('comment_author', 30, 255, array( 658 'default' => html::escapeHTML($core->auth->getInfo('user_cn')), 659 'extra_html' => 'required placeholder="' . __('Author') . '"' 660 )) . 643 661 '</p>' . 644 662 645 663 '<p><label for="comment_email">' . __('Email:') . '</label>' . 646 form::field('comment_email', 30, 255, html::escapeHTML($core->auth->getInfo('user_email'))) . 664 form::email('comment_email', array( 665 'size' => 30, 666 'default' => html::escapeHTML($core->auth->getInfo('user_email')), 667 'autocomplete' => 'email' 668 )) . 647 669 '</p>' . 648 670 649 671 '<p><label for="comment_site">' . __('Web site:') . '</label>' . 650 form::field('comment_site', 30, 255, html::escapeHTML($core->auth->getInfo('user_url'))) . 672 form::url('comment_site', array( 673 'size' => 30, 674 'default' => html::escapeHTML($core->auth->getInfo('user_url')), 675 'autocomplete' => 'url' 676 )) . 651 677 '</p>' . 652 678
Note: See TracChangeset
for help on using the changeset viewer.