$data )
{
if ( $data['filegroup'] == $group['num'] )
{
$totalFiles++;
$width= ( $data['width'] == 0 ) ? "auto" : $data['width'];
$height= ( $data['height'] == 0 ) ? "auto" : $data['height'];
switch ( $data['type'] )
{
case "image":
$slides.= '

';
break;
case "viadeo":
$slides.= '
' . mediaplayer( $data, $project );
break;
case "audio":
$slides.= '
' . audioplayer( $data, $project );
break;
}
if ( $clerk->getSetting( "projects_hideFileInfo", 1 ) == false && ( !empty( $data['title'] ) || !empty( $data['caption'] ) ) )
{
$info= "";
$info_html= '
' . $data['title'] . '
' . html_entity_decode( $data['caption'] ) . '';
$info_html= call_anchor( "slideshow_info", array( 'html' => $info_html, 'file' => $data ) );
$info= $info_html['html'] . '
';
}
$slides.= $info . '
';
}
$info= "";
}
if ( $totalFiles == 0 ) return;
$nav_html= <<
1/{$totalFiles}
HTML;
$nav= call_anchor( "slideshow_nav", array( "html" => $nav_html, "total_files" => $totalFiles ) );
$jquery_slideshow_opts= call_anchor( "jquery_slideshow_opts", array( 'js' => '', 'project' => $project, 'group' => $group ) );
$html= <<
{$slides}
{$nav['html']}
HTML;
return $html;
}
?>