<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[27918] trunk/src: Edit Image modal:</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/27918">27918</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2014-04-03 03:20:40 +0000 (Thu, 03 Apr 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Edit Image modal:
- Fix issue with adding a link to an image that didn't have one previously.
- Adjust the look-and-feel of the advance options toggle so that it becomes a section heading that can be open/closed.
- Add a Custom Size option to the size drop-down that reveals fields for soft-resizing the image inserted into the post.
Props gcorne, and props sdasse for the design help, see <a href="http://core.trac.wordpress.org/ticket/27366">#27366</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincssthemescss">trunk/src/wp-admin/css/themes.css</a></li>
<li><a href="#trunksrcwpincludescssmediaviewscss">trunk/src/wp-includes/css/media-views.css</a></li>
<li><a href="#trunksrcwpincludesjsmediamodelsjs">trunk/src/wp-includes/js/media-models.js</a></li>
<li><a href="#trunksrcwpincludesjsmediaviewsjs">trunk/src/wp-includes/js/media-views.js</a></li>
<li><a href="#trunksrcwpincludesjstinymcepluginswpeditimagepluginjs">trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js</a></li>
<li><a href="#trunksrcwpincludesmediatemplatephp">trunk/src/wp-includes/media-template.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincssthemescss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/css/themes.css (27917 => 27918)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/css/themes.css 2014-04-03 03:14:54 UTC (rev 27917)
+++ trunk/src/wp-admin/css/themes.css 2014-04-03 03:20:40 UTC (rev 27918)
</span><span class="lines">@@ -1283,6 +1283,7 @@
</span><span class="cx"> .more-filters-container .filtering-by .tag {
</span><span class="cx"> background: #fff;
</span><span class="cx"> border: 1px solid #e5e5e5;
</span><ins>+ -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04);
</ins><span class="cx"> box-shadow: 0 1px 1px rgba(0,0,0,0.04);
</span><span class="cx"> font-size: 11px;
</span><span class="cx"> margin: 0 5px;
</span></span></pre></div>
<a id="trunksrcwpincludescssmediaviewscss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/css/media-views.css (27917 => 27918)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/css/media-views.css 2014-04-03 03:14:54 UTC (rev 27917)
+++ trunk/src/wp-includes/css/media-views.css 2014-04-03 03:20:40 UTC (rev 27918)
</span><span class="lines">@@ -1640,10 +1640,8 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .image-details .advanced-toggle {
</span><del>- font-style: italic;
</del><span class="cx"> color: #666;
</span><span class="cx"> text-decoration: none;
</span><del>- margin: 20px;
</del><span class="cx"> display: block;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1663,6 +1661,39 @@
</span><span class="cx"> margin-top: 0;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.image-details .embed-media-settings .size {
+ margin-bottom: 4px;
+}
+
+.image-details .custom-size span {
+ display: block;
+}
+
+.image-details .custom-size label {
+ display: block;
+ float: left;
+}
+
+.image-details .custom-size span small {
+ color: #999;
+ font-size: inherit;
+}
+
+.image-details .custom-size input {
+ width: 5em;
+}
+
+.image-details .custom-size .sep {
+ float: left;
+ margin: 26px 6px 0 6px;
+}
+
+.image-details .custom-size::after {
+ content: '';
+ display: table;
+ clear: both;
+}
+
</ins><span class="cx"> .media-embed .thumbnail {
</span><span class="cx"> max-width: 100%;
</span><span class="cx"> max-height: 200px;
</span><span class="lines">@@ -1724,7 +1755,8 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .image-details .embed-media-settings .setting input.link-to-custom,
</span><del>-.image-details .embed-media-settings .link-target {
</del><ins>+.image-details .embed-media-settings .link-target,
+.image-details .embed-media-settings .custom-size {
</ins><span class="cx"> margin-left: 27%;
</span><span class="cx"> width: 70%;
</span><span class="cx"> }
</span><span class="lines">@@ -2003,8 +2035,8 @@
</span><span class="cx"> margin-left: 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- .image-details .link-target {
- width: 100%;
</del><ins>+ .image-details .embed-media-settings .custom-size {
+ margin-left: 20px;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .media-selection {
</span></span></pre></div>
<a id="trunksrcwpincludesjsmediamodelsjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/media-models.js (27917 => 27918)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/media-models.js 2014-04-03 03:14:54 UTC (rev 27917)
+++ trunk/src/wp-includes/js/media-models.js 2014-04-03 03:20:40 UTC (rev 27918)
</span><span class="lines">@@ -369,6 +369,9 @@
</span><span class="cx"> this.on( 'change:size', this.updateSize, this );
</span><span class="cx">
</span><span class="cx"> this.setLinkTypeFromUrl();
</span><ins>+
+ this.set( 'aspectRatio', attributes.customWidth / attributes.customHeight );
+ this.set( 'originalUrl', attributes.url );
</ins><span class="cx"> },
</span><span class="cx">
</span><span class="cx"> bindAttachmentListeners: function() {
</span><span class="lines">@@ -447,6 +450,13 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ if ( this.get( 'size' ) === 'custom' ) {
+ this.set( 'width', this.get( 'customWidth' ) );
+ this.set( 'height', this.get( 'customHeight' ) );
+ this.set( 'url', this.get( 'originalUrl' ) );
+ return;
+ }
+
</ins><span class="cx"> size = this.attachment.get( 'sizes' )[ this.get( 'size' ) ];
</span><span class="cx">
</span><span class="cx"> if ( ! size ) {
</span></span></pre></div>
<a id="trunksrcwpincludesjsmediaviewsjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/media-views.js (27917 => 27918)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/media-views.js 2014-04-03 03:14:54 UTC (rev 27917)
+++ trunk/src/wp-includes/js/media-views.js 2014-04-03 03:20:40 UTC (rev 27918)
</span><span class="lines">@@ -6059,13 +6059,18 @@
</span><span class="cx"> events: _.defaults( media.view.Settings.AttachmentDisplay.prototype.events, {
</span><span class="cx"> 'click .edit-attachment': 'editAttachment',
</span><span class="cx"> 'click .replace-attachment': 'replaceAttachment',
</span><del>- 'click .advanced-toggle': 'toggleAdvanced'
</del><ins>+ 'click .advanced-toggle': 'toggleAdvanced',
+ 'change [data-setting="customWidth"]': 'syncCustomSize',
+ 'change [data-setting="customHeight"]': 'syncCustomSize',
+ 'keyup [data-setting="customWidth"]': 'syncCustomSize',
+ 'keyup [data-setting="customHeight"]': 'syncCustomSize'
</ins><span class="cx"> } ),
</span><span class="cx"> initialize: function() {
</span><span class="cx"> // used in AttachmentDisplay.prototype.updateLinkTo
</span><span class="cx"> this.options.attachment = this.model.attachment;
</span><span class="cx"> this.listenTo( this.model, 'change:url', this.updateUrl );
</span><span class="cx"> this.listenTo( this.model, 'change:link', this.toggleLinkSettings );
</span><ins>+ this.listenTo( this.model, 'change:size', this.toggleCustomSize );
</ins><span class="cx"> media.view.Settings.AttachmentDisplay.prototype.initialize.apply( this, arguments );
</span><span class="cx"> },
</span><span class="cx">
</span><span class="lines">@@ -6123,6 +6128,29 @@
</span><span class="cx"> }
</span><span class="cx"> },
</span><span class="cx">
</span><ins>+ toggleCustomSize: function() {
+ if ( this.model.get( 'size' ) !== 'custom' ) {
+ this.$( '.custom-size' ).addClass('hidden');
+ } else {
+ this.$( '.custom-size' ).removeClass('hidden');
+ }
+ },
+
+ syncCustomSize: function( event ) {
+ var dimension = $( event.target ).data('setting'),
+ value;
+
+ if ( dimension === 'customWidth' ) {
+ value = Math.round( 1 / this.model.get( 'aspectRatio' ) * $( event.target ).val() );
+ this.model.set( 'customHeight', value, { silent: true } );
+ this.$( '[data-setting="customHeight"]' ).val( value );
+ } else {
+ value = Math.round( this.model.get( 'aspectRatio' ) * $( event.target ).val() );
+ this.$( '[data-setting="customWidth"]' ).val( value );
+ this.model.set( 'customWidth', value, { silent: true } );
+ }
+ },
+
</ins><span class="cx"> toggleAdvanced: function( event ) {
</span><span class="cx"> var $advanced = $( event.target ).closest( '.advanced' );
</span><span class="cx"> event.preventDefault();
</span></span></pre></div>
<a id="trunksrcwpincludesjstinymcepluginswpeditimagepluginjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js (27917 => 27918)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js 2014-04-03 03:14:54 UTC (rev 27917)
+++ trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js 2014-04-03 03:20:40 UTC (rev 27918)
</span><span class="lines">@@ -123,7 +123,9 @@
</span><span class="cx"> url: false,
</span><span class="cx"> height: '',
</span><span class="cx"> width: '',
</span><del>- size: false,
</del><ins>+ customWidth: '',
+ customHeight: '',
+ size: 'custom',
</ins><span class="cx"> caption: '',
</span><span class="cx"> alt: '',
</span><span class="cx"> align: 'none',
</span><span class="lines">@@ -139,12 +141,12 @@
</span><span class="cx"> metadata.url = dom.getAttrib( imageNode, 'src' );
</span><span class="cx"> metadata.alt = dom.getAttrib( imageNode, 'alt' );
</span><span class="cx"> metadata.title = dom.getAttrib( imageNode, 'title' );
</span><del>-
</del><span class="cx"> width = dom.getAttrib( imageNode, 'width' ) || imageNode.width;
</span><span class="cx"> height = dom.getAttrib( imageNode, 'height' ) || imageNode.height;
</span><del>-
</del><span class="cx"> metadata.width = parseInt( width, 10 );
</span><span class="cx"> metadata.height = parseInt( height, 10 );
</span><ins>+ metadata.customWidth = metadata.width;
+ metadata.customHeight = metadata.height;
</ins><span class="cx">
</span><span class="cx"> classes = tinymce.explode( imageNode.className, ' ' );
</span><span class="cx"> extraClasses = [];
</span><span class="lines">@@ -199,9 +201,13 @@
</span><span class="cx"> return metadata;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ function hasTextContent( node ) {
+ return node && !! ( node.textContent || node.innerText );
+ }
+
</ins><span class="cx"> function updateImage( imageNode, imageData ) {
</span><del>- var classes, className, width, node, html, parent, wrap,
- captionNode, dd, dl, id, attrs, linkAttrs,
</del><ins>+ var classes, className, node, html, parent, wrap, linkNode,
+ captionNode, dd, dl, id, attrs, linkAttrs, width, height,
</ins><span class="cx"> dom = editor.dom;
</span><span class="cx">
</span><span class="cx"> classes = tinymce.explode( imageData.extraClasses, ' ' );
</span><span class="lines">@@ -216,15 +222,23 @@
</span><span class="cx">
</span><span class="cx"> if ( imageData.attachment_id ) {
</span><span class="cx"> classes.push( 'wp-image-' + imageData.attachment_id );
</span><del>- if ( imageData.size ) {
</del><ins>+ if ( imageData.size && imageData.size !== 'custom' ) {
</ins><span class="cx"> classes.push( 'size-' + imageData.size );
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ width = imageData.width;
+ height = imageData.height;
+
+ if ( imageData.size === 'custom' ) {
+ width = imageData.customWidth;
+ height = imageData.customHeight;
+ }
+
</ins><span class="cx"> attrs = {
</span><span class="cx"> src: imageData.url,
</span><del>- width: imageData.width || null,
- height: imageData.height || null,
</del><ins>+ width: width || null,
+ height: height || null,
</ins><span class="cx"> alt: imageData.alt,
</span><span class="cx"> title: imageData.title || null,
</span><span class="cx"> 'class': classes.join( ' ' ) || null
</span><span class="lines">@@ -239,31 +253,41 @@
</span><span class="cx"> 'class': imageData.linkClassName || null
</span><span class="cx"> };
</span><span class="cx">
</span><del>- if ( imageNode.parentNode.nodeName === 'A' ) {
</del><ins>+ if ( imageNode.parentNode && imageNode.parentNode.nodeName === 'A' && ! hasTextContent( imageNode.parentNode ) ) {
+ // Update or remove an existing link wrapped around the image
</ins><span class="cx"> if ( imageData.linkUrl ) {
</span><span class="cx"> dom.setAttribs( imageNode.parentNode, linkAttrs );
</span><span class="cx"> } else {
</span><span class="cx"> dom.remove( imageNode.parentNode, true );
</span><span class="cx"> }
</span><span class="cx"> } else if ( imageData.linkUrl ) {
</span><del>- html = dom.createHTML( 'a', linkAttrs, dom.getOuterHTML( imageNode ) );
- dom.outerHTML( imageNode, html );
</del><ins>+ if ( linkNode = dom.getParent( imageNode, 'a' ) ) {
+ // The image is inside a link together with other nodes,
+ // or is nested in another node, move it out
+ dom.insertAfter( imageNode, linkNode );
+ }
+
+ // Add link wrapped around the image
+ linkNode = dom.create( 'a', linkAttrs );
+ imageNode.parentNode.insertBefore( linkNode, imageNode );
+ linkNode.appendChild( imageNode );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> captionNode = editor.dom.getParent( imageNode, '.mceTemp' );
</span><span class="cx">
</span><del>- if ( imageNode.parentNode.nodeName === 'A' ) {
</del><ins>+ if ( imageNode.parentNode && imageNode.parentNode.nodeName === 'A' && ! hasTextContent( imageNode.parentNode ) ) {
</ins><span class="cx"> node = imageNode.parentNode;
</span><span class="cx"> } else {
</span><span class="cx"> node = imageNode;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ( imageData.caption ) {
</span><del>- width = parseInt( imageData.width, 10 );
</del><ins>+
</ins><span class="cx"> id = imageData.attachment_id ? 'attachment_' + imageData.attachment_id : null;
</span><del>- className = 'wp-caption align' + imageData.align;
</del><ins>+ className = 'wp-caption align' + ( imageData.align || 'none' );
</ins><span class="cx">
</span><span class="cx"> if ( ! editor.getParam( 'wpeditimage_html5_captions' ) ) {
</span><ins>+ width = parseInt( width, 10 );
</ins><span class="cx"> width += 10;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -312,7 +336,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> editor.nodeChanged();
</span><del>- // refresh the toolbar
</del><ins>+ // Refresh the toolbar
</ins><span class="cx"> addToolbar( imageNode );
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -324,8 +348,6 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- editor.undoManager.add();
-
</del><span class="cx"> frame = wp.media({
</span><span class="cx"> frame: 'image',
</span><span class="cx"> state: 'image-details',
</span><span class="lines">@@ -333,8 +355,10 @@
</span><span class="cx"> } );
</span><span class="cx">
</span><span class="cx"> callback = function( imageData ) {
</span><del>- updateImage( img, imageData );
</del><span class="cx"> editor.focus();
</span><ins>+ editor.undoManager.transact( function() {
+ updateImage( img, imageData );
+ } );
</ins><span class="cx"> frame.detach();
</span><span class="cx"> };
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcwpincludesmediatemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/media-template.php (27917 => 27918)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/media-template.php 2014-04-03 03:14:54 UTC (rev 27917)
+++ trunk/src/wp-includes/media-template.php 2014-04-03 03:20:40 UTC (rev 27918)
</span><span class="lines">@@ -689,7 +689,7 @@
</span><span class="cx">
</span><span class="cx"> <# if ( data.attachment ) { #>
</span><span class="cx"> <# if ( 'undefined' !== typeof data.attachment.sizes ) { #>
</span><del>- <label class="setting">
</del><ins>+ <label class="setting size">
</ins><span class="cx"> <span><?php _e('Size'); ?></span>
</span><span class="cx"> <select class="size" name="size"
</span><span class="cx"> data-setting="size"
</span><span class="lines">@@ -709,14 +709,20 @@
</span><span class="cx"> <#
</span><span class="cx"> var size = data.sizes['<?php echo esc_js( $value ); ?>'];
</span><span class="cx"> if ( size ) { #>
</span><del>- <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>>
</del><ins>+ <option value="<?php echo esc_attr( $value ); ?>">
</ins><span class="cx"> <?php echo esc_html( $name ); ?> – {{ size.width }} × {{ size.height }}
</span><span class="cx"> </option>
</span><span class="cx"> <# } #>
</span><span class="cx"> <?php endforeach; ?>
</span><ins>+ <option value="<?php echo esc_attr( 'custom' ); ?>">
+ <?php _e( 'Custom Size' ); ?>
+ </option>
</ins><span class="cx"> </select>
</span><span class="cx"> </label>
</span><span class="cx"> <# } #>
</span><ins>+ <div class="custom-size<# if ( data.model.size !== 'custom' ) { #> hidden<# } #>">
+ <label><span><?php _e( 'Width' ); ?> <small>(px)</small></span> <input data-setting="customWidth" type="number" step="1" value="{{ data.model.customWidth }}" /></label><span class="sep">×</span><label><span><?php _e( 'Height' ); ?> <small>(px)</small></span><input data-setting="customHeight" type="number" step="1" value="{{ data.model.customHeight }}" /></label>
+ </div>
</ins><span class="cx"> <# } #>
</span><span class="cx">
</span><span class="cx"> <div class="setting link-to">
</span><span class="lines">@@ -744,7 +750,7 @@
</span><span class="cx"> <input type="text" class="link-to-custom" data-setting="linkUrl" />
</span><span class="cx"> </div>
</span><span class="cx"> <div class="advanced">
</span><del>- <a class="advanced-toggle" href="#"><?php _e('Show advanced options'); ?></a>
</del><ins>+ <h3><a class="advanced-toggle" href="#"><?php _e('Advanced Options'); ?></a></h3>
</ins><span class="cx"> <div class="hidden">
</span><span class="cx"> <label class="setting title-text">
</span><span class="cx"> <span><?php _e('Image Title Attribute'); ?></span>
</span></span></pre>
</div>
</div>
</body>
</html>