Changeset 12276
- Timestamp:
- 11/25/2009 11:08:39 AM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/thickbox/thickbox.js
r12205 r12276 89 89 TB_NextCaption = TB_TempArray[TB_Counter].title; 90 90 TB_NextURL = TB_TempArray[TB_Counter].href; 91 TB_NextHTML = "<span id='TB_next'> <a href='#'> Next ></a></span>";91 TB_NextHTML = "<span id='TB_next'> <a href='#'>"+thickboxL10n.next+"</a></span>"; 92 92 } else { 93 93 TB_PrevCaption = TB_TempArray[TB_Counter].title; 94 94 TB_PrevURL = TB_TempArray[TB_Counter].href; 95 TB_PrevHTML = "<span id='TB_prev'> <a href='#'> < Prev</a></span>";95 TB_PrevHTML = "<span id='TB_prev'> <a href='#'>"+thickboxL10n.prev+"</a></span>"; 96 96 } 97 97 } else { 98 98 TB_FoundURL = true; 99 TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);99 TB_imageCount = thickboxL10n.image + ' ' + (TB_Counter + 1) + ' ' + thickboxL10n.of + ' ' + (TB_TempArray.length); 100 100 } 101 101 } … … 131 131 TB_WIDTH = imageWidth + 30; 132 132 TB_HEIGHT = imageHeight + 60; 133 jQuery("#TB_window").append("<a href='' id='TB_ImageOff' title=' Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src='" + tb_closeImage + "' /></a></div>");133 jQuery("#TB_window").append("<a href='' id='TB_ImageOff' title='"+thickboxL10n.close+"'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='"+thickboxL10n.close+"'><img src='" + tb_closeImage + "' /></a></div>"); 134 134 135 135 jQuery("#TB_closeWindowButton").click(tb_remove); … … 199 199 jQuery("#TB_iframeContent").remove(); 200 200 if(params['modal'] != "true"){//iframe no modal 201 jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title=' Close'><img src='" + tb_closeImage + "' /></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");201 jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='"+thickboxL10n.close+"'><img src='" + tb_closeImage + "' /></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>"); 202 202 }else{//iframe modal 203 203 jQuery("#TB_overlay").unbind(); -
trunk/wp-includes/script-loader.php
r12275 r12276 166 166 $scripts->add_data( 'jquery-table-hotkeys', 'group', 1 ); 167 167 168 $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-200911 17');168 $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20091124'); 169 169 $scripts->add_data( 'thickbox', 'group', 1 ); 170 $scripts->localize( 'thickbox', 'thickboxL10n', array( 171 'next' => __('Next >'), 172 'prev' => __('< Prev'), 173 'image' => __('Image'), 174 'of' => __('of'), 175 'close' => __('Close'), 176 'l10n_print_after' => 'try{convertEntities(thickboxL10n);}catch(e){};' 177 ) ); 178 170 179 171 180 $scripts->add( 'jcrop', "/wp-includes/js/jcrop/jquery.Jcrop$suffix.js", array('jquery'), '0.9.8');
Note: See TracChangeset
for help on using the changeset viewer.