set_attributes_for_block( $attributes );
$attributes['raw'] = false;
$switcher = new PLL_Switcher();
$switcher_output = $switcher->the_languages( $this->links, $attributes );
if ( empty( $switcher_output ) ) {
return '';
}
$wrap_tag = '
';
if ( $attributes['dropdown'] ) {
$switcher_output = '' . $switcher_output;
$wrap_tag = '%2$s
';
}
$wrap_attributes = get_block_wrapper_attributes();
return sprintf( $wrap_tag, $wrap_attributes, $switcher_output );
}
}