Setup settings page finally, move settings array to bottom of pile - #45
This commit is contained in:
@ -57,16 +57,6 @@ class CWV2_Admin {
|
||||
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.
|
||||
*
|
||||
@ -93,6 +83,16 @@ class CWV2_Admin {
|
||||
* @author JayWood
|
||||
*/
|
||||
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>
|
||||
<?php endif;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the settings config
|
||||
*
|
||||
* @author JayWood
|
||||
* @return array
|
||||
*/
|
||||
public function get_settings_config() {
|
||||
return array(
|
||||
|
||||
array(
|
||||
|
||||
),
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user