public function init() {

		// Gets options to load
    	$options = & Options_Framework::_optionsframework_options();

		// Checks if options are available
    	if ( $options ) {

			// Add the options page and menu item.
			add_action( 'admin_menu', array( $this, 'add_custom_options_page' ) );

			// Add the required scripts and styles
			add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
			add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );

			// Settings need to be registered after admin_init
			add_action( 'admin_init', array( $this, 'settings_init' ) );

			// Adds options menu to the admin bar
			add_action( 'wp_before_admin_bar_render', array( $this, 'optionsframework_admin_bar' ) );

		} else {
			// Display a notice if options aren't present in the theme
			add_action( 'admin_notices', array( $this, 'options_notice' ) );
			add_action( 'admin_init', array( $this, 'options_notice_ignore' ) );
		}

    }
public function init() {

		// Gets options to load
    	$options = & Options_Framework::_optionsframework_options();

		// Checks if options are available
    	if ( $options ) {

			// Add the options page and menu item.
			add_action( 'admin_menu', array( $this, 'add_custom_options_page' ) );

			// Add the required scripts and styles
			add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
			add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );

			// Settings need to be registered after admin_init
			add_action( 'admin_init', array( $this, 'settings_init' ) );

			// Adds options menu to the admin bar
			add_action( 'wp_before_admin_bar_render', array( $this, 'optionsframework_admin_bar' ) );

		} else {
			// Display a notice if options aren't present in the theme
			add_action( 'admin_notices', array( $this, 'options_notice' ) );
			add_action( 'admin_init', array( $this, 'options_notice_ignore' ) );
		}

    }
public function init ( ) { // Gets options to load $ options = & Options_Framework :: _optionsframework_options ( ) ; // Checks if options are available if ( $ options ) { // Add the options page and menu item. add_action ( 'admin_menu' , array ( $ this , 'add_custom_options_page' ) ) ; // Add the required scripts and styles add_action ( 'admin_enqueue_scripts' , array ( $ this , 'enqueue_admin_styles' ) ) ; add_action ( 'admin_enqueue_scripts' , array ( $ this , 'enqueue_admin_scripts' ) ) ; // Settings need to be registered after admin_init add_action ( 'admin_init' , array ( $ this , 'settings_init' ) ) ; // Adds options menu to the admin bar add_action ( 'wp_before_admin_bar_render' , array ( $ this , 'optionsframework_admin_bar' ) ) ; } else { // Display a notice if options aren't present in the theme add_action ( 'admin_notices' , array ( $ this , 'options_notice' ) ) ; add_action ( 'admin_init' , array ( $ this , 'options_notice_ignore' ) ) ; } }
Hook in the scripts and styles

@since 1.7.0
Hook in the scripts and styles