public function run_addon($plugin) { parent::run_addon($plugin); $this->pf_addon = $plugin->get_addon('private-pages'); // This page can also list archive for private content $this->enable_content_archives_permalinks(); $this->enable_single_private_content_permalinks(); // Widget area for our sidebar if ($this->pf_addon->is_enabled()) { $this->enable_sidebar(array('CUAR_PrivatePageCategoriesWidget', 'CUAR_PrivatePageDatesWidget', 'CUAR_PrivatePagesWidget', 'CUAR_PrivatePageAuthorsWidget'), true); } if (is_admin()) { $this->enable_settings('cuar_private_pages'); } }
public function is_show_in_single_post_footer_enabled() { return $this->pf_addon->is_enabled() && parent::is_show_in_single_post_footer_enabled(); }