Browse Source

Fix https://core.spip.net/issues/3985 : ajout de la classe .table sur les table spip

svn/root/tags/plugins/textwheel/1.6.4 v1.6.4
cedric@yterium.com 3 years ago
parent
commit
1b1f91efe7
  1. 10
      inc/texte.php
  2. 2
      paquet.xml

10
inc/texte.php

@ -539,7 +539,15 @@ function traiter_tableau($bloc) {
$html = "<tr class='row_$class $class'>$ligne</tr>\n$html";
}
return "\n\n<table" . $GLOBALS['class_spip_plus'] . $summary . ">\n"
$class = $GLOBALS['class_spip_plus'];
if (!$class or strpos($GLOBALS['class_spip_plus'],'class=') === false) {
$class = ' ' . trim('class="table" ' . $class);
}
else {
$class = str_replace('class="','class="table ', $class);
$class = str_replace("class='","class='table ", $class);
}
return "\n\n<table" . $class . $summary . ">\n"
. $debut_table
. "<tbody>\n"
. $html

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="tw"
categorie="edition"
version="1.6.3"
version="1.6.4"
etat="stable"
compatibilite="[3.3.0-dev;3.3.*]"
logo="textwheel-32.png"

Loading…
Cancel
Save