| Name | Size | Mode | Actions |
|---|---|---|---|
| about.php | 7139 | 0644 | editdlrm |
| documentation.php | 331 | 0644 | editdlrm |
| footer.php | 83 | 0644 | editdlrm |
| free-vs-premium.php | 3217 | 0644 | editdlrm |
| header.php | 2001 | 0644 | editdlrm |
| quickstart.php | 1634 | 0644 | editdlrm |
| relnotes.php | 12959 | 0644 | editdlrm |
| support.php | 568 | 0644 | editdlrm |
| welcome.php | 4035 | 0644 | editdlrm |
/home/techb158/l2hypotheques.com/wp-content/plugins/codestar-framework/views/quickstart.php (1634B)
Let's quick start it.
Open your current theme functions.php file and paste this code.
// Control core classes for avoid errors if ( class_exists( 'CSF' ) ) { // // Set a unique slug-like ID $prefix = 'my_framework'; // // Create options CSF::createOptions( $prefix, array( 'menu_title' => 'My Framework', 'menu_slug' => 'my-framework', ) ); // // Create a section CSF::createSection( $prefix, array( 'title' => 'Tab Title 1', 'fields' => array( // // A text field array( 'id' => 'opt-text', 'type' => 'text', 'title' => 'Simple Text', ), ) ) ); CSF::createSection( $prefix, array( 'title' => 'Tab Title 2', 'fields' => array( array( 'id' => 'opt-textarea', 'type' => 'textarea', 'title' => 'Simple Textarea', ), ) ) ); }
How to get option value ?
$options = get_option( 'my_framework' ); // // unique id of the framework echo $options['opt-text']; // id of field echo $options['opt-textarea']; // id of field