getAnnotationByName('mmo_baseurl')) {
$mm = new MMSXML(download($obj->getAnnotationByName('mmo_baseurl')->value().'.xml?direct=1'),
$CONFIG->wwwroot.'pg/waramu/media/'.$obj->uid);
if (!$mm->isProgressing()) {
$style = $mm->validateStyle(get_input('style'));
$c = '
';
$c .= '';
$c .= '';
$c .= <<
function media_popup(event, url, width) {
event.preventDefault();
nw = window.open(url, "_blank", "width="+width+",height=630,copyhistory=no,location=no,toolbar=no,resizable=yes,scrollbars=yes");
//nw.sizeToContent();
return false;
}
EOT;
$c .= $mm->getOptionsHtml();
} else {
$showna = true;
}
} else {
$showna = true;
}
if ($showna) {
/*translation:Media not yet available*/
$c = ''.elgg_echo('koolielu:media_not_yet_available').'
';
}
if ($obj->getNumberOfAttachments() == 0) {
unset($parts['files']);
}
$c .= parent::generate_view($obj, $parts);
return $c;
}
}
?>