Skip to content
This repository
Browse code

added div.table around non-editable content as well (FS#1980)

  • Loading branch information...
commit c7b28ffda48d3e6e225940a74b00ee5011f45b4b 1 parent ae6cce1
Anika Henke authored
2  inc/html.php
@@ -1176,6 +1176,7 @@ function html_diff($text='',$intro=true,$type=null){
1176 1176
         ptln('</div>');
1177 1177
     }
1178 1178
     ?>
  1179
+    <div class="table">
1179 1180
     <table class="diff diff_<?php echo $type?>">
1180 1181
     <tr>
1181 1182
     <th colspan="2" <?php echo $l_minor?>>
@@ -1187,6 +1188,7 @@ function html_diff($text='',$intro=true,$type=null){
1187 1188
     </tr>
1188 1189
     <?php echo $tdf->format($df)?>
1189 1190
     </table>
  1191
+    </div>
1190 1192
     <?php
1191 1193
 }
1192 1194
 
2  inc/media.php
@@ -1116,6 +1116,7 @@ function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax){
1116 1116
     list($l_head, $r_head) = html_diff_head($l_rev, $r_rev, $image, true);
1117 1117
 
1118 1118
     ?>
  1119
+    <div class="table">
1119 1120
     <table>
1120 1121
       <tr>
1121 1122
         <th><?php echo $l_head; ?></th>
@@ -1183,6 +1184,7 @@ function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax){
1183 1184
     echo '</tr>'.NL;
1184 1185
 
1185 1186
     echo '</table>'.NL;
  1187
+    echo '</div>'.NL;
1186 1188
 
1187 1189
     if ($is_img && !$fromajax) echo '</div>';
1188 1190
 }
