function mx_medialist(&$media, $fanship = null, $nobundlebuttons = false, $mystuff = false, $featbun = false) { global $mxuser, $mediacache; //error_log('medialist '.$media->id); if (array_key_exists($media->id, $mediacache)) { //error_log('cached!'); $media = $mediacache[$media->id]; return; } //error_log('not cached!'); if ($media->type == MXMEDIABASEBUNDLE) { $media->select = ''; } else { if (true || $media->status >= MXMEDIAREADY) { $media->select = '<input type="checkbox" name="selmedia[]" value="' . $media->id . '">'; } else { $media->select = '<input disabled type="checkbox" name="selmedia[]" value="' . $media->id . '">'; } } if ($mystuff) { $media->grabber = mx_icon('draghand', _('Grab Me'), 24); } else { $media->grabber = ''; } /*if ($mystuff) { $media->dragdrop=mx_icon('draghand',_('Drag'),24,'dr_'.$media->id); }*/ preg_match('%[^.]+$%', $media->filename, $ext); $mediafile = mx_option('usersdir') . '/' . $media->hashdir . '/media/' . $media->hashcode . '.' . $ext[0]; $id3info = $media->id3info; //$fp=fopen('/tmp/id3read.log','a'); //fputs($fp,"\n".print_r($id3info,true)); //fclose($fp); $status = $media->status; $media->linked = $mxuser->getlinkedmedia($media->id); $media->buttons = ''; // purchase button if not fan/buyer $media->purchase = ''; //if (is_admin() || MXBETA) { $media->pricetag = ''; //error_log('media '.$media->id.' fanship='.print_r($fanship,true)); if (is_array($fanship) && $fanship[0] != MXME && $fanship[0] != MXFAN && $fanship[0] != MXBUYER) { $gotit = $gotit2 = 0; $mxuser->cart->lines = $mxuser->getcartdetails($mxuser->cart->id); if ($mxuser->cart->lines) { foreach ($mxuser->cart->lines as $line) { if ($line->prodtype == MXMEDSUB && $line->prodref == $media->id) { $gotit = 1; } else { if ($line->prodtype == MXMEDSUB && $line->prodref == $media->bundles[0]->id) { $gotit2 = 1; } } } } if ($gotit) { $media->purchase = mx_mediabutton('cartmediabuying', _('In cart'), '24px', 'um_', $media->id, 'hover'); } else { if ($gotit2) { $media->purchase = mx_icon('cartmediaincluded', _('In cart'), '24px'); $media->price = str_replace('buyprice', 'buystrike', $media->price); } else { $media->purchase = mx_mediabutton('cartmedia', _('Add to Cart'), '24px', 'bm_', $media->id, 'hover'); } } $media->purchase = sprintf('{PRICE}%s{PRICE2}%s{PRICE3}', $media->purchase, $media->price); /* if ($media->type==MXMEDIABASEBUNDLE || $media->type==MXMEDIAREGULARBUNDLE) $media->pricetag=_('Buy this Bundle:'); else $media->pricetag=_('Buy this Media:'); $media->pricetag=sprintf('<div class="pricetag">%s</div>',$media->pricetag); */ } else { if ($fanship[0] == MXFAN || $fanship[0] == MXBUYER) { $media->purchase = '<div class="fanmedia">' . mx_icon('fanlove', _('Fan'), '24') . '</div>'; //sprintf('<div class="fanmedia">%s</div>',_('Fan')); } } /* else if ($fanship[0]==MXBUYER) { $media->purchase=mx_icon('fanbought',_('Bought'),'24'); //sprintf('<div class="boughtmedia">%s</div>',_('Bought')); } */ //} $media->content = ''; /*if ($media->type==MXMEDIABASEBUNDLE || $media->type==MXMEDIAREGULARBUNDLE) { $media->buttons.=mx_mediabutton('openbundle',_('Open'),24,'ob_',$media->id,'hover') .mx_mediabutton('notready.gif',_('Not Ready'),24,'wb_',$media->id) .mx_mediabutton('closebundle',_('Close'),24,'cb_',$media->id,'hover'); } else */ if ($status < MXMEDIAREADY) { $media->buttons .= mx_mediabutton('notready.gif', _('Not Ready'), 24, 'xx'); } else { if (!$fanship || ($status == MXMEDIAFANVISIBLE || $status == MXMEDIAARCHIVED) && $fanship[0] >= MXFAN || ($status == MXMEDIAMEMBERVISIBLE || $status == MXMEDIAMEMBERSHARED) && $fanship[0] >= MXMEMBER || ($status == MXMEDIAPUBLIC || $status == MXMEDIAPUBLICSHARED || $status->type == MXMEDIABASEBUNDLE) || $status >= MXMEDIAFANVISIBLE && $media->type == MXMEDIAREGULARBUNDLE) { //$preview=((($status==MXMEDIAFANVISIBLE || $status==MXMEDIAFANSHARED) && $fanship[0]<MXFAN) // || (($status==MXMEDIAMEMBERVISIBLE || $status==MXMEDIAMEMBERSHARED) && $fanship[0]<MXMEMBER)); switch ($media->type) { case MXMEDIAPIC: case MXMEDIABG: $media->buttons .= mx_docplayerbutton(mx_medialink($media->filename, $media->hashcode, $media->hashdir), $media->id, true); $media->content .= mx_docplayertrack(mx_medialink($media->filename, $media->hashcode, $media->hashdir, ''), $media->id, $media->title); //$media->buttons.=mx_icon('noplaymedia',_('NoPlay'),24,'xx'); break; case MXMEDIAINSTR: case MXMEDIASONG: $mediapic = ''; // by default no media pic linked foreach ($media->linked as $linked) { // look for a pic into linked media if ($linked->type == MXMEDIAPIC) { // use first pic found $mediapic = mx_medialink('xx.jpg', $linked->hashcode, $media->hashdir, '-small'); break; } } if (!$mediapic && $media->haspic) { $mediapic = mx_medialink('xxx.' . $media->haspic, $media->hashcode, $media->hashdir); } $media->pic = $mediapic; $media->buttons .= mx_soundplayerbutton(mx_medialink($media->filename, $media->hashcode, $media->hashdir), $media->id, true); $media->content = mx_soundplayertrack(mx_medialink($media->filename, $media->hashcode, $media->hashdir), $media->id, $mediapic, mx_medialink('wave.png', $media->hashcode, $media->hashdir, '-wave'), $media->title); break; case MXMEDIAVIDEO: $media->buttons .= mx_videoplayerbutton(mx_medialink($media->filename, $media->hashcode, $media->hashdir), $media->id, true); $media->content = mx_videoplayertrack(mx_medialink($media->filename, $media->hashcode, $media->hashdir), $media->id, $media->id3info, false, $media->title); break; case MXMEDIABASEBUNDLE: case MXMEDIAREGULARBUNDLE: if (!$nobundlebuttons && $mystuff) { $media->buttons .= mx_mediabutton('openbundle', _('Open'), 24, 'ob_', $media->id, 'hover', $mystuff) . mx_mediabutton('notready.gif', _('Not Ready'), 24, 'wb_', $media->id) . mx_mediabutton('closebundle', _('Close'), 24, 'cb_', $media->id, 'hover', $mystuff); } break; default: $media->buttons .= mx_mediabutton('noplaymedia', _('NoPlay'), 24, 'xx'); } if ((!$fanship || $fanship[0] == MXFAN || $fanship[0] == MXBUYER) && $media->type != MXMEDIABASEBUNDLE && $media->type != MXMEDIAREGULARBUNDLE) { $media->buttons .= mx_mediabutton('golddownmedia', _('Download'), 24, 'dm_', $media->id, 'hover'); $media->content .= mx_downloadlink(mx_medialink($media->filename, $media->hashcode, $media->hashdir, '', true), $media->id); } //else $media->buttons.=mx_mediabutton('nodownmedia',_('NoDownload'),24,'xx'); //$media->buttons.=mx_mediabutton('addmedia',_('Add'),24,'am_',$media->id,'hover'); } else { if ($media->status >= MXMEDIAFANVISIBLE) { switch ($media->type) { case MXMEDIABASEBUNDLE: case MXMEDIAREGULARBUNDLE: if (!$nobundlebuttons && $mystuff) { $media->buttons .= mx_mediabutton('nobundle', _('Restricted'), 24, 'xx'); } break; case MXMEDIAINSTR: case MXMEDIASONG: //$media->title=sprintf(_('%s [extract]'),$media->title); if ($media->preview) { $mediapic = ''; // by default no media pic linked foreach ($media->linked as $linked) { // look for a pic into linked media if ($linked->type == MXMEDIAPIC) { // use first pic found $mediapic = mx_medialink('xx.jpg', $linked->hashcode, $media->hashdir, '-small'); break; } } if (!$mediapic && $media->haspic) { $mediapic = mx_medialink('xxx.' . $media->haspic, $media->hashcode, $media->hashdir); } $media->pic = $mediapic; $media->buttons .= mx_soundplayerbutton(mx_medialink($media->filename, $media->hashcode, $media->hashdir), $media->id); $media->content = mx_soundplayertrack(mx_medialink($media->filename, $media->hashcode, $media->hashdir, '-preview'), $media->id, $mediapic, '', sprintf(_('%s [extract]'), $media->title)); } else { $media->buttons .= mx_mediabutton('noplaymedia', _('NoPlay'), 24, 'xx'); } break; case MXMEDIAPIC: case MXMEDIABG: //$media->title=sprintf(_('%s [preview]'),$media->title); if ($media->preview) { $media->buttons .= mx_docplayerbutton(mx_medialink($media->filename, $media->hashcode, $media->hashdir), $media->id); $media->content .= mx_docplayertrack(mx_medialink('xx.jpg', $media->hashcode, $media->hashdir, '-small'), $media->id, sprintf(_('%s [preview]'), $media->title)); } else { $media->buttons .= mx_icon('noplaymedia', _('NoPlay'), 24, 'xx'); } break; default: $media->buttons .= mx_mediabutton('noplaymedia', _('NoPlay'), 24, 'xx'); } //$media->buttons.=mx_mediabutton('nodownmedia',_('NoDownload'),24,'xx'); //$media->buttons.=mx_mediabutton('noaddmedia',_('NoAdd'),24,'xx'); } else { //$media->title=sprintf(_('%s [restricted]'),$media->title); } } } //$media->buttons='<div id="player">'.$media->buttons.'</div>'; // player $media->infobtn = $media->id; $media->meddesc = $media->title; if ($media->description) { $media->meddesc .= ' ' . mx_icon('infomedia', _('Info'), 12, 'im_' . $media->id, 'infomedia_down') . '<div class="meddesc md_' . $media->id . '">' . preg_replace('%\\n%', '<br/>', htmlspecialchars($media->description)) . '</div>'; } if (!$fanship && count($media->linked) > 0) { /* $links=' '.mx_icon('linkmedia',_('Links'),12,'lm_'.$media->id,'linkmediahover') .'<div class="medlinks ld_'.$media->id.'"><table>'; $l=0; foreach($media->linked as $linked) { if ($l%3==0) $links.='<tr>'; $links.='<td><img src="'.mx_medialink('xx.jpg',$linked->hashcode,$media->hashdir,'-small') .'"/></td>'; if ($l % 3 == 2) $links.='</tr>'; $l++; } if ($l%3>0) $links.='<td colspan="'.(3-($l%3)).'"></td></tr>'; $links.='</table></div>'; */ $links = ' ' . mx_icon('linkmedia', _('Links'), 12, 'lm_' . $media->id, 'linkmediahover') . '<div class="medlinks ld_' . $media->id . '">'; foreach ($media->linked as $linked) { $links .= '<div class="medlink ld_' . $media->id . '_' . $linked->id . '">' . '<img src="' . mx_medialink('xx.jpg', $linked->hashcode, $media->hashdir, '-small') . '"/>' . '<div class="dellink">' . mx_icon('dellink', _('Remove'), 19, 'ul_' . $media->id . '_' . $linked->id, 'dellinkhover') . '</div>' . '</div>'; } $links .= '</div>'; $media->meddesc .= $links; } $media->meddesc .= $media->content; switch ($id3info['fileformat']) { case 'mp3': case 'mp4': $media->info = $id3info['playtime_string']; $media->duration = round($id3info['playtime_seconds']); break; case 'png': case 'jpg': case 'gif': $x = $id3info['video']['resolution_x']; $y = $id3info['video']['resolution_y']; $media->info = $x . ' x ' . $y; break; default: $media->info = ''; break; } $media->mediadata = mx_mediadata($media, $fanship, $mystuff, $nobundlebuttons, $featbun); $mediacache[$media->id] = $media; }
function mx_metatags() { global $mxuser; $page = mx_secureword($_GET['p']); $option = mx_secureword($_GET['o']); $action = $_REQUEST['a']; $updtime = '<meta property="og:updated_time" content="' . time() . '" />'; if ($page != 'artists' && $page != 'fans' && $page != 'media') { echo '<meta property="og:title" content="MusXpand - ' . mx_option('title') . '" />' . '<meta name="title" content="MusXpand - ' . mx_option('title') . '" />' . '<meta property="og:type" content="website" />' . '<meta property="og:url" content="' . mx_option('basicsiteurl') . '" />' . '<meta property="og:image" content="' . mx_option('m-logoURL-48x48') . '" />' . '<meta property="og:site_name" content="MusXpand" />' . '<meta property="fb:app_id" content="' . FACEBOOK_APP_ID . '" />' . '<meta property="fb:admins" content="100001498041340" />' . $updtime . '<meta name="description" content="MusXpand is an open social network for artists and fans to share media, news and comments." />' . '<meta name="copyright" content="2010-2012 © MusXpand." />' . '<meta name="keywords" content="' . MXKEYWORDS . '" />' . '<link rel="canonical" href="http://www.example.com">'; return; } if ($page == 'artists' && $option == 'artprof' && $action) { $user = $mxuser->getuserinfo($action); $artistname = mx_getartistname($user); $location = ''; if ($user->city) { $location .= $user->city; } if ($user->state) { $location .= ($location ? ', ' : '') . $user->state; } if ($user->country) { $location .= ($location ? ', ' : '') . mx_getcountryname($user->country); } if ($location) { $location .= '. '; } $url = $user->username ? mx_option('basicsiteurl') . '/a/' . $user->username : mx_actionurl_prod($page, $option, $user->id, '', '', true); echo '<meta property="og:title" content="' . $artistname . '" />' . '<meta name="title" content="' . sprintf(_('%s on MusXpand'), $artistname) . '" />' . '<meta name="description" content="' . htmlentities($user->shortbio) . ' - ' . $artistname . ' is a MusXpand Artist." />' . '<meta name="copyright" content="2010-2012 © MusXpand & ' . $artistname . '" />' . '<meta name="keywords" content="' . MXKEYWORDS . ',' . $artistname . '" />' . '<meta property="og:type" content="musxpand:artist" />' . '<meta property="og:url" content="' . $url . '" />' . '<meta property="og:audio" content="' . $url . '" />' . '<meta property="og:audio:type" content="vnd.facebook.bridge" />' . '<meta property="og:image" content="' . mx_fanpic($user->id, 'large') . '" />' . '<meta property="og:site_name" content="MusXpand" />' . '<meta property="og:description" content="' . htmlentities($location . $user->shortbio) . '" />' . $updtime . '<meta property="fb:app_id" content="' . FACEBOOK_APP_ID . '" />' . ($user->fbid ? '<meta property="fb:admins" content="' . $user->fbid . '" />' : '') . '<link rel="canonical" href="' . mx_actionurl_prod($page, $option, $user->id, '', '', true) . '">'; return; } else { if ($page == 'account' && $option == 'myartpage') { $artistname = $mxuser->getartistname(); $location = ''; if ($mxuser->city) { $location .= $mxuser->city; } if ($mxuser->state) { $location .= ($location ? ', ' : '') . $mxuser->state; } if ($mxuser->country) { $location .= ($location ? ', ' : '') . mx_getcountryname($mxuser->country); } if ($location) { $location .= '. '; } $url = $user->username ? mx_option('basicsiteurl') . '/a/' . $mxuser->username : mx_actionurl_prod('artists', 'artprof', $mxuser->id, '', '', true); echo '<meta property="og:title" content="' . $artistname . '" />' . '<meta name="title" content="' . sprintf(_('%s on MusXpand'), $artistname) . '" />' . '<meta name="description" content="' . htmlentities($mxuser->shortbio) . ' - ' . $artistname . ' is a MusXpand Artist." />' . '<meta name="copyright" content="2010-2012 © MusXpand & ' . $artistname . '" />' . '<meta name="keywords" content="' . MXKEYWORDS . ',' . $artistname . '" />' . '<meta property="og:type" content="musxpand:artist" />' . '<meta property="og:url" content="' . $url . '" />' . '<meta property="og:audio" content="' . $url . '" />' . '<meta property="og:audio:type" content="vnd.facebook.bridge" />' . '<meta property="og:image" content="' . mx_fanpic($mxuser->id, 'large') . '" />' . '<meta property="og:site_name" content="MusXpand" />' . '<meta property="og:description" content="' . htmlentities($location . $mxuser->shortbio) . '" />' . $updtime . '<meta property="fb:app_id" content="' . FACEBOOK_APP_ID . '" />' . ($mxuser->fbid ? '<meta property="fb:admins" content="' . $mxuser->fbid . '" />' : '') . '<link rel="canonical" href="' . mx_actionurl_prod('artists', 'artprof', $mxuser->id, '', '', true) . '">'; return; } else { if ($page == 'fans' && $option == 'fanprof' && $action) { $user = $mxuser->getuserinfo($action); $fanname = mx_getname($user); $location = ''; if ($user->city) { $location .= $user->city; } if ($user->state) { $location .= ($location ? ', ' : '') . $user->state; } if ($user->country) { $location .= ($location ? ', ' : '') . mx_getcountryname($user->country); } $url = $user->username ? mx_option('basicsiteurl') . '/f/' . $user->username : mx_actionurl_prod($page, $option, $user->id, '', '', true); echo '<meta property="og:title" content="' . $fanname . '" />' . '<meta name="title" content="' . sprintf(_('%s on MusXpand'), $fanname) . '" />' . '<meta name="description" content="' . htmlentities($user->shortbio) . ' - ' . $fanname . ' is a MusXpand Fan." />' . '<meta name="copyright" content="2010-2012 © MusXpand & ' . $fanname . '" />' . '<meta name="keywords" content="' . MXKEYWORDS . ',' . $fanname . '" />' . '<meta property="og:type" content="profile" />' . '<meta property="og:url" content="' . $url . '" />' . '<meta property="og:image" content="' . mx_fanpic($user->id, 'large') . '" />' . '<meta property="og:site_name" content="MusXpand" />' . '<meta property="og:description" content="' . htmlentities($user->shortbio) . '" />' . $updtime . '<meta property="musxpand:location" content="' . $location . '" />' . '<meta property="fb:app_id" content="' . FACEBOOK_APP_ID . '" />' . ($user->fbid ? '<meta property="fb:admins" content="' . $user->fbid . '" />' : '') . '<link rel="canonical" href="' . mx_actionurl_prod($page, $option, $user->id, '', '', true) . '">'; return; } else { if ($page == 'account' && $option == 'myfanpage') { $fanname = $mxuser->getname(); $location = ''; if ($mxuser->city) { $location .= $mxuser->city; } if ($mxuser->state) { $location .= ($location ? ', ' : '') . $mxuser->state; } if ($mxuser->country) { $location .= ($location ? ', ' : '') . mx_getcountryname($mxuser->country); } $url = $user->username ? mx_option('basicsiteurl') . '/f/' . $mxuser->username : mx_actionurl_prod('fans', 'fanprof', $mxuser->id, '', '', true); echo '<meta property="og:title" content="' . $fanname . '" />' . '<meta name="title" content="' . sprintf(_('%s on MusXpand'), $fanname) . '" />' . '<meta name="description" content="' . htmlentities($mxuser->shortbio) . ' - ' . $fanname . ' is a MusXpand Fan." />' . '<meta name="copyright" content="2010-2012 © MusXpand & ' . $fanname . '" />' . '<meta name="keywords" content="' . MXKEYWORDS . ',' . $fanname . '" />' . '<meta property="og:type" content="profile" />' . '<meta property="og:url" content="' . $url . '" />' . '<meta property="og:image" content="' . mx_fanpic($mxuser->id, 'large') . '" />' . '<meta property="og:site_name" content="MusXpand" />' . '<meta property="og:description" content="' . htmlentities($mxuser->shortbio) . '" />' . $updtime . '<meta property="musxpand:location" content="' . $location . '" />' . '<meta property="fb:app_id" content="' . FACEBOOK_APP_ID . '" />' . ($mxuser->fbid ? '<meta property="fb:admins" content="' . $mxuser->fbid . '" />' : '') . '<link rel="canonical" href="' . mx_actionurl_prod('fans', 'fanprof', $mxuser->id, '', '', true) . '">'; return; } else { if ($page == 'media' && $option == 'medprof' && $action) { $media = $mxuser->getmediainfo($action); $artistname = mx_getartistname($media); $fanship = $mxuser->getfanship($media->owner_id, $media->id); mx_medialist($media, $fanship, true); $mediameta = ''; $mediadesc = $media->description; $url = mx_option('basicsiteurl') . '/m/' . $action; switch ($media->type) { case MXMEDIAINSTR: case MXMEDIASONG: //$mediatype='music.song'; $mediatype = 'musxpand:media'; $mediaurl = mx_medialink($media->filename, $media->hashcode, $media->hashdir, '-preview'); $mediameta = '<meta property="music:duration" content="' . $media->duration . '" />' . '<meta property="og:audio" content="' . $mediaurl . '" />' . '<meta property="og:audio:secure_url" content="' . str_replace('http:', 'https:', $mediaurl) . '" />' . '<meta property="og:audio:type" content="audio/vnd.facebook.bridge" />' . '<meta property="music:musician" content="' . mx_actionurl('artists', 'artprof', $media->owner_id) . '" />' . '<meta property="music:album" content="' . mx_actionurl('media', 'medprof', $media->bundles[0]->id) . '" />' . '<meta property="og:audio:title" content="' . $media->title . ' (' . _('Sample') . ')" />' . '<meta property="og:audio:artist" content="' . $artistname . '" />' . '<meta property="og:audio:album" content="' . htmlentities($media->bundles[0]->title) . '" />' . '<meta property="og:video" content="' . mx_option('siteurl') . '/flash/xspf_player_slim.swf?' . 'player_title=' . htmlentities('Listen to music on MusXpand') . '&song_url=' . urlencode($mediaurl) . '&song_title=' . htmlentities($media->title) . '" />' . '<meta property="og:video:secure_url" content="' . mx_option('secure_siteurl') . '/flash/xspf_player_slim.swf?' . 'player_title=' . htmlentities('Listen to music on MusXpand') . '&song_url=' . urlencode($mediaurl) . '&song_title=' . htmlentities($media->title) . '" />' . '<meta property="og:video:height" content="17" />' . '<meta property="og:video:type" content="application/x-shockwave-flash" />'; //.'<meta property="og:video:title" content="'.$media->title.' ('._('Sample').')" />' //.'<meta property="og:video:director" content="'.$artistname.'" />' //.'<meta property="og:video:album" content="'.htmlentities($media->bundles[0]->title).'" />' break; case MXMEDIABG: case MXMEDIAPIC: $mediatype = 'musxpand:picture'; break; case MXMEDIABASEBUNDLE: case MXMEDIAREGULARBUNDLE: $mediatype = 'musxpand:bundle'; /*$mediameta='<meta property="og:audio" content="'.$url.'" />' .'<meta property="og:audio:type" content="vnd.facebook.bridge" />';*/ break; case MXMEDIAVIDEO: //$mediatype='musxpand:videoclip'; $mediatype = 'musxpand:media'; $mediaurl = mx_medialink($media->filename, $media->hashcode, $media->hashdir, ''); $mediameta = '<meta property="og:video" content="' . $mediaurl . '" />' . '<meta property="og:video:secure_url" content="' . str_replace('http:', 'https:', $mediaurl) . '" />' . '<meta property="og:video:type" content="video/mp4" />'; break; case MXMEDIADOC: $mediatype = 'musxpand:document'; break; default: $mediatype = 'musxpand:media'; } echo '<meta property="og:title" content="' . htmlentities(sprintf(_('%s by %s'), $media->title, $artistname)) . '" />' . '<meta name="title" content="' . htmlentities(sprintf(_('%s by %s'), $media->title, $artistname)) . '" />' . '<meta name="description" content="' . htmlentities($media->description) . '" />' . '<meta name="copyright" content="2010-2012 © MusXpand & ' . $artistname . '" />' . '<meta name="keywords" content="' . MXKEYWORDS . ',' . $artistname . ',' . $media->title . '" />' . '<meta property="og:type" content="' . $mediatype . '" />' . '<meta property="og:url" content="' . $url . '" />' . '<meta property="og:image" content="' . $media->pic . '" />' . $mediameta . '<meta property="musxpand:artist" content="' . mx_actionurl('artists', 'artprof', $media->owner_id) . '" />' . ($media->type != MXMEDIAREGULARBUNDLE && $media->type != MXMEDIABASEBUNDLE ? '<meta property="musxpand:bundle" content="' . mx_actionurl('media', 'medprof', $media->bundles[0]->id) . '" />' : '') . '<meta property="og:site_name" content="MusXpand" />' . '<meta property="og:description" content="' . htmlentities($mediadesc) . '" />' . $updtime . '<meta property="fb:app_id" content="' . FACEBOOK_APP_ID . '" />' . ($media->fbid ? '<meta property="fb:admins" content="' . $media->fbid . '" />' : '') . '<link rel="canonical" href="' . mx_actionurl_prod('media', 'medprof', $media->id, '', '', true) . '">'; return; } } } } } }