Index: branches/5.2.x/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r15246 -r15257 --- branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 15246) +++ branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 15257) @@ -1,6 +1,6 @@ 'm,c,content', - 'm_opener' => 'd', - 'c_id' => $page->GetID(), - 'content_id' => $content->GetID(), - 'front' => 1, - 'admin' => 1, - '__URLENCODE__' => 1, - '__NO_REWRITE__'=> 1, - 'escape' => 1, - 'index_file' => 'index.php', -// 'bgcolor' => $bg_color, -// '__FORCE_SID__' => 1 - ); + if ( EDITING_MODE == EDITING_MODE_CONTENT ) { + $button_code = $this->Application->ProcessParsedTag($content->getPrefixSpecial(), 'AdminEditButton', $params); - // link from Front-End to admin, don't remove "index.php" - $edit_url = $this->Application->HREF('categories/edit_content', ADMIN_DIRECTORY, $url_params, 'index.php'); $edit_code_before = '
-
-
- -
-
' . $this->Application->Phrase('la_btn_EditContent', false, true) . ' '.(defined('DEBUG_MODE') && DEBUG_MODE ? " - #{$num}" : '').'
-
+ ' . $button_code . '
'; - $edit_form = '
'; - $edit_form .= ''; - $edit_form .= ''; - $edit_form .= ''; - $edit_form .= ''; - $edit_form .= ''; - $edit_form .= '
'; - $edit_code_after = '
'; - - if (array_key_exists('forms_later', $params) && $params['forms_later']) { - $all_forms = $this->Application->GetVar('all_forms'); - $this->Application->SetVar('all_forms', $all_forms . $edit_form); - } - else { - $edit_code_after .= $edit_form; - } } - if ($this->Application->GetVar('_editor_preview_') == 1) { + if ( $this->Application->GetVar('_editor_preview_') == 1 ) { $data = $this->Application->RecallVar('_editor_preview_content_'); - } else { + } + else { $data = $content->GetField('Content'); } $data = $edit_code_before . $this->_transformContentBlockData($data, $params) . $edit_code_after; - if ($data != '') { + if ( $data != '' ) { $this->Application->Parser->DataExists = true; } @@ -1389,6 +1353,10 @@ $ret = '' . "\n"; + $ret .= ' '; + if ( EDITING_MODE == EDITING_MODE_DESIGN ) { $ret .= '