Created
October 9, 2012 14:51
-
-
Save gicolek/3859316 to your computer and use it in GitHub Desktop.
Usage of examples of Settings class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once STYLESHEETPATH . '/skeleton/settings.class'; | |
if ( class_exists( 'Skeleton_Settings' ) ) { | |
$args = array( | |
'opt1' => array( | |
'type' => 'text', | |
'name' => 'input-text-1', | |
'desc' => 'Input type text test', | |
), | |
'opt2' => array( | |
'type' => 'text', | |
'name' => 'input-text-2', | |
'desc' => 'Input type text test 2', | |
), | |
'opt3' => array( | |
'type' => 'dropdown_pages', | |
'name' => 'dropdown-pages', | |
'desc' => 'Testing dropdown pages', | |
), | |
'opt4' => array( | |
'type' => 'wp_editor', | |
'name' => 'wp-editor', | |
'desc' => 'Testing WP Editor', | |
) | |
); | |
$settings = new Skeleton_Settings( $args ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment