Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/content/content_tp.php
Show All 29 Lines | |||||
} | } | ||||
$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); | |||||
if ( isset($params['button_title']) && $params['button_title'] ) { | |||||
$button_phrase = $params['button_title']; | |||||
} | |||||
else { | |||||
$button_phrase = 'la_btn_EditContent'; | |||||
} | |||||
$params['button_title'] = '+' . $this->Application->Phrase($button_phrase, 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); | ||||
} | } | ||||
} | } |