mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 08:44:46 +02:00
Merge branch 'pine3ree-patch-2' into dev
This commit is contained in:
@@ -135,8 +135,11 @@ class MarkupAdminDataTable extends ModuleJS {
|
|||||||
if(count($this->headerRow)) {
|
if(count($this->headerRow)) {
|
||||||
$out .= "\n\t<thead>\n\t<tr>";
|
$out .= "\n\t<thead>\n\t<tr>";
|
||||||
foreach($this->headerRow as $th) {
|
foreach($this->headerRow as $th) {
|
||||||
|
$class = '';
|
||||||
|
if(is_array($th)) list($th, $class) = $th;
|
||||||
$th = $this->encode($th);
|
$th = $this->encode($th);
|
||||||
$out .= "\n\t\t<th>$th</th>";
|
if($class) $class = " class='" . $this->encode($class) . "'";
|
||||||
|
$out .= "\n\t\t<th$class>$th</th>";
|
||||||
$maxCols++;
|
$maxCols++;
|
||||||
}
|
}
|
||||||
$out .= "\n\t</tr>\n\t</thead>";
|
$out .= "\n\t</tr>\n\t</thead>";
|
||||||
|
Reference in New Issue
Block a user