LLMS_Emails::get_table_html( array $rows )

Returns the table html

Parameters Parameters


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

Top ↑

Return Return


Top ↑

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();

		<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>
		<?php endforeach; ?>

		return ob_get_clean();


Top ↑

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.