Advertisement
qlstudio

4 Trees - ftf_get_template_part()

Nov 12th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  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. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement