mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-16 04:53:21 +09:00
Refactor taxonomy widget
Adds new widget form class, which all three widgets can share.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
echo '<p>';
|
||||
$rows = isset( $args['rows'] ) ? $args['rows'] : 3;
|
||||
printf( '<label for="%s">%s</label>', esc_attr( $this->parent->get_field_id( $args['id'] ) ), esc_attr( $args['label'] ) );
|
||||
printf( '<textarea class="large-text" rows="%s" id="%s" name="%s">%s</textarea>', absint( $rows ), esc_attr( $this->parent->get_field_id( $args['id'] ) ), esc_attr( $this->parent->get_field_name( $args['id'] ) ), esc_attr( $instance[ $args['id'] ] ) );
|
||||
echo '</p>';
|
||||
Reference in New Issue
Block a user