Skip to content

Commit

Permalink
Merge pull request #1364 from leogono/patch-1
Browse files Browse the repository at this point in the history
Change gallery columns default to 3
  • Loading branch information
retlehs committed Mar 3, 2015
2 parents 9ee4149 + 566563e commit f0d825b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ function gallery($attr) {
'itemtag' => '',
'icontag' => '',
'captiontag' => '',
'columns' => 4,
'columns' => 3,
'size' => 'thumbnail',
'include' => '',
'exclude' => '',
'link' => ''
], $attr));

$id = intval($id);
$columns = (12 % $columns == 0) ? $columns: 4;
$columns = (12 % $columns == 0) ? $columns: 3;
$grid = sprintf('col-sm-%1$s col-lg-%1$s', 12/$columns);

if ($order === 'RAND') {
Expand Down

0 comments on commit f0d825b

Please sign in to comment.