Changeset 3874:ab8368569446 for plugins/pages/class.listpage.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
plugins/pages/class.listpage.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/class.listpage.php
r3774 r3874 20 20 } else { 21 21 $pager = new dcPager($page, $this->rs_count, $nb_per_page, 10); 22 $entries = array();22 $entries = []; 23 23 if (isset($_REQUEST['entries'])) { 24 24 foreach ($_REQUEST['entries'] as $v) { … … 30 30 '<table class="maximal dragable"><thead><tr>'; 31 31 32 $cols = array(32 $cols = [ 33 33 'title' => '<th colspan="3" scope="col" class="first">' . __('Title') . '</th>', 34 34 'date' => '<th scope="col">' . __('Date') . '</th>', … … 39 39 '" /><span class="hidden">' . __('Trackbacks') . '</span></th>', 40 40 'status' => '<th scope="col">' . __('Status') . '</th>' 41 );41 ]; 42 42 43 43 $cols = new ArrayObject($cols); … … 115 115 ' id="p' . $this->rs->post_id . '">'; 116 116 117 $cols = array(117 $cols = [ 118 118 'position' => '<td class="nowrap handle minimal">' . 119 form::number( array('order[' . $this->rs->post_id . ']'), array(119 form::number(['order[' . $this->rs->post_id . ']'], [ 120 120 'min' => 1, 121 121 'default' => $count + 1, 122 122 'class' => 'position', 123 123 'extra_html' => 'title="' . sprintf(__('position of %s'), html::escapeHTML($this->rs->post_title)) . '"' 124 )) .124 ]) . 125 125 '</td>', 126 126 'check' => '<td class="nowrap">' . 127 form::checkbox( array('entries[]'), $this->rs->post_id,128 array(127 form::checkbox(['entries[]'], $this->rs->post_id, 128 [ 129 129 'checked' => $checked, 130 130 'disabled' => !$this->rs->isEditable(), 131 131 'extra_html' => 'title="' . __('Select this page') . '"' 132 )132 ] 133 133 ) . '</td>', 134 134 'title' => '<td class="maximal" scope="row"><a href="' . … … 140 140 'trackbacks' => '<td class="nowrap count">' . $this->rs->nb_trackback . '</td>', 141 141 'status' => '<td class="nowrap status">' . $img_status . ' ' . $selected . ' ' . $protected . ' ' . $attach . '</td>' 142 );142 ]; 143 143 144 144 $cols = new ArrayObject($cols);
Note: See TracChangeset
for help on using the changeset viewer.
