Pass new ruleset
This commit is contained in:
@@ -51,8 +51,8 @@ function gallery($attr) {
|
|||||||
], $attr));
|
], $attr));
|
||||||
|
|
||||||
$id = intval($id);
|
$id = intval($id);
|
||||||
$columns = (12 % $columns == 0) ? $columns: 3;
|
$columns = (12 % $columns == 0) ? $columns : 3;
|
||||||
$grid = sprintf('col-sm-%1$s col-lg-%1$s', 12/$columns);
|
$grid = sprintf('col-sm-%1$s col-lg-%1$s', 12 / $columns);
|
||||||
|
|
||||||
if ($order === 'RAND') {
|
if ($order === 'RAND') {
|
||||||
$orderby = 'none';
|
$orderby = 'none';
|
||||||
@@ -83,7 +83,7 @@ function gallery($attr) {
|
|||||||
return $output;
|
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 = '<div class="gallery gallery-' . $id . '-' . $unique . '">';
|
$output = '<div class="gallery gallery-' . $id . '-' . $unique . '">';
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@@ -99,7 +99,7 @@ function gallery($attr) {
|
|||||||
$image = wp_get_attachment_link($id, $size, true, false);
|
$image = wp_get_attachment_link($id, $size, true, false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$output .= ($i % $columns == 0) ? '<div class="row gallery-row">': '';
|
$output .= ($i % $columns == 0) ? '<div class="row gallery-row">' : '';
|
||||||
$output .= '<div class="' . $grid .'">' . $image;
|
$output .= '<div class="' . $grid .'">' . $image;
|
||||||
|
|
||||||
if (trim($attachment->post_excerpt)) {
|
if (trim($attachment->post_excerpt)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user