Support » Plugin: Widget Logic » a little JS Widget Logic code generator

  • Widget Logic is fantastic, but the code is sometimes beyond my clients. Section Widget’s interface is more friendly, but from what I remember, it doesn’t have a “not” operator equivalent, meaning if you select all pages except for a few, when you add a new page, you’d have to go back and manually add it if you want the widget there. Plus, it looks like Section Widget’s not being maintained. It’s not as flexible as Widget Logic, of course, and having both is a little confusing.

    I thought an interesting half-way solution would be a little Javascript “Widget Logic Generator”. My code’s below. It’s designed to go into a theme’s functions.php, and should slip itself in below the Widget Logic options on the widgets admin page. It’s not “complete”, but can be easily adapted to add more functionality.

    Please post any corrections, suggestions, pointers to other widget plugins that bridge this gap.

    I assume this kind of interface is a bit too much to include inside each widget. But with this, at least clients can generate basic WL code, and developers still have the power of the WL field.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    http://wordpress.org/extend/plugins/widget-logic/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘a little JS Widget Logic code generator’ is closed to new replies.