HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/onlineshop/wp-content/plugins/engotheme/templates/portfolio/content-gallery.php
<?php

  $files = get_post_meta(get_the_ID(), 'portfolio_file_advanced');

  $galleries = array();
  
  foreach( $files as $id ){
      $img_src = wp_get_attachment_image_src( $id, 'post-thumbnail');
      if( $img_src){
        $galleries[] = $img_src[0];
      }
  }
  

  if($galleries):
    	if(count( $galleries) >1){
    		$class_col_1 = 'col-lg-8 col-md-8 col-sm-8 col-xs-12';
    		$class_col_2 = 'col-lg-4 col-md-4 col-sm-4 col-xs-12';
    	}else{
    		$class_col_1 = '';
    		$class_col_2 = '';
    	}
	endif;
	//wp_enqueue_script( 'edubase-prettyPhoto_js', EDUBASE_WPO_THEME_URI.'/js/jquery.prettyPhoto.js');
	//wp_enqueue_style('edubase-perttyPhoto_css', EDUBASE_WPO_THEME_URI.'/css/prettyPhoto.css');

	$image_url = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'edubase-thumbnails-medium' );

?>

<div class="container">
      <div class="row">
      	<div class="portfolio-gallery <?php echo esc_attr($class_col_1);?>">
      		<?php if( has_post_thumbnail() ): ?>
      			<div class="entry-thumb">
      				<a href="<?php echo esc_url( $image_url[0]); ?>" data-rel="prettyPhoto[pp_gal]">
      					<?php the_post_thumbnail('full');?>
      				</a>
      			</div>
      		<?php endif; ?>
      	</div>
        <div class="<?php echo esc_attr( $class_col_2 );?> gallery-thumb"><div class="row">

            <?php foreach( $galleries as $_img ){ ?>
              <div class="col-md-6">
                <a href="<?php echo esc_url( $_img); ?>" data-rel="prettyPhoto[pp_gal]">
                  <img src="<?php echo esc_url_raw( $_img ) ?>" alt="<?php echo get_the_title(); ?>">
                </a>
              </div>
            <?php } ?>
        </div> </div> 
      </div>

      <div class="single-body">
         <div class="created"><?php the_date('M, d Y'); ?></div>
         <div class="entry-title"><h1 class="title-post fweight-800 text-big-1"><?php the_title(); ?></h1></div>
         <div class="post-area single-portfolio">
            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
               <div class="post-container"> 

                    <div class="entry-content no-border">

                        <?php the_content(); ?>

                        <?php engo_fnc_portfolio_information(); ?>
                
                        <?php get_template_part( 'page-templates/parts/sharebox' ); ?>

                        <?php wp_link_pages(); ?>

                    </div>
                        
               </div>
            </article>
         </div>
      </div>   

</div>