| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Frontend |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* This class handles the Twitter card functionality. |
| 10 |
* |
| 11 |
* @deprecated 14.0 |
| 12 |
* |
| 13 |
* @link https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards |
| 14 |
*/ |
| 15 |
class WPSEO_Twitter { |
| 16 |
|
| 17 |
/** |
| 18 |
* Instance of this class. |
| 19 |
* |
| 20 |
* @var WPSEO_Twitter |
| 21 |
*/ |
| 22 |
public static $instance; |
| 23 |
|
| 24 |
/** |
| 25 |
* Images. |
| 26 |
* |
| 27 |
* @var array |
| 28 |
*/ |
| 29 |
public $shown_images = []; |
| 30 |
|
| 31 |
/** |
| 32 |
* Class constructor. |
| 33 |
* |
| 34 |
* @deprecated 14.0 |
| 35 |
* @codeCoverageIgnore |
| 36 |
*/ |
| 37 |
public function __construct() { |
| 38 |
_deprecated_function( __METHOD__, 'WPSEO 14.0' ); |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* Outputs the Twitter Card code on singular pages. |
| 43 |
* |
| 44 |
* @deprecated 14.0 |
| 45 |
* @codeCoverageIgnore |
| 46 |
*/ |
| 47 |
public function twitter() { |
| 48 |
_deprecated_function( __METHOD__, 'WPSEO 14.0' ); |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* Get the singleton instance of this class. |
| 53 |
* |
| 54 |
* @deprecated 14.0 |
| 55 |
* @codeCoverageIgnore |
| 56 |
* |
| 57 |
* @return object|null |
| 58 |
*/ |
| 59 |
public static function get_instance() { |
| 60 |
_deprecated_function( __METHOD__, 'WPSEO 14.0' ); |
| 61 |
|
| 62 |
return null; |
| 63 |
} |
| 64 |
} |
| 65 |
|