Changeset View
Changeset View
Standalone View
Standalone View
src/view/formation/PHUIFormationFlankView.php
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | public function render() { | ||||
| if ($this->getIsFixed()) { | if ($this->getIsFixed()) { | ||||
| $classes[] = 'phui-flank-view-fixed'; | $classes[] = 'phui-flank-view-fixed'; | ||||
| } | } | ||||
| $head_id = $this->getHeadID(); | $head_id = $this->getHeadID(); | ||||
| $body_id = $this->getBodyID(); | $body_id = $this->getBodyID(); | ||||
| $tail_id = $this->getTailID(); | $tail_id = $this->getTailID(); | ||||
| $head_content = phutil_tag( | $header = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phui-flank-header', | 'class' => 'phui-flank-header', | ||||
| ), | ), | ||||
| array( | array( | ||||
| phutil_tag( | phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| Show All 12 Lines | $content = phutil_tag( | ||||
| ), | ), | ||||
| array( | array( | ||||
| phutil_tag( | phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'id' => $head_id, | 'id' => $head_id, | ||||
| 'class' => 'phui-flank-view-head', | 'class' => 'phui-flank-view-head', | ||||
| ), | ), | ||||
| $head_content), | array( | ||||
| $header, | |||||
| $this->head, | |||||
| )), | |||||
| phutil_tag( | phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'id' => $body_id, | 'id' => $body_id, | ||||
| 'class' => 'phui-flank-view-body', | 'class' => 'phui-flank-view-body', | ||||
| ), | ), | ||||
| $this->getBody()), | $this->body), | ||||
| phutil_tag( | phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'id' => $tail_id, | 'id' => $tail_id, | ||||
| 'class' => 'phui-flank-view-tail', | 'class' => 'phui-flank-view-tail', | ||||
| ), | ), | ||||
| $this->getTail()), | $this->tail), | ||||
| )); | )); | ||||
| return $content; | return $content; | ||||
| } | } | ||||
| private function newHideButton() { | private function newHideButton() { | ||||
| $item = $this->getColumnItem(); | $item = $this->getColumnItem(); | ||||
| $is_right = $item->getIsRightAligned(); | $is_right = $item->getIsRightAligned(); | ||||
| Show All 24 Lines | |||||