$slot_group, 'display_link_for_current_lang' => 1, 'display_names_in_native_lang' => 1, 'display_names_in_current_lang' => 1, ); if ( $slot_group === 'menus' ) { $args['template'] = $this->get_core_templates( 'menu-item' ); $args['is_hierarchical'] = 1; } else if ( $slot_group === 'sidebars' ) { $args['template'] = $this->get_core_templates( 'dropdown' ); } return $args; } /** * @param string $slot_group * * @return WPML_LS_Slot */ public function get_default_slot( $slot_group ) { $slot_args = $this->get_default_slot_arguments( $slot_group ); return $this->get_slot( $slot_args ); } /** * @param string $slug * * @return string|null */ public function get_core_templates( $slug ) { $parameters = WPML_Language_Switcher::parameters(); $templates = isset( $parameters['core_templates'] ) ? $parameters['core_templates'] : array(); return isset( $templates[ $slug ] ) ? $templates[ $slug ] : null; } }