The What
Description
The intent of this function is to first assign the context as a class
attribute and then to merge the markup’s attributes with the defaults. The attributes are then filtered using genesis_attr_{$context}
. The filtered array is then returned to the caller.
Parameters
context
- The context for this markup, which is then assigned as a
class
attribute. attributes
- optional An array of attributes, keyed by the attribute. The default is an empty array.
Return Values
Returns an array of the filtered markup attributes.
Hands off the keyboard. Web development starts by thinking first, then planning it out, and then coding it.
More coming soon…keep checking back.