Changeset 2241:4168cffbc76e
- Timestamp:
- 10/04/13 10:34:31 (12 years ago)
- Branch:
- dcRepo
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_theme.php
r2237 r2241 134 134 135 135 $list 136 -> initList('theme-update')136 ->setList('theme-update') 137 137 ->setTab('themes') 138 138 ->setModules($modules) … … 163 163 164 164 $list 165 -> initList('theme-activate')165 ->setList('theme-activate') 166 166 ->setTab('themes') 167 167 ->setModules($modules) 168 168 ->displayModules( 169 169 /* cols */ array('sshot', 'distrib', 'name', 'config', 'desc', 'author', 'version', 'parent'), 170 /* actions */ array('select', ' deactivate', 'delete')170 /* actions */ array('select', 'behavior', 'deactivate', 'delete') 171 171 ); 172 172 … … 185 185 186 186 $list 187 -> initList('theme-deactivate')187 ->setList('theme-deactivate') 188 188 ->setTab('themes') 189 189 ->setModules($modules) … … 210 210 211 211 $list 212 -> initList('theme-new')212 ->setList('theme-new') 213 213 ->setTab('new') 214 214 ->setModules($modules) -
admin/plugins.php
r2237 r2241 157 157 158 158 $list 159 -> initList('plugin-update')159 ->setList('plugin-update') 160 160 ->setTab('update') 161 161 ->setModules($modules) … … 188 188 189 189 $list 190 -> initList('plugin-activate')190 ->setList('plugin-activate') 191 191 ->setTab('plugins') 192 192 ->setModules($modules) 193 193 ->displayModules( 194 194 /* cols */ array('expander', 'icon', 'name', 'config', 'version', 'desc', 'distrib'), 195 /* actions */ array('deactivate', 'delete' )195 /* actions */ array('deactivate', 'delete', 'behavior') 196 196 ); 197 197 } … … 206 206 207 207 $list 208 -> initList('plugin-deactivate')208 ->setList('plugin-deactivate') 209 209 ->setTab('plugins') 210 210 ->setModules($modules) … … 232 232 233 233 $list 234 -> initList('plugin-new')234 ->setList('plugin-new') 235 235 ->setTab('new') 236 236 ->setModules($modules) -
admin/style/default.css
r2240 r2241 1583 1583 font-size: 1.33em; 1584 1584 } 1585 input { 1586 margin-bottom: 1em; 1587 } 1585 1588 /* ------------------------------------------------------------------ categories.php */ 1586 1589 #categories { … … 2358 2361 background: #ff6; 2359 2362 padding: 3px 0.5em 2px; 2363 } 2364 input[type=submit].delete.debug, a.delete.debug { 2365 background: #ff6; 2360 2366 } 2361 2367 /* ---------------------------------------------- Couleurs ajoutées via javascript -
inc/admin/lib.moduleslist.php
r2227 r2241 75 75 * @return adminModulesList self instance 76 76 */ 77 public function initList($id)77 public function setList($id) 78 78 { 79 79 $this->data = array(); … … 82 82 83 83 return $this; 84 } 85 86 /** 87 * Get list ID. 88 * 89 * @return List ID 90 */ 91 public function getList() 92 { 93 return $this->list_id; 84 94 } 85 95 … … 136 146 { 137 147 return $this->path_writable 138 && preg_match('!^'.$this->path_pattern.'!', $root)148 && (preg_match('!^'.$this->path_pattern.'!', $root) || defined('DC_DEV') && DC_DEV) 139 149 && $this->core->auth->isSuperAdmin(); 140 150 } … … 652 662 # Delete 653 663 case 'delete': if ($this->isDeletablePath($module['root'])) { 664 $dev = !preg_match('!^'.$this->path_pattern.'!', $module['root']) && defined('DC_DEV') && DC_DEV ? ' debug' : ''; 654 665 $submits[] = 655 '<input type="submit" class="delete " name="delete" value="'.__('Delete').'" />';666 '<input type="submit" class="delete '.$dev.'" name="delete" value="'.__('Delete').'" />'; 656 667 } break; 657 668 … … 667 678 '<input type="submit" name="update" value="'.__('Update').'" />'; 668 679 } break; 669 } 670 } 680 681 # Behavior 682 case 'behavior': 683 684 # --BEHAVIOR-- adminModulesListGetActions 685 $tmp = $this->core->callBehavior('adminModulesListGetActions', $this, $id, $module); 686 687 if (!empty($tmp)) { 688 $submits[] = $tmp; 689 } 690 break; 691 } 692 } 693 671 694 672 695 return $submits; … … 798 821 elseif (!empty($_POST['update'])) { 799 822 800 $updated = $ store->get();823 $updated = $this->store->get(); 801 824 if (!isset($updated[$id])) { 802 825 throw new Exception(__('No such module.')); … … 830 853 dcPage::addSuccessNotice(__('Module has been successfully updated.')); 831 854 http::redirect($this->getURL()); 855 } 856 else { 857 858 # --BEHAVIOR-- adminModulesListDoActions 859 $this->core->callBehavior('adminModulesListDoActions', $this, $id, $prefix); 860 832 861 } 833 862 }
Note: See TracChangeset
for help on using the changeset viewer.