Skip to content

Instantly share code, notes, and snippets.

@salehahmadbabu
Created January 8, 2018 06:41
Show Gist options
  • Save salehahmadbabu/c6a383c2831c63bdec32165128392935 to your computer and use it in GitHub Desktop.
Save salehahmadbabu/c6a383c2831c63bdec32165128392935 to your computer and use it in GitHub Desktop.
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// FRAMEWORK SETTINGS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$settings = array(
'menu_title' => 'Theme options',
'menu_type' => 'theme', // menu, submenu, options, theme, etc.
'menu_slug' => 'neuron-theme-options',
'ajax_save' => false,
'show_reset_all' => false,
'framework_title' => 'Neuron theme <small>by RRF Online</small>',
);
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// FRAMEWORK OPTIONS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$options = array();
// ----------------------------------------
// a option section for options overview -
// ----------------------------------------
$options[] = array(
'name' => 'homepage',
'title' => 'Homepage',
'icon' => 'fa fa-home',
// begin: fields
'fields' => array(
// begin: a field
array(
'id' => 'promo_title',
'type' => 'text',
'title' => 'Promo area title',
'default' => 'Welcome to the Neuron Finance',
'desc' => 'Type your promo area title',
),
// end: a field
array(
'id' => 'promo_content',
'type' => 'textarea',
'title' => 'Promo area content',
'default' => 'Interactively simplify 24/7 markets through 24/7 best practices. Authoritatively foster cutting-edge manufactured products and distinctive.',
'desc' => 'Type your promo area content',
'help' => 'This option field is useful. You will love it!',
),
), // end: fields
);
$options[] = array(
'name' => 'service',
'title' => 'Service',
'icon' => 'fa fa-star',
// begin: fields
'fields' => array(
// begin: a field
array(
'id' => 'service_title',
'type' => 'text',
'title' => 'Service area title',
'desc' => 'Type your service area title',
),
// end: a field
array(
'id' => 'textarea_1',
'type' => 'textarea',
'title' => 'Textarea',
'help' => 'This option field is useful. You will love it!',
),
), // end: fields
);
CSFramework::instance( $settings, $options );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment