Campaign.php
3 years ago
Current_Traffic.php
3 years ago
Device.php
2 years ago
Geo.php
2 years ago
Page.php
2 years ago
Page_Author_Archive.php
3 years ago
Page_Date_Archive.php
3 years ago
Page_Home.php
3 years ago
Page_Not_Found.php
3 years ago
Page_Post_Type_Archive.php
2 years ago
Page_Search.php
3 years ago
Page_Singular.php
2 years ago
Page_Term_Archive.php
3 years ago
Referrer.php
2 years ago
View_Stats.php
2 years ago
Visitor.php
2 years ago
WooCommerce_Stats.php
3 years ago
Page_Not_Found.php
70 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\IAWP\Models; |
| 4 | |
| 5 | class Page_Not_Found extends Page |
| 6 | { |
| 7 | private $not_found_url; |
| 8 | public function __construct($row) |
| 9 | { |
| 10 | $this->not_found_url = $row->not_found_url; |
| 11 | parent::__construct($row); |
| 12 | } |
| 13 | public function most_popular_subtitle() : string |
| 14 | { |
| 15 | return $this->url(); |
| 16 | } |
| 17 | protected function resource_key() : string |
| 18 | { |
| 19 | return 'not_found_url'; |
| 20 | } |
| 21 | protected function resource_value() : string |
| 22 | { |
| 23 | return $this->not_found_url; |
| 24 | } |
| 25 | protected function calculate_is_deleted() : bool |
| 26 | { |
| 27 | return \false; |
| 28 | } |
| 29 | protected function calculate_url() |
| 30 | { |
| 31 | return \site_url($this->not_found_url); |
| 32 | } |
| 33 | protected function calculate_title() |
| 34 | { |
| 35 | return '404'; |
| 36 | } |
| 37 | protected function calculate_type() |
| 38 | { |
| 39 | return 'not-found'; |
| 40 | } |
| 41 | protected function calculate_type_label() |
| 42 | { |
| 43 | return '404'; |
| 44 | } |
| 45 | protected function calculate_icon() |
| 46 | { |
| 47 | return '<span class="dashicons dashicons-warning"></span>'; |
| 48 | } |
| 49 | protected function calculate_author_id() |
| 50 | { |
| 51 | return null; |
| 52 | } |
| 53 | protected function calculate_author() |
| 54 | { |
| 55 | return null; |
| 56 | } |
| 57 | protected function calculate_avatar() |
| 58 | { |
| 59 | return null; |
| 60 | } |
| 61 | protected function calculate_date() |
| 62 | { |
| 63 | return null; |
| 64 | } |
| 65 | protected function calculate_category() |
| 66 | { |
| 67 | return []; |
| 68 | } |
| 69 | } |
| 70 |