$src = $image['guid'];
     $thumb = 'false';
     $thumbtext = $__no_thumbnail;
     $imagewidth = $image['width'];
     $imageheight = $image['height'];
 }
 list($image['uwidth'], $image['uheight']) = get_udims($image['width'], $image['height']);
 $height_width = 'height="' . $image['uheight'] . '" width="' . $image['uwidth'] . '"';
 $xpadding = (128 - $image['uwidth']) / 2;
 $ypadding = (96 - $image['uheight']) / 2;
 $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n";
 $title = attribute_escape($image['post_title']);
 $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"{$href}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';\nab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" " . fup_get_link_target() . "onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';\nimga[{$ID}] = '<img id=\"image{$ID}\" src=\"{$src}\" alt=\"{$title}\" {$height_width} />';\nimgb[{$ID}] = '<img id=\"image{$ID}\" src=\"{$image['guid']}\" alt=\"{$title}\" {$height_width} />';\ndesc[{$ID}] = '" . attribute_escape($image['post_content']) . "';\npicWidth[{$ID}] = '" . $imagewidth . "';\npicHeight[{$ID}] = '" . $imageheight . "';\n";
 $html .= "<div id='target{$ID}' class='attwrap left'>\n\t<div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\">";
 if ($thumb == 'true') {
     $html .= "\n\t\t<a class=\"imagelink\" href=\"{$image['guid']}\" " . fup_get_link_target() . "onclick=\"doPopup({$ID});return false;\" title=\"{$title}\"><img id=\"image{$ID}\" src=\"{$src}\" alt=\"{$title}\" {$height_width} /></a>";
 } else {
     $html .= "\n\t\t<img id=\"image{$ID}\" src=\"{$src}\" alt=\"{$title}\" {$height_width} />";
 }
 $html .= "\n\t</div>\n\t{$noscript}\n</div>\n";
 $popups .= "<div id='popup{$ID}' class='popup'>\n\t<a id=\"I{$ID}\" onclick=\"if({$thumb})toggleImage({$ID});else alert('{$__nothumb}');return false;\" href=\"javascript:void()\">{$thumbtext}</a>\n\t<a id=\"L{$ID}\" onclick=\"toggleLink({$ID});return false;\" href=\"javascript:void()\">" . ($thumb == 'true' ? $__linked_to_image : $__not_linked) . "</a>";
 if (get_option(FUP_ALIGNMENT_MODE_OPTION) != 'none') {
     $popups .= "\n\t<a id=\"A{$ID}\" onclick=\"toggleAlign({$ID});return false;\" href=\"javascript:void()\">";
     switch (get_option(FUP_DEFAULT_ALIGN_OPTION)) {
         case 'left':
             $popups .= $__align_left;
             break;
         case 'right':
             $popups .= $__align_right;
             break;
         case 'center':
Example #2
0
			if ( captionEl )
				caption = ( captionEl.value == 'yes' );
			else
				caption = false;
			<?php 
}
?>

			if ( 'none' != link ) {
				h += '<a href=';
				if ( 'file' == link ) {
					h += '"' + this.currentImage.srcBase
						 + this.currentImage.src + '" ';
					if ( 1 == this.currentImage.isImage ) {
						h += '<?php 
echo fup_get_link_target();
?>
';
					}
				}
				else {
					h += '"' + this.currentImage.page + '" '
						 + 'rel="attachment wp-att-'
						 + this.currentImage.ID + '" ';
				}
				<?php 
if (get_option(FUP_IMAGE_TITLE_OPTION) != 'none') {
    ?>
				h += 'title="' + this.currentImage.<?php 
    echo get_option(FUP_IMAGE_TITLE_OPTION);
    ?>