qlstudio

4 Trees - ftf_get_template_part()

Nov 12th, 2012
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Include requested template file
  3.  * checks first in child, then in parent, then in framework - includes in that order.
  4.  * warns only admin if template part not found
  5.  *
  6.  * @include string Include file with local path i.e. "snippets/loop-nothing.php"
  7.  * @setting_title string Title of Setting option - optional ##
  8.  * @setting boolean Setting option constant - optional ##
  9.  * @uses ftf_get_option()
  10.  * @uses ftf_template_warning()
  11.  * @since 0.1
  12.  */
  13. if ( !function_exists( 'ftf_get_template_part' ) ) {
  14. function ftf_get_template_part( $include, $setting_title = '', $setting = true ){
  15.    
  16.     ...
  17.  
  18.     // if no template is found or setting inactive, issue a warning ##
  19.     ftf_template_warning( $include, $setting_title, $setting );
  20.    
  21. }}
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.

×