Home
last modified time | relevance | path

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

123

/plugin/combo/ComboStrap/
H A DBackground.php49 public static function processBackgroundAttributes(TagAttributes &$tagAttributes) argument
55 if ($tagAttributes->hasComponentAttribute(self::BACKGROUNDS)) {
57 $backgrounds = $tagAttributes->getValueAndRemove(self::BACKGROUNDS);
88 $tagAttributes->addHtmlAfterEnterTag($backgroundHTML);
103 $tagAttributes->addHtmlAfterEnterTag($backgroundHTML);
112 if ($tagAttributes->hasComponentAttribute(self::BACKGROUND_IMAGE)) {
201 self::processPatternAttribute($tagAttributes);
206 if ($tagAttributes->hasComponentAttribute(self::BACKGROUND_COLOR)) {
263 * @param TagAttributes $tagAttributes
273 if ($tagAttributes->hasComponentAttribute(self::PATTERN_ATTRIBUTE)) {
[all …]
H A DSvgDocument.php145 * @param TagAttributes $tagAttributes
148 public function getXmlText($tagAttributes = null): string argument
151 if ($tagAttributes == null) {
152 $tagAttributes = TagAttributes::createEmpty();
160 if ($tagAttributes->hasComponentAttribute("name")) {
161 $name = $tagAttributes->getValueAndRemove("name");
279 $tagAttributes->addStyleDeclaration("width", "100%");
280 $tagAttributes->addStyleDeclaration("height", "auto");
318 $toHtmlArray = $tagAttributes->toHtmlArray();
327 public function getOptimizedSvg($tagAttributes = null) argument
[all …]
H A DBoldness.php18 * @param TagAttributes $tagAttributes
20 public static function processBoldnessAttribute(TagAttributes &$tagAttributes) argument
23 if ($tagAttributes->hasComponentAttribute(self::BOLDNESS_ATTRIBUTE)) {
24 $value = $tagAttributes->getValueAndRemove(self::BOLDNESS_ATTRIBUTE);
28 if ($tagAttributes->hasComponentAttribute($booleanAttribute)) {
29 $tagAttributes->removeComponentAttribute($booleanAttribute);
36 $tagAttributes->addClassName("fw-$value");
39 $tagAttributes->addStyleDeclaration("font-weight", $value);
H A DMediaLink.php157 $tagAttributes = TagAttributes::createEmpty();
159 $tagAttributes->addComponentAttributeValue(self::ALIGN_KEY, $align);
160 $tagAttributes->addComponentAttributeValue(Dimension::WIDTH_KEY, $width);
163 $tagAttributes->addComponentAttributeValue(self::LINKING_KEY, $linking);
165 return self::createMediaLinkFromNonQualifiedPath($id, $tagAttributes);
200 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
352 * @param TagAttributes $tagAttributes
362 if ($tagAttributes == null) {
363 $tagAttributes = TagAttributes::createEmpty();
365 if (!($tagAttributes instanceof TagAttributes)) {
[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->addStyleDeclaration("font-size", $value);
H A DOpacity.php19 * @param TagAttributes $tagAttributes
21 public static function processOpacityAttribute(TagAttributes &$tagAttributes){ argument
23 if ($tagAttributes->hasComponentAttribute(self::OPACITY_ATTRIBUTE)) {
24 $value = $tagAttributes->getValueAndRemove(self::OPACITY_ATTRIBUTE);
25 $tagAttributes->addStyleDeclaration("opacity",$value);
H A DCacheMedia.php47 public function __construct(File $path, TagAttributes &$tagAttributes) argument
56 foreach ($tagAttributes->getComponentAttributes() as $name => $value) {
81 $cacheParameter = $tagAttributes->getValue(self::CACHE_KEY, self::CACHE_DEFAULT_VALUE);
107 public static function createFromPath(File $file, $tagAttributes = null) argument
109 if ($tagAttributes == null) {
110 $tagAttributes = TagAttributes::createEmpty();
112 return new CacheMedia($file, $tagAttributes);
H A DMessage.php28 private $tagAttributes; variable in ComboStrap\\Message
36 $this->tagAttributes = TagAttributes::createEmpty("message")
59 $this->tagAttributes->addClassName($class);
89 $this->tagAttributes->addClassName("alert-success");
91 $this->tagAttributes->addClassName("alert-warning");
94 $message = $this->tagAttributes->toHtmlEnterTag("div");
H A DPluginUtility.php313 return $tagAttributes->toHTMLAttributeString();
647 $cache = new CacheMedia($path, $tagAttributes);
651 ->getXmlText($tagAttributes);
813 * @param TagAttributes $tagAttributes
816 static function checkDefaultBorderColorAttributes(&$tagAttributes) argument
823 $tagAttributes->hasStyleDeclaration("border")
825 $tagAttributes->hasStyleDeclaration("border-width")
836 $tagAttributes->hasStyleDeclaration("border")
838 $tagAttributes->hasStyleDeclaration("border-style")
844 if (!$tagAttributes->hasStyleDeclaration("border-radius")) {
[all …]
H A DMermaid.php44 $tagAttributes = TagAttributes::createFromCallStackArray($callStackAttributes);
45 $tagAttributes->addClassName(Mermaid::CLASS_NAME);
46 return $tagAttributes->toHtmlEnterTag("div");
102 $tagAttributes = TagAttributes::createFromTagMatch($match);
105 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray()
/plugin/combo/syntax/
H A Dheading.php258 * @param TagAttributes $tagAttributes
268 $type = $tagAttributes->getType();
297 $tagAttributes->addClassName($displayClass);
307 $tagAttributes->addClassName($type);
315 $tagAttributes->addClassName("card-title");
331 $tagAttributes->addClassName("d-print-none");
355 $renderer->doc .= $tagAttributes->toHtmlEnterTag("h$level");
360 * @param TagAttributes $tagAttributes
363 public static function renderClosingTag($tagAttributes) argument
465 $type = $tagAttributes->getType();
[all …]
H A Dbutton.php306 * @param TagAttributes $tagAttributes
312 $tagAttributes->addClassName($btn);
315 $skin = $tagAttributes->getValueAndRemove("skin", "filled");
319 $tagAttributes->addClassName("$btn-$type");
325 $tagAttributes->addClassName("$btn-$type");
330 $tagAttributes->addClassName("$btn-outline-$type");
335 $tagAttributes->addClassName("$btn-link");
343 if ($tagAttributes->hasComponentAttribute($sizeAttribute)) {
344 $size = $tagAttributes->getValueAndRemove($sizeAttribute);
348 $tagAttributes->addClassName("btn-lg");
[all …]
H A Dtooltip.php150 $tagAttributes = TagAttributes::createFromTagMatch($match);
155 if ($tagAttributes->hasComponentAttribute(self::TEXT_ATTRIBUTE)) {
158 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray()
213 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray(),
309 $position = $tagAttributes->getValueAndRemove(self::POSITION_ATTRIBUTE, "top");
316 if ($tagAttributes->hasComponentAttribute(self::TEXT_ATTRIBUTE)) {
317 …$tagAttributes->addHtmlAttributeValue("title", $tagAttributes->getValueAndRemove(self::TEXT_ATTRIB…
318 $tagAttributes->addClassName("d-inline-block");
321 $tagAttributes->addHtmlAttributeValue("tabindex", "0");
323 $renderer->doc .= $tagAttributes->toHtmlEnterTag("span");
[all …]
H A Dbadge.php116 $tagAttributes = TagAttributes::createFromCallStackArray($originalAttributes);
127 $tagAttributes->addClassName("badge");
128 $type = $tagAttributes->getType();
130 $tagAttributes->addClassName("alert-" . $type);
132 if (!$tagAttributes->hasComponentAttribute("background-color")) {
134 $tagAttributes->addClassName("text-dark");
138 $rounded = $tagAttributes->getValueAndRemove(self::ATTRIBUTE_ROUNDED);
145 $tagAttributes->addClassName($badgePillClass);
150 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray()
192 … $tagAttributes = TagAttributes::createFromCallStackArray($attributes, self::TAG);
[all …]
H A Dinote.php143 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
144 $tagAttributes->addClassName("badge");
147 $type = $tagAttributes->getValue(TagAttributes::TYPE_KEY);
165 $tagAttributes->addClassName("alert-" . $type);
167 $tagAttributes->addClassName("badge-" . $type);
170 if (!$tagAttributes->hasComponentAttribute("background-color")) {
171 … $tagAttributes->addStyleDeclaration("background-color", "#fff79f"); // lum - 195
172 $tagAttributes->addClassName("text-dark");
175 $rounded = $tagAttributes->getValueAndRemove(self::ATTRIBUTE_ROUNDED);
177 $tagAttributes->addClassName("badge-pill");
[all …]
H A Dblockquote.php170 $tagAttributes = PluginUtility::getTagAttributes($match);
171 $tagAttributes = PluginUtility::mergeAttributes($tagAttributes, $defaultAttributes);
172 $tag = new Tag(self::TAG, $tagAttributes, $state, $handler);
180 PluginUtility::ATTRIBUTES => $tagAttributes,
384 $type = $tagAttributes->getType();
388 $tagAttributes->addClassName("blockquote");
394 $tagAttributes->addClassName("mb-0");
413 $tagAttributes->addClassName("twitter-tweet");
423 $renderer->doc .= $tagAttributes->toHtmlEnterTag("blockquote");
439 $tagAttributes->addClassName("card");
[all …]
H A Dlink.php210 $tagAttributes->addClassName("stretched-link");
217 $callStackAttributes = $tagAttributes->toCallStackArray();
305 $link = new LinkUtility($ref, $tagAttributes);
331 $tagAttributes->addClassName("navbar-link");
335 $tagAttributes->addClassName("nav-link");
387 $tagAttributes = $data[PluginUtility::ATTRIBUTES];
389 $tagAttributes = $data;
391 $ref = $tagAttributes[LinkUtility::ATTRIBUTE_REF];
394 $name = $tagAttributes[LinkUtility::ATTRIBUTE_NAME];
412 $tagAttributes = $data[PluginUtility::ATTRIBUTES];
[all …]
H A Dpageimage.php113 $tagAttributes = TagAttributes::createFromTagMatch($match);
124 PluginUtility::ATTRIBUTES => $tagAttributes->toCallStackArray(),
152 if (!$tagAttributes->hasAttribute(Analytics::PATH)) {
158 $path = $tagAttributes->getValueAndRemove(Analytics::PATH);
169 if ($tagAttributes->hasComponentAttribute(self::RATIO_ATTRIBUTE)) {
170 $stringRatio = $tagAttributes->getValueAndRemove(self::RATIO_ATTRIBUTE);
203 $tagAttributes->addComponentAttributeValue(Dimension::WIDTH_KEY, $width);
205 $tagAttributes->addComponentAttributeValue(Dimension::HEIGHT_KEY, $height);
214 $tagAttributes->addStyleDeclaration("max-width", "100%");
215 $tagAttributes->addStyleDeclaration("max-height", "unset");
[all …]
H A Dpageexplorernamespace.php180 … $tagAttributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES]);
181 $wikiId = $tagAttributes->getValueAndRemoveIfPresent(TagAttributes::WIKI_ID);
182 $tagAttributes->addHtmlAttributeValue("data-wiki-id", $wikiId);
183 $targetId = $tagAttributes->getValueAndRemoveIfPresent(self::TARGET_ID_ATT);
184 $tagAttributes->addHtmlAttributeValue("data-bs-target", "#$targetId");
185 $tagAttributes->addHtmlAttributeValue("data-bs-toggle", "collapse");
186 $tagAttributes->addHtmlAttributeValue("aria-expanded", "false");
187 $tagAttributes->addClassName("btn btn-toggle-combo align-items-center rounded");
188 $renderer->doc .= $tagAttributes->toHtmlEnterTag("button");
H A Dpageexplorer.php183 $tagAttributes = TagAttributes::createFromTagMatch($match, $default);
185 $type = $tagAttributes->getType();
191 if (!$tagAttributes->hasComponentAttribute(self::ATTR_NAMESPACE)) {
237 $callStackArray = $tagAttributes->toCallStackArray();
361 $wikiId = $tagAttributes->getValue(TagAttributes::WIKI_ID);
363 $type = $tagAttributes->getType();
432 $tagAttributes->addClassName(self::CANONICAL . "-combo");
433 $tagAttributes->addClassName($componentClassPrefix . "-combo");
440 $tagAttributes->toCallStackArray()
750 $type = $tagAttributes->getType();
[all …]
H A Dheader.php67 $tagAttributes = PluginUtility::getTagAttributes($match);
68 $tag = new Tag(HeaderUtility::HEADER, $tagAttributes, $state, $handler);
76 PluginUtility::ATTRIBUTES => $tagAttributes,
121 … $tagAttributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES]);
122 $tagAttributes->addClassName("card-header");
123 $renderer->doc .= $tagAttributes->toHtmlEnterTag("div");
H A Dlabel.php88 $tagAttributes = PluginUtility::getTagAttributes($match);
90 $tag = new Tag(self::TAG, $tagAttributes, $state, $handler);
100 $tagAttributes["id"] = $id;
101 $tagAttributes[self::HEADING_ID] = "heading" . ucfirst($id);
102 $tagAttributes[self::TARGET_ID] = "collapse" . ucfirst($id);
106 $tagAttributes[self::COLLAPSED] = "true";
108 … $tagAttributes[self::COLLAPSED] = $parentAttribute[self::COLLAPSED];
114 $tagAttributes = $parentTag->getAttributes();
131 PluginUtility::ATTRIBUTES => $tagAttributes,
H A Dpara.php197 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
198 if ($tagAttributes->hasComponentAttribute(TagAttributes::TYPE_KEY)) {
199 $class = $tagAttributes->getType();
200 $tagAttributes->addClassName($class);
202 $renderer->doc .= $tagAttributes->toHtmlEnterTag("p");
206 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
207 $renderer->doc .= $tagAttributes->toHtmlEnterTag("p");
/plugin/combo/action/
H A Dsvg.php61 $tagAttributes = TagAttributes::createEmpty(ImageSvg::CANONICAL);
64 $tagAttributes->addComponentAttributeValue(Dimension::WIDTH_KEY, $width);
68 $tagAttributes->addComponentAttributeValue(Dimension::HEIGHT_KEY, $height);
70 $tagAttributes->addComponentAttributeValue(CacheMedia::CACHE_KEY, $event->data['cache']);
74 $tagAttributes->setMime($mime);
101 $tagAttributes->addComponentAttributeValue($name, $value);
114 $svgImage = new ImageSvg($pathId, $rev, $tagAttributes);
/plugin/html2pdf/html2pdf/html2ps/classes/org/active-link/xml/
H A DTag.php44 var $tagAttributes; variable in Tag
72 $this->tagAttributes = array();
91 return array_key_exists($attrName, $this->tagAttributes);
101 return $this->tagAttributes[$attrName];
150 foreach($this->tagAttributes as $attrName => $attrValue) {
179 $this->tagAttributes = array();
188 unset($this->tagAttributes[$attrName]);
210 $this->tagAttributes[$attrName] = $attrValue;
257 $tagAttributes = array();
325 $tagAttributes[$attributeName] = $attributeValue;
[all …]

123