5.x theme.inc fp_theme_location($bool_include_base_path = TRUE)
4.x theme.inc fp_theme_location($bool_include_base_path = TRUE)

Return the theme location

30 calls to fp_theme_location()
admin_display_edit_degree in modules/admin/admin.degrees.inc
This screen displays the form which allows the user to actually edit a degree.
admin_display_groups in modules/admin/admin.groups.inc
This function will display a list of all our groups.
admin_display_groups_popup_select_icon in modules/admin/admin.groups.inc
This popup is called from the edit group page. It lets the user select an icon to assign to a group.
admin_edit_degree_form in modules/admin/admin.degrees.inc
Meant to replace the old-fashioned display_edit_degree function...
admin_edit_group_form in modules/admin/admin.groups.inc
This function lets the user edit a group.

... See full list


includes/theme.inc, line 1267


function fp_theme_location($bool_include_base_path = TRUE) {

  $p = @$GLOBALS["fp_system_settings"]["theme"];

  // The theme hasn't been set for some reason
  if ($p == "") {
    $p = "themes/classic";

  if ($bool_include_base_path) {
    $bp = base_path();

    // The following code is to fix a bug where we might end up with // as our location, if our base_path is simply "/", meaning,
    // the site is located on a bare domain.
    if ($bp != "/") {
      $p = base_path() . "/" . $p;
    else {
      $p = "/" . $p;

  return $p;