private function load_updater() { if (LiveBlogging_Setting_UpdateMethod::is_enabled()) { $this->add_javascript_assets(); if (LiveBlogging_Setting_UpdateMethod::is_ajax()) { $this->updater = new LiveBlogging_Updater_Ajax(); } elseif (LiveBlogging_Setting_UpdateMethod::is_meteor()) { $this->updater = new LiveBlogging_Updater_Meteor(); } elseif (LiveBlogging_Setting_UpdateMethod::is_timed()) { $this->updater = new LiveBlogging_Updater_Timed(); } } }
public function register_page() { if (LiveBlogging_Setting_UpdateMethod::is_meteor()) { add_submenu_page('index.php', __('Meteor Status', 'live-blogging'), __('Meteor Status', 'live-blogging'), 'manage_options', 'live-blogging-meteor-status', array($this, 'render_page')); } }