Changeset View
Changeset View
Standalone View
Standalone View
src/view/AphrontDialogView.php
| Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | public function render() { | ||||
| switch ($this->width) { | switch ($this->width) { | ||||
| case self::WIDTH_FORM: | case self::WIDTH_FORM: | ||||
| case self::WIDTH_FULL: | case self::WIDTH_FULL: | ||||
| $more .= ' aphront-dialog-view-width-'.$this->width; | $more .= ' aphront-dialog-view-width-'.$this->width; | ||||
| break; | break; | ||||
| case self::WIDTH_DEFAULT: | case self::WIDTH_DEFAULT: | ||||
| break; | break; | ||||
| default: | default: | ||||
| throw new Exception("Unknown dialog width '{$this->width}'!"); | throw new Exception( | ||||
| pht( | |||||
| "Unknown dialog width '%s'!", | |||||
| $this->width)); | |||||
| } | } | ||||
| if ($this->isStandalone) { | if ($this->isStandalone) { | ||||
| $more .= ' aphront-dialog-view-standalone'; | $more .= ' aphront-dialog-view-standalone'; | ||||
| } | } | ||||
| $attributes = array( | $attributes = array( | ||||
| 'class' => 'aphront-dialog-view '.$more, | 'class' => 'aphront-dialog-view '.$more, | ||||
| ▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines | |||||