Lines Matching refs:attributes
192 * @param TagAttributes $attributes
195 …tion htmlEnter(\Doku_Renderer_xhtml $renderer, \DokuWiki_Syntax_Plugin $plugin, $attributes = null) argument
198 if ($attributes == null) {
199 $attributes = TagAttributes::createEmpty();
205 $display = $attributes->getValueAndRemove("display");
223 if ($attributes->getLogicalTag() != null) {
224 $logicalTag = $attributes->getLogicalTag();
227 $attributes->setLogicalTag($logicalTag . "-container");
236 $codeAttributes->setType($attributes->getType());
237 $language = $attributes->getValue(TagAttributes::TYPE_KEY);
296 $attributes->addHtmlAfterEnterTag($codeHtml);
304 if ($attributes->hasComponentAttribute(self::LINE_NUMBERS_ATTR)) {
305 $attributes->removeComponentAttribute(self::LINE_NUMBERS_ATTR);
306 $attributes->addClassName("line-numbers");
317 if ($attributes->hasComponentAttribute("prompt")) {
318 $promptValue = $attributes->getValueAndRemove("prompt");
321 $attributes->addClassName("command-line");
322 $attributes->addOutputAttributeValue("data-prompt", $promptValue);
350 $attributes->addClassName("command-line");
351 $attributes->addOutputAttributeValue("data-prompt", $prompt);
359 if ($attributes->hasComponentAttribute("line-highlight")) {
360 $lineHighlight = $attributes->getValueAndRemove("line-highlight");
362 $attributes->addOutputAttributeValue('data-line', $lineHighlight);
367 $attributes->addOutputAttributeValue('data-download-link', true);
368 if ($attributes->hasComponentAttribute(syntax_plugin_combo_code::FILE_PATH_KEY)) {
369 $fileSrc = $attributes->getValueAndRemove(syntax_plugin_combo_code::FILE_PATH_KEY);
370 $attributes->addOutputAttributeValue('data-src', $fileSrc);
371 … $attributes->addOutputAttributeValue('data-download-link-label', "Download " . $fileSrc);
374 $attributes->addOutputAttributeValue('data-src', $fileName);
380 $htmlCode = $attributes->toHtmlEnterTag("pre");
392 * @param TagAttributes $attributes
394 public static function htmlExit(\Doku_Renderer_xhtml $renderer, $attributes = null) argument
397 if ($attributes != null) {
401 $display = $attributes->getValueAndRemove("display");