add contacts page for commercial leads
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div>
|
||||
<h1><?php esc_html_e( 'Contacts', 'wiaas' ); ?> </h1>
|
||||
|
||||
<br class="clear" />
|
||||
<div >
|
||||
<table id="wiaas_contacts_table" class="wiaas-contacts-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php esc_html_e( 'Name', 'wiaas' ); ?></th>
|
||||
<th><?php esc_html_e( 'Email', 'wiaas' ); ?></th>
|
||||
<th><?php esc_html_e( 'Phone', 'wiaas' ); ?></th>
|
||||
<th><?php esc_html_e( 'Roles', 'wiaas' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody id="wiaas-contacts-tbody">
|
||||
|
||||
<?php
|
||||
foreach ($contacts as $contact) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php esc_html_e($contact['name'] ?: '-', 'wiaas'); ?></td>
|
||||
<td><a href="mailto:<?php esc_html_e($contact['email'] ?: '-', 'wiaas'); ?>"><?php esc_html_e($contact['email'] ?: '-', 'wiaas'); ?></a></td>
|
||||
<td><?php esc_html_e($contact['phone'] ?: '-', 'wiaas'); ?></td>
|
||||
<td><?php esc_html_e($contact['roles'] ?: '-', 'wiaas'); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user