LLMS_Emails::get_table_html( array $rows )

Returns the table html


Parameters Parameters

$rows

(array) (Required) Array of rows to populate the table with.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.emails.php

320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
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();
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.