Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/db/db_tag_processor.php
Show First 20 Lines • Show All 2706 Lines • ▼ Show 20 Line(s) | |||||
$template = $this->Application->getUnitOption($item_prefix, 'AdminTemplatePath') . '/' . $admin_template_prefix . 'edit'; | $template = $this->Application->getUnitOption($item_prefix, 'AdminTemplatePath') . '/' . $admin_template_prefix . 'edit'; | ||||
if ( !$admin_template_prefix ) { | if ( !$admin_template_prefix ) { | ||||
throw new InvalidArgumentException('Automatic admin editing template detection failed because of missing "AdminTemplatePrefix" unit config option in "' . $this->Prefix . '" unit config'); | throw new InvalidArgumentException('Automatic admin editing template detection failed because of missing "AdminTemplatePrefix" unit config option in "' . $this->Prefix . '" unit config'); | ||||
} | } | ||||
} | } | ||||
$form_name = 'kf_' . str_replace('-', '_', $item_prefix) . '_' . $object->GetID(); | $form_name = 'kf_' . str_replace('-', '_', $item_prefix) . '_' . $object->GetID(); | ||||
$form_name .= '_' . kUtil::crc32(json_encode($params)); | |||||
$button_icon = isset($params['button_icon']) ? $params['button_icon'] : 'content_mode.png'; | $button_icon = isset($params['button_icon']) ? $params['button_icon'] : 'content_mode.png'; | ||||
$button_class = isset($params['button_class']) ? $params['button_class'] : 'admin-edit-btn'; | $button_class = isset($params['button_class']) ? $params['button_class'] : 'admin-edit-btn'; | ||||
$button_title = isset($params['button_title']) ? $params['button_title'] : 'la_btn_AdminEditItem'; | $button_title = isset($params['button_title']) ? $params['button_title'] : 'la_btn_AdminEditItem'; | ||||
if ( substr($button_title, 0, 1) == '+' ) { | if ( substr($button_title, 0, 1) == '+' ) { | ||||
$button_title = substr($button_title, 1); | $button_title = substr($button_title, 1); | ||||
} | } | ||||
else { | else { | ||||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |