| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Presentations; |
| 4 |
|
| 5 |
/** |
| 6 |
* Class Indexable_Static_Home_Page_Presentation. |
| 7 |
* |
| 8 |
* Presentation object for indexables. |
| 9 |
*/ |
| 10 |
class Indexable_Static_Home_Page_Presentation extends Indexable_Post_Type_Presentation { |
| 11 |
|
| 12 |
/** |
| 13 |
* Wraps the get_paginated_url pagination helper method. |
| 14 |
* |
| 15 |
* @param string $url The un-paginated URL of the current archive. |
| 16 |
* @param string $page The page number to add on to $url for the $link tag. |
| 17 |
* |
| 18 |
* @return string The paginated URL. |
| 19 |
*/ |
| 20 |
protected function get_paginated_url( $url, $page ) { |
| 21 |
return $this->pagination->get_paginated_url( $url, $page ); |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* Generates the Open Graph type. |
| 26 |
* |
| 27 |
* @return string The Open Graph type. |
| 28 |
*/ |
| 29 |
public function generate_open_graph_type() { |
| 30 |
return 'website'; |
| 31 |
} |
| 32 |
} |
| 33 |
|