HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
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/wpemobiq/wp-content/plugins/salient-portfolio/includes/frontend/template-loading.php
<?php 

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/* Single project template */
add_filter( 'single_template', 'salient_set_portfolio_single_template' );

if( !function_exists('salient_set_portfolio_single_template') ) {
  function salient_set_portfolio_single_template($single_template) {
       global $post;
       if ($post->post_type === 'portfolio') {
         
         $salient_portfolio_child_single_override = ( is_child_theme() && file_exists( get_stylesheet_directory() . '/single-portfolio.php') ) ? true : false;

         if( $salient_portfolio_child_single_override ) {
           // Found in child theme.
           $single_template = get_stylesheet_directory() . '/single-portfolio.php';
         } else {
           // Load from plugin.
           $single_template = SALIENT_PORTFOLIO_ROOT_DIR_PATH.'includes/frontend/single-portfolio.php';
         }

       }
       return $single_template;
  }
}


/* Taxonomy templates */
add_filter('template_include', 'salient_set_portfolio_tax_template');


if( !function_exists('salient_set_portfolio_tax_template') ) {
  
  function salient_set_portfolio_tax_template( $template ) {
    
    if( is_tax('project-type') ) {
      
      $salient_portfolio_child_tax_project_type_override = ( is_child_theme() && file_exists( get_stylesheet_directory() . '/taxonomy-project-type.php') ) ? true : false;
      
      if( $salient_portfolio_child_tax_project_type_override ) {
        // Found in child theme.
        $template = get_stylesheet_directory() . '/taxonomy-project-type.php';
      } else {
        // Load from plugin.
        $template = SALIENT_PORTFOLIO_ROOT_DIR_PATH.'includes/frontend/taxonomy-project-type.php';
      }
      
    } 
    else if( is_tax('project-attributes') ) {
      $salient_portfolio_child_tax_project_attr_override = ( is_child_theme() && file_exists( get_stylesheet_directory() . '/taxonomy-project-attributes.php') ) ? true : false;
      
      if( $salient_portfolio_child_tax_project_attr_override ) {
        // Found in child theme.
        $template = get_stylesheet_directory() . '/taxonomy-project-attributes.php';
      } else {
        // Load from plugin.
        $template = SALIENT_PORTFOLIO_ROOT_DIR_PATH.'includes/frontend/taxonomy-project-attributes.php';
      }
      
    } 
    
    return $template;
  }
  
}