APP_Widget
AppThemes Widget
Package
Description Description
The base for common theme widgets.
Intended for:
- Create multiple instanses of same widget class with differ parameters;
- Load specific widget scripts and styles only on pages, where widget active;
- Add compatibility methods between WP_Widget and scbForms
Methods Methods
- __construct
- _array_merge_recursive
- _register_widget
- condition — Additional checks before registering the widget.
- enqueue_scripts — Registers styles and scripts only if widget active
- form — Displays widget settings form.
- form_fields
- get_sidebar_id — Returns ID of sidebar into which widget is inserted.
- init
- register_script — Wrapper for wp_register_script() function.
- register_scripts — Use this method to register scripts and styles with provided wrapper-methods register_script() and register_style().
- register_style — Wrapper for wp_register_style() function.
- remove_scripts — Removes unused scripts.
- update — Validates and updates widget settings.
- widget — Displays widget content.