__('A full-width content area for your home page, with an automatic style based on your Color Customization preferences.', 'fivehundred')),
array('width' => 400));
}
/**
* Front-end display of widget.
*
* @see WP_Widget::widget()
*
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
function widget($args, $instance) {
if (!empty($instance)) {
if (isset($instance['title'])) {
$title = $instance['title'];
}
else {
$title = '';
}
if (isset($instance['height'])) {
$height = html_entity_decode($instance['height']);
}
else {
$height = 100;
}
if (isset($instance['text'])) {
$text = html_entity_decode($instance['text']);
}
else {
$text = '';
}
if (isset($instance['custom_class'])) {
$custom_class = html_entity_decode($instance['custom_class']);
}
else {
$custom_class = '';
}
echo '
'.$title.'
';
echo '
'.$text.'
';
}
}
/**
* Back-end widget form.
*
* @see WP_Widget::form()
*
* @param array $instance Previously saved values from database.
*/
function form($instance) {
if (isset($instance['text'])) {
$text = $instance['text'];
}
if (isset($instance['height'])) {
$height = $instance['height'];
}
if (isset($instance['title'])) {
$title = $instance['title'];
}
if (isset($instance['custom_class'])) {
$custom_class = $instance['custom_class'];
}
$form = '';
$form .= '
';
$form .= '';
$form .= ''.__('This must be set to ensure content below it does not roll up underneath it.', 'fivehundred').'
';
$form .= '';
$form .='