A HitchHackers guide through WordPress


Home | Pages | Archives


list_meta

February 12, 2011 1:37 am

Definition:
function list_meta( $meta ) {}

Parameters

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

Rate this:

Posted by Thorsten

Categories: /wp-admin/includes/template.php, Documentation, Files, Functions, Functions by letter l

Tags: ,

Leave a Reply



Mobile Site | Full Site


Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.