Exemplo n.º 1
0
            ?>
				</p>


			</form>
		</div>
	<?php 
        }
    }
} else {
    // show account overview:
    $myListTable = new SupportHub_Account_Data_List_Table();
    $accounts = $shub_ucm->get_accounts();
    foreach ($accounts as $account_id => $account) {
        $a = new shub_ucm_account($account['shub_account_id']);
        $accounts[$account_id]['edit_link'] = $a->link_edit();
        $accounts[$account_id]['title'] = $a->get('account_name');
        $accounts[$account_id]['last_checked'] = $a->get('last_checked') ? shub_print_date($a->get('last_checked')) : 'N/A';
    }
    $myListTable->set_data($accounts);
    $myListTable->prepare_items();
    ?>
	<div class="wrap">
		<h2>
			<?php 
    _e('UCM Accounts', 'support_hub');
    ?>
			<a href="?page=<?php 
    echo esc_attr($_GET['page']);
    ?>
&tab=<?php