2  lib/plugins/acl/admin.php
@@ -597,6 +597,7 @@ function _html_table(){
597 597
         echo '<input type="hidden" name="do" value="admin" />'.NL;
598 598
         echo '<input type="hidden" name="page" value="acl" />'.NL;
599 599
         echo '<input type="hidden" name="sectok" value="'.getSecurityToken().'" />'.NL;
  600
+        echo '<div class="table">';
600 601
         echo '<table class="inline">';
601 602
         echo '<tr>';
602 603
         echo '<th>'.$this->getLang('where').'</th>';
@@ -642,6 +643,7 @@ function _html_table(){
642 643
         echo '</th>';
643 644
         echo '</tr>';
644 645
         echo '</table>';
  646
+        echo '</div>';
645 647
         echo '</div></form>'.NL;
646 648
     }
647 649
 
4  lib/plugins/config/admin.php
@@ -131,6 +131,7 @@ function html() {
131 131
           }
132 132
           ptln('  <fieldset id="'.$setting->_key.'">');
133 133
           ptln('  <legend>'.$setting->prompt($this).'</legend>');
  134
+          ptln('  <div class="table">');
134 135
           ptln('  <table class="inline">');
135 136
         } else {
136 137
           // config settings
@@ -151,6 +152,7 @@ function html() {
151 152
       }
152 153
 
153 154
       ptln('  </table>');
  155
+      ptln('  </div>');
154 156
       if ($in_fieldset) {
155 157
         ptln('  </fieldset>');
156 158
       }
@@ -161,6 +163,7 @@ function _setting_natural_comparison($a, $b) { return strnatcmp($a->_key, $b->_k
161 163
         usort($undefined_settings, '_setting_natural_comparison');
162 164
         $this->_print_h1('undefined_settings', $this->getLang('_header_undefined'));
163 165
         ptln('<fieldset>');
  166
+        ptln('<div class="table">');
164 167
         ptln('<table class="inline">');
165 168
         $undefined_setting_match = array();
166 169
         foreach($undefined_settings as $setting) {
@@ -175,6 +178,7 @@ function _setting_natural_comparison($a, $b) { return strnatcmp($a->_key, $b->_k
175 178
           ptln('  </tr>');
176 179
         }
177 180
         ptln('</table>');
  181
+        ptln('</div>');
178 182
         ptln('</fieldset>');
179 183
       }
180 184
 
8  lib/plugins/info/syntax.php
@@ -174,7 +174,7 @@ function _helpermethods_xhtml(&$renderer){
174 174
                 $hid = $this->_addToTOC($title, 3, $renderer);
175 175
                 $doc .= '<h3><a name="'.$hid.'" id="'.$hid.'">'.hsc($title).'</a></h3>';
176 176
                 $doc .= '<div class="level3">';
177  
-                $doc .= '<table class="inline"><tbody>';
  177
+                $doc .= '<div class="table"><table class="inline"><tbody>';
178 178
                 $doc .= '<tr><th>Description</th><td colspan="2">'.$method['desc'].
179 179
                     '</td></tr>';
180 180
                 if ($method['params']){
@@ -190,7 +190,7 @@ function _helpermethods_xhtml(&$renderer){
190 190
                     $doc .= '<tr><th>Return value</th><td>'.hsc(key($method['return'])).
191 191
                         '</td><td>'.hsc(current($method['return'])).'</td></tr>';
192 192
                 }
193  
-                $doc .= '</tbody></table>';
  193
+                $doc .= '</tbody></table></div>';
194 194
                 $doc .= '</div>';
195 195
             }
196 196
             unset($po);
@@ -206,7 +206,7 @@ function _syntaxtypes_xhtml(){
206 206
         global $PARSER_MODES;
207 207
         $doc  = '';
208 208
 
209  
-        $doc .= '<table class="inline"><tbody>';
  209
+        $doc .= '<div class="table"><table class="inline"><tbody>';
210 210
         foreach($PARSER_MODES as $mode => $modes){
211 211
             $doc .= '<tr>';
212 212
             $doc .= '<td class="leftalign">';
@@ -217,7 +217,7 @@ function _syntaxtypes_xhtml(){
217 217
             $doc .= '</td>';
218 218
             $doc .= '</tr>';
219 219
         }
220  
-        $doc .= '</tbody></table>';
  220
+        $doc .= '</tbody></table></div>';
221 221
         return $doc;
222 222
     }
223 223
 
4  lib/plugins/usermanager/admin.php
@@ -149,6 +149,7 @@ function html() {
149 149
         }
150 150
         ptln("<form action=\"".wl($ID)."\" method=\"post\">");
151 151
         formSecurityToken();
  152
+        ptln("  <div class=\"table\">");
152 153
         ptln("  <table class=\"inline\">");
153 154
         ptln("    <thead>");
154 155
         ptln("      <tr>");
@@ -206,6 +207,7 @@ function html() {
206 207
         ptln("      </td></tr>");
207 208
         ptln("    </tbody>");
208 209
         ptln("  </table>");
  210
+        ptln("  </div>");
209 211
 
210 212
         ptln("</form>");
211 213
         ptln("</div>");
@@ -256,6 +258,7 @@ function _htmlUserForm($cmd,$user='',$userdata=array(),$indent=0) {
256 258
 
257 259
         ptln("<form action=\"".wl($ID)."\" method=\"post\">",$indent);
258 260
         formSecurityToken();
  261
+        ptln("  <div class=\"table\">",$indent);
259 262
         ptln("  <table class=\"inline\">",$indent);
260 263
         ptln("    <thead>",$indent);
261 264
         ptln("      <tr><th>".$this->lang["field"]."</th><th>".$this->lang["value"]."</th></tr>",$indent);
@@ -295,6 +298,7 @@ function _htmlUserForm($cmd,$user='',$userdata=array(),$indent=0) {
295 298
         ptln("      </tr>",$indent);
296 299
         ptln("    </tbody>",$indent);
297 300
         ptln("  </table>",$indent);
  301
+        ptln("  </div>",$indent);
298 302
 
299 303
         foreach ($notes as $note)
300 304
           ptln("<div class=\"fn\">".$note."</div>",$indent);

0 notes on commit c7b28ff

Please sign in to comment.
Something went wrong with that request. Please try again.