LLMS_Emails::get_table_html( array $rows )
Returns the table html
Parameters Parameters
- $rows
-
(array) (Required) Array of rows to populate the table with.
Return Return
(string)
Source Source
File: includes/class.llms.emails.php
public function get_table_html( $rows ) { if ( empty( $rows ) ) { return ''; } list( $table_style, $tr_style, $td_style ) = $this->get_parsed_table_style(); ob_start(); ?> <table style="<?php echo $table_style; ?>"> <?php foreach ( $rows as $code => $name ) : ?> <tr style="<?php echo $tr_style; ?>"> <th style="<?php echo $td_style; ?>width:33.3333%;"><?php echo $name; ?></th> <td style="<?php echo $td_style; ?>">{{<?php echo $code; ?>}}</td> </tr> <?php endforeach; ?> </table> <?php return ob_get_clean(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |