Skip to content

@vfowler /my_bookmarklet-dir.php
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
My attempt to get imath's BP Bookmarklet 2 working in my theme (a child theme of bp_default).
<?php /* Template Name: hub bookmarklet */
/**
* Main and only template of the plugin
*
* @package BP Bookmarklet
*
*/
if( bp_bookmarklet_is_bp_default() )
get_header( 'buddypress' );
?>
<div id="buddypress" class="hub">
<h1 class="bookmarklet_title"><?php bkmklet_the_page_title();?></h1>
<?php do_action( 'template_notices' ); ?>
<?php if ( !is_user_logged_in() ) : ?>
<?php wp_login_form();?>
<?php else:?>
<?php do_action( 'bp_before_directory_bookmarklet' ); ?>
<?php bp_get_template_part( 'activity/post-form' );?>
<div id="link-result"></div>
<?php do_action( 'bp_after_directory_bookmarklet' ); ?>
<?php endif;?>
</div>
<?php
if( bp_bookmarklet_is_bp_default() )
get_footer( 'buddypress' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.