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