Advertisement
qlstudio

4 Trees - ftf_locate_template()

Nov 12th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. /**
  2.  * check if a file exists with logical fallback #
  3.  * first check the child, then the parent, then the framework ##
  4.  *
  5.  * @param - string - $include - file with path ( from library/ )
  6.  * @param - boolean - $echo - echo or return the results
  7.  * @param - boolean - $require - include with require_once
  8.  * @since 0.1
  9.  * @uses ftf_get_option()
  10.  * @return - echo|string|require_once
  11.  */
  12. if ( !function_exists( 'ftf_locate_template' ) ) {
  13. function ftf_locate_template( $include, $echo = true, $require = false ){
  14.    
  15.     ...
  16.  
  17.     // apply filters ##
  18.     $ftf_locate_template = apply_filters( 'ftf_locate_template', $ftf_locate_template );
  19.    
  20. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement