This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- wp:paragraph --> | |
| <p>Donec id elit non mi porta gravida at eget metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla.</p> | |
| <!-- /wp:paragraph --> | |
| <!-- wp:more --> | |
| <!--more--> | |
| <!-- /wp:more --> | |
| <!-- wp:separator {"opacity":"css"} --> | |
| <hr class="wp-block-separator has-css-opacity"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Add "first" and "last" CSS classes to dynamic sidebar widgets. Also adds numeric index class for each widget (widget-1, widget-2, etc.) | |
| */ | |
| function hip_widget_first_last_classes( $params ) { | |
| global $my_widget_num; // Global a counter array | |
| $this_id = $params[0]['id']; // Get the id for the current sidebar we're processing | |
| $arr_registered_widgets = wp_get_sidebars_widgets(); // Get an array of ALL registered widgets |