'', 'style' => 'simple', ); /** * Start up */ public function __construct() { add_action( 'admin_menu', array( $this, 'add_plugin_page' ) ); add_action( 'admin_init', array( $this, 'page_init' ) ); } /** * Add options page */ public function add_plugin_page() { // This page will be under "Settings" add_options_page( 'Academizer Settings', 'Academizer', 'manage_options', 'academizer-settings', array( $this, 'create_admin_page' ) ); } /** * Options page callback */ public function create_admin_page() { // Set class property $this->options = get_option( 'academizer_options', self::$defaults ); ?>

Academizer 1.0

"Surname, Name(s)", including the comma but without quotes. It will be used to identify yourself in the citation and apply a specific css class.'; } public function print_academizer_section_style_info() { print 'Choose the default display style.'; } /** * Get the settings option array and print one of its values */ public function academizer_name_callback() { printf( '', isset( $this->options['name'] ) ? esc_attr( $this->options['name']) : '' ); } public function academizer_style_callback() { print '

'; } } if( is_admin() ) $academizer_settings = new Academizer_Settings();