qlstudio

4 Trees - ftf_locate_template()

Nov 12th, 2012
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }}
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×