0) { $title = apply_filters('widget_title', wpdm_valueof($instance, 'title')); $url = get_permalink(wpdm_valueof($instance, 'rpage')); echo isset($before_widget) ? $before_widget : ""; if ($title) echo (isset($before_title) ? $before_title : "") . $title . (isset($after_title) ? $after_title : ""); echo "
"; echo isset($after_widget) ? $after_widget : ""; } else { WPDM_Messages::warning(__( "Search result page was configured properly. Please create a page with shortcode [wpdm_search_result] and select thee page from widget settings", "download-manager" ), 0); } } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); $instance['rpage'] = strip_tags($new_instance['rpage']); return $instance; } function form($instance) { $title = isset($instance['title']) ? esc_attr($instance['title']) : ""; $rpage = isset($instance['rpage']) ? esc_attr($instance['rpage']) : ""; ?>
".wp_dropdown_pages("selected={$rpage}&echo=0&name=".$this->get_field_name('rpage')); ?>