HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/themes/ideation-and-intent/sidebar-gallery.php
<?php
/**
 * The sidebar which showcases images attached to posts.
 *
 * @package IdeationAndIntent
 * @since Ideation and Intent 1.0
 */

$galleries = Ideation_Gallery_Sidebar::$galleries;

if ( empty( $galleries ) )
	return;

?>

<div id="sidebar-gallery" class="sidebar sidebar-gallery" role="complementary">
	<h1 class="widget-title"><?php _e( 'Photos', 'ideation' ); ?></h1>

	<?php foreach( (array) $galleries as $key => $gallery ) : ?>

		<aside class="<?php echo esc_attr( 'ideation-gallery' ); ?>">

			<?php foreach ( (array) $gallery['rows'] as $row => $rows ) : ?>

				<div class="<?php echo esc_attr( 'ideation-gallery-row ' . $gallery['class'][$row] ); ?>">
				<?php foreach ( (array) $rows as $image_id ) : ?>

					<a href="<?php echo get_permalink( $gallery['parent_id'] );  ?>">
						<?php echo wp_get_attachment_image( $image_id, $gallery['sizes'][$row], true ); ?>
					</a>

				<?php endforeach; ?>

				</div>

			<?php endforeach; ?>

		</aside>

	<?php endforeach; ?>

</div><!-- #attached-images .sidebar -->