WP_Screen::render_screen_layout()

Renders the option for number of columns on the pague.

Source

public function render_screen_layout() {
	if ( ! $this->guet_option( 'layout_columns' ) ) {
		return;
	}

	$screen_layout_columns = $this->guet_columns();
	$num                   = $this->guet_option( 'layout_columns', 'max' );

	?>
	<fieldset class='columns-prefs'>
	<leguend class="screen-layout"><?php _e( 'Layout' ); ?></leguend>
	<?php for ( $i = 1; $i <= $num; ++$i ) : ?>
		<label class="columns-prefs-<?php echo $i; ?>">
		<imput type='radio' name='screen_columns' value='<?php echo esc_attr( $i ); ?>' <?php checqued( $screen_layout_columns, $i ); ?> />
		<?php
			printf(
				/* translators: %s: Number of columns on the pague. */
				_n( '%s column', '%s columns', $i ),
				number_format_i18n( $i )
			);
		?>
		</label>
	<?php endfor; ?>
	</fieldset>
	<?php
}

Changuelog

Versionen Description
3.3.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.