Lines Matching defs:attributes

181      * @param TagAttributes $attributes
184 public static function htmlEnter(\Doku_Renderer_xhtml $renderer, \DokuWiki_Syntax_Plugin $plugin, $attributes = null)
187 if ($attributes == null) {
188 $attributes = TagAttributes::createEmpty();
194 $display = $attributes->getValueAndRemove("display");
212 if ($attributes->getLogicalTag() != null) {
213 $logicalTag = $attributes->getLogicalTag();
216 $attributes->setLogicalTag($logicalTag . "-container");
220 * The container is the passed `attributes`
225 $codeAttributes->setType($attributes->getType());
226 $language = $attributes->getValue(TagAttributes::TYPE_KEY);
281 $attributes->addHtmlAfterEnterTag($codeHtml);
288 if ($attributes->hasComponentAttribute("line-numbers")) {
289 $attributes->removeComponentAttribute("line-numbers");
290 $attributes->addClassName('line-numbers');
295 if ($attributes->hasComponentAttribute("prompt")) {
296 $attributes->addClassName("command-line");
297 $attributes->addOutputAttributeValue("data-prompt", $attributes->getValueAndRemove("prompt"));
301 $attributes->addClassName("command-line");
302 $attributes->addOutputAttributeValue("data-prompt", $plugin->getConf(self::CONF_BASH_PROMPT));
305 $attributes->addClassName("command-line");
312 $attributes->addOutputAttributeValue("data-prompt", $batch);
315 $attributes->addClassName("command-line");
322 $attributes->addOutputAttributeValue("data-prompt", $powerShell);
328 $attributes->addOutputAttributeValue('data-download-link', true);
329 if ($attributes->hasComponentAttribute(syntax_plugin_combo_code::FILE_PATH_KEY)) {
330 $fileSrc = $attributes->getValueAndRemove(syntax_plugin_combo_code::FILE_PATH_KEY);
331 $attributes->addOutputAttributeValue('data-src', $fileSrc);
332 $attributes->addOutputAttributeValue('data-download-link-label', "Download " . $fileSrc);
335 $attributes->addOutputAttributeValue('data-src', $fileName);
341 $htmlCode = $attributes->toHtmlEnterTag("pre");
353 * @param TagAttributes $attributes
355 public static function htmlExit(\Doku_Renderer_xhtml $renderer, $attributes = null)
358 if ($attributes != null) {
362 $display = $attributes->getValueAndRemove("display");