Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 195) sorted by relevance

12345678

/template/strap/ComboStrap/
H A DPosition.php33 * @param TagAttributes $attributes
35 public static function processStickiness(&$attributes) argument
37 if ($attributes->hasComponentAttribute(self::STICKY_ATTRIBUTE)) {
38 $sticky = strtolower($attributes->getValueAndRemove(self::STICKY_ATTRIBUTE));
41 $attributes->addClassName($stickyClass);
66 * @param TagAttributes $attributes
68 public static function processPosition(TagAttributes &$attributes) argument
70 if ($attributes->hasComponentAttribute(self::POSITION_ATTRIBUTE)) {
71 $position = strtolower($attributes->getValueAndRemove(self::POSITION_ATTRIBUTE));
82 $attributes->addClassName("position-absolute top-0 start-0 translate-middle");
[all …]
H A DDimension.php62 * @param TagAttributes $attributes
64 public static function processWidthAndHeight(TagAttributes &$attributes) argument
66 self::processWidth($attributes);
69 if ($attributes->hasComponentAttribute($heightName)) {
70 $heightValue = trim($attributes->getValueAndRemove($heightName));
74 if (in_array($attributes->getLogicalTag(), self::NATURAL_SIZING_ELEMENT)) {
82 $attributes->addStyleDeclarationIfNotSet("max-height", $heightValue);
97 $attributes->addStyleDeclarationIfNotSet("height", $heightValue);
99 … $scrollMechanism = $attributes->getValueAndRemoveIfPresent(Dimension::SCROLL);
106 $attributes->addStyleDeclarationIfNotSet("overflow-y", "hidden");
[all …]
H A DPrism.php192 * @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);
[all …]
H A DSkin.php79 * @param TagAttributes $attributes
81 public static function processSkinAttribute(TagAttributes &$attributes) argument
84 if (!$attributes->hasComponentAttribute(self::SKIN_ATTRIBUTE)) {
87 $skinValue = $attributes->getValueAndRemove(self::SKIN_ATTRIBUTE);
88 if (!$attributes->hasComponentAttribute(TagAttributes::TYPE_KEY)) {
93 $type = $attributes->getValue(TagAttributes::TYPE_KEY);
96 && ($attributes->hasClass("btn-$type")||$attributes->hasClass("alert-$type"))
117 … $attributes->addStyleDeclarationIfNotSet(ColorRgb::COLOR, $color[ColorRgb::COLOR]);
118 …$attributes->addStyleDeclarationIfNotSet(BackgroundAttribute::BACKGROUND_COLOR, $color[BackgroundA…
119 … $attributes->addStyleDeclarationIfNotSet(ColorRgb::BORDER_COLOR, $color[ColorRgb::BORDER_COLOR]);
[all …]
H A DRasterImageLink.php77 $attributes = $this->mediaMarkup->getExtraMediaTagAttributes()
89 $attributes->addClassName(self::RESPONSIVE_CLASS);
120 $attributes->addOutputAttributeValue("height", $targetHeight . $htmlLengthUnit);
124 $attributes->addStyleDeclarationIfNotSet("max-height", $targetHeight . $cssLengthUnit);
128 $attributes->addStyleDeclarationIfNotSet("height", "auto");
164 $attributes->addOutputAttributeValue("width", $targetWidth . $htmlLengthUnit);
168 $attributes->addStyleDeclarationIfNotSet("max-width", $targetWidth . $cssLengthUnit);
172 $attributes->addStyleDeclarationIfNotSet("width", "100%");
269 $attributes->addOutputAttributeValue("src", $srcValue);
272 $attributes->addOutputAttributeValue("srcset", $srcSet);
[all …]
H A DFloatAttribute.php21 * @param TagAttributes $attributes
23 public static function processFloat(&$attributes) argument
27 if ($attributes->hasComponentAttribute($float)) {
28 $floatValue = $attributes->getValueAndRemove($float);
67 if (!$attributes->hasComponentAttribute("spacing")){
68 $attributes->addComponentAttributeValue("spacing","ms-3");
73 $attributes->addClassName("float-{$floatValue}");
79 $attributes->addClassName("float-xs-none");
83 $attributes->addStyleDeclarationIfNotSet("position", "relative!important");
84 $attributes->addStyleDeclarationIfNotSet("z-index", 1);
H A DLineSpacing.php18 * @param TagAttributes $attributes
20 public static function processLineSpacingAttributes(&$attributes) argument
25 if ($attributes->hasComponentAttribute($lineSpacing)) {
33 $lineSpacingValue = trim(strtolower($attributes->getValueAndRemove($lineSpacing)));
37 $attributes->addClassName("lh-1");
41 $attributes->addClassName("lh-sm");
45 $attributes->addClassName("lh-base");
49 $attributes->addClassName("lh-lg");
H A DPluginUtility.php171 public static function array2HTMLAttributesAsString($attributes) argument
174 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
269 $attributes = array();
293 $attributes[TagAttributes::TYPE_KEY] = $nextArgument;
311 $attributes[$keyThirdArgument] = $nextArgument;
329 $attributes = array_merge($attributes, $parsedAttributes);;
331 return $attributes;
430 * @param TagAttributes $attributes
432 public static function processStyle(&$attributes) argument
436 if ($attributes->hasComponentAttribute($styleAttributeName)) {
[all …]
H A DTextColor.php31 * @param TagAttributes $attributes
33 public static function processTextColorAttribute(TagAttributes &$attributes) argument
38 if ($attributes->hasComponentAttribute($colorAttribute)) {
39 $colorValue = $attributes->getValueAndRemove($colorAttribute);
52 …$attributes->addStyleDeclarationIfNotSet(TextColor::CSS_ATTRIBUTE, "{$primaryColor->toRgbHex()}!im…
59 …$attributes->addStyleDeclarationIfNotSet(TextColor::CSS_ATTRIBUTE, "{$secondaryColor->toRgbHex()}!…
69 $attributes->addClassName("text-$lowerCaseColorValue");
81 … $attributes->addStyleDeclarationIfNotSet(TextColor::CSS_ATTRIBUTE, $colorValue);
H A DHover.php26 * @param TagAttributes $attributes
28 public static function processOnHover(TagAttributes &$attributes) argument
30 if ($attributes->hasComponentAttribute(self::ON_HOVER_ATTRIBUTE)) {
31 $hover = strtolower($attributes->getValueAndRemove(self::ON_HOVER_ATTRIBUTE));
48 $attributes->addClassName("hvr-$hover");
94 $attributes->addClassName(self::COMBO_HOVER_EASING_CLASS);
96 … $attributes->addOutputAttributeValue("data-hover-class", trim($comboDataHoverClasses));
H A DPermalinkTag.php21 …public static function handleEnterSpecial(TagAttributes $attributes, int $state, Doku_Handler $han… argument
25 $type = $attributes->getValueAndRemoveIfPresent(TagAttributes::TYPE_KEY);
32 $strict = $attributes->getBooleanValueAndRemoveIfPresent(TagAttributes::STRICT, true);
55 $fragment = $attributes->getValueAndRemoveIfPresent(self::FRAGMENT_ATTRIBUTE);
79 … $attributes->addComponentAttributeValue(syntax_plugin_combo_link::MARKUP_REF_ATTRIBUTE, $url);
80 $attributes->addOutputAttributeValue("rel", "nofollow");
81 syntax_plugin_combo_link::addOpenLinkTagInCallStack($callStack, $attributes);
108 …$attributes->addComponentAttributeValue(syntax_plugin_combo_link::MARKUP_REF_ATTRIBUTE, $canonical…
109 $attributes->addOutputAttributeValue("rel", "nofollow");
110 syntax_plugin_combo_link::addOpenLinkTagInCallStack($callStack, $attributes);
[all …]
H A DGridTag.php82 public static function processEnter(TagAttributes $attributes, $handler, $match) argument
155 $attributes->setType(self::TYPE_ROW_TAG);
162 if (!$attributes->hasComponentAttribute($key)) {
163 $attributes->addComponentAttributeValue($key, $value);
171 $aligns = $attributes->getValues(Align::ALIGN_ATTRIBUTE, []);
179 $attributes->addComponentAttributeValue(Align::ALIGN_ATTRIBUTE, $value);
190 $type = $attributes->getType();
193 $attributes->removeType();
197 $attributes->setType(self::TYPE_ROW_TAG);
202 $attributes->addComponentAttributeValue(self::HTML_TAG_ATT, "div");
[all …]
/template/strap/ComboStrap/TagAttribute/
H A DAlign.php36 * @param TagAttributes $attributes
38 public static function processAlignAttributes(TagAttributes &$attributes) argument
42 $alignAttributeValues = $attributes->getValueAndRemove($align);
62 $attributes->addClassName(self::CENTER_CLASS);
74 $attributes->addClassName("align-self{$breakpoint}-center");
80 $attributes->addStyleDeclarationIfNotSet("margin-left", "auto");
82 $attributes->addClassName("ms-auto");
84 $attributes->addStyleDeclarationIfNotSet(Dimension::WIDTH_KEY, "fit-content");
94 $attributes->addClassName("justify-content{$breakpoint}-left");
97 $attributes->addClassName("justify-content{$breakpoint}-start");
[all …]
H A DToggle.php31 * @param TagAttributes $attributes
35 static function processToggle(TagAttributes $attributes) argument
42 $value = $attributes->getValueAndRemove(self::TOGGLE_STATE);
54 $attributes->addClassName("collapse show");
57 $attributes->addClassName("collapse");
75 $id = $attributes->getValue("id");
105 if ($attributes->hasComponentAttribute($collapse)) {
106 $targetId = $attributes->getValueAndRemoveIfPresent($collapse);
108 $targetId = $attributes->getValueAndRemoveIfPresent("collapse");
121 $attributes->addOutputAttributeValue("data-{$bootstrapNamespace}toggle", "collapse");
[all …]
H A DTextAlign.php23 * @param TagAttributes $attributes
26 public static function processTextAlign(&$attributes) argument
29 if ($attributes->hasComponentAttribute(self::ATTRIBUTE_NAME)) {
34 $textAlignValues = $attributes->getValuesAndRemove(self::ATTRIBUTE_NAME);
58 $attributes->addStyleDeclarationIfNotSet(self::ATTRIBUTE_NAME, "left");
62 $attributes->addStyleDeclarationIfNotSet(self::ATTRIBUTE_NAME, "right");
66 $attributes->addStyleDeclarationIfNotSet(self::ATTRIBUTE_NAME, $value);
106 $attributes->addClassName("text-$valueClass");
108 $attributes->addClassName("text-$breakpoint-$valueClass");
115 $attributes->addClassName("text-$valueClass");
[all …]
H A DShadow.php42 * @param TagAttributes $attributes
44 public static function process(TagAttributes &$attributes) argument
48 if ($attributes->hasComponentAttribute(self::ELEVATION_ATT)) {
49 $elevationValue = $attributes->getValueAndRemove(self::ELEVATION_ATT);
51 if ($attributes->hasComponentAttribute(self::SHADOW_ATT)) {
52 $elevationValue = $attributes->getValueAndRemove(self::SHADOW_ATT);
60 $attributes->addClassName($shadowClass);
113 * @param TagAttributes $attributes
116 static function addMediumElevation(&$attributes) argument
118 $attributes->addClassName(self::MEDIUM_ELEVATION_CLASS);
H A DAnimation.php37 * @param TagAttributes $attributes
39 public static function processOnView(TagAttributes &$attributes) argument
41 if ($attributes->hasComponentAttribute(self::ON_VIEW_ATTRIBUTE)) {
42 $onView = $attributes->getValueAndRemove(self::ON_VIEW_ATTRIBUTE);
45 $attributes->addClassName($animateClass);
48 $attributes->addOutputAttributeValue("data-animated-class", $animationClass);
83 private static function wowInit(&$attributes) argument
88 PluginUtility::addClass2Attributes($wowClass, $attributes);
H A DUnderline.php16 * @param TagAttributes $attributes
18 public static function processUnderlineAttribute(TagAttributes &$attributes) argument
22 if ($attributes->hasComponentAttribute(Underline::UNDERLINE_ATTRIBUTE)) {
23 $value = $attributes->removeComponentAttribute(Underline::UNDERLINE_ATTRIBUTE);
30 $attributes->addClassName("text-decoration-underline");
32 $attributes->addClassName("text-decoration-none");
H A DHero.php18 public static function processHero(TagAttributes &$attributes) argument
21 $hero = $attributes->getValueAndRemove(self::ATTRIBUTE);
29 $attributes->addClassName(self::COMPONENT_NAME . "-sm");
33 $attributes->addClassName(self::COMPONENT_NAME . "-md");
37 $attributes->addClassName(self::COMPONENT_NAME . "-lg");
41 $attributes->addClassName(self::COMPONENT_NAME . "-xl");
/template/strap/syntax/
H A Dnote.php110 … $attributes = TagAttributes::createFromTagMatch($match, $defaultAttributes, $knwonTypes);
113 PluginUtility::ATTRIBUTES => $attributes->toCallStackArray()
155 …$attributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES], self::TAG);
156 $attributes->addClassName("alert");
157 $type = $attributes->getValue(TagAttributes::TYPE_KEY);
169 $attributes->addClassName("alert-" . $type);
173 if (!$attributes->hasComponentAttribute(ColorRgb::COLOR)) {
174 … $attributes->addComponentAttributeValue(ColorRgb::COLOR, "#6c6400"); // lum - 51
176 if (!$attributes->hasComponentAttribute("border-color")) {
177 … $attributes->addComponentAttributeValue("border-color", "#FFF78c"); // lum - 186
[all …]
H A Dpara.php195 $attributes = $data[PluginUtility::ATTRIBUTES];
196 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
204 $attributes = $data[PluginUtility::ATTRIBUTES];
205 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
250 * @param array $attributes - the attributes passed to the paragraph
252 … public static function fromEolToParagraphUntilEndOfStack(CallStack &$callstack, array $attributes) argument
255 if (!is_array($attributes)) {
256 …LogUtility::msg("The passed attributes array ($attributes) for the creation of the paragraph is no…
257 $attributes = [];
287 $attributes
[all …]
H A Ddisqus.php92 $attributes = PluginUtility::getTagAttributes($match);
93 return array($attributes);
114 list($attributes) = $data;
124 $attributes = PluginUtility::mergeAttributes($attributes, $default);
125 $forumShortName = $attributes[self::ATTRIBUTE_SHORTNAME];
139 $disqusIdentifier = $attributes[self::ATTRIBUTE_IDENTIFIER];
152 $url = $attributes[self::ATTRIBUTE_URL];
159 $title = $attributes[self::ATTRIBUTE_TITLE];
167 $category = $attributes[self::ATTRIBUTE_CATEGORY];
H A Dnavbargroup.php181 $attributes = $data[PluginUtility::ATTRIBUTES];
183 if (array_key_exists("class", $attributes)) {
184 $attributes["class"] .= " {$classValue}";
186 $attributes["class"] = $classValue;
189 if (array_key_exists("expand", $attributes)) {
190 if ($attributes["expand"]=="true") {
193 $attributes["class"] .= " me-auto";
195 $attributes["class"] .= " mr-auto";
198 unset($attributes["expand"]);
201 $inlineAttributes = PluginUtility::array2HTMLAttributesAsString($attributes);
H A Dnavbarcollapse.php184 $attributes = $data[PluginUtility::ATTRIBUTES];
190 if (array_key_exists("order", $attributes)) {
191 $renderer->doc .= ' style="order:' . $attributes["order"] . '"';
192 unset($attributes["order"]);
200 if (array_key_exists("class", $attributes)) {
201 $attributes["class"] .= " {$classValue}";
203 $attributes["class"] = "{$classValue}";
205 …="' . $idElementToCollapse . '" ' . PluginUtility::array2HTMLAttributesAsString($attributes) . '>';
/template/twigstarter/vendor/twig/twig/src/Node/
DNode.php26 protected $attributes; variable in Twig\\Node\\Node
35 * @param array $attributes An array of attributes (should not be nodes)
39 …public function __construct(array $nodes = [], array $attributes = [], int $lineno = 0, string $ta… argument
47 $this->attributes = $attributes;
54 $attributes = [];
55 foreach ($this->attributes as $name => $value) {
56 … $attributes[] = sprintf('%s: %s', $name, str_replace("\n", '', var_export($value, true)));
59 $repr = [static::class.'('.implode(', ', $attributes)];
102 return \array_key_exists($name, $this->attributes);
110 if (!\array_key_exists($name, $this->attributes)) {
[all …]

12345678