Base::VAL_OFF, ESI::WIDGET_O_TTL => '28800', ); add_filter( 'litespeed_widget_default_options', 'LiteSpeed\ESI::widget_default_options', 10, 2 ); $options = apply_filters( 'litespeed_widget_default_options', $options, $widget ); } if ( empty( $options ) ) { $esi = Base::VAL_OFF; $ttl = '28800'; } else { $esi = $options[ ESI::WIDGET_O_ESIENABLE ]; $ttl = $options[ ESI::WIDGET_O_TTL ]; } $display = Admin_Display::cls(); ?>

:

:  
get_field_name( $esi_option ); $cache_status_list = array( array( Base::VAL_ON, esc_html__( 'Public', 'litespeed-cache' ) ), array( Base::VAL_ON2, esc_html__( 'Private', 'litespeed-cache' ) ), array( Base::VAL_OFF, esc_html__( 'Disable', 'litespeed-cache' ) ), ); foreach ( $cache_status_list as $v ) { list( $value, $label ) = $v; $id_attr = $widget->get_field_id( $esi_option ) . '_' . $value; $checked = $esi === $value ? 'checked' : ''; ?> />


:   get_field_name( $ttl_option ); ?>