inc/widgets.php¶
-
largo_widgets
()¶ Setup the Largo custom widgets
Package: Largo Since: 1.0
-
largo_add_widget_classes
()¶ Add custom CSS classes to sidebar widgets
- In addition to the usual WordPress widget classes, we add:
- iterative classes (widget-1, widget-2, etc.) reset for each sidebar
- odd/even classes
- default/rev/no-bg classes
- Bootstrap’s responsive classes
To give use a lot more styling hooks
Partially adapted from Illimar Tambek’s Widget Title Links plugin https://github.com/ragulka/widget-title-links
Package: Largo Since: 1.0
-
largo_widget_counter_reset
()¶ Resets the counter for each subsequent sidebar
Since: 1.0
-
largo_widget_custom_fields_form
()¶ Add custom fields to widget forms
Since: 1.0 Uses: add_action() $in_widget_form’
-
largo_register_widget_custom_fields
()¶ Register widget custom fields
Since: 1.0 Uses: add_filter() $widget_form_callback’
-
largo_widget_update_extend
()¶ Add additional fields to widget update callback
Since: 1.0 Uses: add_filter() $widget_update_callback’
-
largo_add_link_to_widget_title
()¶ Make it possible for widget titles to be links
Since: 1.0 Uses: add_filter() $widget_title’
Check to see if a widget area is registered and has widgets assigned
Since: 0.5.2
-
largo_populate_article_bottom_widget_area
()¶ When activating the theme, make sure the article bottom widget area has widgets assigned
Since: 0.5.3