Advertisement
pcwriter

buddypress-custom-posts/themes/type/create/php

Apr 30th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2. get_header();
  3.  
  4. //Setup globals for the edit form.
  5. global $bp, $post_ID, $post, $post_type, $post_type_object;
  6.  
  7. $post_ID = 0;
  8. $post_type_object = bpcp_get_post_type_object();
  9. $post_type = $bp->{$bp->active_components[$bp->current_component]}->id;
  10. $post = false;
  11.  
  12. ?>
  13. <?php global $cap; ?>
  14. <div id = 'content'>
  15. <div class = 'padder'>
  16. <h3>
  17. <?php bpcp_create_post_title(); ?>
  18. <a class = 'button' href = '<?php echo bp_get_root_domain() . '/' . $bp->current_component . '/'; ?>'><?php echo $post_type_object->labels->posts_directory; ?></a>
  19. </h3>
  20. <div class = 'item-body'>
  21. <?php bpcp_locate_template( Array( 'type/includes/edit-form.php' ), true ); ?>
  22. </div> <!-- /item-body -->
  23. </div> <!-- /.padder -->
  24.  
  25. </div> <!-- /#content -->
  26.  
  27. <?php locate_template( Array( 'sidebar.php' ), true );
  28.  
  29. if($cap->sidebar_placement == "Sidebars Left and Right")
  30. locate_template( array( 'sidebar2.php' ), true );
  31.  
  32. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement