Example #1
0
         $meta_property['og:image'] = NV_MY_DOMAIN . NV_BASE_SITEURL . $show_no_image;
     }
     if ($alias_url == $news_contents['alias']) {
         $publtime = intval($news_contents['publtime']);
     }
     // Export video link
     $href_vid = array();
     if (!empty($news_contents['vid_path'])) {
         if ($news_contents['vid_type'] == 1) {
             $href_vid['link'] = NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/vid/' . $news_contents['vid_path'];
             $href_vid['quality'] = '';
         } elseif ($news_contents['vid_type'] == 2) {
             $href_vid['link'] = $news_contents['vid_path'];
             $href_vid['quality'] = '';
         } elseif ($news_contents['vid_type'] == 3) {
             $href_vid = get_link_mp4_picasa($news_contents['vid_path']);
         } elseif ($news_contents['vid_type'] == 4) {
             $href_vid = get_facebook_mp4($news_contents['vid_path']);
         } elseif ($news_contents['vid_type'] == 5) {
             $href_vid['link'] = $news_contents['vid_path'];
             $href_vid['quality'] = '';
         }
     }
     $meta_property['og:type'] = 'video.other';
     $meta_property['og:url'] = $client_info['selfurl'];
     $meta_property['og:published_time'] = date('Y-m-dTH:i:s', $news_contents['publtime']);
     $meta_property['og:updated_time'] = date('Y-m-dTH:i:s', $news_contents['edittime']);
     if ($news_contents['exptime']) {
         $meta_property['article:expiration_time'] = date('Y-m-dTH:i:s', $news_contents['exptime']);
     }
 }
Example #2
0
         $data['rss_img'] = '';
     }
     // Fake playlist_id and playlist_sort
     $data['playlist_id'] = 'No.';
     $data['playlist_sort'] = 99;
     // Export video link
     if (!empty($data['vid_path'])) {
         if ($data['vid_type'] == 1) {
             $data['href'] = NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/vid/' . $data['vid_path'];
             $data['quality'] = '';
         } elseif ($data['vid_type'] == 2) {
             $data['href'] = $data['vid_path'];
             $data['quality'] = '';
         } elseif ($data['vid_type'] == 3) {
             $data['href'] = array();
             $data['href'] = get_link_mp4_picasa($data['vid_path']);
         } elseif ($data['vid_type'] == 4) {
             $data['href'] = array();
             $data['href'] = get_facebook_mp4($data['vid_path']);
         } elseif ($data['vid_type'] == 5) {
             $data['href'] = $data['vid_path'];
             $data['quality'] = '';
         }
     }
     $array_item[] = $data;
 }
 $contents .= '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
 $contents .= '<rss xmlns:jwplayer="http://rss.jwpcdn.com/">' . "\n";
 $contents .= '	<channel>' . "\n";
 $contents .= '		<title><![CDATA[' . $channel['title'] . ']]></title>' . "\n";
 $contents .= '		<description><![CDATA[' . $channel['description'] . ']]></description>' . "\n";