| @@ -26,10 +26,8 @@ | ||
| 26 | 26 | use ThinkRank\SEO\Email_Report_Sections\Top_Winning_Posts_Section; |
| 27 | 27 | use ThinkRank\SEO\Email_Report_Sections\Top_Losing_Posts_Section; |
| 28 | 28 | use ThinkRank\SEO\Email_Report_Sections\Top_Winning_Keywords_Section; |
| 29 | 29 | use ThinkRank\SEO\Email_Report_Sections\Top_Losing_Keywords_Section; |
| 30 | -use ThinkRank\SEO\Email_Report_Sections\Site_Traffic_Section; | |
| 31 | -use ThinkRank\SEO\Email_Report_Sections\Ai_Search_Section; | |
| 32 | 30 | |
| 33 | 31 | if (!defined('ABSPATH')) { |
| 34 | 32 | exit; |
| 35 | 33 | } |
| @@ -70,9 +68,8 @@ | ||
| 70 | 68 | */ |
| 71 | 69 | private function require_files(): void { |
| 72 | 70 | $base = THINKRANK_PLUGIN_DIR . 'includes/seo/email-report-sections/'; |
| 73 | 71 | require_once $base . 'interface-email-report-section.php'; |
| 74 | - require_once $base . 'class-email-report-html.php'; | |
| 75 | 72 | require_once $base . 'class-top-posts-renderer.php'; |
| 76 | 73 | require_once $base . 'class-key-metrics-section.php'; |
| 77 | 74 | require_once $base . 'class-position-summary-section.php'; |
| 78 | 75 | require_once $base . 'class-top-winning-posts-section.php'; |
| @@ -78,10 +75,8 @@ | ||
| 78 | 75 | require_once $base . 'class-top-winning-posts-section.php'; |
| 79 | 76 | require_once $base . 'class-top-losing-posts-section.php'; |
| 80 | 77 | require_once $base . 'class-top-winning-keywords-section.php'; |
| 81 | 78 | require_once $base . 'class-top-losing-keywords-section.php'; |
| 82 | - require_once $base . 'class-site-traffic-section.php'; | |
| 83 | - require_once $base . 'class-ai-search-section.php'; | |
| 84 | 79 | |
| 85 | 80 | // Defaults config is procedural — load eagerly. |
| 86 | 81 | require_once THINKRANK_PLUGIN_DIR . 'includes/config/email-report-settings-config.php'; |
| 87 | 82 | } |
| @@ -101,18 +96,14 @@ | ||
| 101 | 96 | $this->scheduler = new Email_Report_Scheduler($this->config, $this->generator); |
| 102 | 97 | } |
| 103 | 98 | |
| 104 | 99 | private function register_default_sections(): void { |
| 105 | - // Registration order is render order: the hero, what grew, what | |
| 106 | - // fell, where things rank, then the optional GA4 and AI cards. | |
| 107 | 100 | $this->registry->register(new Key_Metrics_Section()); |
| 101 | + $this->registry->register(new Position_Summary_Section()); | |
| 108 | 102 | $this->registry->register(new Top_Winning_Posts_Section()); |
| 103 | + $this->registry->register(new Top_Losing_Posts_Section()); | |
| 109 | 104 | $this->registry->register(new Top_Winning_Keywords_Section()); |
| 110 | - $this->registry->register(new Top_Losing_Posts_Section()); | |
| 111 | 105 | $this->registry->register(new Top_Losing_Keywords_Section()); |
| 112 | - $this->registry->register(new Position_Summary_Section()); | |
| 113 | - $this->registry->register(new Site_Traffic_Section()); | |
| 114 | - $this->registry->register(new Ai_Search_Section()); | |
| 115 | 106 | } |
| 116 | 107 | |
| 117 | 108 | private function register_extension_sections(): void { |
| 118 | 109 | /** |
| @@ -142,10 +133,6 @@ | ||
| 142 | 133 | } |
| 143 | 134 | |
| 144 | 135 | public function scheduler(): Email_Report_Scheduler { |
| 145 | 136 | return $this->scheduler; |
| 146 | - } | |
| 147 | - | |
| 148 | - public function data_provider(): Email_Report_Data_Provider { | |
| 149 | - return $this->data_provider; | |
| 150 | 137 | } |
| 151 | 138 | } |