1 | <?php |
||
5 | class AMP_Facebook_Embed_Handler extends AMP_Base_Embed_Handler { |
||
6 | const URL_PATTERN = '#https?://(www\.)?facebook\.com/.*#i'; |
||
7 | |||
8 | protected $DEFAULT_WIDTH = 600; |
||
9 | protected $DEFAULT_HEIGHT = 400; |
||
10 | |||
11 | private static $script_slug = 'amp-facebook'; |
||
12 | private static $script_src = 'https://cdn.ampproject.org/v0/amp-facebook-0.1.js'; |
||
13 | |||
14 | public function register_embed() { |
||
17 | |||
18 | public function unregister_embed() { |
||
21 | |||
22 | public function get_scripts() { |
||
29 | |||
30 | public function oembed( $matches, $attr, $url, $rawattr ) { |
||
33 | |||
34 | public function render( $args ) { |
||
55 | } |
||
56 |