'; if ( function_exists('pp_random_image_bare') ) { pp_random_image_bare($number_of_images, $tagimagebefore, $tagimageafter, 'random', $category); } echo ''; echo $after_widget; } function widget_pp_print_category_combo($cur_cat) { global $pp_options; $pp_count = pp_count(); if ($pp_count > 0) { $cat_slugs = array(); $cat_slugs = pp_catlist(); echo "\n"; } else { echo "

" . __('No photos uploaded yet.','photopress') . "

\n"; } } 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"]); $newoptions['category'] = stripslashes($_POST["photopressrandomthumbs-category"]); 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); $category= htmlspecialchars($options['category'], ENT_QUOTES); ?>


Leave empty for all categories.