evolve_get

Evolve_get Gets template files.

Description

evolve_get( (constant) $file = NULL ); 

Parameters (1)

0. $file — Optional. (constant) => NULL
The file.

Usage

  1. if ( !function_exists( 'evolve_get' ) ) { 
  2. require_once '/library/functions/functions.php'; 
  3.  
  4. // The file. 
  5. $file = NULL; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = evolve_get($file); 
  9.  

Defined (1)

The function is defined in the following location(s).

/library/functions/functions.php  
  1. function evolve_get($file = NULL) { 
  2. do_action('evolve_get'); // Available action: evolve_get 
  3. $error = "Sorry, but <code>{$file}</code> does <em>not</em> seem to exist. Please make sure this file exist in <strong>" . get_stylesheet_directory() . "</strong>\n"; 
  4. $error = apply_filters('evolve_get_error', (string) $error); // Available filter: evolve_get_error 
  5. if (isset($file) && file_exists(get_stylesheet_directory() . "/{$file}.php")) 
  6. locate_template(get_stylesheet_directory() . "/{$file}.php"); 
  7. else 
  8. echo $error;