function form($instance)
 {
     $defaults = array('title' => NULL, 'redirect' => false, 'homepage' => 1, 'frontpage' => false, 'page' => false, 'category' => 1, 'single' => false, 'date' => false, 'tag' => false, 'attachment' => false, 'taxonomy' => false, 'author' => false, 'search' => false, 'not_found' => false, 'not_show_logged_in' => false);
     $instance = wp_parse_args((array) $instance, $defaults);
     $title = esc_attr($instance['title']);
     $redirect = esc_attr($instance['redirect']);
     $homepage = $instance['homepage'];
     $frontpage = $instance['frontpage'];
     $page = $instance['page'];
     $category = $instance['category'];
     $single = $instance['single'];
     $date = $instance['date'];
     $tag = $instance['tag'];
     $attachment = $instance['attachment'];
     $taxonomy = $instance['taxonomy'];
     $author = $instance['author'];
     $search = $instance['search'];
     $not_found = $instance['not_found'];
     $not_show_logged_in = $instance['not_show_logged_in'];
     $base_id = 'widget-' . $this->id_base . '-' . $this->number . '-';
     $base_name = 'widget-' . $this->id_base . '[' . $this->number . ']';
     $options = array(array($base_id . 'homepage', $base_name . '[homepage]', $homepage, __('Homepage', 'custom-login-page')), array($base_id . 'frontpage', $base_name . '[frontpage]', $frontpage, __('Frontpage (e.g. a static page as homepage)', 'custom-login-page')), array($base_id . 'page', $base_name . '[page]', $page, __('"Page" pages', 'custom-login-page')), array($base_id . 'category', $base_name . '[category]', $category, __('Category pages', 'custom-login-page')), array($base_id . 'single', $base_name . '[single]', $single, __('Single post pages', 'custom-login-page')), array($base_id . 'date', $base_name . '[date]', $date, __('Archive pages', 'custom-login-page')), array($base_id . 'tag', $base_name . '[tag]', $tag, __('Tag pages', 'custom-login-page')), array($base_id . 'attachment', $base_name . '[attachment]', $attachment, __('Attachments', 'custom-login-page')), array($base_id . 'taxonomy', $base_name . '[taxonomy]', $taxonomy, __('Custom Taxonomy pages (only available, if having a plugin)', 'custom-login-page')), array($base_id . 'author', $base_name . '[author]', $author, __('Author pages', 'custom-login-page')), array($base_id . 'search', $base_name . '[search]', $search, __('Search Results', 'custom-login-page')), array($base_id . 'not_found', $base_name . '[not_found]', $not_found, __('"Not Found"', 'custom-login-page')));
     $checkall = array($base_id . 'checkall', $base_name . '[checkall]', __('Check all', 'custom-login-page'));
     a5_text_field($base_id . 'title', $base_name . '[title]', $title, __('Title:', 'custom-login-page'), array('space' => true, 'class' => 'widefat'));
     a5_url_field($base_id . 'redirect', $base_name . '[redirect]', $redirect, __('Redirect:', 'custom-login-page'), array('space' => true, 'class' => 'widefat', 'placeholder' => home_url('/')));
     a5_checkbox($base_id . 'not_show_logged_in', $base_name . '[not_show_logged_in]', $not_show_logged_in, __('Don't show widget to logged in users.', 'custom-login-page'), array('space' => true));
     a5_checkgroup(false, false, $options, __('Check, where you want to show the widget. By default, it is showing on the homepage and the category pages:', 'custom-login-page'), $checkall);
 }
 function hover_shadow_color_input()
 {
     a5_text_field('hover_shadow_color', 'clp_options[hover_shadow_color]', @self::$options['hover_shadow_color'], false, array('class' => 'color-picker'));
 }
 function display_imgnmbr()
 {
     a5_text_field('image_number', 'rss_options[image_number]', self::$options['image_number'], sprintf(__('To use an image of the post instead of the post thumbnail, enter the number of that image. The word %s will bring the last image of the post.', 'rss-image-feed'), ''last''));
 }
 function read_more($instance)
 {
     $base_id = 'widget-' . $this->id_base . '-' . $this->number . '-';
     $base_name = 'widget-' . $this->id_base . '[' . $this->number . ']';
     a5_checkbox($base_id . 'readmore', $base_name . '[readmore]', $instance['readmore'], __('Check to have an additional 'read more' link at the end of the excerpt.', 'custom-login-page'), array('space' => true));
     a5_text_field($base_id . 'rmtext', $base_name . '[rmtext]', $instance['rmtext'], sprintf(__('Write here some text for the 'read more' link. By default, it is %s:', 'custom-login-page'), '[…]'), array('space' => true, 'class' => 'widefat'));
     a5_text_field($base_id . 'rmclass', $base_name . '[rmclass]', $instance['rmclass'], __('If you want to style the 'read more' link, you can enter a class here.', 'custom-login-page'), array('space' => true, 'class' => 'widefat'));
 }