get_template(
$this->get_name() . '/global/' . sanitize_file_name( $switcher_preset ) . '.php'
);
?>
add_render_attribute( 'jet_switcher_content_disable', array(
'id' => 'jet-switcher-content-disable-' . $this->get_id(),
'class' => array(
'jet-switcher__content',
'jet-switcher__content--disable',
! $initial_state ? 'active-content' : '',
),
'aria-hidden' => ! $initial_state ? 'false' : 'true',
) );
switch ( $widget_settings['disable_content_type'] ) {
case 'template':
$disable_content_html = $this->get_template_content_by_id( $widget_settings['disable_template_id'] );
break;
case 'editor':
$disable_content_html = $this->parse_text_editor( $widget_settings['disable_item_editor_content'] );
break;
}
echo sprintf( '
%2$s
', $this->get_render_attribute_string( 'jet_switcher_content_disable' ), $disable_content_html );
$this->add_render_attribute( 'jet_switcher_content_enable', array(
'id' => 'jet-switcher-content-enable-' . $this->get_id(),
'class' => array(
'jet-switcher__content',
'jet-switcher__content--enable',
$initial_state ? 'active-content' : '',
),
'aria-hidden' => $initial_state ? 'false' : 'true',
) );
switch ( $widget_settings['enable_content_type'] ) {
case 'template':
$enable_content_html = $this->get_template_content_by_id( $widget_settings['enable_template_id'] );
break;
case 'editor':
$enable_content_html = $this->parse_text_editor( $widget_settings['enable_item_editor_content'] );
break;
}
echo sprintf( '
%2$s
', $this->get_render_attribute_string( 'jet_switcher_content_enable' ), $enable_content_html );?>