Home
last modified time | relevance | path

Searched refs:tagAttributes (Results 1 – 25 of 101) sorted by relevance

12345

/plugin/combo/ComboStrap/TagAttribute/
H A DBackgroundAttribute.php63 public static function processBackgroundAttributes(TagAttributes &$tagAttributes) argument
69 if ($tagAttributes->hasComponentAttribute(self::BACKGROUNDS)) {
71 $backgrounds = $tagAttributes->getValueAndRemove(self::BACKGROUNDS);
92 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_IMAGE, $backgroundImage);
96 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_COLOR, $backgroundColor);
100 $tagAttributes->addComponentAttributeValueIfNotEmpty(Opacity::OPACITY_ATTRIBUTE, $opacityAttribute);
104 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_POSITION, $backgroundPosition);
108 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_FILL, $backgroundFill);
117 $tagAttributes->addHtmlAfterEnterTag($backgroundHTML);
132 $tagAttributes
298 processPatternAttribute(TagAttributes& $tagAttributes) global() argument
[all...]
H A DBoldness.php21 * @param TagAttributes $tagAttributes
23 public static function processBoldnessAttribute(TagAttributes &$tagAttributes) argument
26 if ($tagAttributes->hasComponentAttribute(self::BOLDNESS_ATTRIBUTE)) {
27 $value = $tagAttributes->getValueAndRemove(self::BOLDNESS_ATTRIBUTE);
31 if ($tagAttributes->hasComponentAttribute($booleanAttribute)) {
32 $tagAttributes->removeComponentAttribute($booleanAttribute);
39 $tagAttributes->addClassName("fw-$value");
42 $tagAttributes->addStyleDeclarationIfNotSet("font-weight", $value);
H A DStyleAttribute.php65 * @param TagAttributes $tagAttributes
67 public static function addStylingClass(TagAttributes &$tagAttributes) argument
69 $logicalTag = $tagAttributes->getLogicalTag();
70 if ($logicalTag !== null && $tagAttributes->getDefaultStyleClassShouldBeAdded() === true) {
72 $tagAttributes->addClassName(self::addComboStrapSuffix($logicalTag));
73 if (!empty($tagAttributes->getType())) {
74 $tagAttributes->addClassName($logicalTag . "-" . $tagAttributes->getType() . "-" . self::COMBOSTRAP_FIX);
/plugin/combo/ComboStrap/
H A DButtonTag.php38 * @param TagAttributes $tagAttributes
40 public static function processButtonAttributesToHtmlAttributes(TagAttributes &$tagAttributes) argument
44 $tagAttributes->addClassName($btn);
46 $type = $tagAttributes->getValue(TagAttributes::TYPE_KEY, "primary");
47 $skin = $tagAttributes->getValue(Skin::SKIN_ATTRIBUTE, Skin::FILLED_VALUE);
51 $tagAttributes->addClassName("$btn-$type");
52 $tagAttributes->addComponentAttributeValue(Shadow::CANONICAL, true);
57 $tagAttributes->addClassName("$btn-$type");
62 $tagAttributes->addClassName("$btn-outline-$type");
67 $tagAttributes
157 renderEnterXhtml(TagAttributes $tagAttributes, DokuWiki_Syntax_Plugin $plugin, array $data) global() argument
[all...]
H A DTabsTag.php66 * @param $tagAttributes
69 public static function openNavigationalTabsElement(TagAttributes $tagAttributes): string
75 $tagAttributes->removeComponentAttributeIfPresent(self::KEY_PANEL_ATTRIBUTES);
80 $type = self::getComponentType($tagAttributes);
106 if (!$tagAttributes->hasAttribute(Spacing::SPACING_ATTRIBUTE)) {
107 $tagAttributes->addComponentAttributeValue(Spacing::SPACING_ATTRIBUTE, "mb-3");
109 $tagAttributes->addClassName("nav")
111 $tagAttributes->addOutputAttributeValue('role', 'tablist');
112 $html = $tagAttributes->toHtmlEnterTag("ul");
119 $tagAttributes
67 openNavigationalTabsElement(TagAttributes $tagAttributes) global() argument
198 openTabPanelsElement(TagAttributes $tagAttributes) global() argument
223 getComponentType(TagAttributes $tagAttributes) global() argument
238 closeTabPanelsElement(TagAttributes $tagAttributes) global() argument
368 renderEnterXhtml(TagAttributes $tagAttributes, array $data) global() argument
393 renderExitXhtml(TagAttributes $tagAttributes, array $data) global() argument
[all...]
H A DNoteTag.php29 public static function renderEnterInlineNote(TagAttributes $tagAttributes): string argument
31 $tagAttributes->addClassName("badge");
35 $type = $tagAttributes->getValue(TagAttributes::TYPE_KEY);
53 $tagAttributes->addClassName("alert-" . $type);
55 $tagAttributes->addClassName("badge-" . $type);
58 if (!$tagAttributes->hasComponentAttribute("background-color")) {
59 $tagAttributes->addStyleDeclarationIfNotSet("background-color", "#fff79f"); // lum - 195
60 $tagAttributes->addClassName("text-dark");
63 $rounded = $tagAttributes->getValueAndRemove(NoteTag::ATTRIBUTE_ROUNDED);
65 $tagAttributes
[all...]
H A DIcon.php10 private TagAttributes $tagAttributes; variable in ComboStrap\\Icon
39 public static function createFromTagAttributes(TagAttributes $tagAttributes): Icon argument
45 $tagAttributes->addComponentAttributeValue(TagAttributes::TYPE_KEY, FetcherSvg::ICON_TYPE);
50 $name = $tagAttributes->getValue(FetcherSvg::NAME_ATTRIBUTE);
73 $tagAttributes->addComponentAttributeValue(MediaMarkup::$MEDIA_QUERY_PARAMETER, $mediaDokuPath->getWikiId());
74 $tagAttributes->setComponentAttributeValue(FetcherSvg::NAME_ATTRIBUTE, $mediaDokuPath->getLastNameWithoutExtension());
85 $fetcherSvg = FetcherSvg::createFromAttributes($tagAttributes);
89 ->setTagAttributes($tagAttributes);
94 public static function createFromComboResource(string $name, TagAttributes $tagAttributes = null): Icon argument
100 if ($tagAttributes !
112 setTagAttributes(TagAttributes $tagAttributes) global() argument
[all...]
H A DXmlTagProcessing.php42 public static function renderStaticExitXhtml(TagAttributes $tagAttributes, Doku_Renderer_xhtml $renderer, array $data, DokuWiki_Syntax_Plugin $plugin): bool argument
44 $logicalTag = $tagAttributes->getLogicalTag();
47 BlockquoteTag::renderExitXhtml($tagAttributes, $renderer, $data);
50 $renderer->doc .= BoxTag::renderExitXhtml($tagAttributes);
66 PrismTags::processExitXhtml($tagAttributes, $renderer);
72 $renderer->doc .= GridTag::renderExitXhtml($tagAttributes);
86 $renderer->doc .= HeadingTag::renderClosingTag($tagAttributes, $context);
101 $renderer->doc .= TabsTag::renderExitXhtml($tagAttributes, $data);
110 $renderer->doc .= WebCodeTag::renderExit($tagAttributes, $data);
113 $renderer->doc .= ShareTag::renderExit($tagAttributes);
170 renderStaticEnterXhtml(TagAttributes $tagAttributes, Doku_Renderer_xhtml $renderer, array $data, DokuWiki_Syntax_Plugin $plugin) global() argument
890 renderStaticEnterSpecialMetadata(TagAttributes $tagAttributes, Doku_Renderer_metadata $renderer, array $data, DokuWiki_Syntax_Plugin $plugin) global() argument
[all...]
H A DBreadcrumbTag.php45 * @param TagAttributes|null $tagAttributes
48 public static function toBreadCrumbHtml(TagAttributes $tagAttributes = null): string argument
51 if ($tagAttributes === null) {
52 $tagAttributes = TagAttributes::createEmpty(self::MARKUP_BLOCK);
59 $path = \syntax_plugin_combo_iterator::getContextPathForComponentThatMayBeInFragment($tagAttributes);
62 $type = $tagAttributes->getType();
74 $tagAttributes->addOutputAttributeValue("aria-label", "Hierarchical breadcrumb");
75 $htmlOutput = $tagAttributes->toHtmlEnterTag("nav");
96 $requiredDepth = DataType::toInteger($tagAttributes->getValueAndRemoveIfPresent(self::DEPTH_ATTRIBUTE));
104 $htmlOutput = $tagAttributes
172 render(TagAttributes $tagAttributes) global() argument
196 handleEnter(TagAttributes $tagAttributes) global() argument
[all...]
H A DHeadingTag.php191 $tagAttributes = TagAttributes::createFromCallStackArray($callStackArray);
192 $text = $tagAttributes->getValue(HeadingTag::HEADING_TEXT_ATTRIBUTE);
196 $level = $tagAttributes->getValue(HeadingTag::LEVEL);
201 $parsedLabel = $tagAttributes->getValue(self::PARSED_LABEL);
224 $tagAttributes = TagAttributes::createFromCallStackArray($callStackArray);
225 $text = $tagAttributes->getValue(HeadingTag::HEADING_TEXT_ATTRIBUTE);
226 $level = $tagAttributes->getValue(HeadingTag::LEVEL);
234 * @param TagAttributes $tagAttributes
239 public static function processRenderEnterXhtml(string $context, TagAttributes $tagAttributes, Doku_Renderer_xhtml &$renderer, ?int $pos) argument
251 $type = $tagAttributes
391 renderClosingTag(TagAttributes $tagAttributes, string $context) global() argument
470 handleEnter(\\Doku_Handler $handler, TagAttributes $tagAttributes, string $markupTag) global() argument
[all...]
H A DIconTag.php19 public static function handleSpecial(TagAttributes $tagAttributes, Doku_Handler $handler): array argument
37 $requestedColor = $tagAttributes->getValue(ColorRgb::COLOR);
48 $requestedWidth = $tagAttributes->getValue(Dimension::WIDTH_KEY, FetcherSvg::DEFAULT_ICON_LENGTH);
63 $tagAttributes->setComponentAttributeValue(ColorRgb::COLOR, $color);
79 * @param TagAttributes $tagAttributes
82 public static function renderEmptyTag(TagAttributes $tagAttributes): string argument
86 return Icon::createFromTagAttributes($tagAttributes)
90 return IconTag::exceptionHandling($e, $tagAttributes);
114 public static function handleEnter(TagAttributes $tagAttributes, Doku_Handler $handler): array argument
116 return self::handleSpecial($tagAttributes,
129 renderEnterTag(TagAttributes $tagAttributes) global() argument
[all...]
H A DBrandTag.php25 public static function handleSpecialEnter(TagAttributes $tagAttributes, \Doku_Handler $handler): array argument
55 $value = $tagAttributes->getComponentAttributeValue(self::WIDGET_ATTRIBUTE);
62 $tagAttributes->addComponentAttributeValue(self::WIDGET_ATTRIBUTE, $defaultWidget);
69 public static function render(TagAttributes $tagAttributes, int $state, array $data): string argument
75 $brandName = $tagAttributes->getType();
77 $brandButton = self::createButtonFromAttributes($tagAttributes);
97 $tagAttributes = self::mixBrandButtonToTagAttributes($tagAttributes, $brandButton);
103 $tagAttributes->addOutputAttributeValue("accesskey", "h");
104 $tagAttributes
226 mixBrandButtonToTagAttributes(TagAttributes $tagAttributes, BrandButton $brandButton) global() argument
[all...]
H A DFontSize.php33 * @param TagAttributes $tagAttributes
35 public static function processFontSizeAttribute(TagAttributes &$tagAttributes) argument
38 if ($tagAttributes->hasComponentAttribute(self::FONT_SIZE)) {
39 $value = $tagAttributes->getValueAndRemove(self::FONT_SIZE);
43 $tagAttributes->addClassName("fs-$headingValue");
51 $tagAttributes->addClassName("fs-$headingValue");
53 $tagAttributes->addStyleDeclarationIfNotSet("font-size", $value);
H A DPageImageTag.php52 public static function handle($tagAttributes, $handler): array argument
66 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray(),
71 public static function render(TagAttributes $tagAttributes, array $data) argument
78 $path = syntax_plugin_combo_iterator::getContextPathForComponentThatMayBeInFragment($tagAttributes);
86 $zoom = $tagAttributes->getValueAndRemoveIfPresent(Dimension::ZOOM_ATTRIBUTE, self::DEFAULT_ZOOM);
91 $order = self::getOrderOfPreference($tagAttributes);
128 $width = $tagAttributes->getValueAndRemoveIfPresent(Dimension::WIDTH_KEY);
129 $height = $tagAttributes->getValueAndRemoveIfPresent(Dimension::HEIGHT_KEY);
130 $ratio = $tagAttributes->getValueAndRemoveIfPresent(Dimension::RATIO_ATTRIBUTE);
200 $tagAttributes
293 getOrderOfPreference(TagAttributes $tagAttributes) global() argument
[all...]
H A DTooltip.php19 public static function processTooltip(TagAttributes &$tagAttributes) argument
22 $tooltip = $tagAttributes->getValueAndRemove(self::TOOLTIP_ATTRIBUTE);
56 $tagAttributes->addOutputAttributeValue("data{$dataAttributeNamespace}-html", "true");
65 $tagAttributes->addOutputAttributeValue("title", $title);
71 $tagAttributes->addOutputAttributeValue("data{$dataAttributeNamespace}-toggle", "tooltip");
80 $tagAttributes->addOutputAttributeValue("data{$dataAttributeNamespace}-placement", "{$position}");
91 $logicalTag = $tagAttributes->getLogicalTag();
93 $tagAttributes->addOutputAttributeValue("tabindex", "0");
H A DPanelTag.php36 public static function getSelectedValue(TagAttributes $tagAttributes) argument
38 $selected = $tagAttributes->getValueAndRemoveIfPresent(PanelTag::SELECTED);
46 if ($tagAttributes->hasComponentAttribute(TagAttributes::TYPE_KEY)) {
47 $type = $tagAttributes->getType();
57 public static function handleEnter(TagAttributes $tagAttributes, Doku_Handler $handler, string $markupTag): array argument
81 $id = $tagAttributes->getId();
84 $tagAttributes->setId($id);
97 $tagAttributes->setComponentAttributeValue(PanelTag::SELECTED, false);
106 $tagAttributes->setComponentAttributeValue(PanelTag::SELECTED, true);
183 public static function renderEnterXhtml(TagAttributes $tagAttributes, arra argument
[all...]
H A DDisplay.php14 public static function processDisplay(TagAttributes &$tagAttributes) argument
17 $display = $tagAttributes->getValueAndRemove(self::DISPLAY);
22 $tagAttributes->addStyleDeclarationIfNotSet("display", "none");
26 $id = $tagAttributes->getId();
28 $id = $tagAttributes->getDefaultGeneratedId();
29 $tagAttributes->setId($id);
H A DOpacity.php21 * @param TagAttributes $tagAttributes
23 public static function processOpacityAttribute(TagAttributes &$tagAttributes){ argument
25 if ($tagAttributes->hasComponentAttribute(self::OPACITY_ATTRIBUTE)) {
26 $value = $tagAttributes->getValueAndRemove(self::OPACITY_ATTRIBUTE);
27 $tagAttributes->addStyleDeclarationIfNotSet("opacity",$value);
H A DThirdMediaLink.php21 $tagAttributes = $this->mediaMarkup->getExtraMediaTagAttributes();
25 $tagAttributes->addOutputAttributeValue("href", $urlString);
32 $tagAttributes->addOutputAttributeValue("title", $label);
35 $tagAttributes
42 $tagAttributes->addClassName("mf_$extension");
48 $tagAttributes->addClassName(LinkMarkup::getHtmlClassNotExist());
51 return $tagAttributes->toHtmlEnterTag("a") . $label . "</a>";
/plugin/combo/syntax/
H A Dtoggle.php109 $tagAttributes = TagAttributes::createFromTagMatch($match, $defaultParameters, $knownTypes)
114 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray()
150 $tagAttributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES])
153 $targetId = $tagAttributes->getValueAndRemoveIfPresent("target-id");
170 $type = $tagAttributes->getType();
172 $tagAttributes->addClassName("btn-$type");
180 $tagAttributes->addComponentAttributeValue("data-{$bootstrapNamespace}toggle", "collapse");
181 $tagAttributes->addComponentAttributeValue("data-{$bootstrapNamespace}target", $targetId);
186 $toggleState = $tagAttributes->getValueAndRemove(Toggle::TOGGLE_STATE, Toggle::TOGGLE_STATE_COLLAPSED);
189 $tagAttributes
[all...]
H A Dbadge.php120 $tagAttributes = TagAttributes::createFromTagMatch($match, $defaultConfValue, $knownTypes);
126 $tagAttributes->addClassName("badge");
127 $type = $tagAttributes->getType();
156 $backgroundColor = $tagAttributes->getValue(ColorRgb::BACKGROUND_COLOR);
171 $tagAttributes->addStyleDeclarationIfNotSet(ColorRgb::BACKGROUND_COLOR, $backgroundColor);
173 if (!$tagAttributes->hasComponentAttribute(ColorRgb::BORDER_COLOR)) {
175 $tagAttributes->addStyleDeclarationIfNotSet(ColorRgb::BORDER_COLOR, $borderColor);
177 if (!$tagAttributes->hasComponentAttribute(ColorRgb::COLOR)) {
189 $tagAttributes->addStyleDeclarationIfNotSet(ColorRgb::COLOR, $textColor);
192 $tagAttributes
[all...]
H A Dmenubar.php172 $tagAttributes = TagAttributes::createFromTagMatch($match, $default);
175 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray()
217 $tagAttributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES]);
218 $tagAttributes->addClassName('navbar');
225 $breakpoint = $tagAttributes->getValueAndRemoveIfPresent(self::BREAKPOINT_ATTRIBUTE);
226 $tagAttributes->addClassName("navbar-expand-$breakpoint");
230 $position = $tagAttributes->getValueAndRemove(self::POSITION);
246 $tagAttributes->addOutputAttributeValue("data-type", $fixedTopClass);
260 $theme = $tagAttributes->getValueAndRemove(self::THEME_ATTRIBUTE);
261 $tagAttributes
[all...]
/plugin/combo/ComboStrap/Tag/
H A DRelatedTag.php38 * @param TagAttributes $tagAttributes
43 public static function render(TagAttributes $tagAttributes): string argument
45 $path = syntax_plugin_combo_iterator::getContextPathForComponentThatMayBeInFragment($tagAttributes);
47 return self::renderForPage($contextPage, $tagAttributes);
50 public static function renderForPage(MarkupPath $page, TagAttributes $tagAttributes = null): string argument
54 if ($tagAttributes === null) {
55 $tagAttributes = TagAttributes::createEmpty()
59 $max = $tagAttributes->getValue(RelatedTag::MAX_LINKS_CONF);
64 $tagAttributes->addClassName("d-print-none");
65 $html = $tagAttributes
[all...]
H A DMermaidTag.php52 * @param TagAttributes $tagAttributes
55 public static function renderEnter(TagAttributes $tagAttributes): string argument
58 $content = $tagAttributes->getValueAndRemoveIfPresent(self::MARKUP_CONTENT_ATTRIBUTE);
60 $tagAttributes->addClassName(MermaidTag::CLASS_NAME);
61 $html = $tagAttributes->toHtmlEnterTag("div");
114 $tagAttributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES]);
115 $renderer->doc .= MermaidTag::renderEnter($tagAttributes);
146 $tagAttributes = TagAttributes::createFromTagMatch($match);
149 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray()
H A DWebCodeTag.php213 public static function renderExit(TagAttributes $tagAttributes, array $data) argument
218 $type = $tagAttributes->getType();
227 $tagAttributes->removeComponentAttributeIfPresent(WebCodeTag::RENDERING_MODE_ATTRIBUTE);
250 $tagAttributes->addComponentAttributeValue(MermaidTag::MARKUP_CONTENT_ATTRIBUTE, $mermaidCode);
251 return MermaidTag::renderEnter($tagAttributes);
267 $html = $tagAttributes->toHtmlEnterTag("div");
290 $tagAttributes->removeComponentAttribute(WebCodeTag::IFRAME_BOOLEAN_ATTRIBUTE);
292 if (!$tagAttributes->hasAttribute(TagAttributes::NAME_ATTRIBUTE)) {
293 $tagAttributes->addOutputAttributeValueIfNotEmpty(TagAttributes::NAME_ATTRIBUTE, "WebCode iFrame");
299 $tagAttributes
495 finishIframe(TagAttributes $tagAttributes, string $bar = '') global() argument
[all...]

12345