urlencode( implode( '|', $periar_font_families ) ), 'subset' => urlencode( 'cyrillic-ext,cyrillic,vietnamese,latin-ext,latin' ) ); $periar_fonts_url = add_query_arg( $periar_query_args, 'https://fonts.googleapis.com/css' ); return esc_url_raw( $periar_fonts_url ); } endif; /************************************************************************************************************************* * Set the content width ************************************************************************************************************************/ if ( ! isset( $content_width ) ) { $content_width = 900; } /************************************************************************************************************************* * Adds a span tag with dropdown icon after the unordered list * that has a sub menu on the mobile menu. ************************************************************************************************************************/ class Periar_Dropdown_Toggle_Walker_Nav_Menu extends Walker_Nav_Menu { function start_lvl( &$periar_output, $periar_depth = 0, $periar_args = array() ) { $periar_indent = str_repeat( "\t", $periar_depth ); if( 'mobile_menu' == $periar_args->theme_location ) { $periar_output .=''; } $periar_output .= "\n$periar_indent