Ticket #4264: widgets.diff
File widgets.diff, 2.3 KB (added by , 17 years ago) |
---|
-
widgets.css
84 84 } 85 85 86 86 .placematt { 87 position: absolute;88 87 cursor: default; 89 88 margin: 10px 0 0; 90 89 padding: 0; 91 90 width: 238px; 91 float:left; 92 92 background-color: #ffe; 93 93 } 94 94 … … 106 106 text-align: justify; 107 107 } 108 108 109 109 110 #palettediv { 110 111 border: 1px solid #bbb; 111 112 background-color: #f0f8ff; 112 height: 180px;113 height:auto; 113 114 margin-top: 10px; 114 115 } 115 116 -
widgets.php
15 15 define( 'WP_WIDGETS_HEIGHT', 35 * ( count( $wp_registered_widgets ) ) ); 16 16 ?> 17 17 <link rel="stylesheet" href="widgets.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 18 <!--[if IE 7]> 18 19 <style type="text/css"> 20 #palette {float:left;} 21 </style> 22 <![endif]--> 23 <style type="text/css"> 19 24 .dropzone ul { height: <?php echo constant( 'WP_WIDGETS_HEIGHT' ); ?>px; } 20 25 #sbadmin #zones { width: <?php echo constant( 'WP_WIDGETS_WIDTH' ); ?>px; } 21 26 </style> … … 61 66 new Effect.Opacity('shadow', {to:0.0}); 62 67 widgets.map(function(o) {o='widgetprefix-'+o; Position.absolutize(o); Position.relativize(o);} ); 63 68 $A(Draggables.drags).map(function(o) {o.startDrag(null); o.finishDrag(null);}); 64 for ( var n in Draggables.drags ) { 69 //for ( var n in Draggables.drags ) { 70 for ( n=0; n<=Draggables.drags.length; n++ ) { 65 71 if ( Draggables.drags[n].element.id == 'lastmodule' ) { 66 72 Draggables.drags[n].destroy(); 67 73 break; … … 145 151 var pm = $(o+'placematt'); 146 152 if ( $(o).childNodes.length == 0 ) { 147 153 pm.style.display = 'block'; 148 Position.absolutize(o+'placematt');154 //Position.absolutize(o+'placematt'); 149 155 } else { 150 156 pm.style.display = 'none'; 151 157 } … … 302 308 <div class="dropzone"> 303 309 <h3><?php echo $sidebar['name']; ?></h3> 304 310 305 <div id="<?php echo $index; ?>placematt" class="module placemat t">311 <div id="<?php echo $index; ?>placematt" class="module placemat"> 306 312 <span class="handle"> 307 313 <h4><?php _e( 'Default Sidebar' ); ?></h4> 308 314 <?php _e( 'Your theme will display its usual sidebar when this box is empty. Dragging widgets into this box will replace the usual sidebar with your customized sidebar.' ); ?>