PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/stockphotos.kerihosting.com/wp-content/themes/stocky/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/stockphotos.kerihosting.com/wp-content/themes/stocky/single-download.php

<?php get_header(); ?>
<div id="single_product_page">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<?php
		$attachments = array();
		$files = edd_get_download_files( $post->ID );
			if ( !empty ( $files ) ) :
				$exclude = wp_list_pluck( $files, 'attachment_id' ); // exclude the actual download files
				$args = array(
					'post_type' => 'attachment',
					'numberposts' => null,
					'post_status' => null,
					'post_mime_type' => 'image',
					'order'		  => 'ASC',
					'post_parent' => $post->ID,
					'posts_per_page'	=> '99',
					'post__not_in' => $exclude
				);
				$attachments = get_posts($args);
			endif;

		?>
	<div <?php post_class(); ?>>

		<div id="single_item_wrap" class="clearfix">

			<div class="posts-wrap">

				<div id="product_images">

					<?php if (get_post_meta($post->ID, 'dc_embed_link', true) != '') { // if there is a video ?>

						<?php echo wp_oembed_get(get_post_meta($post->ID, 'dc_embed_link', true), array('width'=>780)); ?>

					<?php } else { // if no video ?>
					
						<?php if (has_post_thumbnail()) { ?>
							<a id="main_product_image" href="<?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'product_page_image'); echo esc_attr($image_url[0]); ?>" class="lightbox">
								<span class="preview"></span>
								<?php the_post_thumbnail( 'product_page_image' ); ?>
							</a>
	
						<?php } ?>
							
						<?php if (get_post_meta($post->ID, 'dc_file_list', true) != '') { // if there are images added to the meta box 
							
							// Additional Gallery Images via meta box
							dcs_cmb2_gallery_images( 'dc_file_list', 'product_med' );
							
						 } // end if no other images ?>
						
					<?php } // end if no video ?>
					
				</div><!-- end #product_images -->
			</div>							

				<div id="sidebar" class="clearfix">

					<div id="product_info" class="clearfix">
						<div class="clearfix">
							<?php echo get_avatar( get_the_author_meta('email'), '100' ); ?>
							<div id="post_user">
								<div><strong><?php the_title(); ?></strong></div>
								<div>
								<?php
									if ( class_exists( 'EDD_Front_End_Submissions' ) ) :
										$url = EDD_FES()->vendors->get_vendor_store_url( get_the_author_meta( 'ID' ) );
									else :
										$url = get_post_type_archive_link( 'download' );
									endif;
									$string = sprintf( __('<em>by</em> <a href="%1$s">%2$s</a>', 'stocky'), $url, get_the_author_meta( 'display_name' ) );
									echo $string;
								?>
								</div>
							</div>
						</div>

					</div>

					<div id="product_pricing">
						<?php
						$button_text = get_post_meta($post->ID, '_edd_purchase_text', true) ? get_post_meta($post->ID, '_edd_purchase_text', true) : __('Add To Cart', 'stocky');
						$style = get_post_meta($post->ID, '_edd_purchase_style', true) ? get_post_meta($post->ID, '_edd_purchase_style', true) : 'button';
						$color = get_post_meta($post->ID, '_edd_purchase_color', true);
						if($color) { $color = str_replace(' ', '_', $color); }
						?>

						<?php echo edd_get_purchase_link( array( 'text' => $button_text ) ); ?>
					</div>

					<?php echo dcs_star_ratings(); ?>

					<?php echo dcs_exif_data(); ?>

					<div id="product_meta_wrap">

						<?php if ((get_the_term_list( $post->ID, 'download_category' ) != '')) { ?>
						<div class="single-product-meta">
							<span><?php _e('#Categories', 'stocky'); ?></span>
							<?php echo get_the_term_list( $post->ID, 'download_category' ); ?>
						</div>
						<?php } ?>

						<?php if ((get_the_term_list( $post->ID, 'download_tag' ) != '')) { ?>
						<div class="single-product-meta">
							<span><?php _e('#Tags', 'stocky'); ?></span>
							<?php echo get_the_term_list( $post->ID, 'download_tag'); ?>
						</div>
						<?php } ?>

					</div>
					
					<?php if (has_excerpt()) { ?>
						<div class="single-product-meta download_excerpt">
							<span><?php _e('#About', 'stocky'); ?></span>
							<?php the_excerpt(); ?>
						</div>
					<?php } ?>
					
					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('download_sidebar') ) : endif; /* WIDGETS */ ?>

					<?php if ( class_exists( 'EDD_Front_End_Submissions' ) ) : ?>

						<div id="stocky_portfolio_link_wrap">
							<a href="<?php echo esc_attr($url); ?>" id="portfolio_link" title="<?php _e('More From This User','stocky'); ?>"><?php _e('More From This User','stocky'); ?></a>
						</div>

					<?php endif; ?>

				</div>

		</div>

		<div id="product_content" class="entry-content clearfix">
			<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
		</div><!-- end #product_content -->

		<?php comments_template('', true); ?>

		<?php dcs_related_products(); ?>

	</div><!-- end .post_class -->

	<?php endwhile; else: ?>
	<h2 class="page_title"><?php _e('Sorry, we can\'t seem to find what you\'re looking for.', 'stocky'); ?></h2>
	<p><?php _e('Please try one of the links on top.', 'stocky'); ?></p>

	<?php endif; ?>
	<div class="clear"></div>
</div><!-- end #single_product_page -->
<?php get_footer(); ?>