/** * Render HTML header for a given platform. * Also adds code to $options['tocCode'] */ function renderPlatformHeading($tocPrefix, $platform_id, $platform_name, &$options) { $platformLabel = lang_get('platform'); $platform_name = htmlspecialchars($platform_name); $options['tocCode'] .= '<p><a href="#' . prefixToHTMLID($tocPrefix) . '">' . $platformLabel . ':' . $platform_name . '</a></p>'; return '<h1 class="doclevel" id="' . prefixToHTMLID($tocPrefix) . "\">{$tocPrefix} {$platformLabel}: {$platform_name}</h1>"; }
/** * Render HTML header for a given platform. * Also adds code to $options['tocCode'] */ function renderPlatformHeading($tocPrefix, $platform, &$options) { $lbl = lang_get('platform'); $name = htmlspecialchars($platform['name']); $options['tocCode'] .= '<p> </p><b><p><a href="#' . prefixToHTMLID($tocPrefix) . '">' . "{$tocPrefix}. {$lbl}" . ':' . $name . '</a></p></b>'; $out = '<h1 class="doclevel" id="' . prefixToHTMLID($tocPrefix) . "\">{$tocPrefix}. {$lbl}: {$name}</h1>"; // platform description is enabled with test plan description option settings if ($options['showPlatformNotes']) { $out .= '<div class="txtlevel">' . $platform['notes'] . "</div>\n <br/>"; } return $out; }