option_name = $option_name;
$this->get_settings_callback = $get_settings_callback;
}
/**
* Get current settings via callback.
*
* @return array
*/
private function get_settings() {
return call_user_func( $this->get_settings_callback );
}
/**
* Render general section
*/
public function render_section_general() {
echo wp_kses_post( __( 'Configure general sidebar options.', 'aha-mobile-menu' ) );
}
/**
* Render content section
*/
public function render_section_content() {
echo wp_kses_post( __( 'Configure the content displayed in the sidebar.', 'aha-mobile-menu' ) );
}
/**
* Render social section
*/
public function render_section_social() {
echo wp_kses_post( __( 'Add links to your social networks.', 'aha-mobile-menu' ) );
}
/**
* Render design section
*/
public function render_section_design() {
echo wp_kses_post( __( 'Customize the visual appearance of the sidebar.', 'aha-mobile-menu' ) );
}
/**
* Render behavior section
*/
public function render_section_behavior() {
echo wp_kses_post( __( 'Configure the sidebar behavior.', 'aha-mobile-menu' ) );
}
/**
* Render exclusions section
*/
public function render_section_exclusions() {
echo wp_kses_post( __( 'Specify pages, posts, or post types where the sidebar should not be loaded. The sidebar HTML and assets will not be loaded on excluded pages or post types.', 'aha-mobile-menu' ) );
}
/**
* Render enable field
*/
public function render_field_enable() {
$settings = $this->get_settings();
?>
/>
get_settings();
?>
get_settings();
?>
/>
get_settings();
$logo_id = $settings['logo'];
?>