Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. if(is_video()) {
  2. global $video,$qualities;
  3. if(isset($video) && $video) {
  4. if(isset($qualities) && !empty($qualities)){
  5. $max = max(array_keys($qualities));
  6. if(isset($qualities[$max])) {  
  7. $meta .= '<meta property="og:video" content="'.$qualities[$max].'">';
  8. }
  9. } else {
  10. /* Url source */
  11. $meta .= '<meta property="og:video" content="'.$video->source.'">';
  12. }
  13. $meta .= '
  14. <meta property="video:duration" content="'.$video->duration.'">
  15. <meta property="og:image" content="'.thumb_fix($video->thumb).'" />
  16. <meta property="og:description" content="'.seo_desc().'"/>
  17. <meta property="og:title" content="'._html($video->title).'" />
  18. <meta property="og:type" content="video.other" />
  19. <meta itemprop="name" content="'._html($video->title).'">
  20. <meta itemprop="description" content="'.seo_desc().'">
  21. <meta itemprop="image" content="'.thumb_fix($video->thumb).'">
  22. ';
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement