Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherenceLayoutView.php
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | public function setThreadView(ConpherenceThreadListView $thead_view) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setLatestTransactionID($id) { | public function setLatestTransactionID($id) { | ||||
$this->latestTransactionID = $id; | $this->latestTransactionID = $id; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getWidgetColumnVisible() { | |||||
$widget_key = PhabricatorConpherenceWidgetVisibleSetting::SETTINGKEY; | |||||
$user = $this->getUser(); | |||||
return (bool)$user->getUserSetting($widget_key, false); | |||||
} | |||||
protected function getTagAttributes() { | protected function getTagAttributes() { | ||||
$classes = array(); | $classes = array(); | ||||
if (!$this->getWidgetColumnVisible()) { | $classes[] = 'conpherence-layout'; | ||||
$classes[] = 'hide-widgets'; | $classes[] = 'hide-widgets'; | ||||
} | $classes[] = 'conpherence-role-'.$this->role; | ||||
return array( | return array( | ||||
'id' => 'conpherence-main-layout', | 'id' => 'conpherence-main-layout', | ||||
'sigil' => 'conpherence-layout', | 'sigil' => 'conpherence-layout', | ||||
'class' => 'conpherence-layout '. | 'class' => implode(' ', $classes), | ||||
implode(' ', $classes). | |||||
' conpherence-role-'.$this->role, | |||||
); | ); | ||||
} | } | ||||
protected function getTagContent() { | protected function getTagContent() { | ||||
require_celerity_resource('conpherence-menu-css'); | require_celerity_resource('conpherence-menu-css'); | ||||
require_celerity_resource('conpherence-message-pane-css'); | require_celerity_resource('conpherence-message-pane-css'); | ||||
require_celerity_resource('conpherence-participant-pane-css'); | require_celerity_resource('conpherence-participant-pane-css'); | ||||
$selected_id = null; | $selected_id = null; | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |