page_template_dropdown

Definition:
function page_template_dropdown( $default = '' ) {}

Parameters

  • unknown_type $default

Source code

function page_template_dropdown( $default = '' ) {

	$templates = get_page_templates();

	ksort( $templates );

	foreach (array_keys( $templates ) as $template )

		: if ( $default == $templates[$template] )

			$selected = " selected='selected'";

		else

			$selected = '';

	echo "\n\t<option value='".$templates[$template]."' $selected>$template</option>";

	endforeach;

}

2473

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: