@@ -147,7 +147,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
147147 * NOTE: linkmod and icon class arrays are passed by reference and
148148 * are maybe modified before being used later in this function.
149149 */
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 );
151151
152152// Join any icon classes plucked from $classes into a string.
153153$ icon_class_string = join ( ' ' , $ icon_classes );
@@ -234,7 +234,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
234234$ atts ['aria-current ' ] = $ item ->current ? 'page ' : '' ;
235235
236236// 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 );
238238
239239// Allow filtering of the $atts array before using it.
240240$ 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 ) {
249249}
250250
251251// 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 );
253253
254254// START appending the internal item contents to the output.
255255$ item_output = isset ( $ args ->before ) ? $ args ->before : '' ;
@@ -260,7 +260,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
260260 */
261261if ( '' !== $ linkmod_type ) {
262262// 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 );
264264} else {
265265// With no link mod type set this must be a standard <a> tag.
266266$ item_output .= '<a ' . $ attributes . '> ' ;
@@ -294,7 +294,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
294294
295295// If the .sr-only class was set apply to the nav items text only.
296296if ( in_array ( 'sr-only ' , $ linkmod_classes , true ) ) {
297- $ title = self :: wrap_for_screen_reader ( $ title );
297+ $ title = $ this -> wrap_for_screen_reader ( $ title );
298298$ keys_to_unset = array_keys ( $ linkmod_classes , 'sr-only ' , true );
299299foreach ( $ keys_to_unset as $ k ) {
300300unset( $ linkmod_classes [ $ k ] );
@@ -310,7 +310,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
310310 */
311311if ( '' !== $ linkmod_type ) {
312312// 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 );
314314} else {
315315// With no link mod type set this must be a standard <a> tag.
316316$ item_output .= '</a> ' ;
0 commit comments