/** * PHP 5 constructor * * @package BuddyPress Docs * @since 1.1 */ function __construct() { global $bp; if ('history' != bp_docs_current_view()) { return false; } $this->setup_params(); // Hooked to a page load action to make sure the post type is registered add_action('bp_docs_registered_post_type', array($this, 'setup_action'), 2); $bp->bp_docs->history =& $this; }
echo bp_docs_get_group_doc_permalink() . '/' . BP_DOCS_EDIT_SLUG; ?> "><?php _e('Edit', 'bp-docs'); ?> </a> </li> <?php } ?> <?php do_action('bp_docs_header_tabs'); ?> </ul> </div> <?php } elseif ('create' == bp_docs_current_view()) { ?> <h2><?php _e('New Doc', 'bp-docs'); ?> </h2> <?php } ?> </h2>