Advertisements

list_meta

Definition:
function list_meta( $meta ) {}

Parameters

  • unknown_type $meta

Source code

function list_meta( $meta ) {

	// Exit if no meta

	if ( ! $meta ) {

		echo '

<table id="list-table" style="display: none;">

	<thead>

	<tr>

		<th class="left">' . _x( 'Name', 'meta name' ) . '</th>

		<th>' . __( 'Value' ) . '</th>

	</tr>

	</thead>

	<tbody id="the-list" class="list:meta">

	<tr><td></td></tr>

	</tbody>

</table>'; //TBODY needed for list-manipulation JS

		return;

	}

	$count = 0;

?>

<table id="list-table">

	<thead>

	<tr>

		<th class="left"><?php _ex( 'Name', 'meta name' ) ?></th>

		<th><?php _e( 'Value' ) ?></th>

	</tr>

	</thead>

	<tbody id='the-list' class='list:meta'>

<?php

	foreach ( $meta as $entry )

		echo _list_meta_row( $entry, $count );

?>

	</tbody>

</table>

<?php

}

2273

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: