/** * Outputs the options form on admin * * @param array $instance The widget options */ public function form($instance) { // outputs the options form on admin //* Merge with defaults $instance = wp_parse_args((array) $instance, $this->defaults); ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " value="<?php echo esc_attr($instance['title']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('bdisplay'); ?> "><?php _be('Display on', 'bbessentials'); ?> :</label> <select id="<?php echo $this->get_field_id('bdisplay'); ?> " name="<?php echo $this->get_field_name('bdisplay'); ?> "> <option value="left" <?php selected('left', $instance['bdisplay']); ?> ><?php _be('Left', 'bbessentials'); ?> </option> <option value="right" <?php selected('right', $instance['bdisplay']); ?> ><?php _be('Right', 'bbessentials'); ?> </option> <option value="bottom" <?php selected('bottom', $instance['bdisplay']); ?> ><?php _be('Bottom', 'bbessentials'); ?> </option> </select> </p> <div class="genesis-widget-column-box genesis-widget-column-box-top"> <p> <label for="<?php echo $this->get_field_id('facebookurl'); ?> "><?php _be('Url to Facebook Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('facebookurl'); ?> " name="<?php echo $this->get_field_name('facebookurl'); ?> " value="<?php echo esc_attr($instance['facebookurl']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('facebooktext'); ?> "><?php _be('Text for Facebook Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('facebooktext'); ?> " name="<?php echo $this->get_field_name('facebooktext'); ?> " value="<?php echo esc_attr($instance['facebooktext']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('twitterurl'); ?> "><?php _be('Url to Twitter Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('twitterurl'); ?> " name="<?php echo $this->get_field_name('twitterurl'); ?> " value="<?php echo esc_attr($instance['twitterurl']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('twittertext'); ?> "><?php _be('Text for Twitter Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('twittertext'); ?> " name="<?php echo $this->get_field_name('twittertext'); ?> " value="<?php echo esc_attr($instance['twittertext']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('googleplusurl'); ?> "><?php _be('Url to Google+ Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('googleplusurl'); ?> " name="<?php echo $this->get_field_name('googleplusurl'); ?> " value="<?php echo esc_attr($instance['googleplusurl']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('googleplustext'); ?> "><?php _be('Text for Google+ Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('googleplustext'); ?> " name="<?php echo $this->get_field_name('googleplustext'); ?> " value="<?php echo esc_attr($instance['googleplustext']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('youtubeurl'); ?> "><?php _be('Url to Youtube Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('youtubeurl'); ?> " name="<?php echo $this->get_field_name('youtubeurl'); ?> " value="<?php echo esc_attr($instance['youtubeurl']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('youtubetext'); ?> "><?php _be('Text for Youtube Page', 'bbessentials'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('youtubetext'); ?> " name="<?php echo $this->get_field_name('youtubetext'); ?> " value="<?php echo esc_attr($instance['youtubetext']); ?> " class="widefat" /> </p> </div> <div class="genesis-widget-column-box"> <script type='text/javascript'> jQuery(document).ready(function($) { $('.my-color-picker').wpColorPicker(); }); </script> <p> <label for="<?php echo $this->get_field_id('outcolor'); ?> "><?php _be('Out Color', 'bbessentials'); ?> </label> </p> <p> <input class="my-color-picker" type="text" id="<?php echo $this->get_field_id('outcolor'); ?> " name="<?php echo $this->get_field_name('outcolor'); ?> " value="<?php echo esc_attr($instance['outcolor']); ?> " /> </p> <p> <label for="<?php echo $this->get_field_id('hovercolor'); ?> "><?php _be('Hover Color', 'bbessentials'); ?> </label> </p> <p> <input class="my-color-picker" type="text" id="<?php echo $this->get_field_id('hovercolor'); ?> " name="<?php echo $this->get_field_name('hovercolor'); ?> " value="<?php echo esc_attr($instance['hovercolor']); ?> " /> </p> </div> <div class= "genesis-widget-column-box"> <p> <label for="<?php echo $this->get_field_id('target'); ?> "><?php _be('Target when clicked', 'bbessentials'); ?> :</label> <select id="<?php echo $this->get_field_id('target'); ?> " name="<?php echo $this->get_field_name('target'); ?> "> <option value="_blank" <?php selected('_blank', $instance['target']); ?> ><?php _be('Blank window', 'bbessentials'); ?> </option> <option value="_self" <?php selected('_self', $instance['target']); ?> ><?php _be('In self', 'bbessentials'); ?> </option> </select> </p> </div> <?php }
/** * Echo the settings update form. * * @since 0.1.8 * * @param array $instance Current settings */ function form($instance) { //* Merge with defaults $instance = wp_parse_args((array) $instance, $this->defaults); ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " value="<?php echo esc_attr($instance['title']); ?> " class="widefat" /> </p> <div class="genesis-widget-column"> <div class="genesis-widget-column-box genesis-widget-column-box-top"> <p> <label for="<?php echo $this->get_field_id('posts_cat'); ?> "><?php _e('Category', 'genesis'); ?> :</label> <?php $categories_args = array('name' => $this->get_field_name('posts_cat'), 'selected' => $instance['posts_cat'], 'orderby' => 'Name', 'hierarchical' => 1, 'show_option_all' => __('All Categories', 'genesis'), 'hide_empty' => '0'); wp_dropdown_categories($categories_args); ?> </p> <p> <label for="<?php echo $this->get_field_id('posts_num'); ?> "><?php _e('Number of Posts to Show', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('posts_num'); ?> " name="<?php echo $this->get_field_name('posts_num'); ?> " value="<?php echo esc_attr($instance['posts_num']); ?> " size="2" /> </p> <p> <label for="<?php echo $this->get_field_id('posts_offset'); ?> "><?php _e('Number of Posts to Offset', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('posts_offset'); ?> " name="<?php echo $this->get_field_name('posts_offset'); ?> " value="<?php echo esc_attr($instance['posts_offset']); ?> " size="2" /> </p> <p> <label for="<?php echo $this->get_field_id('orderby'); ?> "><?php _e('Order By', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('orderby'); ?> " name="<?php echo $this->get_field_name('orderby'); ?> "> <option value="date" <?php selected('date', $instance['orderby']); ?> ><?php _e('Date', 'genesis'); ?> </option> <option value="title" <?php selected('title', $instance['orderby']); ?> ><?php _e('Title', 'genesis'); ?> </option> <option value="parent" <?php selected('parent', $instance['orderby']); ?> ><?php _e('Parent', 'genesis'); ?> </option> <option value="ID" <?php selected('ID', $instance['orderby']); ?> ><?php _e('ID', 'genesis'); ?> </option> <option value="comment_count" <?php selected('comment_count', $instance['orderby']); ?> ><?php _e('Comment Count', 'genesis'); ?> </option> <option value="rand" <?php selected('rand', $instance['orderby']); ?> ><?php _e('Random', 'genesis'); ?> </option> </select> </p> <p> <label for="<?php echo $this->get_field_id('order'); ?> "><?php _e('Sort Order', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('order'); ?> " name="<?php echo $this->get_field_name('order'); ?> "> <option value="DESC" <?php selected('DESC', $instance['order']); ?> ><?php _e('Descending (3, 2, 1)', 'genesis'); ?> </option> <option value="ASC" <?php selected('ASC', $instance['order']); ?> ><?php _e('Ascending (1, 2, 3)', 'genesis'); ?> </option> </select> </p> <p> <input id="<?php echo $this->get_field_id('exclude_displayed'); ?> " type="checkbox" name="<?php echo $this->get_field_name('exclude_displayed'); ?> " value="1" <?php checked($instance['exclude_displayed']); ?> /> <label for="<?php echo $this->get_field_id('exclude_displayed'); ?> "><?php _e('Exclude Previously Displayed Posts?', 'genesis'); ?> </label> </p> </div> <div class="genesis-widget-column-box"> <p> <label for="<?php echo $this->get_field_id('num_cols'); ?> "><?php _be('Number cols', 'bbessentials'); ?> :</label> <select id="<?php echo $this->get_field_id('num_cols'); ?> " name="<?php echo $this->get_field_name('num_cols'); ?> "> <option value="1" <?php selected('1', $instance['num_cols']); ?> >- 1 -</option> <option value="2" <?php selected('2', $instance['num_cols']); ?> >- 2 -</option> <option value="3" <?php selected('3', $instance['num_cols']); ?> >- 3 -</option> <option value="4" <?php selected('4', $instance['num_cols']); ?> >- 4 -</option> <option value="5" <?php selected('5', $instance['num_cols']); ?> >- 5 -</option> <option value="6" <?php selected('6', $instance['num_cols']); ?> >- 6 -</option> </select> </p> <p> <label for="<?php echo $this->get_field_id('layout_style'); ?> "><?php _be('Layout style', 'bbessentials'); ?> :</label> <select id="<?php echo $this->get_field_id('layout_style'); ?> " name="<?php echo $this->get_field_name('layout_style'); ?> "> <option value="style1" <?php selected('style1', $instance['layout_style']); ?> >- style 1 -</option> <option value="style2" <?php selected('style2', $instance['layout_style']); ?> >- style 2 -</option> <option value="style3" <?php selected('style3', $instance['layout_style']); ?> >- style 3 -</option> <option value="style4" <?php selected('style4', $instance['layout_style']); ?> >- style 4 -</option> <option value="style5" <?php selected('style5', $instance['layout_style']); ?> >- style 5 -</option> </select> </p> <p> <input id="<?php echo $this->get_field_id('permalink_button'); ?> " type="checkbox" name="<?php echo $this->get_field_name('permalink_button'); ?> " value="1" <?php checked($instance['permalink_button']); ?> /> <label for="<?php echo $this->get_field_id('permalink_button'); ?> "><?php _be('Show permalink button', 'bbessentials'); ?> </label> </p> <p> <label for="<?php echo $this->get_field_id('permalink_button_style'); ?> "><?php _be('Permalink Button Style', 'bbessentials'); ?> :</label> <select id="<?php echo $this->get_field_id('permalink_button_style'); ?> " name="<?php echo $this->get_field_name('permalink_button_style'); ?> "> <option value="flbuilder" <?php selected('flbuilder', $instance['permalink_button_style']); ?> >FL Builder</option> <option value="themed" <?php selected('themed', $instance['permalink_button_style']); ?> ><?php _be('Themed style', 'bbessentials'); ?> </option> </select> </p> <p> <label for="<?php echo $this->get_field_id('permalink_button_class'); ?> "><?php _be('Permalink Button Class', 'bbessentials'); ?> :</label> <select id="<?php echo $this->get_field_id('permalink_button_class'); ?> " name="<?php echo $this->get_field_name('permalink_button_class'); ?> "> <option value="default" <?php selected('default', $instance['permalink_button_class']); ?> ><?php _e('Default', 'bbessentials'); ?> </option> <option value="primary" <?php selected('primary', $instance['permalink_button_class']); ?> ><?php _e('Primary', 'bbessentials'); ?> </option> <option value="success" <?php selected('success', $instance['permalink_button_class']); ?> ><?php _e('Success', 'bbessentials'); ?> </option> <option value="info" <?php selected('info', $instance['permalink_button_class']); ?> ><?php _be('Info', 'bbessentials'); ?> </option> </select> </p> <p> <label for="<?php echo $this->get_field_id('permalink_button_align'); ?> "><?php _be('Permalink Button Align', 'bbessentials'); ?> :</label> <select id="<?php echo $this->get_field_id('permalink_button_align'); ?> " name="<?php echo $this->get_field_name('permalink_button_align'); ?> "> <option value="left" <?php selected('default', $instance['permalink_button_align']); ?> ><?php _e('Left', 'bbessentials'); ?> </option> <option value="center" <?php selected('center', $instance['permalink_button_align']); ?> ><?php _e('Center', 'bbessentials'); ?> </option> <option value="right" <?php selected('right', $instance['permalink_button_align']); ?> ><?php _e('Right', 'bbessentials'); ?> </option> </select> </p> </div> <div class="genesis-widget-column-box"> <p> <input id="<?php echo $this->get_field_id('show_gravatar'); ?> " type="checkbox" name="<?php echo $this->get_field_name('show_gravatar'); ?> " value="1" <?php checked($instance['show_gravatar']); ?> /> <label for="<?php echo $this->get_field_id('show_gravatar'); ?> "><?php _e('Show Author Gravatar', 'genesis'); ?> </label> </p> <p> <label for="<?php echo $this->get_field_id('gravatar_size'); ?> "><?php _e('Gravatar Size', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('gravatar_size'); ?> " name="<?php echo $this->get_field_name('gravatar_size'); ?> "> <option value="45" <?php selected(45, $instance['gravatar_size']); ?> ><?php _e('Small (45px)', 'genesis'); ?> </option> <option value="65" <?php selected(65, $instance['gravatar_size']); ?> ><?php _e('Medium (65px)', 'genesis'); ?> </option> <option value="85" <?php selected(85, $instance['gravatar_size']); ?> ><?php _e('Large (85px)', 'genesis'); ?> </option> <option value="125" <?php selected(105, $instance['gravatar_size']); ?> ><?php _e('Extra Large (125px)', 'genesis'); ?> </option> </select> </p> <p> <label for="<?php echo $this->get_field_id('gravatar_alignment'); ?> "><?php _e('Gravatar Alignment', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('gravatar_alignment'); ?> " name="<?php echo $this->get_field_name('gravatar_alignment'); ?> "> <option value="alignnone">- <?php _e('None', 'genesis'); ?> -</option> <option value="alignleft" <?php selected('alignleft', $instance['gravatar_alignment']); ?> ><?php _e('Left', 'genesis'); ?> </option> <option value="alignright" <?php selected('alignright', $instance['gravatar_alignment']); ?> ><?php _e('Right', 'genesis'); ?> </option> </select> </p> </div> <div class="genesis-widget-column-box"> <p> <input id="<?php echo $this->get_field_id('show_image'); ?> " type="checkbox" name="<?php echo $this->get_field_name('show_image'); ?> " value="1" <?php checked($instance['show_image']); ?> /> <label for="<?php echo $this->get_field_id('show_image'); ?> "><?php _e('Show Featured Image', 'genesis'); ?> </label> </p> <p> <label for="<?php echo $this->get_field_id('image_size'); ?> "><?php _e('Image Size', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('image_size'); ?> " class="genesis-image-size-selector" name="<?php echo $this->get_field_name('image_size'); ?> "> <option value="thumbnail" <?php echo selected('thumbnail', $instance['image_size'], FALSE); ?> >thumbnail (<?php echo get_option('thumbnail_size_w'); ?> x<?php echo get_option('thumbnail_size_h'); ?> )</option> <option value="medium" <?php echo selected('medium', $instance['image_size'], FALSE); ?> >medium (<?php echo get_option('medium_size_w'); ?> x<?php echo get_option('medium_size_h'); ?> )</option> <option value="large" <?php echo selected('large', $instance['image_size'], FALSE); ?> >large (<?php echo get_option('large_size_w'); ?> x<?php echo get_option('large_size_h'); ?> )</option> <?php $sizes = genesis_get_additional_image_sizes(); foreach ((array) $sizes as $name => $size) { echo '<option value="' . esc_attr($name) . '" ' . selected($name, $instance['image_size'], FALSE) . '>' . esc_html($name) . ' ( ' . $size['width'] . 'x' . $size['height'] . ' )</option>'; } ?> </select> </p> <p> <label for="<?php echo $this->get_field_id('image_alignment'); ?> "><?php _e('Image Alignment', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('image_alignment'); ?> " name="<?php echo $this->get_field_name('image_alignment'); ?> "> <option value="alignnone">- <?php _e('None', 'genesis'); ?> -</option> <option value="alignleft" <?php selected('alignleft', $instance['image_alignment']); ?> ><?php _e('Left', 'genesis'); ?> </option> <option value="alignright" <?php selected('alignright', $instance['image_alignment']); ?> ><?php _e('Right', 'genesis'); ?> </option> <option value="aligncenter" <?php selected('aligncenter', $instance['image_alignment']); ?> ><?php _e('Center', 'genesis'); ?> </option> </select> </p> </div> </div> <div class="genesis-widget-column genesis-widget-column-right"> <div class="genesis-widget-column-box genesis-widget-column-box-top"> <p> <input id="<?php echo $this->get_field_id('show_title'); ?> " type="checkbox" name="<?php echo $this->get_field_name('show_title'); ?> " value="1" <?php checked($instance['show_title']); ?> /> <label for="<?php echo $this->get_field_id('show_title'); ?> "><?php _e('Show Post Title', 'genesis'); ?> </label> </p> <p> <input id="<?php echo $this->get_field_id('show_byline'); ?> " type="checkbox" name="<?php echo $this->get_field_name('show_byline'); ?> " value="1" <?php checked($instance['show_byline']); ?> /> <label for="<?php echo $this->get_field_id('show_byline'); ?> "><?php _e('Show Post Info', 'genesis'); ?> </label> <input type="text" id="<?php echo $this->get_field_id('post_info'); ?> " name="<?php echo $this->get_field_name('post_info'); ?> " value="<?php echo esc_attr($instance['post_info']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('show_content'); ?> "><?php _e('Content Type', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('show_content'); ?> " name="<?php echo $this->get_field_name('show_content'); ?> "> <option value="content" <?php selected('content', $instance['show_content']); ?> ><?php _e('Show Content', 'genesis'); ?> </option> <option value="excerpt" <?php selected('excerpt', $instance['show_content']); ?> ><?php _e('Show Excerpt', 'genesis'); ?> </option> <option value="content-limit" <?php selected('content-limit', $instance['show_content']); ?> ><?php _e('Show Content Limit', 'genesis'); ?> </option> <option value="" <?php selected('', $instance['show_content']); ?> ><?php _e('No Content', 'genesis'); ?> </option> </select> <br /> <label for="<?php echo $this->get_field_id('content_limit'); ?> "><?php _e('Limit content to', 'genesis'); ?> <input type="text" id="<?php echo $this->get_field_id('image_alignment'); ?> " name="<?php echo $this->get_field_name('content_limit'); ?> " value="<?php echo esc_attr(intval($instance['content_limit'])); ?> " size="3" /> <?php _e('characters', 'genesis'); ?> </label> </p> <p> <label for="<?php echo $this->get_field_id('more_text'); ?> "><?php _e('More Text (if applicable)', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('more_text'); ?> " name="<?php echo $this->get_field_name('more_text'); ?> " value="<?php echo esc_attr($instance['more_text']); ?> " /> </p> </div> <div class="genesis-widget-column-box"> <p><?php _e('To display an unordered list of more posts from this category, please fill out the information below', 'genesis'); ?> :</p> <p> <label for="<?php echo $this->get_field_id('extra_title'); ?> "><?php _e('Title', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('extra_title'); ?> " name="<?php echo $this->get_field_name('extra_title'); ?> " value="<?php echo esc_attr($instance['extra_title']); ?> " class="widefat" /> </p> <p> <label for="<?php echo $this->get_field_id('extra_num'); ?> "><?php _e('Number of Posts to Show', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('extra_num'); ?> " name="<?php echo $this->get_field_name('extra_num'); ?> " value="<?php echo esc_attr($instance['extra_num']); ?> " size="2" /> </p> </div> <div class="genesis-widget-column-box"> <p> <input id="<?php echo $this->get_field_id('more_from_category'); ?> " type="checkbox" name="<?php echo $this->get_field_name('more_from_category'); ?> " value="1" <?php checked($instance['more_from_category']); ?> /> <label for="<?php echo $this->get_field_id('more_from_category'); ?> "><?php _e('Show Category Archive Link', 'genesis'); ?> </label> </p> <p> <label for="<?php echo $this->get_field_id('more_from_category_text'); ?> "><?php _e('Link Text', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('more_from_category_text'); ?> " name="<?php echo $this->get_field_name('more_from_category_text'); ?> " value="<?php echo esc_attr($instance['more_from_category_text']); ?> " class="widefat" /> </p> </div> </div> <?php }
/** * Outputs the options form on admin * * @param array $instance The widget options */ public function form($instance) { // outputs the options form on admin //* Merge with defaults $instance = wp_parse_args((array) $instance, $this->defaults); ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " value="<?php echo esc_attr($instance['title']); ?> " class="widefat" /> </p> <div class="genesis-widget-column"> <div class="genesis-widget-column-box genisis-widget-column-box-top"> <p> <label for="<?php echo $this->get_field_id('posts_cat'); ?> "><?php _e('Category', 'genesis'); ?> :</label> <?php $categories_args = array('name' => $this->get_field_name('posts_cat'), 'selected' => $instance['posts_cat'], 'orderby' => 'Name', 'hierarchical' => 1, 'show_option_all' => __('All Categories', 'genesis'), 'hide_empty' => '0'); wp_dropdown_categories($categories_args); ?> </p> <p> <label for="<?php echo $this->get_field_id('posts_num'); ?> "><?php _e('Number of Posts to Show', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('posts_num'); ?> " name="<?php echo $this->get_field_name('posts_num'); ?> " value="<?php echo esc_attr($instance['posts_num']); ?> " size="2" /> </p> <p> <label for="<?php echo $this->get_field_id('posts_offset'); ?> "><?php _e('Number of Posts to Offset', 'genesis'); ?> :</label> <input type="text" id="<?php echo $this->get_field_id('posts_offset'); ?> " name="<?php echo $this->get_field_name('posts_offset'); ?> " value="<?php echo esc_attr($instance['posts_offset']); ?> " size="2" /> </p> <p> <label for="<?php echo $this->get_field_id('orderby'); ?> "><?php _e('Order By', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('orderby'); ?> " name="<?php echo $this->get_field_name('orderby'); ?> "> <option value="date" <?php selected('date', $instance['orderby']); ?> ><?php _e('Date', 'genesis'); ?> </option> <option value="title" <?php selected('title', $instance['orderby']); ?> ><?php _e('Title', 'genesis'); ?> </option> <option value="parent" <?php selected('parent', $instance['orderby']); ?> ><?php _e('Parent', 'genesis'); ?> </option> <option value="ID" <?php selected('ID', $instance['orderby']); ?> ><?php _e('ID', 'genesis'); ?> </option> <option value="comment_count" <?php selected('comment_count', $instance['orderby']); ?> ><?php _e('Comment Count', 'genesis'); ?> </option> <option value="rand" <?php selected('rand', $instance['orderby']); ?> ><?php _e('Random', 'genesis'); ?> </option> </select> </p> <p> <label for="<?php echo $this->get_field_id('order'); ?> "><?php _e('Sort Order', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('order'); ?> " name="<?php echo $this->get_field_name('order'); ?> "> <option value="DESC" <?php selected('DESC', $instance['order']); ?> ><?php _e('Descending (3, 2, 1)', 'genesis'); ?> </option> <option value="ASC" <?php selected('ASC', $instance['order']); ?> ><?php _e('Ascending (1, 2, 3)', 'genesis'); ?> </option> </select> </p> <p> <input id="<?php echo $this->get_field_id('exclude_displayed'); ?> " type="checkbox" name="<?php echo $this->get_field_name('exclude_displayed'); ?> " value="1" <?php checked($instance['exclude_displayed']); ?> /> <label for="<?php echo $this->get_field_id('exclude_displayed'); ?> "><?php _e('Exclude Previously Displayed Posts?', 'genesis'); ?> </label> </p> </div> <div class= "genesis-widget-column-box"> <p> <label for="<?php echo $this->get_field_id('displayorder'); ?> "><?php _e('Display Order', 'genesis'); ?> :</label> <select id="<?php echo $this->get_field_id('displayorder'); ?> " name="<?php echo $this->get_field_name('displayorder'); ?> "> <option value="titlefirst" <?php selected('titlefirst', $instance['displayorder']); ?> ><?php _be('Title, then date', 'bbessentials'); ?> </option> <option value="datefirst" <?php selected('datefirst', $instance['displayorder']); ?> ><?php _be('Date, then title', 'bbessentials'); ?> </option> <option value="titleonly" <?php selected('titleonly', $instance['displayorder']); ?> ><?php _be('Title only', 'bbessentials'); ?> </option> </select> </p> </div> </div> <?php }