option_name = $option_name;
$this->get_settings_callback = $get_settings_callback;
}
/**
* Current settings.
*
* @return array
*/
private function get_settings() {
return call_user_func( $this->get_settings_callback );
}
/**
* General tab: intro.
*/
public function render_section_general() {
echo '
' . esc_html__( 'Turn the hero slideshow output on or off site-wide. When disabled, shortcodes do not render on the front end.', 'aha-hero-slider' ) . '
';
}
/**
* General: global slideshow toggle.
*/
public function render_field_enable_slideshow() {
$settings = $this->get_settings();
?>
' . esc_html__( 'Slides live in the Hero slides library; organize them with Slide groups. Use the buttons below to manage content. Autoplay, arrows, and corner radius saved here apply when the shortcode omits those attributes.', 'aha-hero-slider' ) . '
' . esc_html__( 'Optional colors for the autoplay progress bar or circle (when enabled via shortcode progress="bar" or progress="circle"). Leave empty to use built-in defaults (semi-transparent track; fill follows active bullet color). Shortcode attributes progress_track and progress_fill override these per instance.', 'aha-hero-slider' ) . '';
}
/** Design: Autoplay progress colors. */
public function render_field_design_progress() {
?>
' . esc_html__( 'On mobile, the Default template shows the image on top and the text content below on a solid background. Set that background color here so your text remains readable.', 'aha-hero-slider' ) . '';
}
/** Design: Mobile content background color. */
public function render_field_design_mobile() {
?>
' . esc_html__( 'Colors for slider arrows and pagination dots. Applied globally to all sliders.', 'aha-hero-slider' ) . '';
}
/** Design: Navigation colors. */
public function render_field_design_nav() {
?>
' . esc_html__( 'Default text colors. Overridden per slide if a custom color is set on the slide itself.', 'aha-hero-slider' ) . '';
}
/** Design: Text colors. */
public function render_field_design_texts() {
?>