... á að vera að vinna að einu og öðru en endar alltaf á að hanga á kaffihúsum og búa til myndagátur.
echo $after_widget;
}
// This is the function that outputs the form to let the users edit
// the widget's title. It's an optional feature that users cry for.
function widget_authors_control() {
// Each widget can store and retrieve its own options.
// Here we retrieve any options that may have been set by the user
// relying on widget defaults to fill the gaps.
$options = $newoptions = get_option('widget_authors');
// If user is submitting custom option values for this widget
if ( $_POST['authors-submit'] ) {
$newoptions['Title'] = strip_tags(stripslashes($_POST['authors-title']));
$newoptions['Option Count'] = isset($_POST['authors-option-count']);
$newoptions['Exclude Administrator'] = isset($_POST['authors-exclude-administrator']);
$newoptions['Show Full Name'] = isset($_POST['authors-show-full-name']);
$newoptions['Show Description'] = isset($_POST['authors-show-description']);
$newoptions['Hide Empty'] = isset($_POST['authors-hide-empty']);
$newoptions['Show Image'] = isset($_POST['authors-show-feed-image']);
// Save changes
if ( $options != newoptions ) {
$options = $newoptions;
update_option('widget_authors', $options);
}
}
$title = attribute_escape($options['Title']);
$optioncount = $options['Option Count'] ? 'checked="checked"' : '';
$exclude_admin = $options['Exclude Administrator'] ? 'checked="checked"' : '';
$show_fullname = $options['Show Full Name'] ? 'checked="checked"' : '';
$show_description = $options['Show Description'] ? 'checked="checked"' : '';
$hide_empty = $options['Hide Empty'] ? 'checked="checked"' : '';
$feed_image = $options['Show Image'] ? 'checked="checked"' : '';
// Here is our little form segment. Notice that we don't need as
// complete form. This will be embedded into the existing form.
// Be sure you format your options to be valid HTML attributes
// before displayihng them on the page.
?>