Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //======================================================================
- // Meta Boxes / Custom Fields
- //======================================================================
- // custom constant (opposite of TEMPLATEPATH)
- define('_TEMPLATEURL', WP_CONTENT_URL . '/' . stristr(TEMPLATEPATH, 'themes'));
- include_once 'metaboxes/MetaBox.php';
- include_once 'metaboxes/MediaAccess.php';
- // include css to style the custom meta boxes, this should be a global
- // stylesheet used by all similar meta boxes
- if (is_admin()) {
- wp_enqueue_style('custom_meta_css', _TEMPLATEURL . '/metaboxes/style-metaboxes.css');
- }
- $wpalchemy_media_access = new WPAlchemy_MediaAccess();
- $metabox_settings = new WPAlchemy_MetaBox(array
- (
- 'id' => '_metabox_settings',
- 'title' => 'Settings',
- 'hide_editor' => TRUE,
- 'hide_title' => FALSE,
- 'autosave' => TRUE,
- 'context' => 'normal',
- 'priority' => 'high',
- 'include_post_id' => $settingsPage,
- 'hide_screen_option' => TRUE,
- 'template' => TEMPLATEPATH . '/metaboxes/metabox-settings.php'
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement