_title = $title; } /** * Render the header (from to the statusblock or the navbar) * @param boolean $renderStatusBlock (optional) Flag to show status block (default: false). */ function renderHeader($renderStatusBlock=false) { $templateData = array(); $templateData['showHeader'] = 1; $templateData['title'] = $this->_title; if ($renderStatusBlock) { $templateData['showStatusBlock'] = 1; } include(dirname(__FILE__) . '/templates/SupportStatus.html'); } /** * Render a single status message * @param string $title the status title * @param string $description the status description * @param float $percentComplete ranging from 0 to 1 * @return GalleryStatus a status code */ function renderStatusMessage($title, $description, $percentComplete) { $templateData = array(); $templateData['showStatus'] = 1; $templateData['status'] = array('title' => $title, 'description' => $description, 'percentComplete' => GalleryUtilities::roundToString($percentComplete, 2)); include(dirname(__FILE__) . '/templates/SupportStatus.html'); flush(); return null; } /** * Render the body and footer (everything below the status message) * @param array $templateData */ function renderBodyAndFooter($templateData) { $templateData['showBodyAndFooter'] = 1; $templateData['title'] = $this->_title; include(dirname(__FILE__) . '/templates/SupportStatus.html'); } /** * Hide the status block */ function hideStatusBlock() { $templateData = array(); $templateData['hideStatusBlock'] = 1; include(dirname(__FILE__) . '/templates/SupportStatus.html'); } /** * Render the whole page, except for the status block and messages. This is the way * that we render most pages that don't have interactive status messages. * @param array $templateData */ function renderHeaderBodyAndFooter($templateData) { $templateData['showHeader'] = 1; $templateData['title'] = $this->_title; $templateData['showBodyAndFooter'] = 1; include(dirname(__FILE__) . '/templates/SupportStatus.html'); } } ?>