Changeset 1957:18e928446e18 for admin/categories.php
- Timestamp:
- 09/19/13 22:33:38 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/categories.php
r1954 r1957 144 144 while ($rs->fetch()) 145 145 { 146 $attr = 'id="cat_'.$rs->cat_id.'" ';146 $attr = 'id="cat_'.$rs->cat_id.'" class="cat-line clearfix"'; 147 147 148 148 if ($rs->level > $level) { … … 156 156 } 157 157 158 echo 159 '<p><label class="classic" for="cat-'.$rs->cat_id.'"><a href="category.php?id='.$rs->cat_id.'">'.html::escapeHTML($rs->cat_title).'</a></label> </p>'. 160 '<p>(<a href="posts.php?cat_id='.$rs->cat_id.'">'. 161 sprintf(($rs->nb_post > 1 ? __('%d entries') : __('%d entry') ),$rs->nb_post).'</a>'. 162 ', '.__('total:').' '.$rs->nb_total.')</p>'. 163 '<p><span class="cat-url">'.__('URL:').' <code>'.html::escapeHTML($rs->cat_url).'</code></span></p>'; 164 158 165 echo 159 '<p>'. 160 '<label class="classic" for="cat-'.$rs->cat_id.'"><a href="category.php?id='.$rs->cat_id.'">'.html::escapeHTML($rs->cat_title).'</a></label>'. 161 ' (<a href="posts.php?cat_id='.$rs->cat_id.'">'. 162 sprintf(($rs->nb_post > 1 ? __('%d entries') : __('%d entry') ),$rs->nb_post).'</a>'. 163 ', '.__('total:').' '.$rs->nb_total.') '. 164 '<span class="cat-url">'.__('URL:').' <code>'.html::escapeHTML($rs->cat_url).'</code></span>'; 165 166 '<p class="cat-buttons">'; 166 167 if ($rs->nb_total>0) { 167 168 // remove current category 168 echo 169 echo 170 '<label>'.__('Move entries to').'</label> '. 169 171 form::combo('mov_cat['.$rs->cat_id.']',array_filter($categories_combo, create_function('$cat', 'return $cat->value!=$GLOBALS[\'rs\']->cat_id;')),'',''). 170 ' <input type="submit" class="" name="mov['.$rs->cat_id.']" value="'.__('Ok').'"/>';172 ' <input type="submit" class="reset" name="mov['.$rs->cat_id.']" value="'.__('OK').'"/>'; 171 173 172 174 $attr_disabled = ' disabled="disabled"'; … … 189 191 '</div>'; 190 192 191 echo '<div class=" fieldset"><h3 class="clear hidden-if-no-js">'.__('Categories order').'</h3>';193 echo '<div class="border-top"><h3 class="clear hidden-if-no-js">'.__('Categories order').'</h3>'; 192 194 193 195 if ($core->auth->check('categories',$core->blog->id) && $rs->count()>1) { … … 203 205 204 206 echo 205 '<p class="hidden-if-js right"><input type="submit" name="reset" value="'.__('Reorder all categories on the top level and delete selected categories').'" />'.207 '<p class="hidden-if-js right"><input type="submit" name="reset" value="'.__('Reorder all categories on the top level').'" />'. 206 208 $core->formNonce().'</p>'. 207 209 '<p class="hidden-if-no-js"><input type="submit" name="reset" value="'.__('Reorder all categories on the top level').'" />'.
Note: See TracChangeset
for help on using the changeset viewer.