diff --git a/inc/widgets/largo-recent-posts.php b/inc/widgets/largo-recent-posts.php index 3e293c5d2..92f3dbbde 100644 --- a/inc/widgets/largo-recent-posts.php +++ b/inc/widgets/largo-recent-posts.php @@ -134,6 +134,7 @@ function update( $new_instance, $old_instance ) { $instance['excerpt_display'] = sanitize_key( $new_instance['excerpt_display'] ); $instance['num_sentences'] = intval( $new_instance['num_sentences'] ); $instance['show_byline'] = ! empty($new_instance['show_byline']); + $instance['hide_byline_date'] = ! empty($new_instance['hide_byline_date']); $instance['show_top_term'] = ! empty($new_instance['show_top_term']); $instance['show_icon'] = ! empty($new_instance['show_icon']); $instance['cat'] = intval( $new_instance['cat'] ); @@ -156,6 +157,7 @@ function form( $instance ) { 'excerpt_display' => 'num_sentences', 'num_sentences' => 2, 'show_byline' => '', + 'hide_byline_date' => '', 'show_top_term' => '', 'show_icon' => '', 'cat' => 0, @@ -169,6 +171,7 @@ function form( $instance ) { $instance = wp_parse_args( (array) $instance, $defaults ); $duplicates = $instance['avoid_duplicates'] ? 'checked="checked"' : ''; $showbyline = $instance['show_byline'] ? 'checked="checked"' : ''; + $hidebylinedate = $instance['hide_byline_date'] ? 'checked="checked"' : ''; $show_top_term = $instance['show_top_term'] ? 'checked="checked"' : ''; $show_icon = $instance['show_icon'] ? 'checked="checked"' : ''; ?> @@ -224,6 +227,10 @@ function form( $instance ) { id="get_field_id( 'show_byline' ); ?>" name="get_field_name( 'show_byline' ); ?>" />

+

+ id="get_field_id( 'hide_byline_date' ); ?>" name="get_field_name( 'hide_byline_date' ); ?>" /> +

+

id="get_field_id( 'show_top_term' ); ?>" name="get_field_name( 'show_top_term' ); ?>" />

diff --git a/partials/widget-content.php b/partials/widget-content.php index a7c269294..c9481d4e3 100644 --- a/partials/widget-content.php +++ b/partials/widget-content.php @@ -5,6 +5,7 @@ largo_maybe_top_term(); } + // the thumbnail image (if we're using one) if ($thumb == 'small') { $img_location = $instance['image_align'] != '' ? $instance['image_align'] : 'left'; @@ -35,7 +36,7 @@ - +