options_array = $options; $this->plugin_options = get_option( 'aws_settings' ); $this->generate_fields(); } /* * Generate options fields */ private function generate_fields() { if ( empty( $this->options_array ) ) { return; } $plugin_options = $this->plugin_options; echo ''; echo ''; foreach ( $this->options_array as $k => $value ) { switch ( $value['type'] ) { case 'text': ?> '; echo '




$label ) { ?> >

$label ) { ?> >





    $img ) { ?>
  • >




    0 ) { foreach ($active_buttons as $button) { if ( ! $button ) continue; echo '
  • ' . $button . '
  • '; } } ?>

    0 ) { foreach ($inactive_buttons as $button) { echo '
  • ' . $button . '
  • '; } } ?>

'; echo '

'; } } endif;