Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(is_video()) {
- global $video,$qualities;
- if(isset($video) && $video) {
- if(isset($qualities) && !empty($qualities)){
- $max = max(array_keys($qualities));
- if(isset($qualities[$max])) {
- $meta .= '<meta property="og:video" content="'.$qualities[$max].'">';
- }
- } else {
- /* Url source */
- $meta .= '<meta property="og:video" content="'.$video->source.'">';
- }
- $meta .= '
- <meta property="video:duration" content="'.$video->duration.'">
- <meta property="og:image" content="'.thumb_fix($video->thumb).'" />
- <meta property="og:description" content="'.seo_desc().'"/>
- <meta property="og:title" content="'._html($video->title).'" />
- <meta property="og:type" content="video.other" />
- <meta itemprop="name" content="'._html($video->title).'">
- <meta itemprop="description" content="'.seo_desc().'">
- <meta itemprop="image" content="'.thumb_fix($video->thumb).'">
- ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement