LLMS_Emails::output_table_html( $rows )


Source Source

File: includes/class.llms.emails.php

	public function output_table_html( $rows ) {

		if ( empty( $rows ) ) {
			return '';
		}

		list( $table_style, $tr_style, $td_style ) = $this->get_parsed_table_style();

		?>
		<table style="<?php echo esc_attr( $table_style ); ?>">
			<?php foreach ( $rows as $code => $name ) : ?>
				<tr style="<?php echo esc_attr( $tr_style ); ?>">
					<th style="<?php echo esc_attr( $td_style ); ?>width:33.3333%;"><?php echo esc_html( $name ); ?></th>
					<td style="<?php echo esc_attr( $td_style ); ?>">{{<?php echo esc_html( $code ); ?>}}</td>
				</tr>
			<?php endforeach; ?>
		</table>
		<?php
	}


Top ↑

User Contributed Notes User Contributed Notes

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