Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/content/content_tp.php
Show All 23 Lines | |||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function AdminEditButton($params) | protected function AdminEditButton($params) | ||||
{ | { | ||||
if ( EDITING_MODE != EDITING_MODE_CONTENT ) { | if ( EDITING_MODE != EDITING_MODE_CONTENT ) { | ||||
return ''; | return ''; | ||||
} | } | ||||
/** @var kDBItem $object */ | |||||
$object = $this->getObject($params); | |||||
$params['pass'] = 'm,c,content'; | |||||
$params['c_id'] = $object->GetDBField('PageId'); | |||||
$params['admin'] = 1; | $params['admin'] = 1; | ||||
$params['temp_mode'] = 0; | $params['temp_mode'] = 0; | ||||
$params['template'] = 'categories/edit_content'; | $params['template'] = 'categories/edit_content'; | ||||
$params['button_icon'] = 'content_mode.png'; | $params['button_icon'] = 'content_mode.png'; | ||||
$params['button_class'] = 'cms-edit-btn'; | $params['button_class'] = 'cms-edit-btn'; | ||||
$params['button_title'] = '+' . $this->Application->Phrase('la_btn_EditContent', false, true); | $params['button_title'] = '+' . $this->Application->Phrase('la_btn_EditContent', false, true); | ||||
if ( defined('DEBUG_MODE') && DEBUG_MODE ) { | if ( defined('DEBUG_MODE') && DEBUG_MODE ) { | ||||
$params['button_title'] .= ' - #' . $params['num']; | $params['button_title'] .= ' - #' . $params['num']; | ||||
} | } | ||||
unset($params['num']); | unset($params['num']); | ||||
return parent::AdminEditButton($params); | return parent::AdminEditButton($params); | ||||
} | } | ||||
} | |||||
No newline at end of file | } |