Skip to content

Instantly share code, notes, and snippets.

@dovy
Created January 15, 2014 19:10
Show Gist options
  • Save dovy/8442354 to your computer and use it in GitHub Desktop.
Save dovy/8442354 to your computer and use it in GitHub Desktop.
<?php
$boxSections = array();
$boxSections[] = array(
'title' => __('Home Settings', 'redux-framework-demo'),
'header' => __('Welcome to the Simple Options Framework Demo', 'redux-framework-demo'),
'desc' => __('Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at: <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>', 'redux-framework-demo'),
'icon_class' => 'icon-large',
'icon' => 'el-icon-home',
// 'submenu' => false, // Setting submenu to false on a given section will hide it from the WordPress sidebar menu!
'fields' => array(
array(
'title' => __( 'Layout', 'redux-framework-demo' ),
'desc' => __( 'Select main content and sidebar arrangement. Choose between 1, 2 or 3 column layout.', 'redux-framework-demo' ),
'id' => 'layout',
'default' => 1,
'type' => 'image_select',
'customizer'=> array(),
'options' => array(
0 => ReduxFramework::$_url . 'assets/img/1c.png',
1 => ReduxFramework::$_url . 'assets/img/2cr.png',
2 => ReduxFramework::$_url . 'assets/img/2cl.png',
3 => ReduxFramework::$_url . 'assets/img/3cl.png',
4 => ReduxFramework::$_url . 'assets/img/3cr.png',
5 => ReduxFramework::$_url . 'assets/img/3cm.png',
)
)
)
);
$metaboxes[] = array(
'id' => 'demo-layout2',
//'title' => __('Cool Options', 'redux-framework-demo'),
'post_types' => array('page','post'),
'position' => 'side', // normal, advanced, side
'priority' => 'high', // high, core, default, low
'sections' => $boxSections
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment