groupblog_locate_layout

Bp_groupblog_admin_form_action().

Description

groupblog_locate_layout(); 

Usage

  1. if ( !function_exists( 'groupblog_locate_layout' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog-templatetags.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = groupblog_locate_layout(); 
  7.  

Defined (1)

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

/bp-groupblog-templatetags.php  
  1. function groupblog_locate_layout() { 
  2.  
  3. $opt = get_site_option( 'bp_groupblog_blog_defaults_options' ); 
  4.  
  5. if ( ( $opt['group_admin_layout'] != 1 ) || !( $template_name = groups_get_groupmeta( bp_get_groupblog_id(), 'page_template_layout' ) ) ) 
  6. $template_name = $opt['page_template_layout']; 
  7.  
  8. locate_template( array( 'groupblog/layouts/' . $template_name . '.php' ), true );