Esempio n. 1
0
 /**
  */
 protected function init()
 {
     // run parent init method
     parent::init();
     // add actions
     add_action('open_body', array($this, 'render'));
 }
Esempio n. 2
0
 /**
  */
 protected function init()
 {
     // run parent init method
     parent::init();
     // register actions as late as possible (this may need to be tweaked later)
     add_action('init', array($this, 'register_actions'));
 }
Esempio n. 3
0
 /**
  */
 protected function init()
 {
     // run parent
     parent::init();
     // init directives
     $this->title = __('Header Logo', infinity_text_domain);
     $this->description = __('Custom header logo support', infinity_text_domain);
 }
Esempio n. 4
0
 /**
  */
 protected function init()
 {
     // run parent init method
     parent::init();
     // add actions
     add_action('open_head', array($this, 'viewport_meta'));
     add_action('wp_head', array($this, 'render'));
 }
Esempio n. 5
0
 /**
  */
 protected function init()
 {
     // run parent init method
     parent::init();
     // init properties
     $this->title = __('FaceBook Auto Connect', infinity_text_domain);
     $this->description = __('Enables FaceBook Auto Connect support', infinity_text_domain);
     // add actions on which to render
     add_action('bp_before_account_details_fields', array($this, 'render'));
 }
Esempio n. 6
0
 /**
  */
 protected function init()
 {
     // run parent init method
     parent::init();
     // init properties
     $this->title = __('BuddyPress Protect', infinity_text_domain);
     $this->description = __('Restrict access to your BuddyPress components to members only', infinity_text_domain);
     // add action to get_header
     add_action('wp', array($this, 'maybe_redirect'), 1);
 }
Esempio n. 7
0
 /**
  */
 protected function init()
 {
     // make sure component is supported
     if ($this->supported()) {
         parent::init();
         if (is_admin() && !is_dir(get_template_directory() . '/members') && !is_dir(get_stylesheet_directory() . '/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_wplogin'));
         add_filter('bp_get_activity_action_pre_meta', array($this, 'secondary_avatars'), 10, 2);
         // addtl actions
         add_action('open_sidebar', array($this, 'message_notices'));
     }
 }
Esempio n. 8
0
 /**
  */
 protected function init()
 {
     // run parent
     parent::init();
     // set property defaults
     $this->title = __('Joyride Plugin');
     $this->description = __('A wrapper for the jQuery Joyride plugin');
     $this->id = 'joyRideTipContent';
 }
Esempio n. 9
0
 /**
  */
 protected function init()
 {
     // run parent init method
     parent::init();
     // add actions
     add_action('open_body', array($this, 'render'));
     add_action('open_wrapper', array($this, 'menu_container'));
     // add filter
     add_filter('loginout', array($this, 'loginout_filter'));
 }