public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     if (!is_admin()) {
         add_action('template_redirect', array(&$this, 'handle_form_submission'));
     }
 }
 protected function set_page_parameters($priority, $description)
 {
     parent::set_page_parameters($priority, $description);
     if (!isset($this->page_description['friendly_post_type'])) {
         $this->page_description['friendly_post_type'] = null;
     }
     if (!isset($this->page_description['friendly_taxonomy'])) {
         $this->page_description['friendly_taxonomy'] = null;
     }
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     add_filter('cuar/routing/logout-url', array(&$this, 'get_default_logout_url'), 20, 3);
     add_action('template_redirect', array(&$this, 'do_logout'), 1000);
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     add_filter('cuar/core/permission-groups', array(&$this, 'get_configurable_capability_groups'));
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     if ($this->get_friendly_post_type() != null) {
         add_filter("get_previous_post_where", array(&$this, 'disable_single_post_navigation'), 1, 3);
         add_filter("get_next_post_where", array(&$this, 'disable_single_post_navigation'), 1, 3);
     }
     if (!is_admin()) {
         add_filter('the_content', array(&$this, 'print_single_private_content_action_links'), 2990);
         // Optionally output the file links in the post footer area
         if ($this->is_show_in_single_post_footer_enabled()) {
             add_filter('the_content', array(&$this, 'print_single_private_content_footer'), 3000);
         }
         // Optionally output the latest files on the dashboard
         if ($this->is_show_in_dashboard_enabled()) {
             add_action('cuar/core/page/before-content?slug=customer-dashboard', array(&$this, 'print_dashboard_content'), 10);
         }
     }
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     // Widget area for our sidebar
     $this->enable_sidebar();
 }
 /**
  * Set the default values for the options
  *
  * @param array $defaults
  *
  * @return array
  */
 public function set_default_options($defaults)
 {
     $defaults = parent::set_default_options($defaults);
     $slug = $this->get_slug();
     $defaults[$slug . self::$OPTION_ENABLE_RICH_EDITOR] = true;
     return $defaults;
 }