Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/view/PholioMockImagesView.php
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | private function calculateBehaviorConfig() { | ||||
); | ); | ||||
$download_icon = array( | $download_icon = array( | ||||
javelin_tag('span', array('aural' => true), pht('Download File')), | javelin_tag('span', array('aural' => true), pht('Download File')), | ||||
id(new PHUIIconView())->setIconFont('fa-download'), | id(new PHUIIconView())->setIconFont('fa-download'), | ||||
); | ); | ||||
$login_uri = id(new PhutilURI('/login/')) | $login_uri = id(new PhutilURI('/login/')) | ||||
->setQueryParam('next', (string) $this->getRequestURI()); | ->setQueryParam('next', (string)$this->getRequestURI()); | ||||
$config = array( | $config = array( | ||||
'mockID' => $mock->getID(), | 'mockID' => $mock->getID(), | ||||
'panelID' => $this->panelID, | 'panelID' => $this->panelID, | ||||
'viewportID' => $this->viewportID, | 'viewportID' => $this->viewportID, | ||||
'commentFormID' => $this->getCommentFormID(), | 'commentFormID' => $this->getCommentFormID(), | ||||
'images' => $images, | 'images' => $images, | ||||
'selectedID' => $selected_id, | 'selectedID' => $selected_id, | ||||
'loggedIn' => $this->getUser()->isLoggedIn(), | 'loggedIn' => $this->getUser()->isLoggedIn(), | ||||
'logInLink' => (string) $login_uri, | 'logInLink' => (string)$login_uri, | ||||
'navsequence' => $navsequence, | 'navsequence' => $navsequence, | ||||
'fullIcon' => hsprintf('%s', $full_icon), | 'fullIcon' => hsprintf('%s', $full_icon), | ||||
'downloadIcon' => hsprintf('%s', $download_icon), | 'downloadIcon' => hsprintf('%s', $download_icon), | ||||
'currentSetSize' => $current_set, | 'currentSetSize' => $current_set, | ||||
); | ); | ||||
return $config; | return $config; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |