mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-02-23 16:21:07 +00:00
26 lines
538 B
PHP
26 lines
538 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* This class is used when a field class can't be found to display an error message to the user.
|
||
|
*
|
||
|
* Class SiteOrigin_Widget_Field_Error
|
||
|
*/
|
||
|
class SiteOrigin_Widget_Field_Error extends SiteOrigin_Widget_Field_Base {
|
||
|
|
||
|
/**
|
||
|
* An error message to display.
|
||
|
*
|
||
|
* @access protected
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $message;
|
||
|
|
||
|
protected function render_field( $value, $instance ) {
|
||
|
printf( __($this->message, 'so-widgets-bundle') );
|
||
|
}
|
||
|
|
||
|
protected function sanitize_field_input( $value, $instance ) {
|
||
|
return $value;
|
||
|
}
|
||
|
}
|