Ejemplo n.º 1
0
                ?>
"/>
					<?php 
            }
            ?>
				</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');
    ?>
 function __construct($args = array())
 {
     $args = wp_parse_args($args, array('plural' => __('extra_details', 'support_hub'), 'singular' => __('extra_detail', 'support_hub'), 'ajax' => false));
     parent::__construct($args);
 }