Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c7b28ffda48d3e6e225940a74b00ee5011f45b4b 1 parent ae6cce1
Anika Henke selfthinker authored
2  inc/html.php
View
@@ -1176,6 +1176,7 @@ function html_diff($text='',$intro=true,$type=null){
ptln('</div>');
}
?>
+ <div class="table">
<table class="diff diff_<?php echo $type?>">
<tr>
<th colspan="2" <?php echo $l_minor?>>
@@ -1187,6 +1188,7 @@ function html_diff($text='',$intro=true,$type=null){
</tr>
<?php echo $tdf->format($df)?>
</table>
+ </div>
<?php
}
2  inc/media.php
View
@@ -1116,6 +1116,7 @@ function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax){
list($l_head, $r_head) = html_diff_head($l_rev, $r_rev, $image, true);
?>
+ <div class="table">
<table>
<tr>
<th><?php echo $l_head; ?></th>
@@ -1183,6 +1184,7 @@ function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax){
echo '</tr>'.NL;
echo '</table>'.NL;
+ echo '</div>'.NL;
if ($is_img && !$fromajax) echo '</div>';
}
2  lib/plugins/acl/admin.php
View
@@ -597,6 +597,7 @@ function _html_table(){
echo '<input type="hidden" name="do" value="admin" />'.NL;
echo '<input type="hidden" name="page" value="acl" />'.NL;
echo '<input type="hidden" name="sectok" value="'.getSecurityToken().'" />'.NL;
+ echo '<div class="table">';
echo '<table class="inline">';
echo '<tr>';
echo '<th>'.$this->getLang('where').'</th>';
@@ -642,6 +643,7 @@ function _html_table(){
echo '</th>';
echo '</tr>';
echo '</table>';
+ echo '</div>';
echo '</div></form>'.NL;
}
4 lib/plugins/config/admin.php
View
@@ -131,6 +131,7 @@ function html() {
}
ptln(' <fieldset id="'.$setting->_key.'">');
ptln(' <legend>'.$setting->prompt($this).'</legend>');
+ ptln(' <div class="table">');
ptln(' <table class="inline">');
} else {
// config settings
@@ -151,6 +152,7 @@ function html() {
}
ptln(' </table>');
+ ptln(' </div>');
if ($in_fieldset) {
ptln(' </fieldset>');
}
@@ -161,6 +163,7 @@ function _setting_natural_comparison($a, $b) { return strnatcmp($a->_key, $b->_k
usort($undefined_settings, '_setting_natural_comparison');
$this->_print_h1('undefined_settings', $this->getLang('_header_undefined'));
ptln('<fieldset>');
+ ptln('<div class="table">');
ptln('<table class="inline">');
$undefined_setting_match = array();
foreach($undefined_settings as $setting) {
@@ -175,6 +178,7 @@ function _setting_natural_comparison($a, $b) { return strnatcmp($a->_key, $b->_k
ptln(' </tr>');
}
ptln('</table>');
+ ptln('</div>');
ptln('</fieldset>');
}
8 lib/plugins/info/syntax.php
View
@@ -174,7 +174,7 @@ function _helpermethods_xhtml(&$renderer){
$hid = $this->_addToTOC($title, 3, $renderer);
$doc .= '<h3><a name="'.$hid.'" id="'.$hid.'">'.hsc($title).'</a></h3>';
$doc .= '<div class="level3">';
- $doc .= '<table class="inline"><tbody>';
+ $doc .= '<div class="table"><table class="inline"><tbody>';
$doc .= '<tr><th>Description</th><td colspan="2">'.$method['desc'].
'</td></tr>';
if ($method['params']){
@@ -190,7 +190,7 @@ function _helpermethods_xhtml(&$renderer){
$doc .= '<tr><th>Return value</th><td>'.hsc(key($method['return'])).
'</td><td>'.hsc(current($method['return'])).'</td></tr>';
}
- $doc .= '</tbody></table>';
+ $doc .= '</tbody></table></div>';
$doc .= '</div>';
}
unset($po);
@@ -206,7 +206,7 @@ function _syntaxtypes_xhtml(){
global $PARSER_MODES;
$doc = '';
- $doc .= '<table class="inline"><tbody>';
+ $doc .= '<div class="table"><table class="inline"><tbody>';
foreach($PARSER_MODES as $mode => $modes){
$doc .= '<tr>';
$doc .= '<td class="leftalign">';
@@ -217,7 +217,7 @@ function _syntaxtypes_xhtml(){
$doc .= '</td>';
$doc .= '</tr>';
}
- $doc .= '</tbody></table>';
+ $doc .= '</tbody></table></div>';
return $doc;
}
4 lib/plugins/usermanager/admin.php
View
@@ -149,6 +149,7 @@ function html() {
}
ptln("<form action=\"".wl($ID)."\" method=\"post\">");
formSecurityToken();
+ ptln(" <div class=\"table\">");
ptln(" <table class=\"inline\">");
ptln(" <thead>");
ptln(" <tr>");
@@ -206,6 +207,7 @@ function html() {
ptln(" </td></tr>");
ptln(" </tbody>");
ptln(" </table>");
+ ptln(" </div>");
ptln("</form>");
ptln("</div>");
@@ -256,6 +258,7 @@ function _htmlUserForm($cmd,$user='',$userdata=array(),$indent=0) {
ptln("<form action=\"".wl($ID)."\" method=\"post\">",$indent);
formSecurityToken();
+ ptln(" <div class=\"table\">",$indent);
ptln(" <table class=\"inline\">",$indent);
ptln(" <thead>",$indent);
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) {
ptln(" </tr>",$indent);
ptln(" </tbody>",$indent);
ptln(" </table>",$indent);
+ ptln(" </div>",$indent);
foreach ($notes as $note)
ptln("<div class=\"fn\">".$note."</div>",$indent);
Please sign in to comment.
Something went wrong with that request. Please try again.