option_name = $option_name; $this->get_options_callback = $get_options_callback; } /** * Retrieve current options. * * @return array */ private function get_options() { return call_user_func( $this->get_options_callback ); } /* ───────────────────────────────────────────────────────────────────────── Section callbacks ───────────────────────────────────────────────────────────────────────── */ /** * Section: Plugin status intro. */ public function render_section_status() { echo '

' . esc_html__( 'Use this toggle to enable or disable all Orbit Testimonials sliders at once. Individual slider settings (behaviour, colours, etc.) are configured directly on each Orbit.', 'aha-orbit-testimonials' ) . '

'; } /* ───────────────────────────────────────────────────────────────────────── Field: Enabled toggle ───────────────────────────────────────────────────────────────────────── */ /** * Field: enable / disable all orbits. */ public function render_field_enabled() { $options = $this->get_options(); $checked = ! empty( $options['enabled'] ); ?>