"", "thanks_output_one" => "# vote of thanks", "thanks_output_many" => "# votes of thanks", "thanks_voting" => "Add your vote of thanks", "thanks_position" => "after", "thanks_voters" => "no", "thanks_voters_prefix" => "(", "thanks_voters_suffix" => ")", ); require_once( "thanks-admin.php" ); require_once( "thanks-output.php" ); function thanks_js() { $src = BB_PLUGIN_URL.'thanks/thanks-plugin.js'; wp_register_script('thanks-plugin-js', $src, array('jquery')); wp_enqueue_script('thanks-plugin-js'); } function thanks_head() { ?> post_id; $user = bb_get_current_user(); $uid = ($logged_in) ? (int) $user->ID : false; echo "
"; echo thanks_output_details($post_id, $uid, $logged_in); echo "
"; } function thanks_bootstrap( ) { add_action('bb_init', 'thanks_js'); add_action('admin_init', 'thanks_js'); add_action('bb_head', 'thanks_head'); add_action('bb_admin_head', 'thanks_admin_head'); add_action('bb_admin-header.php', 'thanks_admin_page_process'); add_action('bb_post.php', 'thanks_output_before'); add_action('bb_after_post.php', 'thanks_output_after'); add_action('bb_admin_menu_generator', 'thanks_admin_page_add'); } thanks_bootstrap(); ?>