| @@ -11,8 +11,10 @@ | ||
| 11 | 11 | protected $plugin_url; |
| 12 | 12 | protected $plugin_path; |
| 13 | 13 | protected $version; |
| 14 | 14 | |
| 15 | + protected $url; // pageURL | |
| 16 | + | |
| 15 | 17 | protected $networks; |
| 16 | 18 | protected $admin; |
| 17 | 19 | |
| 18 | 20 | public function __construct() |
| @@ -285,8 +287,13 @@ | ||
| 285 | 287 | { |
| 286 | 288 | return trailingslashit(plugin_dir_url(MBSOCIAL_ROOT_FILE)); |
| 287 | 289 | } |
| 288 | 290 | |
| 291 | + public function get_page_url() | |
| 292 | + { | |
| 293 | + return $this->url; | |
| 294 | + } | |
| 295 | + | |
| 289 | 296 | public function get_version() |
| 290 | 297 | { |
| 291 | 298 | return MBSOCIAL_VERSION_NUM; |
| 292 | 299 | } |
| @@ -295,9 +302,12 @@ | ||
| 295 | 302 | { |
| 296 | 303 | if (Install::getIssue() == 'mb-wrong-version') |
| 297 | 304 | include_once($this->plugin_path . 'admin/update_mb.php'); |
| 298 | 305 | else |
| 306 | + { | |
| 307 | + $this->url = admin_url('?page=maxbuttons-social'); | |
| 299 | 308 | include_once($this->plugin_path . 'admin/page_editor.php'); |
| 309 | + } | |
| 300 | 310 | } |
| 301 | 311 | |
| 302 | 312 | public function load_settings_page() |
| 303 | 313 | { |
| @@ -303,8 +313,11 @@ | ||
| 303 | 313 | { |
| 304 | 314 | if (Install::getIssue() == 'mb-wrong-version') |
| 305 | 315 | include_once($this->plugin_path . 'admin/update_mb.php'); |
| 306 | 316 | else |
| 317 | + { | |
| 318 | + $this->url = admin_url('?page=maxbuttons-social-settings'); | |
| 307 | 319 | include_once($this->plugin_path . 'admin/page_settings.php'); |
| 320 | + } | |
| 308 | 321 | } |
| 309 | 322 | |
| 310 | 323 | } |