1 <?php
2
3 /**
4 * Link (url) field
5 *
6 * @package Fieldmanager_Field
7 */
8 class Fieldmanager_Link extends Fieldmanager_Textfield {
9
10 /**
11 * Construct default attributes, set link sanitizer
12 * @param string $label
13 * @param array $options
14 */
15 public function __construct( $label = '', $options = array() ) {
16 $this->sanitize = 'esc_url_raw';
17 $this->template = fieldmanager_get_template( 'textfield' );
18 parent::__construct( $label, $options );
19 }
20
21 }