Jump to content

set class attributes for widget


Blesta Addons

Recommended Posts

when we set a class for the widget in admin side, the widget class is not adding the set class to the default class . this is because a wrong addintion array are set . the fix to change

        // Set the attributes, don't allow overwriting the default class, concat instead
        if (isset($attributes['class']) && isset($default_attributes['class'])) {
            $attributes['class'] .= ' ' . $default_attributes['class'];
        }

to

        // Set the attributes, don't allow overwriting the default class, concat instead 
        if (isset($attributes['class']) && isset($default_attributes['class'])) {
            $default_attributes['class'] .= ' ' . $attributes['class'];
        }

 

widget helper class.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...