File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -91,23 +91,32 @@ private function _rows_data(array $data)
91
91
$ output .= $ this ->_tags [$ alter .'body_row ' ];
92
92
foreach ($ row1 as $ row )
93
93
{
94
-
94
+ $ body_cell_tag_close = $ this -> _tags [ ' body_cell_end ' ];
95
95
if (is_array ($ row ) && array_key_exists ('data ' ,$ row ))
96
96
{
97
97
$ data = $ row ['data ' ];
98
98
unset($ row ['data ' ]);
99
99
100
- $ tag = trim ($ this ->_tags [$ alter .'body_cell ' ],'> ' ).$ this ->_attributeToString ($ row ).'> ' ;
100
+ if (isset ($ row ['body_cell_tags ' ]))
101
+ {
102
+ $ body_cell_tag = $ row ['body_cell_tags ' ];
103
+ $ body_cell_tag_open = $ body_cell_tag ['open ' ];
104
+ $ body_cell_tag_close = $ body_cell_tag ['close ' ];
105
+ }
106
+ else
107
+ {
108
+ $ body_cell_tag_open = trim ($ this ->_tags [$ alter .'body_cell ' ],'> ' ).$ this ->_attributeToString ($ row ).'> ' ;
109
+ }
101
110
}
102
111
else
103
112
{
104
113
$ data = $ row ;
105
114
$ attrib = '' ;
106
- $ tag = $ this ->_tags [$ alter .'body_cell ' ];
115
+ $ body_cell_tag_open = $ this ->_tags [$ alter .'body_cell ' ];
107
116
}
108
117
109
118
110
- $ output .= $ tag .$ data .$ this -> _tags [ ' body_cell_end ' ] ;
119
+ $ output .= $ body_cell_tag_open .$ data .$ body_cell_tag_close ;
111
120
}
112
121
$ output .= $ this ->_tags ['body_row_end ' ];
113
122
@@ -345,4 +354,4 @@ private function _getDefaultTags()
345
354
'alt_body_cell_end ' => '</td> '
346
355
];
347
356
}
348
- }
357
+ }
You can’t perform that action at this time.
0 commit comments