/** */ protected function init() { // run parent init method parent::init(); // extra activity entry links add_action('bp_before_activity_loop', array($this, 'render')); }
/** */ protected function init() { // make sure component is supported if ($this->supported()) { parent::init(); if (is_admin() && !is_dir(TEMPLATEPATH . '/members') && !is_dir(STYLESHEETPATH . '/members')) { bp_core_add_admin_notice(__("You have BuddyPress activated, but the templates are missing from your theme!", infinity_text_domain)); return false; } $this->setup_theme(); // addtl filters add_filter('bp_no_access_mode', array($this, 'use_nxtlogin')); add_filter('bp_get_activity_action_pre_meta', array($this, 'secondary_avatars'), 10, 2); // addtl actions add_action('open_sidebar', array($this, 'message_notices')); add_action('widgets_init', array($this, 'register_sidebars')); } }