Guest User

Untitled

a guest
May 25th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. <?php
  2. $current_options = get_option('corpbiz_options');
  3. /************* Home Service custom post type ***********************/
  4. function corpbiz_service_type()
  5. { register_post_type( 'corpbiz_service',
  6. array(
  7. 'labels' => array(
  8. 'name' => 'Featured Service',
  9. 'add_new' => __('Add New service', 'corpbiz'),
  10. 'add_new_item' => __('Add New Service','corpbiz'),
  11. 'edit_item' => __('Add New service','corpbiz'),
  12. 'new_item' => __('New Link','corpbiz'),
  13. 'all_items' => __('All Services','corpbiz'),
  14. 'view_item' => __('View Link','corpbiz'),
  15. 'search_items' => __('Search Links','corpbiz'),
  16. 'not_found' => __('No Links found','corpbiz'),
  17. 'not_found_in_trash' => __('No Links found in Trash','corpbiz'),
  18. ),
  19. 'supports' => array('title','thumbnail'),
  20. 'show_in' => true,
  21. 'show_in_nav_menus' => false,
  22. 'public' => true,
  23. 'menu_position' =>20,
  24. 'public' => true,
  25. 'menu_icon' => WEBRITI_TEMPLATE_DIR_URI . '/images/option-icon-general.png',
  26. )
  27. );
  28. }
  29. add_action( 'init', 'corpbiz_service_type' );
  30. //************* Home project custom post type ***********************
  31. function corpbiz_project_type()
  32. { register_post_type( 'corpbiz_project',
  33. array(
  34. 'labels' => array(
  35. 'name' => 'Project Slider',
  36. 'add_new' => __('Add New Item', 'corpbiz'),
  37. 'add_new_item' => __('Add New Project Slider','corpbiz'),
  38. 'edit_item' => __('Add New Project Slider','corpbiz'),
  39. 'new_item' => __('New Link','corpbiz'),
  40. 'all_items' => __('All Project Slider','corpbiz'),
  41. 'view_item' => __('View Link','corpbiz'),
  42. 'search_items' => __('Search Links','corpbiz'),
  43. 'not_found' => __('No Links found','corpbiz'),
  44. 'not_found_in_trash' => __('No Links found in Trash','corpbiz'),
  45. ),
  46. 'supports' => array('title','thumbnail'),
  47. 'show_in' => true,
  48. 'show_in_nav_menus' => false,
  49. 'public' => true,
  50. 'menu_position' =>20,
  51. 'public' => true,
  52. 'menu_icon' => WEBRITI_TEMPLATE_DIR_URI . '/images/slides.png',
  53. )
  54. );
  55. }
  56. add_action( 'init', 'corpbiz_project_type' );
  57.  
  58. //************* Home project custom post type ***********************
  59. function corpbiz_portfolio_type()
  60. { register_post_type( 'corpbiz_portfolio',
  61. array(
  62. 'labels' => array(
  63. 'name' => 'Portfolio ',
  64. 'add_new' => __('Add New Item', 'corpbiz'),
  65. 'add_new_item' => __('Add New Portfolio','corpbiz'),
  66. 'edit_item' => __('Add New Portfolio','corpbiz'),
  67. 'new_item' => __('New Link','corpbiz'),
  68. 'all_items' => __('All Portfolio','corpbiz'),
  69. 'view_item' => __('View Link','corpbiz'),
  70. 'search_items' => __('Search Links','corpbiz'),
  71. 'not_found' => __('No Links found','corpbiz'),
  72. 'not_found_in_trash' => __('No Links found in Trash','corpbiz'),
  73. ),
  74. 'supports' => array('title','thumbnail'),
  75. 'show_in' => true,
  76. 'show_in_nav_menus' => false,
  77. 'public' => true,
  78. 'menu_position' =>20,
  79. 'public' => true,
  80. 'rewrite' => array('slug' =>'Your_custom_slug'),
  81. 'menu_icon' => WEBRITI_TEMPLATE_DIR_URI . '/images/option-icon-media.png',
  82. )
  83. );
  84. }
  85. add_action( 'init', 'corpbiz_portfolio_type' );
  86.  
  87.  
  88.  
  89. //Testimonial
  90. function corpbiz_testimonial() {
  91. register_post_type( 'corpbiz_testimonial',
  92. array(
  93. 'labels' => array(
  94. 'name' => 'Our Clients',
  95. 'add_new' => __('Add New Client', 'corpbiz'),
  96. 'add_new_item' => __('Add New Client','corpbiz'),
  97. 'edit_item' => __('Add New Client','corpbiz'),
  98. 'new_item' => __('New Link','corpbiz'),
  99. 'all_items' => __('All Clients','corpbiz'),
  100. 'view_item' => __('View Client','corpbiz'),
  101. 'search_items' => __('Search Client','corpbiz'),
  102. 'not_found' => __('No Client found','corpbiz'),
  103. 'not_found_in_trash' => __('No Client found in Trash','corpbiz'),
  104. ),
  105. 'supports' => array('title','thumbnail'),
  106. 'show_in' => true,
  107. 'show_in_nav_menus' => false,
  108. 'public' => true,
  109. 'menu_position' =>20,
  110. 'public' => true,
  111. )
  112. );
  113. }
  114. add_action( 'init', 'corpbiz_testimonial' );
  115.  
  116. function corpbiz_team_type()
  117. { register_post_type( 'corpbiz_team',
  118. array(
  119. 'labels' => array(
  120. 'name' => 'Our Team',
  121. 'add_new' => __('Add New Team Member', 'corpbiz'),
  122. 'add_new_item' => __('Add New Member','corpbiz'),
  123. 'edit_item' => __('Add New Member','corpbiz'),
  124. 'new_item' => __('New Link','corpbiz'),
  125. 'all_items' => __('All Team Member','corpbiz'),
  126. 'view_item' => __('View Link','corpbiz'),
  127. 'search_items' => __('Search Links','corpbiz'),
  128. 'not_found' => __('No Links found','corpbiz'),
  129. 'not_found_in_trash' => __('No Links found in Trash','corpbiz'),
  130. ),
  131. 'supports' => array('title','thumbnail'),
  132. 'show_in' => true,
  133. 'show_in_nav_menus' => false,
  134. 'public' => true,
  135. 'menu_position' => 20,
  136. 'public' => true,
  137. )
  138. );
  139. }
  140. add_action( 'init', 'corpbiz_team_type' );
  141. ?>
Add Comment
Please, Sign In to add comment