function nicethemes_gallery_shortcode($atts) { extract(shortcode_atts(array('columns' => '4', 'rows' => false, 'ids' => null), $atts)); $html = nicethemes_gallery(array('echo' => false, 'columns' => $columns, 'rows' => $rows, 'ids' => $ids)); return $html; }
<!-- BEGIN #content --> <section id="content" class="full-width <?php echo $post->post_name; ?>"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <header> <h1 class="entry-title"><?php the_title(); ?></h1> </header> <div class="entry clearfix"> <?php the_content( __( 'Continue reading', 'nicethemes' ) . ' »' ); ?> </div> <?php nicethemes_gallery(); ?> <?php endwhile; ?> <?php else : ?> <header> <h2><?php _e( 'Not Found', 'nicethemes' ); ?></h2> </header> <p><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'nicethemes' ); ?></p> <?php get_search_form(); ?> <?php endif; ?> <!-- END #content -->