芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/network.digitalhubbd.com/fns/url_metadata/TikTok.php
<?php if (isset($link_meta_data['title'])) { $result['title'] = $link_meta_data['title']; $result['image'] = $link_meta_data['thumbnail_url']; if (isset($link_meta_data['description'])) { $result['description'] = $link_meta_data['description']; } else if (isset($link_meta_data['author_name'])) { $result['description'] = $link_meta_data['author_name']; } if (isset($link_meta_data['html'])) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($link_meta_data['html'], 'HTML-ENTITIES', 'UTF-8')); $finder = new DOMXPath($doc); $nodes = $doc->getElementsByTagName('blockquote'); if (!empty($nodes->item(0)->getAttribute('data-video-id'))) { $result['iframe_embed'] = 'https://www.tiktok.com/embed/'.$nodes->item(0)->getAttribute('data-video-id'); $result['iframe_class'] = 'w-auto h-75'; } } }
Page is not found
Oops! Page not found.
Sorry, an error has occured, Requested page not found!
Back To Homepage