You are here

function _css3pie_get_css3pie_library in css3pie 6

helper function to get the path of CSS3PIE library it uses the library api.

Return value

<string> the path to the CSS3PIE library

1 call to _css3pie_get_css3pie_library()
_css3pie_build_css3pie_css in ./css3pie.module
helper function get all selectors and generates content for css file

File

./css3pie.module, line 235
css3pie.module a very simple Drupal module to implement the css3pie.com javascript to your drupal and make the css selectors configurable over ui. This module creates a real css file on drupal files folder and add them via drupal_add_css.

Code

function _css3pie_get_css3pie_library() {
  static $path_to_css3pie;

  // only search for library file
  if (!isset($path_to_css3pie)) {
    $path_to_css3pie = libraries_get_path('PIE');

    // Use php wrapper to set the correct header on old servers...
    if (!variable_get('css3pie_css_use_php_wrapper', FALSE)) {
      $path_to_css3pie = $path_to_css3pie . '/PIE.htc';
    }
    else {
      $path_to_css3pie = $path_to_css3pie . '/PIE.php';
    }
  }
  return $path_to_css3pie;
}