//check to see if the gallery belongs to the album if (!$current_foogallery_album->includes_gallery($foogallery->ID)) { $foogallery = false; } } if (false !== $foogallery) { $album_url = foogallery_album_remove_gallery_from_link(); echo '<div id="' . $current_foogallery_album->slug . '" class="foogallery-album-header">'; echo '<p><a href="' . $album_url . '">' . foogallery_album_template_setting('back_to_album_text', '« back to album') . '</a></p>'; echo '<h2>' . $foogallery->name . '</h2>'; echo '</div>'; echo do_shortcode('[foogallery id="' . $foogallery->ID . '"]'); } else { $title_bg = foogallery_album_template_setting('title_bg', '#ffffff'); $title_font_color = foogallery_album_template_setting('title_font_color', '#000000'); $args = foogallery_album_template_setting('thumbnail_dimensions', array()); if (!empty($title_bg) || !empty($title_font_color)) { echo '<style type="text/css">'; if (!empty($title_bg)) { echo '.foogallery-album-gallery-list .foogallery-pile h3 { background: ' . $title_bg . ' !important; }'; } if (!empty($title_font_color)) { echo '.foogallery-album-gallery-list .foogallery-pile h3 { color: ' . $title_font_color . ' !important; }'; } echo '</style>'; } ?> <div id="foogallery-album-<?php echo $current_foogallery_album->ID; ?> ">
<?php /** * FooGallery All-In-One Stack Album template */ global $current_foogallery_album; global $current_foogallery_album_arguments; $args = foogallery_album_template_setting('thumbnail_dimensions', array()); $lightbox = foogallery_album_template_setting('lightbox', 'unknown'); $random_angle = foogallery_album_template_setting('random_angle', 'false'); $gutter = foogallery_album_template_setting('gutter', '40'); $delay = foogallery_album_template_setting('delay', '0'); $pile_angles = foogallery_album_template_setting('pile_angles', '2'); ?> <div id="foogallery-album-<?php echo $current_foogallery_album->ID; ?> " class="foogallery-container foogallery-stack-album"> <div class="topbar"> <span id="foogallery-stack-album-back-<?php echo $current_foogallery_album->ID; ?> " class="back">←</span> <h2><?php echo $current_foogallery_album->name; ?> </h2><h3 id="foogallery-stack-album-gallery-<?php echo $current_foogallery_album->ID; ?> "></h3> </div>