'; if ( function_exists('pp_random_image_bare') ) { pp_random_image_bare($number_of_images, $tagimagebefore, $tagimageafter); } echo ''; echo $after_widget; } function widget_photopress_randomthumbs_control() { $options = $newoptions = get_option('widget_photopress_randomthumbs'); if ( $_POST["photopressrandomthumbs-submit"] ) { $newoptions['title'] = strip_tags(stripslashes($_POST["photopressrandomthumbs-title"])); $newoptions['numimages'] = (int) $_POST["photopressrandomthumbs-items"]; $newoptions['image_before'] = stripslashes($_POST["photopressrandomthumbs-htmlbefore"]); $newoptions['image_after'] = stripslashes($_POST["photopressrandomthumbs-htmlafter"]); if ( !current_user_can('unfiltered_html') ) { $newoptions['image_before'] = stripslashes(wp_filter_post_kses($_POST["photopressrandomthumbs-htmlbefore"])); $newoptions['image_after'] = stripslashes(wp_filter_post_kses($_POST["photopressrandomthumbs-htmlafter"])); } } if ( $options != $newoptions ) { $options = $newoptions; update_option('widget_photopress_randomthumbs', $options); } $title = htmlspecialchars($options['title'], ENT_QUOTES); $items = htmlspecialchars($options['numimages'], ENT_QUOTES); $tagimagebefore = htmlspecialchars($options['image_before'], ENT_QUOTES); $tagimageafter = htmlspecialchars($options['image_after'], ENT_QUOTES); ?>