function LightBox_theme_html_picture($SlideShowhtml) { global $slideshow_pic_html, $LBmime_content, $CURRENT_PIC_DATA; $LBmime_content = cpg_get_type($SlideShowhtml['filename']); if ($LBmime_content['content'] == 'image') { if (preg_match('/^youtube_(.*)\\.jpg$/', $CURRENT_PIC_DATA['filename'], $ytmatches)) { $vid = $ytmatches[1]; $slideshow_pic_html = '<object width="560" height="350"><param name="movie" value="http://www.youtube.com/v/' . $vid . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $vid . '" type="application/x-shockwave-flash" wmode="transparent" width="560" height="350"></embed></object><br />'; $SlideShowhtml['html'] = $slideshow_pic_html; } elseif (isset($image_size['reduced'])) { $slideshow_pic_html = lightbox_list($SlideShowhtml); $SlideShowhtml['html'] = $slideshow_pic_html; } else { $slideshow_pic_html = lightbox_list($SlideShowhtml); $SlideShowhtml['html'] = $slideshow_pic_html; // $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n"; } } //$slideshow_pic_html = lightbox_list($SlideShowhtml); //$SlideShowhtml['html'] = $slideshow_pic_html; return $SlideShowhtml; }
function lightbox_nfn_theme_html_picture($html) { global $USER, $FORBIDDEN_SET, $slideshow_pic_html, $mime_content, $CURRENT_PIC_DATA, $CONFIG, $pic_html; if ($CONFIG['allow_unlogged_access'] == 3 || USER_ID && $CONFIG['allow_unlogged_access'] <= 2) { $mime_content = cpg_get_type($html['filename']); if ($mime_content['content'] == 'image') { if (preg_match('/^youtube_(.*)\\.jpg$/', $CURRENT_PIC_DATA['filename'], $ytmatches)) { $vid = $ytmatches[1]; $slideshow_pic_html = '<object width="560" height="350"><param name="movie" value="http://www.youtube.com/v/' . $vid . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $vid . '" type="application/x-shockwave-flash" wmode="transparent" width="560" height="350"></embed></object><br />'; $html['html'] = $slideshow_pic_html; } elseif (isset($image_size['reduced'])) { $slideshow_pic_html = lightbox_list($html); $html['html'] = $slideshow_pic_html; } else { $slideshow_pic_html = lightbox_list($html); $html['html'] = $slideshow_pic_html; } } return $html; } else { if (!USER_ID && $CONFIG['allow_unlogged_access'] <= 2) { $html['html'] = $CURRENT_PIC_DATA['html']; return $html; } } }