<div id="photo-wrap" class="clearfix"> <div class="section-title clearfix"> <h3><i class="fa fa-picture-o"></i> <?php echo $radio_photo_title; ?> </h3> <a href="<?php echo esc_url(get_permalink($radio_photo_page_link)); ?> " class="more"><?php echo $radio_photo_text_link; ?> </a> </div> <div class="weekly-photo"> <?php wpsp_get_albums_by_term($album_term_id, $radio_photo_num, $radio_photo_num); ?> </div> <!-- .weekly-photo --> </div> <!-- .lastest-gallery --> <div class="callout clearfix"> <?php wpsp_callout($callout_title, $callout_desc, $callout_button, $callout_link); ?> </div> <!-- .callout --> </main><!-- #main --> </div><!-- #primary --> <?php get_footer();
/** * Photogallery * * Display photo by individule or all albums * */ function wpsp_photogallery_shortcode($atts, $content = null) { global $post; ob_start(); extract(shortcode_atts(array('term_id' => null, 'post_num' => null, 'cols' => null), $atts)); wpsp_get_albums_by_term($term_id, $post_num, $cols); return ob_get_clean(); }
<h3><i class="fa fa-film"></i> <?php echo $tv_photo_title; ?> </h3> <a href="<?php echo esc_url(get_permalink($tv_photo_page_link)); ?> " class="more"><?php echo $tv_photo_text_link; ?> </a> </div> <div id="tv-team" class="filmstrip"> <div class="strip-top"></div> <?php wpsp_get_albums_by_term($album_term_id, 10, $tv_photo_num); ?> <div class="strip-bottom"></div> </div> <!-- .filmstrip --> </div> <!-- .lastest-gallery --> <div class="callout clearfix"> <?php wpsp_callout($callout_title, $callout_desc, $callout_button, $callout_link); ?> </div> <!-- .callout --> </main><!-- #main --> </div><!-- #primary --> <?php get_footer();