function fp_theme_location

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

Return the theme location

17 calls to fp_theme_location()
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_group_form in modules/admin/admin.groups.inc
This function lets the user edit a group.
AdvisingScreen::build_footnotes in classes/AdvisingScreen.php
Constructs the HTML which will show footnotes for substitutions and transfer credits.
AdvisingScreen::display_popup_course_description in classes/AdvisingScreen.php
Displays the contents of the Descripton tab for the course popup.

... See full list

File

includes/theme.inc, line 2101

Code

function fp_theme_location($bool_include_base_path = TRUE) {

  $p = variable_get("theme", 'themes/fp6_clean');

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

  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;
}