Created
January 21, 2012 02:42
-
-
Save billerickson/1650919 to your computer and use it in GitHub Desktop.
Admin Pages - Contact Information metabox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Callback for Contact Information metabox | |
* | |
* @since 1.0.0 | |
* | |
* @see Child_Theme_Settings::metaboxes() | |
*/ | |
function contact_information() { | |
echo '<p>Phone:<br />'; | |
echo '<input type="text" name="' . $this->get_field_name( 'phone' ) . '" id="' . $this->get_field_id( 'phone' ) . '" value="' . esc_attr( $this->get_field_value( 'phone' ) ) . '" size="50" />'; | |
echo '</p>'; | |
echo '<p>Address</p>'; | |
echo '<p><textarea name="' . $this->get_field_name( 'address' ) . '" cols="78" rows="8">' . esc_textarea( $this->get_field_value( 'address' ) ) . '</textarea></p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment