render('')); } print theme('maintenance_page', array('content' => $content)); exit(); } $ret = TRUE; // TODO: Figure out why D7 returns but everyone else prints } $out = $content; $config = &CRM_Core_Config::singleton(); if (!$print && $config->userFramework == 'WordPress' ) { if (is_admin()) { require_once (ABSPATH . 'wp-admin/admin-header.php'); } else { // FIX ME: we need to figure out to replace civicrm content on the frontend pages } } if ($ret) { return $out; } else { print $out; } } function getDefaultBlockLocation() { return 'left'; } function getVersion() { return 'Unknown'; } /** * Format the url as per language Negotiation. * * @param string $url * * @return string $url, formatted url. * @static */ function languageNegotiationURL( $url, $addLanguagePart = TRUE, $removeLanguagePart = FALSE ) { return $url; } /* * Currently this is just helping out the test class as defaults is calling it - maybe move fix to defaults */ function cmsRootPath() { } /** * Get user login URL for hosting CMS (method declared in each CMS system class) * * @param string $destination - if present, add destination to querystring (works for Drupal only) * * @return string - loginURL for the current CMS * @static */ public abstract function getLoginURL($destination = ''); /** * Set a init session with user object * * @param array $data array with user specific data * * @access public */ function setUserSession($data) { list($userID, $ufID) = $data; $session = CRM_Core_Session::singleton(); $session->set('ufID', $ufID); $session->set('userID', $userID); } }