HEX
Server: nginx/1.18.0
System: Linux oas2 6.8.0-1039-oracle #40~22.04.1-Ubuntu SMP Wed Oct 29 05:11:00 UTC 2025 aarch64
User: root (0)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: /var/www/ecom/wp-content/plugins/electro-extensions/modules/post-formats/views/format-gallery.php
<div id="cfpf-format-gallery-preview" class="cf-elm-block cf-elm-block-image" style="display: none;">
	<div class="cf-elm-container">
		<div id="post-format-gallery-items">
		<?php
			// running this in the view so it can be used by multiple functions
			$ids 			= esc_attr( get_post_meta( $post->ID, 'postformat_gallery_ids', true ) );
			$attachments 	= get_posts( array(
				'post__in' 			=> explode( ",", $ids ),
				'orderby' 			=> 'post__in',
				'post_type' 		=> 'attachment',
				'post_mime_type' 	=> 'image',
				'post_status' 		=> 'any',
				'numberposts' 		=> -1
			) );

			if ( $attachments ) {
				echo '<ul class="gallery">';
				foreach ($attachments as $attachment) {
					echo '<li>' . wp_get_attachment_image( $attachment->ID, 'thumbnail' ) . '</li>';
				}
				echo '</ul>';
			}
		?>
		</div>
		<p class="none"><a href="#" class="button"><?php ( $ids ) ? esc_html_e( 'Edit Gallery', 'electro-extensions' ) : esc_html_e( 'Add Images to Gallery', 'electro-extensions' ); ?></a></p>
		<input type="hidden" name="postformat_gallery_ids" value="<?php echo esc_attr( get_post_meta( $post->ID, 'postformat_gallery_ids', true ) ); ?>" id="cfpf-format-gallery-ids-field">
		<input type="hidden" name="_format_gallery_nonce" value="<?php echo wp_create_nonce( 'do_ajax' ); ?>" id="cfpf-format-gallery-nonce-field" >
	</div>
</div>