Skip to content

Instantly share code, notes, and snippets.

@gicolek
Created October 9, 2012 14:51
Show Gist options
  • Save gicolek/3859316 to your computer and use it in GitHub Desktop.
Save gicolek/3859316 to your computer and use it in GitHub Desktop.
Usage of examples of Settings class
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