Home
last modified time | relevance | path

Searched full:attributes (Results 1 – 25 of 263) sorted by relevance

1234567891011

/template/strap/ComboStrap/
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 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");
231 * The container is the passed `attributes`
236 $codeAttributes->setType($attributes->getType());
[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 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 DPrismTags.php30 * Tag Attributes are passed
31 * because it's possible to not display a code with the display attributes = none
38 return array(PluginUtility::ATTRIBUTES => $openingTag->getAttributes());
41 …public static function processEnterXhtml(TagAttributes $attributes, \DokuWiki_Syntax_Plugin $plugi… argument
43 Prism::htmlEnter($renderer, $plugin, $attributes);
46 … public static function processExitXhtml(TagAttributes $attributes, \Doku_Renderer_xhtml $renderer) argument
48 Prism::htmlExit($renderer, $attributes);
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 DPluginUtility.php27 const ATTRIBUTES = "attributes"; define in ComboStrap\\PluginUtility
167 * @param $attributes - combo attributes
171 public static function array2HTMLAttributesAsString($attributes) argument
174 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
181 * Parse the attributes part of a match
269 $attributes = array();
293 $attributes[TagAttributes::TYPE_KEY] = $nextArgument;
311 $attributes[$keyThirdArgument] = $nextArgument;
322 * Parse the remaining attributes
329 $attributes = array_merge($attributes, $parsedAttributes);;
[all …]
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 DSpacing.php12 * Process the attributes that have an impact on the class
13 * @param TagAttributes $attributes
15 public static function processSpacingAttributes(&$attributes) argument
20 if ($attributes->hasComponentAttribute($spacing)) {
22 $spacingValue = $attributes->getValueAndRemove($spacing);
28 $logicalTag = $attributes->getLogicalTag();
73 $attributes->addClassName($spacingClass);
/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 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 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);
50 // TODO: Add attributes
52 //PluginUtility::addClass2Attributes($delay, $attributes);
80 * @param $attributes
83 private static function wowInit(&$attributes) argument
[all …]
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/writr/.github/ISSUE_TEMPLATE/
Dbug_report.yml10 attributes:
18 attributes:
29 attributes:
36 attributes:
43 attributes:
51 attributes:
59 attributes:
67 attributes:
73 attributes:
79 attributes:
/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 Dcode.php132 PluginUtility::ATTRIBUTES => $tagAttributes
146 $data[PluginUtility::ATTRIBUTES] = $tagAttributes;
152 * Tag Attributes are passed
153 * because it's possible to not display a code with the display attributes = none
162 PluginUtility::ATTRIBUTES => $openingTag->getAttributes()
191 …$attributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES], self::CODE…
192 Prism::htmlEnter($renderer, $this, $attributes);
197 … $attributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES]);
198 $display = $attributes->getValue("display");
208 … $attributes = TagAttributes::createFromCallStackArray($data[PluginUtility::ATTRIBUTES]);
[all …]
H A Dnavbargroup.php140 PluginUtility::ATTRIBUTES=> $tagAttributes
181 $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"]);
[all …]
/template/bootstrap3/
DSVG.php27 * @param array $attrs Icon attributes
57 // Add some (clean) attributes
58 $attributes = array_merge(
71 $attributes['class'] = $class;
74 …// Remove possibly empty-ish attributes (self::$defaultAttributes or $attrs may contain null value…
75 $attributes = array_filter($attributes);
79 self::attributes($attributes),
85 * Turns a 1-dimension array into an HTML-ready attributes set.
87 private static function attributes($attrs = array()) function in dokuwiki\\template\\bootstrap3\\SVG
/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 …]

1234567891011