Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
  2. // ===============================================================================================
  3. // -----------------------------------------------------------------------------------------------
  4. // METABOX OPTIONS
  5. // -----------------------------------------------------------------------------------------------
  6. // ===============================================================================================
  7. $options = array();
  8.  
  9.  
  10.  
  11. // -----------------------------------------
  12. // Post Metabox Options -
  13. // -----------------------------------------
  14. $options[] = array(
  15. 'id' => 'neuron_post_meta',
  16. 'title' => 'work option',
  17. 'post_type' => 'work',
  18. 'context' => 'normal',
  19. 'priority' => 'default',
  20. 'sections' => array(
  21.  
  22. array(
  23. 'name' => 'work_section_1',
  24. 'fields' => array(
  25.  
  26. array(
  27. 'id' => 'sub_title',
  28. 'type' => 'text',
  29. 'title' => 'sub title',
  30. 'desc' => 'Type your sub title',
  31. ),
  32. array(
  33. 'id' => 'link_text',
  34. 'type' => 'text',
  35. 'title' => 'link_text',
  36. 'defeult' => 'visite website',
  37. ),
  38. array(
  39. 'id' => 'link',
  40. 'type' => 'text',
  41. 'title' => 'link',
  42. ),
  43.  
  44.  
  45. array(
  46. 'id' => 'information',
  47. 'type' => 'group',
  48. 'title' => 'Work information',
  49. 'button_title' => 'Add New',
  50. 'accordion_title' => 'Add New Field',
  51. 'fields' => array(
  52. array(
  53. 'id' => 'text',
  54. 'type' => 'text',
  55. 'title' => 'information title',
  56. ),
  57. array(
  58. 'id' => 'value',
  59. 'type' => 'upload',
  60. 'title' => 'information value',
  61. ),
  62.  
  63. ),
  64. ),
  65.  
  66.  
  67.  
  68. ),
  69. ),
  70.  
  71. ),
  72. );
  73.  
  74. CSFramework_Metabox::instance( $options );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement