Skip to content

Commit

Permalink
make sure to default to grid view when using the mpp-show-gallery sho…
Browse files Browse the repository at this point in the history
…rtcode and no view is given
  • Loading branch information
sbrajesh committed Feb 2, 2017
1 parent 4d0de6c commit 1822fc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/shortcodes/mpp-shortcode-gallery-list.php
Expand Up @@ -136,7 +136,7 @@ function mpp_shortcode_show_gallery( $atts = null, $content = '' ) {
'meta_key' => '',
'meta_value' => '',
'column' => 4,
'view' => '',
'view' => 'grid',
'show_pagination'=> 1,
'lightbox' => 0,
);
Expand All @@ -160,7 +160,7 @@ function mpp_shortcode_show_gallery( $atts = null, $content = '' ) {
_prime_post_caches( $attachments, true, true );

$gallery = mpp_get_gallery( $gallery_id );
//if gallery does not exist, there is no proint in further proceeding
//if gallery does not exist, there is no point in further proceeding
if ( ! $gallery ) {
return '';
}
Expand Down Expand Up @@ -222,6 +222,7 @@ function mpp_shortcode_show_gallery( $atts = null, $content = '' ) {
if ( $located ) {
require $located;
}

$content = ob_get_clean();
}

Expand Down

0 comments on commit 1822fc6

Please sign in to comment.