From 01a097734829270895a5280a76c9058cf5313b06 Mon Sep 17 00:00:00 2001 From: Ben Keith Date: Fri, 7 Dec 2018 15:29:21 -0500 Subject: [PATCH] Fix an undefined in partials/widget-content.php Part of https://github.com/INN/largo/issues/1492 --- partials/widget-content.php | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/partials/widget-content.php b/partials/widget-content.php index d189c03e7..750540473 100644 --- a/partials/widget-content.php +++ b/partials/widget-content.php @@ -8,26 +8,32 @@ // the thumbnail image (if we're using one) if ($thumb == 'small') { - $img_location = $instance['image_align'] != '' ? $instance['image_align'] : 'left'; - $img_attr = array('class' => $img_location . '-align'); - $img_attr['class'] .= " attachment-small"; ?> - - $img_location . '-align' ); + $img_attr['class'] .= " attachment-small"; + ?> + + $img_location . '-align'); - $img_attr['class'] .= " attachment-thumbnail"; ?> - - + + - - + +
@@ -40,8 +46,8 @@ +if ( $excerpt == 'num_sentences' ) { ?>

- +