servermgrv2 init...

This commit is contained in:
최준흠 2023-07-26 11:36:27 +09:00
parent 3dc91f7842
commit 27a11a9205

View File

@ -94,20 +94,23 @@ function getFieldIndex_Row_BoardHelper($field, $entity, array $fieldFilters, $fi
$value = $entity->$field ?: DEFAULTS['EMPTY']; $value = $entity->$field ?: DEFAULTS['EMPTY'];
switch ($field) { switch ($field) {
case 'title': case 'title':
return anchor( return sprintf(
current_url() . '/view/' . $entity->getPrimaryKey(), "<div style=\"text-align:left;\">%s%s</div>",
$value, anchor(
[ current_url() . '/view/' . $entity->getPrimaryKey(),
...$attributes, $value,
"style" => sprintf("padding-left:%spx", $entity->getHierarchy_Depth() * DEFAULTS['HIERARCHY_GRPDEPTH']), [
"target" => "_self" ...$attributes,
] "style" => sprintf("padding-left:%spx", $entity->getHierarchy_Depth() * DEFAULTS['HIERARCHY_GRPDEPTH']),
) . "target" => "_self"
]
),
anchor( anchor(
current_url() . '/reply/' . $entity->getPrimaryKey(), current_url() . '/reply/' . $entity->getPrimaryKey(),
ICONS["REPLY"], ICONS["REPLY"],
["target" => "_self"] ["target" => "_self"]
); )
);
break; break;
case 'board_file': case 'board_file':
case 'upload_file': case 'upload_file':