Setup settings page finally, move settings array to bottom of pile - #45

This commit is contained in:
Jay Wood
2016-07-01 15:19:24 -04:00
parent 4539e8e222
commit 485154b076

View File

@ -57,16 +57,6 @@ class CWV2_Admin {
add_action( 'admin_menu', array( $this, 'add_menu' ) ); add_action( 'admin_menu', array( $this, 'add_menu' ) );
} }
/**
* Gets the settings config
*
* @author JayWood
* @return array
*/
public function get_settings_config() {
return array();
}
/** /**
* Adds the options menu. * Adds the options menu.
* *
@ -93,6 +83,16 @@ class CWV2_Admin {
* @author JayWood * @author JayWood
*/ */
public function render_settings_page() { public function render_settings_page() {
?><div class="wrap">
<h2><?php _e( 'Content Warning v2 Settings', 'minecraft-suite' ); ?></h2>
<form method="post" action="options.php">
<?php
settings_fields( $this->option_prefix . 'options_group' );
do_settings_sections( $this->options_page );
submit_button();
?>
</form>
</div><?php
} }
/** /**
@ -240,4 +240,20 @@ class CWV2_Admin {
<p class="description"><?php _e( 'Cannot be changed while site wide option is enabled.', 'content-warning-v2' ); ?></p> <p class="description"><?php _e( 'Cannot be changed while site wide option is enabled.', 'content-warning-v2' ); ?></p>
<?php endif; <?php endif;
} }
/**
* Gets the settings config
*
* @author JayWood
* @return array
*/
public function get_settings_config() {
return array(
array(
),
);
}
} }