C:\Apache\Apache2\htdocs>"C:\Program Files\Zend\ZendStudioClient-5.0.0\bin\SourceControl\svn\svn.exe" di
|
|
|
|
| 232 | 232 | $xpadding = (128 - $image['uwidth']) / 2; |
| 233 | 233 | $ypadding = (96 - $image['uheight']) / 2; |
| 234 | 234 | $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n"; |
| 235 | | $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$image['post_title']}\">'; |
| 236 | | ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$image['post_title']}\">'; |
| 237 | | imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$image['post_title']}\" $height_width />'; |
| 238 | | imgb[{$ID}] = '<img id=\"image{$ID}\" src=\"{$image['guid']}\" alt=\"{$image['post_title']}\" $height_width />'; |
| | 235 | $title = htmlentities($image['post_title'], ENT_QUOTES); |
| | 236 | $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">'; |
| | 237 | ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">'; |
| | 238 | imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />'; |
| | 239 | imgb[{$ID}] = '<img id=\"image{$ID}\" src=\"{$image['guid']}\" alt=\"{$title}\" $height_width />'; |
| 239 | 240 | "; |
| 240 | 241 | $html .= "<div id='target{$ID}' class='attwrap left'> |
| 241 | 242 | <div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\"> |
| 242 | | <img id=\"image{$ID}\" src=\"$src\" alt=\"{$image['post_title']}\" $height_width /> |
| | 243 | <img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width /> |
| 243 | 244 | </div> |
| 244 | 245 | {$noscript} |
| 245 | 246 | </div> |
| … |
… |
|
| 251 | 252 | </div> |
| 252 | 253 | "; |
| 253 | 254 | } else { |
| 254 | | $title = $attachment['post_title']; |
| | 255 | $title = htmlentities($attachment['post_title'], ENT_QUOTES); |
| 255 | 256 | $filename = basename($attachment['guid']); |
| 256 | 257 | $icon = get_attachment_icon($ID); |
| 257 | 258 | $toggle_icon = "<a id=\"I{$ID}\" onclick=\"toggleOtherIcon({$ID});return false;\" href=\"javascript:void()\">$__using_title</a>"; |
| 258 | | $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$attachment['post_title']}</a>'; |
| 259 | | ab[{$ID}] = '<a id=\"p{$ID}\" href=\"{$filename}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$attachment['post_title']}</a>'; |
| 260 | | title[{$ID}] = '{$attachment['post_title']}'; |
| | 259 | $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$title}</a>'; |
| | 260 | ab[{$ID}] = '<a id=\"p{$ID}\" href=\"{$filename}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$title}</a>'; |
| | 261 | title[{$ID}] = '{$title}'; |
| 261 | 262 | filename[{$ID}] = '{$filename}'; |
| 262 | 263 | icon[{$ID}] = '{$icon}'; |
| 263 | 264 | "; |
| 264 | 265 | $html .= "<div id='target{$ID}' class='attwrap left'> |
| 265 | 266 | <div id='div{$ID}' class='otherwrap usingtext' onmousedown=\"selectLink({$ID})\" onclick=\"doPopup({$ID});return false;\"> |
| 266 | | <a id=\"p{$ID}\" href=\"{$attachment['guid']}\" onmousedown=\"selectLink({$ID});\" onclick=\"return false;\">{$attachment['post_title']}</a> |
| | 267 | <a id=\"p{$ID}\" href=\"{$attachment['guid']}\" onmousedown=\"selectLink({$ID});\" onclick=\"return false;\">{$title}</a> |
| 267 | 268 | </div> |
| 268 | 269 | {$noscript} |
| 269 | 270 | </div> |