diff --git a/lib/gallery.php b/lib/gallery.php index b17fa62..9443c8d 100644 --- a/lib/gallery.php +++ b/lib/gallery.php @@ -51,8 +51,8 @@ function gallery($attr) { ], $attr)); $id = intval($id); - $columns = (12 % $columns == 0) ? $columns: 3; - $grid = sprintf('col-sm-%1$s col-lg-%1$s', 12/$columns); + $columns = (12 % $columns == 0) ? $columns : 3; + $grid = sprintf('col-sm-%1$s col-lg-%1$s', 12 / $columns); if ($order === 'RAND') { $orderby = 'none'; @@ -83,7 +83,7 @@ function gallery($attr) { return $output; } - $unique = (get_query_var('page')) ? $instance . '-p' . get_query_var('page'): $instance; + $unique = (get_query_var('page')) ? $instance . '-p' . get_query_var('page') : $instance; $output = '