@@ -147,7 +147,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
147
147
* NOTE: linkmod and icon class arrays are passed by reference and
148
148
* are maybe modified before being used later in this function.
149
149
*/
150
- $ classes = self :: separate_linkmods_and_icons_from_classes ( $ classes , $ linkmod_classes , $ icon_classes , $ depth );
150
+ $ classes = $ this -> separate_linkmods_and_icons_from_classes ( $ classes , $ linkmod_classes , $ icon_classes , $ depth );
151
151
152
152
// Join any icon classes plucked from $classes into a string.
153
153
$ icon_class_string = join ( ' ' , $ icon_classes );
@@ -234,7 +234,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
234
234
$ atts ['aria-current ' ] = $ item ->current ? 'page ' : '' ;
235
235
236
236
// Update atts of this item based on any custom linkmod classes.
237
- $ atts = self :: update_atts_for_linkmod_type ( $ atts , $ linkmod_classes );
237
+ $ atts = $ this -> update_atts_for_linkmod_type ( $ atts , $ linkmod_classes );
238
238
239
239
// Allow filtering of the $atts array before using it.
240
240
$ atts = apply_filters ( 'nav_menu_link_attributes ' , $ atts , $ item , $ args , $ depth );
@@ -249,7 +249,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
249
249
}
250
250
251
251
// Set a typeflag to easily test if this is a linkmod or not.
252
- $ linkmod_type = self :: get_linkmod_type ( $ linkmod_classes );
252
+ $ linkmod_type = $ this -> get_linkmod_type ( $ linkmod_classes );
253
253
254
254
// START appending the internal item contents to the output.
255
255
$ item_output = isset ( $ args ->before ) ? $ args ->before : '' ;
@@ -260,7 +260,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
260
260
*/
261
261
if ( '' !== $ linkmod_type ) {
262
262
// Is linkmod, output the required element opener.
263
- $ item_output .= self :: linkmod_element_open ( $ linkmod_type , $ attributes );
263
+ $ item_output .= $ this -> linkmod_element_open ( $ linkmod_type , $ attributes );
264
264
} else {
265
265
// With no link mod type set this must be a standard <a> tag.
266
266
$ item_output .= '<a ' . $ attributes . '> ' ;
@@ -294,7 +294,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
294
294
295
295
// If the .sr-only class was set apply to the nav items text only.
296
296
if ( in_array ( 'sr-only ' , $ linkmod_classes , true ) ) {
297
- $ title = self :: wrap_for_screen_reader ( $ title );
297
+ $ title = $ this -> wrap_for_screen_reader ( $ title );
298
298
$ keys_to_unset = array_keys ( $ linkmod_classes , 'sr-only ' , true );
299
299
foreach ( $ keys_to_unset as $ k ) {
300
300
unset( $ linkmod_classes [ $ k ] );
@@ -310,7 +310,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
310
310
*/
311
311
if ( '' !== $ linkmod_type ) {
312
312
// Is linkmod, output the required closing element.
313
- $ item_output .= self :: linkmod_element_close ( $ linkmod_type );
313
+ $ item_output .= $ this -> linkmod_element_close ( $ linkmod_type );
314
314
} else {
315
315
// With no link mod type set this must be a standard <a> tag.
316
316
$ item_output .= '</a> ' ;
0 commit comments