Changeset 11341
- Timestamp:
- 07/24/07 15:16:28 (1 year ago)
- Files:
-
- trunk/midcom/midcom.admin.styleeditor/handler/create.php (modified) (6 diffs)
- trunk/midcom/midcom.admin.styleeditor/handler/edit.php (modified) (12 diffs)
- trunk/midcom/midcom.admin.styleeditor/handler/file.php (modified) (11 diffs)
- trunk/midcom/midcom.admin.styleeditor/handler/list.php (modified) (5 diffs)
- trunk/midcom/midcom.admin.styleeditor/locale/default.en.txt (modified) (3 diffs)
- trunk/midcom/midcom.admin.styleeditor/static/style-editor.css (modified) (17 diffs)
- trunk/midcom/midcom.admin.styleeditor/style/midcom-admin-styleeditor-files-file.php (modified) (1 diff)
- trunk/midcom/midcom.admin.styleeditor/style/midcom-admin-styleeditor-style-create.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.admin.styleeditor/handler/create.php
r5811 r11341 64 64 $tmp[] = Array 65 65 ( 66 MIDCOM_NAV_URL => "__mfa/ styleeditor/",66 MIDCOM_NAV_URL => "__mfa/asgard_midcom.admin.styleeditor/", 67 67 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('edit layout template', 'midcom.admin.styleeditor'), 68 68 ); … … 71 71 ( 72 72 MIDCOM_NAV_URL => "", 73 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('create new element', 'midcom.admin.styleeditor'),73 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 74 74 ); 75 75 … … 79 79 function _process_form() 80 80 { 81 $message = ''; 82 83 if (array_key_exists('midcom_admin_styleeditor_style_name', $_POST)) 84 { 85 if ($_POST['midcom_admin_styleeditor_style_name'] != null || !empty($_FILES)) 86 { 87 if (!array_key_exists($_POST['midcom_admin_styleeditor_style_name'],$this->_style_elements['midcom'])) 88 { 89 $this->_request_data['style']->require_do('midgard:create'); 90 91 // We don't have element yet, create 92 $this->_request_data['style_element_object'] = new midcom_db_element(); 93 $this->_request_data['style_element_object']->style = $this->_request_data['style']->id; 94 95 96 // do we have file uploaded? 97 // TODO: file should be text/plain only 98 99 if ($_FILES['midcom_admin_styleeditor_style_file']['tmp_name']) 100 { 101 $value = file_get_contents($_FILES['midcom_admin_styleeditor_style_file']['tmp_name']); 102 $name = midcom_generate_urlname_from_string(basename($_FILES['midcom_admin_styleeditor_style_file']['name'],'php')); 103 } 104 else 105 { 106 $value = $_POST['midcom_admin_styleeditor_style_edit']; 107 $name = $_POST['midcom_admin_styleeditor_style_name']; 108 } 109 $this->_request_data['style_element_object']->value = $value; 110 $this->_request_data['style_element_object']->name = $name; 111 112 if (!$this->_request_data['style_element_object']->create()) 113 { 114 $message = sprintf($_MIDCOM->i18n->get_string('failed to create a new element: %s'), mgd_errstr()); 115 } 116 117 mgd_cache_invalidate(); 118 $_MIDCOM->relocate("__mfa/styleeditor/edit/".$this->_request_data['style_element_object']->name."/"); 119 } 120 else 121 { 122 $message = sprintf($_MIDCOM->i18n->get_string('element %s exists', 'midcom.admin.styleeditor'),$_POST['midcom_admin_styleeditor_style_name']); 123 } 81 $message = ''; 82 83 if (array_key_exists('midcom_admin_styleeditor_style_name', $_POST)) 84 { 85 if ($_POST['midcom_admin_styleeditor_style_name'] != null || !empty($_FILES)) 86 { 87 if (!array_key_exists($_POST['midcom_admin_styleeditor_style_name'],$this->_style_elements['midcom'])) 88 { 89 $this->_request_data['style']->require_do('midgard:create'); 90 91 // We don't have element yet, create 92 $this->_request_data['style_element_object'] = new midcom_db_element(); 93 $this->_request_data['style_element_object']->style = $this->_request_data['style']->id; 94 95 96 // do we have file uploaded? 97 // TODO: file should be text/plain only 98 99 if ($_FILES['midcom_admin_styleeditor_style_file']['tmp_name']) 100 { 101 $value = file_get_contents($_FILES['midcom_admin_styleeditor_style_file']['tmp_name']); 102 $name = midcom_generate_urlname_from_string(basename($_FILES['midcom_admin_styleeditor_style_file']['name'],'php')); 103 } 104 else 105 { 106 $value = $_POST['midcom_admin_styleeditor_style_edit']; 107 $name = $_POST['midcom_admin_styleeditor_style_name']; 108 } 109 $this->_request_data['style_element_object']->value = $value; 110 $this->_request_data['style_element_object']->name = $name; 111 112 if (!$this->_request_data['style_element_object']->create()) 113 { 114 $message = sprintf($_MIDCOM->i18n->get_string('failed to create a new element: %s'), mgd_errstr()); 115 } 116 117 // Show the user interface message 118 $_MIDCOM->uimessages->add($_MIDCOM->i18n->get_string('midcom.admin.styleeditor', 'midcom.admin.styleeditor'), sprintf($_MIDCOM->i18n->get_string('style element %s created', 'midcom.admin.styleeditor'), "<({$this->_style_element})>")); 119 120 mgd_cache_invalidate(); 121 $_MIDCOM->relocate("__mfa/asgard_midcom.admin.styleeditor/edit/".$this->_request_data['style_element_object']->name."/"); 122 } 123 else 124 { 125 $message = sprintf($_MIDCOM->i18n->get_string('element %s exists', 'midcom.admin.styleeditor'),$_POST['midcom_admin_styleeditor_style_name']); 126 } 124 127 } 125 128 else 126 {127 $message = $_MIDCOM->i18n->get_string('element name required', 'midcom.admin.styleeditor');128 }129 { 130 $message = $_MIDCOM->i18n->get_string('element name required', 'midcom.admin.styleeditor'); 131 } 129 132 } 130 133 131 134 $this->_request_data['message'] = $message; 132 135 136 // Show the user interface message 137 if ($message) 138 { 139 $_MIDCOM->uimessages->add($_MIDCOM->i18n->get_string('midcom.admin.styleeditor', 'midcom.admin.styleeditor'), $message); 140 } 133 141 } 134 142 … … 171 179 172 180 // Ensure we get the correct styles 181 $_MIDCOM->style->prepend_component_styledir('midgard.admin.asgard'); 173 182 $_MIDCOM->style->prepend_component_styledir('midcom.admin.styleeditor'); 174 183 … … 177 186 // Skip the page styles 178 187 $_MIDCOM->skip_page_style = true; 188 189 // Set the Asgard toolbar 190 $data['asgard_toolbar'] = new midcom_helper_toolbar(); 191 192 $data['asgard_toolbar']->add_item 193 ( 194 array 195 ( 196 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 197 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 198 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 199 ) 200 ); 201 $data['asgard_toolbar']->add_item 202 ( 203 array 204 ( 205 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 206 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 207 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 208 ) 209 ); 210 211 // Add the page title 212 $data['view_title'] = $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'); 179 213 180 214 return true; … … 190 224 function _show_create($handler_id, &$data) 191 225 { 192 midcom_show_style('midcom-admin-styleeditor-style-page-header'); 226 midcom_show_style('midgard_admin_asgard_header'); 227 midcom_show_style('midgard_admin_asgard_middle'); 193 228 midcom_show_style('midcom-admin-styleeditor-style-create'); 194 midcom_show_style('mid com-admin-styleeditor-style-page-footer');229 midcom_show_style('midgard_admin_asgard_footer'); 195 230 } 196 231 } trunk/midcom/midcom.admin.styleeditor/handler/edit.php
r11100 r11341 58 58 } 59 59 60 /** 61 * Load the default style element 62 * 63 * @access private 64 */ 60 65 function _load_default_elements() 61 66 { 67 if (!isset($this->_style_elements[$this->_component][$this->_request_data['style_element']])) 68 { 69 $this->_request_data['style_element_default_contents'] = ''; 70 return; 71 } 72 62 73 $this->_request_data['style_element_default_path'] = $this->_style_elements[$this->_component][$this->_request_data['style_element']]; 63 74 … … 78 89 $tmp[] = Array 79 90 ( 80 MIDCOM_NAV_URL => "__mfa/ styleeditor/",91 MIDCOM_NAV_URL => "__mfa/asgard_midcom.admin.styleeditor/", 81 92 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('edit layout template', 'midcom.admin.styleeditor'), 82 93 ); 83 94 $tmp[] = Array 84 95 ( 85 MIDCOM_NAV_URL => "__mfa/ styleeditor/edit/{$this->_request_data['style_element']}/",96 MIDCOM_NAV_URL => "__mfa/asgard_midcom.admin.styleeditor/edit/{$this->_request_data['style_element']}/", 86 97 MIDCOM_NAV_NAME => sprintf($_MIDCOM->i18n->get_string('edit element %s', 'midcom.admin.styleeditor'), "<({$this->_request_data['style_element']})>"), 87 98 ); … … 106 117 mgd_cache_invalidate(); 107 118 119 // Show the user interface message 120 $_MIDCOM->uimessages->add($_MIDCOM->i18n->get_string('midcom.admin.styleeditor', 'midcom.admin.styleeditor'), sprintf($_MIDCOM->i18n->get_string('style element %s deleted', 'midcom.admin.styleeditor'), "<({$this->_style_element})>")); 121 108 122 unset($this->_request_data['style_element_object']); 109 123 … … 141 155 mgd_cache_invalidate(); 142 156 157 // Show the user interface message 158 $_MIDCOM->uimessages->add($_MIDCOM->i18n->get_string('midcom.admin.styleeditor', 'midcom.admin.styleeditor'), sprintf($_MIDCOM->i18n->get_string('style element %s created', 'midcom.admin.styleeditor'), "<({$this->_style_element})>")); 159 143 160 $_MIDCOM->bind_view_to_object($this->_request_data['style_element_object']); 144 161 } … … 153 170 $_MIDCOM->generate_error(MIDCOM_ERRCRIT, 'Failed to update the element, cannot continue. Last Midgard error was: '. mgd_errstr()); 154 171 } 172 173 // Show the user interface message 174 $_MIDCOM->uimessages->add($_MIDCOM->i18n->get_string('midcom.admin.styleeditor', 'midcom.admin.styleeditor'), sprintf($_MIDCOM->i18n->get_string('style element %s updated', 'midcom.admin.styleeditor'), "<({$this->_style_element})>")); 155 175 156 176 mgd_cache_invalidate(); … … 176 196 array 177 197 ( 178 MIDCOM_TOOLBAR_URL => "__mfa/ styleeditor/create/",179 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create new element', 'midcom.admin.styleeditor'),198 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 199 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 180 200 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 181 201 ) … … 185 205 array 186 206 ( 187 MIDCOM_TOOLBAR_URL => "__mfa/ styleeditor/files/",207 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 188 208 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 189 209 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 190 210 ) 191 211 ); 192 193 194 212 195 213 $data['style_element'] = $args[0]; 214 $this->_style_element = $args[0]; 196 215 197 216 $style_information = $_MIDCOM->style->get_style_elements_and_nodes($this->_topic->style); … … 224 243 } 225 244 } 245 246 /* 247 // Deprecated. Style editor has to support also custom names 226 248 if (!$style_element_found) 227 249 { … … 229 251 return false; 230 252 } 253 */ 231 254 232 255 // Load the style object and check ACL … … 249 272 250 273 // Ensure we get the correct styles 274 $_MIDCOM->style->prepend_component_styledir('midgard.admin.asgard'); 251 275 $_MIDCOM->style->prepend_component_styledir('midcom.admin.styleeditor'); 252 276 … … 255 279 // Skip the page styles 256 280 $_MIDCOM->skip_page_style = true; 281 282 // Set the Asgard toolbar 283 $data['asgard_toolbar'] = new midcom_helper_toolbar(); 284 285 $data['asgard_toolbar']->add_item 286 ( 287 array 288 ( 289 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 290 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 291 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 292 ) 293 ); 294 $data['asgard_toolbar']->add_item 295 ( 296 array 297 ( 298 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 299 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 300 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 301 ) 302 ); 303 304 // Add the page title 305 $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('edit element %s', 'midcom.admin.styleeditor'), "<({$data['style_element']})>"); 257 306 258 307 return true; … … 268 317 function _show_edit($handler_id, &$data) 269 318 { 270 midcom_show_style('midcom-admin-styleeditor-style-page-header'); 319 midcom_show_style('midgard_admin_asgard_header'); 320 midcom_show_style('midgard_admin_asgard_middle'); 271 321 midcom_show_style('midcom-admin-styleeditor-style-edit'); 272 midcom_show_style('mid com-admin-styleeditor-style-page-footer');322 midcom_show_style('midgard_admin_asgard_footer'); 273 323 } 274 324 } trunk/midcom/midcom.admin.styleeditor/handler/file.php
r5466 r11341 128 128 $tmp[] = Array 129 129 ( 130 MIDCOM_NAV_URL => '__mfa/ styleeditor/',130 MIDCOM_NAV_URL => '__mfa/asgard_midcom.admin.styleeditor/', 131 131 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('edit layout template', 'midcom.admin.styleeditor'), 132 132 ); … … 135 135 $tmp[] = Array 136 136 ( 137 MIDCOM_NAV_URL => "__mfa/ styleeditor/files/",137 MIDCOM_NAV_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 138 138 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 139 139 ); … … 144 144 $tmp[] = Array 145 145 ( 146 MIDCOM_NAV_URL => "__mfa/ styleeditor/files/{$this->_request_data['filename']}/",146 MIDCOM_NAV_URL => "__mfa/asgard_midcom.admin.styleeditor/files/{$this->_request_data['filename']}/", 147 147 MIDCOM_NAV_NAME => sprintf($_MIDCOM->i18n->get_string('edit file %s', 'midcom.admin.styleeditor'), $this->_request_data['filename']), 148 148 ); … … 340 340 else 341 341 { 342 $_MIDCOM->relocate("__mfa/ styleeditor/files/{$filename}");342 $_MIDCOM->relocate("__mfa/asgard_midcom.admin.styleeditor/files/{$filename}"); 343 343 } 344 344 345 345 // Ensure we get the correct styles 346 $_MIDCOM->style->prepend_component_styledir('midgard.admin.asgard'); 346 347 $_MIDCOM->style->prepend_component_styledir('midcom.admin.styleeditor'); 347 348 … … 352 353 $_MIDCOM->skip_page_style = true; 353 354 355 // Set the Asgard toolbar 356 $data['asgard_toolbar'] = new midcom_helper_toolbar(); 357 358 $data['asgard_toolbar']->add_item 359 ( 360 array 361 ( 362 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 363 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 364 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 365 ) 366 ); 367 $data['asgard_toolbar']->add_item 368 ( 369 array 370 ( 371 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 372 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 373 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 374 ) 375 ); 376 377 // Add the page title 378 $data['view_title'] = $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'); 379 354 380 return true; 355 381 } … … 364 390 function _show_new($handler_id, &$data) 365 391 { 366 midcom_show_style('midcom-admin-styleeditor-style-page-header'); 392 midcom_show_style('midgard_admin_asgard_header'); 393 midcom_show_style('midgard_admin_asgard_middle'); 367 394 368 395 $data['files'] =& $this->_files; … … 372 399 midcom_show_style('midcom-admin-styleeditor-files-new'); 373 400 midcom_show_style('midcom-admin-styleeditor-files-footer'); 374 midcom_show_style('mid com-admin-styleeditor-style-page-footer');401 midcom_show_style('midgard_admin_asgard_footer'); 375 402 } 376 403 … … 412 439 if ($filename != $data['filename']) 413 440 { 414 $_MIDCOM->relocate("__mfa/ styleeditor/files/{$filename}");441 $_MIDCOM->relocate("__mfa/asgard_midcom.admin.styleeditor/files/{$filename}"); 415 442 } 416 443 } 417 444 418 445 // Ensure we get the correct styles 446 $_MIDCOM->style->prepend_component_styledir('midgard.admin.asgard'); 419 447 $_MIDCOM->style->prepend_component_styledir('midcom.admin.styleeditor'); 420 448 … … 425 453 $_MIDCOM->skip_page_style = true; 426 454 455 // Add the page title 456 $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('edit file %s', 'midcom.admin.styleeditor'), "'{$args[0]}'"); 457 458 // Set the Asgard toolbar 459 $data['asgard_toolbar'] = new midcom_helper_toolbar(); 460 461 $data['asgard_toolbar']->add_item 462 ( 463 array 464 ( 465 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 466 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 467 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 468 ) 469 ); 470 $data['asgard_toolbar']->add_item 471 ( 472 array 473 ( 474 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 475 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 476 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 477 ) 478 ); 479 427 480 return true; 428 481 } … … 437 490 function _show_edit($handler_id, &$data) 438 491 { 439 midcom_show_style('midcom-admin-styleeditor-style-page-header'); 492 midcom_show_style('midgard_admin_asgard_header'); 493 midcom_show_style('midgard_admin_asgard_middle'); 440 494 441 495 $data['files'] =& $this->_files; … … 446 500 midcom_show_style('midcom-admin-styleeditor-files-file'); 447 501 midcom_show_style('midcom-admin-styleeditor-files-footer'); 448 midcom_show_style('mid com-admin-styleeditor-style-page-footer');502 midcom_show_style('midgard_admin_asgard_footer'); 449 503 } 450 504 } trunk/midcom/midcom.admin.styleeditor/handler/list.php
r11335 r11341 91 91 $tmp[] = Array 92 92 ( 93 MIDCOM_NAV_URL => "__mfa/ styleeditor/",93 MIDCOM_NAV_URL => "__mfa/asgard_midcom.admin.styleeditor/", 94 94 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('edit layout template', 'midcom.admin.styleeditor'), 95 95 ); … … 119 119 array 120 120 ( 121 MIDCOM_TOOLBAR_URL => "__mfa/ styleeditor/create/",122 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create new element', 'midcom.admin.styleeditor'),121 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 122 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 123 123 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 124 124 ) … … 128 128 array 129 129 ( 130 MIDCOM_TOOLBAR_URL => "__mfa/ styleeditor/files/",130 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 131 131 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 132 132 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', … … 160 160 161 161 // Disable the "Edit template" button when we're at its view 162 $this->_view_toolbar->hide_item("__mfa/ styleeditor/");162 $this->_view_toolbar->hide_item("__mfa/asgard_midcom.admin.styleeditor/"); 163 163 164 164 // Ensure we get the correct styles … … 261 261 midcom_show_style('midcom-admin-styleeditor-stylelist-footer'); 262 262 midcom_show_style('midgard_admin_asgard_footer'); 263 264 263 } 265 264 } trunk/midcom/midcom.admin.styleeditor/locale/default.en.txt
r11197 r11341 24 24 ---STRINGEND 25 25 26 ---STRING create new element27 Create new element26 ---STRING create a new element 27 Create a new element 28 28 ---STRINGEND 29 29 … … 49 49 50 50 ---STRING element from file 51 Upload element51 Upload an element 52 52 ---STRINGEND 53 53 … … 116 116 ---STRINGEND 117 117 118 ---STRING local element 119 Local element 120 ---STRINGEND 121 122 ---STRING style element %s updated 123 Style element %s updated 124 ---STRINGEND 125 126 ---STRING style element %s created 127 Style element %s created 128 ---STRINGEND trunk/midcom/midcom.admin.styleeditor/static/style-editor.css
r5778 r11341 5 5 } 6 6 7 body.style-editor#container div.breadcrumb7 #container div.breadcrumb 8 8 { 9 9 font-size: 80%; … … 11 11 } 12 12 13 body.style-editorform.midcom_admin_folder_styleeditor textarea.element13 form.midcom_admin_folder_styleeditor textarea.element 14 14 { 15 15 width: 90%; … … 17 17 } 18 18 19 body.style-editorform.midcom_admin_folder_styleeditor pre19 form.midcom_admin_folder_styleeditor pre 20 20 { 21 21 width: 90%; … … 23 23 } 24 24 25 body.style-editorfieldset legend26 { 27 font-weight: bold; 28 } 29 30 body.style-editorfieldset.component_default legend25 fieldset legend 26 { 27 font-weight: bold; 28 } 29 30 fieldset.component_default legend 31 31 { 32 32 background-repeat: no-repeat; … … 37 37 } 38 38 39 body.style-editorfieldset.component_default div.content span.copy39 fieldset.component_default div.content span.copy 40 40 { 41 41 font-weight: bold; … … 44 44 } 45 45 46 body.style-editorfieldset button,47 body.style-editorform input.save,48 body.style-editorform input.delete46 fieldset button, 47 form input.save, 48 form input.delete 49 49 { 50 50 background-repeat: no-repeat; … … 63 63 } 64 64 65 body.style-editorfieldset button:hover,66 body.style-editorform input.save:hover,67 body.style-editorform input.delete:hover65 fieldset button:hover, 66 form input.save:hover, 67 form input.delete:hover 68 68 { 69 69 background-color: #dddddd; 70 70 } 71 71 72 body.style-editorfieldset button.copy72 fieldset button.copy 73 73 { 74 74 background-image: url('../stock-icons/16x16/editcopy.png'); 75 75 } 76 76 77 body.style-editorform input.save77 form input.save 78 78 { 79 79 background-image: url('../stock-icons/16x16/save.png'); 80 80 } 81 81 82 body.style-editorform input.delete82 form input.delete 83 83 { 84 84 background-image: url('../stock-icons/16x16/trash.png'); 85 85 } 86 86 87 body.style-editor#container a:link,88 body.style-editor#container a:visited87 #container a:link, 88 #container a:visited 89 89 { 90 90 text-decoration: none; … … 93 93 } 94 94 95 body.style-editor#container a:hover,96 body.style-editor#container a:visited:hover95 #container a:hover, 96 #container a:visited:hover 97 97 { 98 98 text-decoration: underline; … … 140 140 141 141 /** File management styles */ 142 body.style-editor div.file-manager div.filelist 142 div.file-manager 143 { 144 margin-top: 1em; 145 } 146 147 div.file-manager div.filelist 143 148 { 144 149 float: left; … … 149 154 padding: 2%; 150 155 } 151 body.style-editordiv.file-manager div.filelist ul156 div.file-manager div.filelist ul 152 157 { 153 158 margin: 0px; … … 155 160 white-space: nowrap; 156 161 } 157 body.style-editordiv.file-manager div.filelist ul li a162 div.file-manager div.filelist ul li a 158 163 { 159 164 display: block; … … 162 167 margin-bottom: 4px; 163 168 } 164 body.style-editordiv.file-manager div.filelist ul li.selected a,165 body.style-editordiv.file-manager div.filelist ul li a:hover169 div.file-manager div.filelist ul li.selected a, 170 div.file-manager div.filelist ul li a:hover 166 171 { 167 172 background-color: #8f5902; 168 173 } 169 body.style-editordiv.file-manager div.filelist ul li a img174 div.file-manager div.filelist ul li a img 170 175 { 171 176 border: none; 172 177 vertical-align: middle; 173 178 } 174 body.style-editor div.file-manager div.main 175 { 176 float: left; 177 width: 68%; 178 margin-left: 2%; 179 } 180 body.style-editor div.file-manager div.main h1 179 div.file-manager div.main 180 { 181 margin-left: 32%; 182 } 183 div.file-manager div.main h1 181 184 { 182 185 margin-top: 0px; 183 186 } 184 body.style-editordiv.file-manager div.main form187 div.file-manager div.main form 185 188 { 186 189 border: 1px solid #ce5c00; … … 188 191 margin-bottom: 1em; 189 192 } 190 body.style-editordiv.file-manager div.main form hr193 div.file-manager div.main form hr 191 194 { 192 195 margin-top: 1em; … … 197 200 background-color: #ce5c00; 198 201 } 199 body.style-editorfieldset202 fieldset 200 203 { 201 204 border: none; 202 205 margin-bottom: 6px; 203 206 } 204 body.style-editorfieldset legend207 fieldset legend 205 208 { 206 209 margin-left: 0px; … … 208 211 text-transform: uppercase; 209 212 } 210 body.style-editordiv.file-manager div.main form label span213 div.file-manager div.main form label span 211 214 { 212 215 margin-top: 6px; … … 214 217 font-weight: bold; 215 218 } 216 body.style-editordiv.file-manager div.main form input,217 body.style-editordiv.file-manager div.main form textarea,218 body.style-editordiv.file-manager div.main form select219 div.file-manager div.main form input, 220 div.file-manager div.main form textarea, 221 div.file-manager div.main form select 219 222 { 220 223 display: block; 221 224 margin-left: 2%; 222 225 } 223 body.style-editorform input.text,224 body.style-editorform textarea226 form input.text, 227 form textarea 225 228 { 226 229 width: 90%; 227 230 } 228 231 229 body.style-editordiv.file-manager div.main form.urlform a img232 div.file-manager div.main form.urlform a img 230 233 { 231 234 border: none; … … 280 283 #midcom_admin_styleeditor_style div.message 281 284 { 282 color: red;283 } 285 color: red; 286 } trunk/midcom/midcom.admin.styleeditor/style/midcom-admin-styleeditor-files-file.php
r5458 r11341 57 57 58 58 <label><span><?php echo $_MIDCOM->i18n->get_string('url', 'midcom.admin.styleeditor'); ?></span> 59 <input class="text" type="text" value="&(file_url);" />59 <input class="text" type="text" value="&(file_url);" readonly="readonly" /> 60 60 </label> 61 61 </fieldset> trunk/midcom/midcom.admin.styleeditor/style/midcom-admin-styleeditor-style-create.php
r5812 r11341 11 11 } 12 12 ?> 13 <h1><?php echo $_MIDCOM->i18n->get_string('create new element', 'midcom.admin.styleeditor'); ?></h1>13 <h1><?php echo $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'); ?></h1> 14 14 <div id="midcom_admin_styleeditor_style"> 15 15 <div class="message">&(data['message']);</div>
