Advertisement
matthillco

Untitled

Oct 23rd, 2011
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. //======================================================================
  2. // Meta Boxes / Custom Fields
  3. //======================================================================
  4.  
  5. // custom constant (opposite of TEMPLATEPATH)
  6. define('_TEMPLATEURL', WP_CONTENT_URL . '/' . stristr(TEMPLATEPATH, 'themes'));
  7.  
  8. include_once 'metaboxes/MetaBox.php';
  9. include_once 'metaboxes/MediaAccess.php';
  10.  
  11. // include css to style the custom meta boxes, this should be a global
  12. // stylesheet used by all similar meta boxes
  13. if (is_admin()) {
  14.     wp_enqueue_style('custom_meta_css', _TEMPLATEURL . '/metaboxes/style-metaboxes.css');
  15. }
  16.  
  17. $wpalchemy_media_access = new WPAlchemy_MediaAccess();
  18.  
  19. $metabox_settings = new WPAlchemy_MetaBox(array
  20. (
  21.     'id' => '_metabox_settings',
  22.     'title' => 'Settings',
  23.     'hide_editor' => TRUE,
  24.     'hide_title' => FALSE,
  25.     'autosave' => TRUE,
  26.     'context' => 'normal',
  27.     'priority' => 'high',
  28.     'include_post_id' => $settingsPage,
  29.     'hide_screen_option' => TRUE,
  30.     'template' => TEMPLATEPATH . '/metaboxes/metabox-settings.php'
  31. ));
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement